PCI Device Vendor list

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
samueldotj
Member
Member
Posts: 32
Joined: Mon Nov 13, 2006 12:24 am

PCI Device Vendor list

Post 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
User avatar
gzaloprgm
Member
Member
Posts: 141
Joined: Sun Sep 23, 2007 4:53 pm
Location: Buenos Aires, Argentina
Contact:

Re: PCI Device Vendor list

Post 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
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

Re: PCI Device Vendor list

Post 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.
User avatar
samueldotj
Member
Member
Posts: 32
Joined: Mon Nov 13, 2006 12:24 am

Re: PCI Device Vendor list

Post 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
User avatar
gzaloprgm
Member
Member
Posts: 141
Joined: Sun Sep 23, 2007 4:53 pm
Location: Buenos Aires, Argentina
Contact:

Re: PCI Device Vendor list

Post 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
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
User avatar
samueldotj
Member
Member
Posts: 32
Joined: Mon Nov 13, 2006 12:24 am

Re: PCI Device Vendor list

Post by samueldotj »

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
Thanks I will download it.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: PCI Device Vendor list

Post 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
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.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: PCI Device Vendor list

Post by jal »

I'd also advise having it in a separate file, which will allow you to compress it, saving quite some memory.


JAL
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: PCI Device Vendor list

Post by Dex »

Mine is just a simple txt file.
Post Reply