|
enum | chip_capability_flags {
CanHaveMII =1,
CanHaveMII =1,
HasBrokenTx =2,
AlwaysFDX =4,
FDXOnNoMII =8,
HAS_MII_XCVR,
HAS_CHIP_XCVR,
MII_PWRDWN =1,
TYPE2_INTR =2,
NO_MII =4
} |
|
enum | { netdev_res_size = 128
} |
|
enum | w840_offsets {
PCIBusCfg =0x00,
TxStartDemand =0x04,
RxStartDemand =0x08,
RxRingPtr =0x0C,
TxRingPtr =0x10,
IntrStatus =0x14,
NetworkConfig =0x18,
IntrEnable =0x1C,
RxMissed =0x20,
EECtrl =0x24,
MIICtrl =0x24,
BootRom =0x28,
GPTimer =0x2C,
CurRxDescAddr =0x30,
CurRxBufAddr =0x34,
MulticastFilter0 =0x38,
MulticastFilter1 =0x3C,
StationAddr =0x40,
CurTxDescAddr =0x4C,
CurTxBufAddr =0x50
} |
|
enum | rx_mode_bits {
AcceptBroadcast =0x04,
AcceptAllMulticast =0x02,
AcceptAll =0x01,
AcceptMulticast =0x10,
PerfectFilter =0x40,
HashFilter =0x30,
PerfectFilterVlan =0x80,
MinVLANPrio =0xE000,
VlanMode =0x0200,
WakeupOnGFP =0x0800,
AcceptErr =0x80,
RxAcceptBroadcast =0x20,
AcceptMulticast =0x10,
RxAcceptAllPhys =0x08,
AcceptMyPhys =0x02,
AcceptAllIPMulti =0x20,
AcceptMultiHash =0x10,
AcceptAll =0x08,
AcceptBroadcast =0x04,
AcceptMulticast =0x02,
AcceptMyPhys =0x01,
CR_W_ENH = 0x02000000,
CR_W_FD = 0x00100000,
CR_W_PS10 = 0x00080000,
CR_W_TXEN = 0x00040000,
CR_W_PS1000 = 0x00010000,
CR_W_RXMODEMASK = 0x000000e0,
CR_W_PROM = 0x00000080,
CR_W_AB = 0x00000040,
CR_W_AM = 0x00000020,
CR_W_ARP = 0x00000008,
CR_W_ALP = 0x00000004,
CR_W_SEP = 0x00000002,
CR_W_RXEN = 0x00000001,
CR_R_TXSTOP = 0x04000000,
CR_R_FD = 0x00100000,
CR_R_PS10 = 0x00080000,
CR_R_RXSTOP = 0x00008000,
AcceptErr = 0x20,
AcceptRunt = 0x10,
AcceptBroadcast = 0x08,
AcceptMulticast = 0x04,
AcceptMyPhys = 0x02,
AcceptAllPhys = 0x01
} |
|
enum | mii_reg_bits {
MDIO_ShiftClk =0x10000,
MDIO_DataIn =0x80000,
MDIO_DataOut =0x20000,
MDIO_EnbOutput =0x40000,
MDIO_EnbIn = 0x00000,
MDIO_ShiftClk =0x0001,
MDIO_Data =0x0002,
MDIO_EnbOutput =0x0004
} |
|
enum | EEPROM_Ctrl_Bits {
EE_ShiftClk =0x02,
EE_Write0 =0x801,
EE_Write1 =0x805,
EE_ChipSelect =0x801,
EE_DataIn =0x08
} |
|
enum | EEPROM_Cmds {
EE_WriteCmd =(5 << 6),
EE_ReadCmd =(6 << 6),
EE_EraseCmd =(7 << 6),
EE_WriteCmd =(5 << 6),
EE_ReadCmd =(6 << 6),
EE_EraseCmd =(7 << 6)
} |
|
|
| MODULE_AUTHOR ("Donald Becker <[email protected]>") |
|
| MODULE_DESCRIPTION ("Winbond W89c840 Ethernet driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_VERSION (DRV_VERSION) |
|
| module_param (max_interrupt_work, int, 0) |
|
| module_param (debug, int, 0) |
|
| module_param (rx_copybreak, int, 0) |
|
| module_param (multicast_filter_limit, int, 0) |
|
| module_param_array (options, int, NULL, 0) |
|
| module_param_array (full_duplex, int, NULL, 0) |
|
| MODULE_PARM_DESC (max_interrupt_work,"winbond-840 maximum events handled per interrupt") |
|
| MODULE_PARM_DESC (debug,"winbond-840 debug level (0-6)") |
|
| MODULE_PARM_DESC (rx_copybreak,"winbond-840 copy breakpoint for copy-only-tiny-frames") |
|
| MODULE_PARM_DESC (multicast_filter_limit,"winbond-840 maximum number of filtered multicast addresses") |
|
| MODULE_PARM_DESC (options,"winbond-840: Bits 0-3: media type, bit 17: full duplex") |
|
| MODULE_PARM_DESC (full_duplex,"winbond-840 full duplex setting(s) (1)") |
|
| MODULE_DEVICE_TABLE (pci, w840_pci_tbl) |
|
| module_init (w840_init) |
|
| module_exit (w840_exit) |
|