Просмотр исходного кода

Fixed up automatic modifications by hand.

tags/v0.9.3
Michael Brown 19 лет назад
Родитель
Сommit
cee678de7c

+ 3
- 3
src/drivers/net/davicom.c Просмотреть файл

@@ -157,7 +157,7 @@ static int TxPtr;
157 157
 /*********************************************************************/
158 158
 static void whereami(const char *str);
159 159
 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
160
-static int davicom_probe(struct dev *dev);
160
+static int davicom_probe(struct dev *dev,struct pci_device *pci);
161 161
 static void davicom_init_chain(struct nic *nic);	/* Sten 10/9 */
162 162
 static void davicom_reset(struct nic *nic);
163 163
 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
@@ -178,7 +178,7 @@ static void davicom_media_chk(struct nic *);
178 178
 /*********************************************************************/
179 179
 /* Utility Routines                                                  */
180 180
 /*********************************************************************/
181
-static inline void whereami(const char *str, struct pci_device *pci)
181
+static inline void whereami(const char *str)
182 182
 {
183 183
   printf("%s\n", str);
184 184
   /* sleep(2); */
@@ -655,7 +655,7 @@ static void davicom_irq(struct nic *nic __unused, irq_action_t action __unused)
655 655
 /*********************************************************************/
656 656
 /* eth_probe - Look for an adapter                                   */
657 657
 /*********************************************************************/
658
-static int davicom_probe ( struct dev *dev ) {
658
+static int davicom_probe ( struct dev *dev, struct pci_device *pci ) {
659 659
   struct nic *nic = nic_device ( dev );
660 660
   unsigned int i;
661 661
 

+ 1
- 1
src/drivers/net/e1000.c Просмотреть файл

@@ -3582,7 +3582,7 @@ static void e1000_irq(struct nic *nic __unused, irq_action_t action)
3582 3582
 PROBE - Look for an adapter, this routine's visible to the outside
3583 3583
 You should omit the last argument struct pci_device * for a non-PCI NIC
3584 3584
 ***************************************************************************/
3585
-static int e1000_probe ( struct dev *dev, struct pci_device *pci ) {
3585
+static int e1000_probe ( struct dev *dev, struct pci_device *p ) {
3586 3586
 	struct nic *nic = nic_device ( dev );
3587 3587
 	unsigned long mmio_start, mmio_len;
3588 3588
 	int ret_val, i;

+ 1
- 1
src/drivers/net/eepro100.c Просмотреть файл

@@ -603,7 +603,7 @@ static void eepro100_disable ( struct nic *nic __unused ) {
603 603
  *            leaves the 82557 initialized, and ready to recieve packets.
604 604
  */
605 605
 
606
-static int eepro100_probe ( struct dev *dev, struct pci_device *pci ) {
606
+static int eepro100_probe ( struct dev *dev, struct pci_device *p ) {
607 607
 	struct nic *nic = nic_device ( dev );
608 608
 	unsigned short sum = 0;
609 609
 	int i;

+ 1
- 1
src/drivers/net/natsemi.c Просмотреть файл

@@ -213,7 +213,7 @@ static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE] __attribute__ ((aligned(4)))
213 213
 
214 214
 /* Function Prototypes */
215 215
 
216
-static int natsemi_probe(struct dev *dev);
216
+static int natsemi_probe(struct dev *dev,struct pci_device *pci);
217 217
 static int eeprom_read(long addr, int location);
218 218
 static int mdio_read(int phy_id, int location);
219 219
 static void natsemi_init(struct nic *nic);

+ 1
- 1
src/drivers/net/rtl8139.c Просмотреть файл

@@ -172,7 +172,7 @@ static unsigned int cur_rx,cur_tx;
172 172
 static unsigned char tx_buffer[TX_BUF_SIZE] __attribute__((aligned(4)));
173 173
 static unsigned char rx_ring[RX_BUF_LEN+16] __attribute__((aligned(4)));
174 174
 
175
-static int rtl8139_probe(struct dev *dev);
175
+static int rtl8139_probe(struct dev *dev,struct pci_device *pci);
176 176
 static int read_eeprom(struct nic *nic, int location, int addr_len);
177 177
 static void rtl_reset(struct nic *nic);
178 178
 static void rtl_transmit(struct nic *nic, const char *destaddr,

+ 34
- 34
src/drivers/net/tg3.c Просмотреть файл

@@ -3227,44 +3227,11 @@ static struct nic_operations tg3_operations = {
3227 3227
 	.disable	= tg3_disable,
3228 3228
 };
3229 3229
 
3230
-
3231
-static struct pci_id tg3_nics[] = {
3232
-PCI_ROM(0x14e4, 0x1644, "tg3-5700",        "Broadcom Tigon 3 5700"),
3233
-PCI_ROM(0x14e4, 0x1645, "tg3-5701",        "Broadcom Tigon 3 5701"),
3234
-PCI_ROM(0x14e4, 0x1646, "tg3-5702",        "Broadcom Tigon 3 5702"),
3235
-PCI_ROM(0x14e4, 0x1647, "tg3-5703",        "Broadcom Tigon 3 5703"),
3236
-PCI_ROM(0x14e4, 0x1648, "tg3-5704",        "Broadcom Tigon 3 5704"),
3237
-PCI_ROM(0x14e4, 0x164d, "tg3-5702FE",      "Broadcom Tigon 3 5702FE"),
3238
-PCI_ROM(0x14e4, 0x1653, "tg3-5705",        "Broadcom Tigon 3 5705"),
3239
-PCI_ROM(0x14e4, 0x1654, "tg3-5705_2",      "Broadcom Tigon 3 5705_2"),
3240
-PCI_ROM(0x14e4, 0x165d, "tg3-5705M",       "Broadcom Tigon 3 5705M"),
3241
-PCI_ROM(0x14e4, 0x165e, "tg3-5705M_2",     "Broadcom Tigon 3 5705M_2"),
3242
-PCI_ROM(0x14e4, 0x1677, "tg3-5751",        "Broadcom Tigon 3 5751"),
3243
-PCI_ROM(0x14e4, 0x1696, "tg3-5782",        "Broadcom Tigon 3 5782"),
3244
-PCI_ROM(0x14e4, 0x169c, "tg3-5788",        "Broadcom Tigon 3 5788"),
3245
-PCI_ROM(0x14e4, 0x16a6, "tg3-5702X",       "Broadcom Tigon 3 5702X"),
3246
-PCI_ROM(0x14e4, 0x16a7, "tg3-5703X",       "Broadcom Tigon 3 5703X"),
3247
-PCI_ROM(0x14e4, 0x16a8, "tg3-5704S",       "Broadcom Tigon 3 5704S"),
3248
-PCI_ROM(0x14e4, 0x16c6, "tg3-5702A3",      "Broadcom Tigon 3 5702A3"),
3249
-PCI_ROM(0x14e4, 0x16c7, "tg3-5703A3",      "Broadcom Tigon 3 5703A3"),
3250
-PCI_ROM(0x14e4, 0x170d, "tg3-5901",        "Broadcom Tigon 3 5901"),
3251
-PCI_ROM(0x14e4, 0x170e, "tg3-5901_2",      "Broadcom Tigon 3 5901_2"),
3252
-PCI_ROM(0x1148, 0x4400, "tg3-9DXX",        "Syskonnect 9DXX"),
3253
-PCI_ROM(0x1148, 0x4500, "tg3-9MXX",        "Syskonnect 9MXX"),
3254
-PCI_ROM(0x173b, 0x03e8, "tg3-ac1000",      "Altima AC1000"),
3255
-PCI_ROM(0x173b, 0x03e9, "tg3-ac1001",      "Altima AC1001"),
3256
-PCI_ROM(0x173b, 0x03ea, "tg3-ac9100",      "Altima AC9100"),
3257
-PCI_ROM(0x173b, 0x03eb, "tg3-ac1003",      "Altima AC1003"),
3258
-};
3259
-
3260
-static struct pci_driver tg3_driver =
3261
-	PCI_DRIVER ( "TG3", tg3_nics, PCI_NO_CLASS );
3262
-
3263 3230
 /**************************************************************************
3264 3231
 PROBE - Look for an adapter, this routine's visible to the outside
3265 3232
 You should omit the last argument struct pci_device * for a non-PCI NIC
3266 3233
 ***************************************************************************/
3267
-static int tg3_probe ( struct dev *dev, struct pci_device *pci ) {
3234
+static int tg3_probe ( struct dev *dev, struct pci_device *pdev ) {
3268 3235
 	struct nic *nic = nic_device ( dev );
3269 3236
 	struct tg3 *tp = &tg3;
3270 3237
 	unsigned long tg3reg_base, tg3reg_len;
@@ -3386,4 +3353,37 @@ static int tg3_probe ( struct dev *dev, struct pci_device *pci ) {
3386 3353
 	return 0;
3387 3354
 }
3388 3355
 
3356
+
3357
+static struct pci_id tg3_nics[] = {
3358
+PCI_ROM(0x14e4, 0x1644, "tg3-5700",        "Broadcom Tigon 3 5700"),
3359
+PCI_ROM(0x14e4, 0x1645, "tg3-5701",        "Broadcom Tigon 3 5701"),
3360
+PCI_ROM(0x14e4, 0x1646, "tg3-5702",        "Broadcom Tigon 3 5702"),
3361
+PCI_ROM(0x14e4, 0x1647, "tg3-5703",        "Broadcom Tigon 3 5703"),
3362
+PCI_ROM(0x14e4, 0x1648, "tg3-5704",        "Broadcom Tigon 3 5704"),
3363
+PCI_ROM(0x14e4, 0x164d, "tg3-5702FE",      "Broadcom Tigon 3 5702FE"),
3364
+PCI_ROM(0x14e4, 0x1653, "tg3-5705",        "Broadcom Tigon 3 5705"),
3365
+PCI_ROM(0x14e4, 0x1654, "tg3-5705_2",      "Broadcom Tigon 3 5705_2"),
3366
+PCI_ROM(0x14e4, 0x165d, "tg3-5705M",       "Broadcom Tigon 3 5705M"),
3367
+PCI_ROM(0x14e4, 0x165e, "tg3-5705M_2",     "Broadcom Tigon 3 5705M_2"),
3368
+PCI_ROM(0x14e4, 0x1677, "tg3-5751",        "Broadcom Tigon 3 5751"),
3369
+PCI_ROM(0x14e4, 0x1696, "tg3-5782",        "Broadcom Tigon 3 5782"),
3370
+PCI_ROM(0x14e4, 0x169c, "tg3-5788",        "Broadcom Tigon 3 5788"),
3371
+PCI_ROM(0x14e4, 0x16a6, "tg3-5702X",       "Broadcom Tigon 3 5702X"),
3372
+PCI_ROM(0x14e4, 0x16a7, "tg3-5703X",       "Broadcom Tigon 3 5703X"),
3373
+PCI_ROM(0x14e4, 0x16a8, "tg3-5704S",       "Broadcom Tigon 3 5704S"),
3374
+PCI_ROM(0x14e4, 0x16c6, "tg3-5702A3",      "Broadcom Tigon 3 5702A3"),
3375
+PCI_ROM(0x14e4, 0x16c7, "tg3-5703A3",      "Broadcom Tigon 3 5703A3"),
3376
+PCI_ROM(0x14e4, 0x170d, "tg3-5901",        "Broadcom Tigon 3 5901"),
3377
+PCI_ROM(0x14e4, 0x170e, "tg3-5901_2",      "Broadcom Tigon 3 5901_2"),
3378
+PCI_ROM(0x1148, 0x4400, "tg3-9DXX",        "Syskonnect 9DXX"),
3379
+PCI_ROM(0x1148, 0x4500, "tg3-9MXX",        "Syskonnect 9MXX"),
3380
+PCI_ROM(0x173b, 0x03e8, "tg3-ac1000",      "Altima AC1000"),
3381
+PCI_ROM(0x173b, 0x03e9, "tg3-ac1001",      "Altima AC1001"),
3382
+PCI_ROM(0x173b, 0x03ea, "tg3-ac9100",      "Altima AC9100"),
3383
+PCI_ROM(0x173b, 0x03eb, "tg3-ac1003",      "Altima AC1003"),
3384
+};
3385
+
3386
+static struct pci_driver tg3_driver =
3387
+	PCI_DRIVER ( "TG3", tg3_nics, PCI_NO_CLASS );
3388
+
3389 3389
 BOOT_DRIVER ( "TG3", find_pci_boot_device, tg3_driver, tg3_probe );

+ 2
- 3
src/drivers/net/tulip.c Просмотреть файл

@@ -486,7 +486,7 @@ static int mdio_read(struct nic *nic, int phy_id, int location);
486 486
 static void mdio_write(struct nic *nic, int phy_id, int location, int value);
487 487
 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
488 488
 static void parse_eeprom(struct nic *nic);
489
-static int tulip_probe(struct dev *dev);
489
+static int tulip_probe(struct dev *dev,struct pci_device *pci);
490 490
 static void tulip_init_ring(struct nic *nic);
491 491
 static void tulip_reset(struct nic *nic);
492 492
 static void tulip_transmit(struct nic *nic, const char *d, unsigned int t,
@@ -1220,12 +1220,11 @@ static struct nic_operations tulip_operations = {
1220 1220
 	.irq		= tulip_irq,
1221 1221
 	.disable	= tulip_disable,
1222 1222
 };
1223
-static struct pci_driver tulip_driver;
1224 1223
 
1225 1224
 /*********************************************************************/
1226 1225
 /* eth_probe - Look for an adapter                                   */
1227 1226
 /*********************************************************************/
1228
-static int tulip_probe ( struct dev *dev ) {
1227
+static int tulip_probe ( struct dev *dev, struct pci_device *pci ) {
1229 1228
     struct nic *nic = nic_device ( dev );
1230 1229
     u32 i;
1231 1230
     u8  chip_rev;

+ 1
- 1
src/drivers/net/w89c840.c Просмотреть файл

@@ -623,7 +623,7 @@ static struct pci_driver w89c840_driver =
623 623
 /**************************************************************************
624 624
 w89c840_probe - Look for an adapter, this routine's visible to the outside
625 625
 ***************************************************************************/
626
-static int w89c840_probe ( struct dev *dev, struct pci_device *pci ) {
626
+static int w89c840_probe ( struct dev *dev, struct pci_device *p ) {
627 627
     struct nic *nic = nic_device ( dev );
628 628
 
629 629
     u16 sum = 0;

Загрузка…
Отмена
Сохранить