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 | ␊ |
17 | struct␉DevPropString␉*devprop_create_string(void);␊ |
18 | struct␉DevPropDevice *devprop_add_device(struct DevPropString *string, pci_dt_t * pci_dt);␊ |
19 | struct␉DevPropDevice *devprop_make_device(pci_dt_t *pci_dt);␊ |
20 | int␉␉devprop_add_value(struct DevPropDevice *device, char *nm, uint8_t *vl, uint32_t len);␊ |
21 | void␉register_device_inject(void);␊ |
22 | char␉*devprop_generate_string(struct DevPropString *string);␊ |
23 | void␉devprop_free_string(struct DevPropString *string);␊ |
24 | ␊ |
25 | #endif /* !__LIBSAIO_DEVICE_INJECT_H */␊ |
26 | |