Ticket #5146: get_pci_nth.patch
File get_pci_nth.patch, 863 bytes (added by , 13 years ago) |
---|
-
src/system/libroot/os/arch/x86/compatibility.c
12 12 #include <SupportDefs.h> 13 13 #include <fs_info.h> 14 14 #include <fs_volume.h> 15 15 #include <PCI.h> 16 16 #include <syscalls.h> 17 17 18 18 … … 26 26 int mount(const char *filesystem, const char *where, const char *device, ulong flags, 27 27 void *parms, int len); 28 28 int unmount(const char *path); 29 long get_nth_pci_info(long index, pci_info *info); 29 30 30 31 31 int 32 32 _kset_mon_limit_(int num) 33 33 { … … 142 142 return 0; 143 143 } 144 144 145 long get_nth_pci_info(long index,pci_info *info) 146 { 147 pci_module_info *mod_info; 148 if(mod_info->get_nth_pci_info(index,info)) 149 return B_NO_ERROR; 150 else 151 return B_ERROR; 152 }