]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Automatically updated using
authorMichael Brown <mcb30@etherboot.org>
Thu, 14 Apr 2005 14:44:33 +0000 (14:44 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 14 Apr 2005 14:44:33 +0000 (14:44 +0000)
perl -pi -0777 -e 's/(_probe\s*\(\s*struct\s+dev.*?)(\s*\)\s*{.*?$)\s*struct pci_device.*?=\s*pci_device \( dev \);$/${1}, struct pci_device *pci${2}/ms' *.c

sis900 excluded from update

23 files changed:
src/drivers/net/3c595.c
src/drivers/net/3c90x.c
src/drivers/net/davicom.c
src/drivers/net/dmfe.c
src/drivers/net/e1000.c
src/drivers/net/eepro100.c
src/drivers/net/epic100.c
src/drivers/net/forcedeth.c
src/drivers/net/mtd80x.c
src/drivers/net/natsemi.c
src/drivers/net/ns83820.c
src/drivers/net/pcnet32.c
src/drivers/net/prism2_pci.c
src/drivers/net/prism2_plx.c
src/drivers/net/r8169.c
src/drivers/net/rtl8139.c
src/drivers/net/skel.c
src/drivers/net/sundance.c
src/drivers/net/tg3.c
src/drivers/net/tlan.c
src/drivers/net/tulip.c
src/drivers/net/via-rhine.c
src/drivers/net/w89c840.c

index 96c623fff88169bab01d213cb22c034375180ee7..d6d152501bb9132baad8d608fb98065864accb20 100644 (file)
@@ -468,9 +468,8 @@ static void t595_irq(struct nic *nic __unused, irq_action_t action __unused)
 /**************************************************************************
 ETH_PROBE - Look for an adapter
 ***************************************************************************/
-static int t595_probe ( struct dev *dev ) {
+static int t595_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        int i;
        unsigned short *p;
 
index 7805bb03bd4a09a2d8db61512f763774543ffdc2..52e6c28e8402f54f5c2b7ad23f56fa761b5be927 100644 (file)
@@ -690,9 +690,8 @@ static void a3c90x_irq(struct nic *nic __unused, irq_action_t action __unused)
  *** initialization.  If this routine is called, the pci functions did find the
  *** card.  We just have to init it here.
  ***/
-static int a3c90x_probe ( struct dev *dev ) {
+static int a3c90x_probe ( struct dev *dev, struct pci_device *pci ) {
     struct nic *nic = nic_device ( dev );
-    struct pci_device *pci = pci_device ( dev );
     int i, c;
     unsigned short eeprom[0x21];
     unsigned int cfg;
index 44e2bf2128e1539832ca0f7f7e8cead23c90863c..cb763de667b5c3ebc86710d276257d1e9fba55e8 100644 (file)
@@ -178,7 +178,7 @@ static void davicom_media_chk(struct nic *);
 /*********************************************************************/
 /* Utility Routines                                                  */
 /*********************************************************************/
-static inline void whereami(const char *str)
+static inline void whereami(const char *str, struct pci_device *pci)
 {
   printf("%s\n", str);
   /* sleep(2); */
@@ -657,7 +657,6 @@ static void davicom_irq(struct nic *nic __unused, irq_action_t action __unused)
 /*********************************************************************/
 static int davicom_probe ( struct dev *dev ) {
   struct nic *nic = nic_device ( dev );
-  struct pci_device *pci = pci_device ( dev );
   unsigned int i;
 
   whereami("davicom_probe\n");
index 0aacec5fa621b15c28b61ce1d3a3b401c8db77bb..4a79817fd74c00eb646415e2cd0b4dfe78c3616c 100644 (file)
@@ -459,9 +459,8 @@ PROBE - Look for an adapter, this routine's visible to the outside
 
 #define board_found 1
 #define valid_link 0
-static int dmfe_probe ( struct dev *dev ) {
+static int dmfe_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        uint32_t dev_rev, pci_pmr;
        int i;
 
index 3cd91f73f4368b308ab403546f6c3836687fe1a5..426cf150fdffa06454642e148a7f976ca5a76854 100644 (file)
@@ -3582,9 +3582,8 @@ static void e1000_irq(struct nic *nic __unused, irq_action_t action)
 PROBE - Look for an adapter, this routine's visible to the outside
 You should omit the last argument struct pci_device * for a non-PCI NIC
 ***************************************************************************/
-static int e1000_probe ( struct dev *dev ) {
+static int e1000_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *p = pci_device ( dev );
        unsigned long mmio_start, mmio_len;
        int ret_val, i;
 
index bccb91902b0b599cd412f27f70608aabb708f0ef..c37557bb5e9e3715a9f49fd69e8901016c1a5c92 100644 (file)
@@ -603,9 +603,8 @@ static void eepro100_disable ( struct nic *nic __unused ) {
  *            leaves the 82557 initialized, and ready to recieve packets.
  */
 
-static int eepro100_probe ( struct dev *dev ) {
+static int eepro100_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *p = pci_device ( dev );
        unsigned short sum = 0;
        int i;
        int read_cmd, ee_size;
index efe93c987bd2c4c4f4fbe5d096a79d2b6d57fe2d..2cc57c476ab9e2079dbc58549203b8782a9284d3 100644 (file)
@@ -99,9 +99,8 @@ static unsigned char          tx_packet[PKT_BUF_SZ * TX_RING_SIZE];
 
 
 static int
-epic100_probe ( struct dev *dev ) {
+epic100_probe ( struct dev *dev, struct pci_device *pci ) {
     struct nic *nic = nic_device ( dev );
-    struct pci_device *pci = pci_device ( dev );
     int i;
     unsigned short* ap;
     unsigned int phy, phy_idx;
index 966d25ef73d8a4cc288fdf8751eab247c685b0b5..85f8d796a496ddb6a59a41b24e9f2fb2f6f4e1df 100644 (file)
@@ -941,9 +941,8 @@ PROBE - Look for an adapter, this routine's visible to the outside
 #define IORESOURCE_MEM 0x00000200
 #define board_found 1
 #define valid_link 0
-static int forcedeth_probe ( struct dev *dev ) {
+static int forcedeth_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        unsigned long addr;
        int sz;
        u8 *base;
index db6e827350a672b7f6f5f236c67aba0a835e049a..21dbe3e3764930e736869082b515507cc77cbc69 100644 (file)
@@ -674,9 +674,8 @@ static struct pci_driver mtd80x_driver =
 PROBE - Look for an adapter, this routine's visible to the outside
 ***************************************************************************/
 
-static int mtd_probe ( struct dev *dev ) {
+static int mtd_probe ( struct dev *dev, struct pci_device *pci ) {
     struct nic *nic = nic_device ( dev );
-    struct pci_device *pci = pci_device ( dev );
     int i;
 
     if ( ! find_pci_device ( pci, &mtd80x_driver ) )
index e66289d001e5b04785f079ad464381d35e69142a..c58e9e5c6d562872fe90acfcab534853d0742db1 100644 (file)
@@ -243,11 +243,9 @@ static void natsemi_irq(struct nic *nic, irq_action_t action);
  */
 
 static int
-natsemi_probe ( struct dev *dev ) {
+natsemi_probe ( struct dev *dev, struct pci_device *pci ) {
 
     struct nic *nic = nic_device ( dev );
-
-    struct pci_device *pci = pci_device ( dev );
     int i;
     int prev_eedata;
     u32 tmp;
index 5ce219170cca881f6cbb6ec76ae551b1db0cd294..addf73b6aeae5edb145c1664ea50e8eb793ed43c 100755 (executable)
@@ -825,9 +825,8 @@ PROBE - Look for an adapter, this routine's visible to the outside
 
 #define board_found 1
 #define valid_link 0
-static int ns83820_probe ( struct dev *dev ) {
+static int ns83820_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        int sz;
        long addr;
        int using_dac = 0;
index 900e0db84d2fc088c3405658f2175442c0ff9d2f..e7fde829387ba0e57c72e17169c086136991ee29 100644 (file)
@@ -666,9 +666,8 @@ static void pcnet32_irq(struct nic *nic __unused, irq_action_t action __unused)
 PROBE - Look for an adapter, this routine's visible to the outside
 You should omit the last argument struct pci_device * for a non-PCI NIC
 ***************************************************************************/
-static int pcnet32_probe ( struct dev *dev ) {
+static int pcnet32_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        int i, media;
        int fdx, mii, fset, dxsuflo, ltint;
        int chip_version;
index 08a698c8bcc040cc94674bcd0482947a2cc26b40..52d06337ac73a1207f57cabf267db2e399e02de8 100644 (file)
@@ -26,9 +26,8 @@ PCI_ROM(0x1260, 0x3873, "dwl520",     "DLink DWL-520"),
 static struct pci_driver prism2_pci_driver =
        PCI_DRIVER ( "Prism2_PCI", prism2_pci_nics, PCI_NO_CLASS );
 
-static int prism2_pci_probe ( struct dev *dev ) {
+static int prism2_pci_probe ( struct dev *dev, struct pci_device *pci ) {
   struct nic *nic = nic_device ( dev );
-  struct pci_device *pci = pci_device ( dev );
   hfa384x_t *hw = &hw_global;
   uint32_t membase = 0; /* Prism2.5 Memory Base */
 
index 03a6db2fa5cbf0cdfa6436951929c03ce5b1bf78..4355310e080b166a5fb6634e6d23e004ed064355 100644 (file)
@@ -92,9 +92,8 @@ static int prism2_find_plx ( hfa384x_t *hw, struct pci_device *p )
   return found;
 }
 
-static int prism2_plx_probe ( struct dev *dev ) {
+static int prism2_plx_probe ( struct dev *dev, struct pci_device *pci ) {
   struct nic *nic = nic_device ( dev );
-  struct pci_device *pci = pci_device ( dev );
   hfa384x_t *hw = &hw_global;
 
   if ( ! find_pci_device ( pci, &prism2_plx_driver ) )
index 2cb97a2589ed3063504828771830ad33731dbfd6..eb42db4cd4125632ab3a6bad1835254ffb8d27b8 100644 (file)
@@ -723,9 +723,8 @@ PROBE - Look for an adapter, this routine's visible to the outside
 
 #define board_found 1
 #define valid_link 0
-static int r8169_probe ( struct dev *dev ) {
+static int r8169_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        static int board_idx = -1;
        static int printed_version = 0;
        int i, rc;
index 3c1cc739cdd69c122f38bc1481614b798b66a257..c61f0374c2b655ae4c5df09c98b16dc15f1a29a8 100644 (file)
@@ -183,9 +183,8 @@ static void rtl_irq(struct nic *nic, irq_action_t action);
 static struct nic_operations rtl_operations;
 static struct pci_driver rtl8139_driver;
 
-static int rtl8139_probe ( struct dev *dev ) {
+static int rtl8139_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        int i;
        int speed10, fullduplex;
        int addr_len;
index 45627883bb02369e3d5c098bb2beb6f5efc0f251..41d68f68aa39ffa384d7764eeb0b4337f82facbb 100644 (file)
@@ -133,12 +133,10 @@ PROBE - Look for an adapter, this routine's visible to the outside
 
 #define board_found 1
 #define valid_link 0
-static int skel_probe ( struct dev *dev ) {
+static int skel_probe ( struct dev *dev, struct pci_device *pci ) {
 
        struct nic *nic = nic_device ( dev );
 
-       struct pci_device *pci = pci_device ( dev );
-
        if (board_found && valid_link)
        {
                /* store NIC parameters */
index 45271f51a5fb52a93c6d3af82637b49ac82b5a49..bc20720698a99367e57d89403af78fabf00a7307 100644 (file)
@@ -583,9 +583,8 @@ static struct pci_driver sundance_driver;
 /**************************************************************************
 PROBE - Look for an adapter, this routine's visible to the outside
 ***************************************************************************/
-static int sundance_probe ( struct dev *dev ) {
+static int sundance_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        u8 ee_data[EEPROM_SIZE];
        u16 mii_ctl;
        int i;
index 716bc3e55928fadbb205b8fb2d3424cad95b415e..3961955115c9118d0c38f71e8682b4c372ed55dc 100644 (file)
@@ -3264,9 +3264,8 @@ static struct pci_driver tg3_driver =
 PROBE - Look for an adapter, this routine's visible to the outside
 You should omit the last argument struct pci_device * for a non-PCI NIC
 ***************************************************************************/
-static int tg3_probe ( struct dev *dev ) {
+static int tg3_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pdev = pci_device ( dev );
        struct tg3 *tp = &tg3;
        unsigned long tg3reg_base, tg3reg_len;
        int i, err, pm_cap;
index cdaf5fea88b105d620c265fa447af2dafd8dcee7..656daa51a961e2710ff54f3473d32124a1711fbb 100644 (file)
@@ -781,9 +781,8 @@ PROBE - Look for an adapter, this routine's visible to the outside
 
 #define board_found 1
 #define valid_link 0
-static int tlan_probe ( struct dev *dev ) {
+static int tlan_probe ( struct dev *dev, struct pci_device *pci ) {
        struct nic *nic = nic_device ( dev );
-       struct pci_device *pci = pci_device ( dev );
        u16 data = 0;
        int err;
        int i;
index 5bb1f4a6750bfaca4117b5e656e88b286331f11e..656d0f4bf356539d7821497d6761a04254df11eb 100644 (file)
@@ -516,7 +516,7 @@ static void tulip_more(void);
 /*********************************************************************/
 
 #ifdef TULIP_DEBUG_WHERE
-static void whereami (const char *str)
+static void whereami (const char *str, struct pci_device *pci)
 {
     printf("%s: %s\n", tp->nic_name, str);
     /* sleep(2); */
@@ -1227,7 +1227,6 @@ static struct pci_driver tulip_driver;
 /*********************************************************************/
 static int tulip_probe ( struct dev *dev ) {
     struct nic *nic = nic_device ( dev );
-    struct pci_device *pci = pci_device ( dev );
     u32 i;
     u8  chip_rev;
     u8 ee_data[EEPROM_SIZE];
index 7a2f4ba319dda916db90defd3a387036a8765fb6..173520e567011c0a1b24901aedc37d939900888f 100644 (file)
@@ -954,9 +954,8 @@ static struct nic_operations rhine_operations;
 static struct pci_driver rhine_driver;
 
 static int
-rhine_probe ( struct dev *dev ) {
+rhine_probe ( struct dev *dev, struct pci_device *pci ) {
     struct nic *nic = nic_device ( dev );
-    struct pci_device *pci = pci_device ( dev );
     struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
 
     if ( ! find_pci_device ( pci, &rhine_driver ) )
index fdc7f03156b16165b0d1c61192eeadea9017fd28..97f09b7d06428aa3f632a5fd7394a682555bd4bc 100644 (file)
@@ -623,9 +623,8 @@ static struct pci_driver w89c840_driver =
 /**************************************************************************
 w89c840_probe - Look for an adapter, this routine's visible to the outside
 ***************************************************************************/
-static int w89c840_probe ( struct dev *dev ) {
+static int w89c840_probe ( struct dev *dev, struct pci_device *pci ) {
     struct nic *nic = nic_device ( dev );
-    struct pci_device *p = pci_device ( dev );
 
     if ( ! find_pci_device ( p, &w89c840_driver ) )
            return 0;