diff options
Diffstat (limited to 'drivers/net/sk98lin/skge.c')
-rw-r--r-- | drivers/net/sk98lin/skge.c | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c index b18c92cb629e..08906ef3ff7e 100644 --- a/drivers/net/sk98lin/skge.c +++ b/drivers/net/sk98lin/skge.c | |||
@@ -279,6 +279,27 @@ static uintptr_t RxQueueAddr[SK_MAX_MACS] = {0x400, 0x480}; | |||
279 | 279 | ||
280 | /***************************************************************************** | 280 | /***************************************************************************** |
281 | * | 281 | * |
282 | * SkPciWriteCfgDWord - write a 32 bit value to pci config space | ||
283 | * | ||
284 | * Description: | ||
285 | * This routine writes a 32 bit value to the pci configuration | ||
286 | * space. | ||
287 | * | ||
288 | * Returns: | ||
289 | * 0 - indicate everything worked ok. | ||
290 | * != 0 - error indication | ||
291 | */ | ||
292 | static inline int SkPciWriteCfgDWord( | ||
293 | SK_AC *pAC, /* Adapter Control structure pointer */ | ||
294 | int PciAddr, /* PCI register address */ | ||
295 | SK_U32 Val) /* pointer to store the read value */ | ||
296 | { | ||
297 | pci_write_config_dword(pAC->PciDev, PciAddr, Val); | ||
298 | return(0); | ||
299 | } /* SkPciWriteCfgDWord */ | ||
300 | |||
301 | /***************************************************************************** | ||
302 | * | ||
282 | * SkGeInitPCI - Init the PCI resources | 303 | * SkGeInitPCI - Init the PCI resources |
283 | * | 304 | * |
284 | * Description: | 305 | * Description: |
@@ -4085,28 +4106,6 @@ SK_U8 *pVal) /* pointer to store the read value */ | |||
4085 | 4106 | ||
4086 | /***************************************************************************** | 4107 | /***************************************************************************** |
4087 | * | 4108 | * |
4088 | * SkPciWriteCfgDWord - write a 32 bit value to pci config space | ||
4089 | * | ||
4090 | * Description: | ||
4091 | * This routine writes a 32 bit value to the pci configuration | ||
4092 | * space. | ||
4093 | * | ||
4094 | * Returns: | ||
4095 | * 0 - indicate everything worked ok. | ||
4096 | * != 0 - error indication | ||
4097 | */ | ||
4098 | int SkPciWriteCfgDWord( | ||
4099 | SK_AC *pAC, /* Adapter Control structure pointer */ | ||
4100 | int PciAddr, /* PCI register address */ | ||
4101 | SK_U32 Val) /* pointer to store the read value */ | ||
4102 | { | ||
4103 | pci_write_config_dword(pAC->PciDev, PciAddr, Val); | ||
4104 | return(0); | ||
4105 | } /* SkPciWriteCfgDWord */ | ||
4106 | |||
4107 | |||
4108 | /***************************************************************************** | ||
4109 | * | ||
4110 | * SkPciWriteCfgWord - write a 16 bit value to pci config space | 4109 | * SkPciWriteCfgWord - write a 16 bit value to pci config space |
4111 | * | 4110 | * |
4112 | * Description: | 4111 | * Description: |