~ubuntu-branches/ubuntu/raring/linux-ppc/raring-proposed

« back to all changes in this revision

Viewing changes to drivers/net/dpa/mac-api.c

  • Committer: Package Import Robot
  • Author(s): Ben Collins, Ben Collins, PPC Ubuntu: 3.8.0-1.4, Adam Conrad, Andy Whitcroft, Ubuntu: 3.8.0-1.5, Ubuntu: 3.8.0-0.4, Ubuntu: 3.8.0-0.3
  • Date: 2013-01-22 20:41:25 UTC
  • mfrom: (16.1.1 raring)
  • Revision ID: package-import@ubuntu.com-20130122204125-zw3j1vl5temxb1gr
Tags: 3.8.0-1.5
[ Ben Collins ]

* SAUCE: Remove __devinit and __devexit annotations
* SAUCE: Add op emulation to allow newer kernels to run under e500
  qemu-kvm

[ PPC Ubuntu: 3.8.0-1.4 ]

[ Adam Conrad ]

* Sync build-deps with master to avoid future FTBFS
* Fix up linux-tools -> SRCPKGNAME-tools rename
* Add a debian/source/options file to ignore cruft

[ Andy Whitcroft ]

* [Config] enable various HVC consoles
  - LP: #1102206
* [Config] linux-image-* should Suggests: linux-headers-*
  - LP: #1029730

[ Ubuntu: 3.8.0-1.5 ]

* Release Tracking Bug
  - LP: #1101235
* SAUCE: Input: add support for Cypress PS/2 Trackpads
  - LP: #978807
* SAUCE: Input: increase struct ps2dev cmdbuf[] to 8 bytes
* SAUCE: Input: Cypress PS/2 Trackpad simulated multitouch
* [Config] Add CONFIG_PS2_CYPRESS
* rebase to v3.8-rc4
* rebase to v3.8-rc4
  - LP: #1095315
  - LP: #886975
  - LP: #1086921

[ Ubuntu: 3.8.0-0.4 ]

* [Config] Update CONFIG_TOUCHSCREEN_EGALAX build annotation
* [Config] Update CONFIG_IIO build annotation
* [Config] Update CONFIG_TOUCHSCREEN_EETI annotation
* [Config] Remove CONFIG_SPI_DW_MMIO annotation
* [Config] Remove CONFIG_SPI_PL022 annotation
* [Config] Update CONFIG_EZX_PCAP annotation
* [Config] Update CONFIG_SENSORS_AK8975 annotation
* [Config] Disable CONFIG_DRM_MGAG200
  - LP: #1042903

[ Ubuntu: 3.8.0-0.3 ]

* Revert "SAUCE: (no-up) trace: add trace events for open(), exec() and
  uselib()"
* SAUCE: (no-up) trace: add trace events for open(), exec() and uselib()
  (for v3.7+)
  - LP: #1085766, #462111

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
};
58
58
 
59
59
const char      *mac_driver_description __initconst = MAC_DESCRIPTION;
60
 
const size_t     mac_sizeof_priv[] __devinitconst = {
 
60
const size_t     mac_sizeof_priv[] = {
61
61
        [DTSEC] = sizeof(struct mac_priv_s),
62
62
        [XGMAC] = sizeof(struct mac_priv_s)
63
63
};
64
64
 
65
 
static const e_EnetMode _100[] __devinitconst =
 
65
static const e_EnetMode _100[] =
66
66
{
67
67
        [PHY_INTERFACE_MODE_MII]        = e_ENET_MODE_MII_100,
68
68
        [PHY_INTERFACE_MODE_RMII]       = e_ENET_MODE_RMII_100
69
69
};
70
70
 
71
 
static const e_EnetMode _1000[] __devinitconst =
 
71
static const e_EnetMode _1000[] =
72
72
{
73
73
        [PHY_INTERFACE_MODE_GMII]       = e_ENET_MODE_GMII_1000,
74
74
        [PHY_INTERFACE_MODE_SGMII]      = e_ENET_MODE_SGMII_1000,
80
80
        [PHY_INTERFACE_MODE_RTBI]       = e_ENET_MODE_RTBI_1000
81
81
};
82
82
 
83
 
static e_EnetMode __devinit __cold __attribute__((nonnull))
 
83
static e_EnetMode __cold __attribute__((nonnull))
84
84
macdev2enetinterface(const struct mac_device *mac_dev)
85
85
{
86
86
        switch (mac_dev->max_speed) {
113
113
                exception);
114
114
}
115
115
 
116
 
static int __devinit __cold init(struct mac_device *mac_dev)
 
116
static int __cold init(struct mac_device *mac_dev)
117
117
{
118
118
        int                                     _errno;
119
119
        t_Error                         err;
634
634
        return _errno;
635
635
}
636
636
 
637
 
static void __devinit __cold setup_dtsec(struct mac_device *mac_dev)
 
637
static void __cold setup_dtsec(struct mac_device *mac_dev)
638
638
{
639
639
        mac_dev->init_phy       = dtsec_init_phy;
640
640
        mac_dev->init           = init;
656
656
        mac_dev->fm_rtc_set_fiper       = fm_rtc_set_fiper;
657
657
}
658
658
 
659
 
static void __devinit __cold setup_xgmac(struct mac_device *mac_dev)
 
659
static void __cold setup_xgmac(struct mac_device *mac_dev)
660
660
{
661
661
        mac_dev->init_phy       = xgmac_init_phy;
662
662
        mac_dev->init           = init;
668
668
        mac_dev->uninit         = uninit;
669
669
}
670
670
 
671
 
void (*const mac_setup[])(struct mac_device *mac_dev) __devinitconst = {
 
671
void (*const mac_setup[])(struct mac_device *mac_dev) = {
672
672
        [DTSEC] = setup_dtsec,
673
673
        [XGMAC] = setup_xgmac
674
674
};