[eepro100] new driver compile
Djamil ESSAISSI
djamil@francexpress.com
Mon, 30 Jul 2001 15:46:49 +0000
Too bad we got 2 functions with the same name ! so no compile !
###############################################################################3
/*
Search PCI configuration space for the specified capability registers.
Return the index, or 0 on failure.
*/
int pci_find_capability(struct pci_dev *pdev, int findtype)
{
u16 pci_status, cap_type;
u8 pci_cap_idx;
int cap_idx;
pci_read_config_word(pdev, PCI_STATUS, &pci_status);
if ( ! (pci_status & PCI_STATUS_CAP_LIST))
return 0;
pci_read_config_byte(pdev, PCI_CAPABILITY_
in drivers/net/pci-scan.c line 466 of 582 (80%)
###################################################################################
and
###################################################################################
*
* %PCI_CAP_ID_SLOTID Slot Identification
*
* %PCI_CAP_ID_MSI Message Signalled Interrupts
*
* %PCI_CAP_ID_CHSWP CompactPCI HotSwap
*/
int
pci_find_capability(struct pci_dev *dev, int cap)
{
u16 status;
u8 pos, id;
int ttl = 48;
pci_read_config_word(dev, PCI_STATUS, &status);
if (!(status & PCI_STATUS_CAP_LIST))
return 0;
switch (dev->hdr_type) {
case PCI_HEADER_TYPE_NORMAL:
case PCI_HEADER_TYPE_BRIDGE:
pci_read_config_byte(dev, PCI_CAPABILITY_LIST, &pos);
break;
in drivers/pci/pci.c line 167 of 1801 (9%)
###################################################################################
Or i'm messing up something ?!
any idea ?!
--
================================================
System Administrateur / Support Technique
Tel:01.58.64.22.44 - Fax:01.58.64.26.81
Djamil ESSAISSI
============================================================
www.francexpress.com - www.serveur-express.com
Hébergement professionnel & Location de serveurs dédiés
Tel:01.58.64.26.44 Fax:01.58.64.26.81 djamil@francexpress.com