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
PCI Device Vendor list
- gzaloprgm
- Member
- Posts: 141
- Joined: Sun Sep 23, 2007 4:53 pm
- Location: Buenos Aires, Argentina
- Contact:
Re: PCI Device Vendor list
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
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
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
Re: PCI Device Vendor list
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.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
- samueldotj
- Member
- Posts: 32
- Joined: Mon Nov 13, 2006 12:24 am
Re: PCI Device Vendor list
I also tried using pcidatabase, but couldnt make it work, so I gave up. Now trying http://pciids.sourceforge.net/v2.2/pci.ids...shiner wrote: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.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
Sam
- gzaloprgm
- Member
- Posts: 141
- Joined: Sun Sep 23, 2007 4:53 pm
- Location: Buenos Aires, Argentina
- Contact:
Re: PCI Device Vendor list
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
Hope it's 100% error corrected.
http://rapidshare.com/files/186966397/pcidev.h.html
Hope it helps!
Cheers,
Gonzalo
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
- samueldotj
- Member
- Posts: 32
- Joined: Mon Nov 13, 2006 12:24 am
Re: PCI Device Vendor list
Thanks I will download it.gzaloprgm wrote: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
Hi,
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
I'm not, and never will.samueldotj wrote:How are you embedding PCI vendor/device list/database in your kernel?
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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: PCI Device Vendor list
I'd also advise having it in a separate file, which will allow you to compress it, saving quite some memory.
JAL
JAL
Re: PCI Device Vendor list
Mine is just a simple txt file.