Chameleon

Chameleon Svn Source Tree

Root/branches/slice/i386/libsaio/pci_setup.c

1#include "libsaio.h"
2#include "boot.h"
3#include "bootstruct.h"
4#include "pci.h"
5#include "modules.h"
6
7#define DEBUG_PCI 0
8
9#if DEBUG_PCI
10#define DBG(x...) msglog(x)
11#else
12#define DBG(x...)
13#endif
14
15
16void setup_pci_devs(pci_dt_t *pci_dt)
17{
18pci_dt_t *current = pci_dt;
19
20
21while (current)
22{
23execute_hook("PCIDevice", current, NULL, NULL, NULL);
24DBG("setup_pci_devs current devID=%08x\n", current->device_id);
25setup_pci_devs(current->children);
26DBG("setup_pci_devs children devID=%08x\n", current->device_id);
27current = current->next;
28}
29}
30

Archive Download this file

Revision: 676