Root/
Source at commit 720 created 13 years 4 months ago. By meklort, Makefile updates for modules. Modules now contain includes in <module_dir>/include if they are shared. These includes are copied to a global path after compilation of that module so that other modules can have function prototypes of it (yay long sentences....) | |
---|---|
1 | #include "libsaio.h"␊ |
2 | #include "boot.h"␊ |
3 | #include "bootstruct.h"␊ |
4 | #include "pci.h"␊ |
5 | #include "modules.h"␊ |
6 | ␊ |
7 | void setup_pci_devs(pci_dt_t *pci_dt)␊ |
8 | {␊ |
9 | ␉pci_dt_t *current = pci_dt;␊ |
10 | ␊ |
11 | ␊ |
12 | ␉while (current)␊ |
13 | ␉{␊ |
14 | ␉␉execute_hook("PCIDevice", current, NULL, NULL, NULL);␊ |
15 | ␉␉␉␉␊ |
16 | ␉␉setup_pci_devs(current->children);␊ |
17 | ␉␉current = current->next;␊ |
18 | ␉}␊ |
19 | }␊ |
20 |