phecda wrote:
> 
> Dear sir:
>        I want to write a program in Kernel2.2.4, to call pci bios system like 
>pcibios_present(),pcibios_find_device(....),but I can not find bios32.h,and compiler 
>can't find above function.
> 
> ex:
>     #include <linux/config.h>
>     #include <linux/fs.h>
>     #include <linux/pci.h>
>     #include <linux/bios32.h> ---->can't find it
> 
> main()
> {
>     #ifdef CONFIG_PCI
>        printf("PCI CONFIG OK\n");
>        retv = pcibios_present();
> ......
>     #else
>        printf("PCI CONFIG not OK\n");
>     #endif
> }
> 

You can't do that (calling kernel function in user space). Consider the
PCI user level library comes with pci utils.

Ollie

Reply via email to