lkml.org 
[lkml]   [1997]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to scan for PCI devices? (fwd)
On Mon, 21 Jul 1997, mlord wrote:

>> Then I start to scan for pci classes 0x0c03, with the following
>> code:
>>
>> #define USB_CLASS 0x0c03
>>
>> while ((bioscode = pcibios_find_class (USB_CLASS, index,
>> &bus, &function))
>> == PCIBIOS_SUCCESSFUL)
>> {
>> index++;
>> usb_hosts++;
>> }
>
>The pcibios_find_class() function quite often does NOT WORK!
>
>I tried to use it once within the IDE driver, but had trouble
>with buggy BIOSs.

Hmmm ... that looks bad. The problem is it seems to run ok
with every other damn PCI device. Is there anywhere a test
program to check if my PCI-BIOS is buggy?

Cheers!

-- Linux USB is in development -- http://www2.teknoland.es/~inaky

Inaky Perez Gonzalez -- PGP pubkey fingerprint -
inaky@peloncho.fis.ucm.es 2:341/5.31 -- 8E 34 3A 62 64 99 E2 44 -
http://peloncho.fis.ucm.es/~inaky -- AD 7B 30 D9 DD FF 3E 4C -
-----------------------------------------------------------------
The loneliness of the long distance runner .....


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.044 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site