diff options
author | Erwan Velu <erwan@seanodes.com> | 2007-02-08 21:39:47 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-03-07 11:04:11 -0800 |
commit | faece000985cc54fc4c75172e16b379bbdad63c2 (patch) | |
tree | ece08dd7176cf22e72f3dec08cf784ac392c2619 /com32/include/sys/pci.h | |
parent | 703a777878cb84a59e1eb98926e81e0e223b1d0b (diff) | |
download | syslinux-faece000985cc54fc4c75172e16b379bbdad63c2.tar.gz syslinux-faece000985cc54fc4c75172e16b379bbdad63c2.tar.xz syslinux-faece000985cc54fc4c75172e16b379bbdad63c2.zip |
Ethersel must use the pci com32 module instead of builtin pci detection code
From : Erwan Velu <erwan.velu@free.fr>
This patch
- remove the pci detection code from ethersel
- add a find_pci_device() function in the PCI com32 module
- make ethersel using the pci com32 module instead of builtin pci
detection code
Testing and feedback are welcome.
Signed-off-by:Erwan Velu <erwan.velu@free.fr>
Diffstat (limited to 'com32/include/sys/pci.h')
-rw-r--r-- | com32/include/sys/pci.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/include/sys/pci.h b/com32/include/sys/pci.h index b3099584..4862cda9 100644 --- a/com32/include/sys/pci.h +++ b/com32/include/sys/pci.h @@ -37,6 +37,16 @@ typedef struct { uint8_t count; } s_pci_bus_list; +struct match { + struct match *next; + uint32_t did; + uint32_t did_mask; + uint32_t sid; + uint32_t sid_mask; + uint8_t rid_min, rid_max; + char *filename; +}; + static inline pciaddr_t pci_mkaddr(uint32_t bus, uint32_t dev, uint32_t func, uint32_t reg) { @@ -62,4 +72,5 @@ void pci_writew(uint16_t, pciaddr_t); void pci_writel(uint32_t, pciaddr_t); extern int pci_scan(s_pci_bus_list *pci_bus_list, s_pci_device_list *pci_device_list); +extern struct match * find_pci_device(s_pci_device_list *pci_device_list, struct match *list); #endif /* _SYS_PCI_H */ |