Erwan Velu
2007-Aug-09 20:03 UTC
[syslinux] [PATCH 1/1]: Improving PCI collected informations
From : Erwan Velu <erwan.velu at free.fr> As discussed on IRC, I've been reworking my patch, I resend it. 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 With this patch, pcitest.c32 act like lspci plus a bonus by displaying the linux kernel module assiocated to each pci device. Hope this will be usefull for some of you ;) Testing and feedback are welcome. Signed-off-by:Erwan Velu <erwan.velu at free.fr> -------------- next part -------------- A non-text attachment was scrubbed... Name: pxelinux-pci.patch Type: text/x-patch Size: 15870 bytes Desc: not available URL: <http://www.zytor.com/pipermail/syslinux/attachments/20070809/86c65bc4/attachment.bin>
Erwan Velu
2007-Aug-13 15:16 UTC
[syslinux] [PATCH 1/1]: Improving PCI collected informations
From : Erwan Velu <erwan.velu at free.fr> I've been reworking my patch to reduce a big problem in the memory allocation? 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. Hope this will be usefull for some of you ;) Testing and feedback are welcome. Signed-off-by:Erwan Velu <erwan.velu at free.fr> -------------- next part -------------- A non-text attachment was scrubbed... Name: pxelinux-pci.patch Type: text/x-patch Size: 16382 bytes Desc: not available URL: <http://www.zytor.com/pipermail/syslinux/attachments/20070813/d9fb8c40/attachment.bin>
Reasonably Related Threads
- [PATCH] pci: rename get_module_name_from_pci_ids
- [PATCH] pcitest: fix wrong statements about file locations
- [RESEND][PATCH] pcitest: fix wrong statements about file locations
- [RESEND][PATCH] pcitest: fix wrong statements about file locations
- [PATCH] pci: Introduce slot and function information