Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/libsaio/device_inject.h

1/*
2 *Copyright 2009 Jasmin Fazlic All rights reserved.
3 */
4/*
5 *Cleaned and merged by iNDi
6 */
7
8#ifndef __LIBSAIO_DEVICE_INJECT_H
9#define __LIBSAIO_DEVICE_INJECT_H
10
11#include "pci.h"
12#include "device_tree.h"
13
14#define DP_ADD_TEMP_VAL(dev, val) devprop_add_value(dev, (char*)val[0], (uint8_t*)val[1], strlen(val[1]) + 1)
15#define DP_ADD_TEMP_VAL_DATA(dev, val) devprop_add_value(dev, (char*)val.name, (uint8_t*)val.data, val.size)
16
17structDevPropString*devprop_create_string(void);
18structDevPropDevice *devprop_add_device(struct DevPropString *string, pci_dt_t * pci_dt);
19structDevPropDevice *devprop_make_device(pci_dt_t *pci_dt);
20intdevprop_add_value(struct DevPropDevice *device, char *nm, uint8_t *vl, uint32_t len);
21voidregister_device_inject(void);
22char*devprop_generate_string(struct DevPropString *string);
23voiddevprop_free_string(struct DevPropString *string);
24
25#endif /* !__LIBSAIO_DEVICE_INJECT_H */
26

Archive Download this file

Revision: HEAD