Chameleon

Chameleon Svn Source Tree

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

Source at commit 596 created 13 years 6 months ago.
By meklort, XML Parse updates. Added functions to access data (int, strings, arrays, dictionaries) in the xml code. Fixed the parser to correctly handel <string ID"0"> and similar cases for <integer>. NOTE: code is ugly, needs to be cleaned up, but it works. Needed for compressed plists used in mkext2 files.
1#include "libsaio.h"
2#include "boot.h"
3#include "bootstruct.h"
4#include "pci.h"
5#include "modules.h"
6
7void setup_pci_devs(pci_dt_t *pci_dt)
8{
9pci_dt_t *current = pci_dt;
10
11
12while (current)
13{
14execute_hook("PCIDevice", current, NULL, NULL, NULL);
15
16setup_pci_devs(current->children);
17current = current->next;
18}
19}
20

Archive Download this file

Revision: 596