Page 1 of 1
PCI Device Vendor list
Posted: Tue Jan 20, 2009 10:44 pm
by samueldotj
Hi,
How are you embedding PCI vendor/device list/database in your kernel?
I am planning to create static sorted array from
http://pciids.sourceforge.net/v2.2/pci.ids, and use kind of binary search algorithm to search it.
Kindly post if there is some other better way.
Sam
Re: PCI Device Vendor list
Posted: Tue Jan 20, 2009 10:53 pm
by gzaloprgm
If you want to avoid using that BSD or GPL Licensed file you can use
http://www.pcidatabase.com/pci_c_header.php which AFAIK is in public domain.
Be aware that in that file there are LOTS of errors caused due incorrectly submition of data into the website.
I think doing a binary search is the faster (if not the fastest) option.
Cheers,
Gonzalo
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 12:48 am
by eddyb
gzaloprgm wrote:If you want to avoid using that BSD or GPL Licensed file you can use
http://www.pcidatabase.com/pci_c_header.php which AFAIK is in public domain.
Be aware that in that file there are LOTS of errors caused due incorrectly submition of data into the website.
I think doing a binary search is the faster (if not the fastest) option.
Cheers,
Gonzalo
Thousands of errors and I'm not joking. i tried to use that, but had it to work after corrected many errors. badly, i don't have the corrected version
. And even it didn't work on all devices.
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 12:55 am
by samueldotj
shiner wrote:gzaloprgm wrote:If you want to avoid using that BSD or GPL Licensed file you can use
http://www.pcidatabase.com/pci_c_header.php which AFAIK is in public domain.
Be aware that in that file there are LOTS of errors caused due incorrectly submition of data into the website.
I think doing a binary search is the faster (if not the fastest) option.
Cheers,
Gonzalo
Thousands of errors and I'm not joking. i tried to use that, but had it to work after corrected many errors. badly, i don't have the corrected version
. And even it didn't work on all devices.
I also tried using pcidatabase, but couldnt make it work, so I gave up.
Now trying
http://pciids.sourceforge.net/v2.2/pci.ids...
Sam
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 1:17 am
by gzaloprgm
I gathered my old kernel backup and found this.
Hope it's 100% error corrected.
http://rapidshare.com/files/186966397/pcidev.h.html
Hope it helps!
Cheers,
Gonzalo
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 1:42 am
by samueldotj
Thanks I will download it.
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 1:51 am
by Brendan
Hi,
samueldotj wrote:How are you embedding PCI vendor/device list/database in your kernel?
I'm not, and never will.
IMHO, even for monolithic kernels, it shouldn't be in the kernel. For example, it could be implemented as a file that all user-space utilities, etc can use to lookup the name and/or manufacturer from any vendorID and/or deviceID); so that it can be updated without replacing the kernel.
Cheers,
Brendan
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 4:26 am
by jal
I'd also advise having it in a separate file, which will allow you to compress it, saving quite some memory.
JAL
Re: PCI Device Vendor list
Posted: Wed Jan 21, 2009 12:22 pm
by Dex
Mine is just a simple txt file.