summaryrefslogtreecommitdiff
path: root/com32/modules/ethersel.c
diff options
context:
space:
mode:
authorErwan Velu <erwan@seanodes.com>2007-08-13 17:16:03 +0200
committerH. Peter Anvin <hpa@zytor.com>2007-08-16 18:13:25 -0700
commit4e9956bf1b587df39590aa620be0940b30269a53 (patch)
treefe68ac6e95a455553e0c6caa11fca7e57ea8972e /com32/modules/ethersel.c
parentb85529420d2618222d9157866ab41a00e9f4fad9 (diff)
downloadsyslinux-4e9956bf1b587df39590aa620be0940b30269a53.tar.gz
Improving PCI collected informations
This patch - add a new pci_dev_info structure : It contains additional informations about the pci devices like the product/vendor name and the associated linux kernel module - add a get_name_from_pci_ids() function in pci/scan.c This function reads a pci.ids file from the boot device. Then it assign for each pci device, its vendor/product name. You just have to put this file in the root directory of your isolinux/pxelinux (i.e the root directory of your tfptboot server if you are using pxelinux). - add a get_module_name_from_pci_ids() function in pci/scan.c This function reads a modules.pcimap file from the boot device. Then it assign for each pci_device its linux kernel module. You just have to put this file in the root directory of your isolinux/pxelinux (i.e the root directory of your tfptboot server if you are using pxelinux). - Add a call to get_name_from_pci_ids() into the pcitest COM32 module - Add a call to get_module_name_from_pci_ids() into the pcitest COM32 module - Fixing typedef struct { ... } s_pci...; by struct pci... {}; - Improving comments - Fixing the memory allocation to prevent leaks With this patch, pcitest.c32 act like lspci plus a bonus by displaying the linux kernel module assiocated to each pci device. Signed-off-by:Erwan Velu <erwan.velu@free.fr> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/modules/ethersel.c')
-rw-r--r--com32/modules/ethersel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/modules/ethersel.c b/com32/modules/ethersel.c
index 924ec56b..ad1d052d 100644
--- a/com32/modules/ethersel.c
+++ b/com32/modules/ethersel.c
@@ -214,8 +214,8 @@ execute(const char *cmdline)
int main(int argc, char *argv[])
{
struct match *list, *match;
- s_pci_device_list pci_device_list;
- s_pci_bus_list pci_bus_list;
+ struct pci_device_list pci_device_list;
+ struct pci_bus_list pci_bus_list;
openconsole(&dev_null_r, &dev_stdcon_w);
pci_scan(&pci_bus_list,&pci_device_list);