aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dl2k.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dl2k.h')
-rw-r--r--drivers/net/dl2k.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/net/dl2k.h b/drivers/net/dl2k.h
index 6e75482d75f2..814c449c359f 100644
--- a/drivers/net/dl2k.h
+++ b/drivers/net/dl2k.h
@@ -1,5 +1,5 @@
1/* D-Link DL2000-based Gigabit Ethernet Adapter Linux driver */ 1/* D-Link DL2000-based Gigabit Ethernet Adapter Linux driver */
2/* 2/*
3 Copyright (c) 2001, 2002 by D-Link Corporation 3 Copyright (c) 2001, 2002 by D-Link Corporation
4 Written by Edward Peng.<edward_peng@dlink.com.tw> 4 Written by Edward Peng.<edward_peng@dlink.com.tw>
5 Created 03-May-2001, base on Linux' sundance.c. 5 Created 03-May-2001, base on Linux' sundance.c.
@@ -216,7 +216,7 @@ enum MACCtrl_bits {
216enum ASICCtrl_LoWord_bits { 216enum ASICCtrl_LoWord_bits {
217 PhyMedia = 0x0080, 217 PhyMedia = 0x0080,
218}; 218};
219 219
220enum ASICCtrl_HiWord_bits { 220enum ASICCtrl_HiWord_bits {
221 GlobalReset = 0x0001, 221 GlobalReset = 0x0001,
222 RxReset = 0x0002, 222 RxReset = 0x0002,
@@ -596,7 +596,7 @@ typedef union t_PCS_ANLPAR {
596} ANLPAR_PCS_t, *PANLPAR_PCS_t; 596} ANLPAR_PCS_t, *PANLPAR_PCS_t;
597 597
598enum _pcs_anlpar { 598enum _pcs_anlpar {
599 PCS_ANLPAR_NEXT_PAGE = PCS_ANAR_NEXT_PAGE, 599 PCS_ANLPAR_NEXT_PAGE = PCS_ANAR_NEXT_PAGE,
600 PCS_ANLPAR_REMOTE_FAULT = PCS_ANAR_REMOTE_FAULT, 600 PCS_ANLPAR_REMOTE_FAULT = PCS_ANAR_REMOTE_FAULT,
601 PCS_ANLPAR_ASYMMETRIC = PCS_ANAR_ASYMMETRIC, 601 PCS_ANLPAR_ASYMMETRIC = PCS_ANAR_ASYMMETRIC,
602 PCS_ANLPAR_PAUSE = PCS_ANAR_PAUSE, 602 PCS_ANLPAR_PAUSE = PCS_ANAR_PAUSE,
@@ -683,11 +683,6 @@ struct netdev_private {
683}; 683};
684 684
685/* The station address location in the EEPROM. */ 685/* The station address location in the EEPROM. */
686#ifdef MEM_MAPPING
687#define PCI_IOTYPE (PCI_USES_MASTER | PCI_USES_MEM | PCI_ADDR1)
688#else
689#define PCI_IOTYPE (PCI_USES_MASTER | PCI_USES_IO | PCI_ADDR0)
690#endif
691/* The struct pci_device_id consist of: 686/* The struct pci_device_id consist of:
692 vendor, device Vendor and device ID to match (or PCI_ANY_ID) 687 vendor, device Vendor and device ID to match (or PCI_ANY_ID)
693 subvendor, subdevice Subsystem vendor and device ID to match (or PCI_ANY_ID) 688 subvendor, subdevice Subsystem vendor and device ID to match (or PCI_ANY_ID)
@@ -695,9 +690,10 @@ struct netdev_private {
695 class_mask of the class are honored during the comparison. 690 class_mask of the class are honored during the comparison.
696 driver_data Data private to the driver. 691 driver_data Data private to the driver.
697*/ 692*/
698static struct pci_device_id rio_pci_tbl[] = { 693
699 {0x1186, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 694static const struct pci_device_id rio_pci_tbl[] = {
700 {0,} 695 {0x1186, 0x4000, PCI_ANY_ID, PCI_ANY_ID, },
696 { }
701}; 697};
702MODULE_DEVICE_TABLE (pci, rio_pci_tbl); 698MODULE_DEVICE_TABLE (pci, rio_pci_tbl);
703#define TX_TIMEOUT (4*HZ) 699#define TX_TIMEOUT (4*HZ)