#include <agnix/agnix.h>#include <agnix/init.h>#include <agnix/adi/adi.h>#include <agnix/console.h>Include dependency graph for pcibus_devices.c:

Go to the source code of this file.
Defines | |
| #define | MOD_NAME "PCI: \t" |
Functions | |
| int | adi_pcibus_device_init (struct adi_driver_pci_s *adi_driver_pci, struct adi_driver_id_s *adi_driver_id) |
|
|
Definition at line 19 of file pcibus_devices.c. |
|
||||||||||||
|
Definition at line 21 of file pcibus_devices.c. References MOD_NAME, pcibus_find_device_by_id(), and printk(). Referenced by adi_register_pci_driver(). 00022 {
00023 struct pcidev_s *pcidev;
00024 int idx = 0;
00025
00026 do {
00027 if (adi_driver_id[idx].device_id == 0)
00028 return -1;
00029
00030 if ((pcidev = pcibus_find_device_by_id(adi_driver_id[idx].vendor_id, adi_driver_id[idx].device_id))) {
00031 if (adi_driver_pci->adi_driver_probe) {
00032 if (adi_driver_pci->adi_driver_probe(pcidev, &adi_driver_id[idx]) < 0)
00033 printk(MOD_NAME "PCI driver probe failed for %s\n", pcidev->dev_name);
00034 else
00035 printk(MOD_NAME "PCI driver probe ok for %s\n", pcidev->dev_name);
00036 }
00037 }
00038
00039 idx++;
00040 } while (adi_driver_id[idx].device_id);
00041
00042 return 0;
00043 }
Here is the call graph for this function: ![]() |