Rev 1819 | Rev 2004 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1819 | Rev 1888 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
- | 35 | #ifndef KERN_SYSINFO_H_ |
|
- | 36 | #define KERN_SYSINFO_H_ |
|
- | 37 | ||
35 | #include <arch/types.h> |
38 | #include <arch/types.h> |
36 | 39 | ||
37 | typedef union sysinfo_item_val { |
40 | typedef union sysinfo_item_val { |
38 | unative_t val; |
41 | unative_t val; |
39 | void *fn; |
42 | void *fn; |
Line 62... | Line 65... | ||
62 | 65 | ||
63 | #define SYSINFO_SUBINFO_NONE 0 |
66 | #define SYSINFO_SUBINFO_NONE 0 |
64 | #define SYSINFO_SUBINFO_TABLE 1 |
67 | #define SYSINFO_SUBINFO_TABLE 1 |
65 | #define SYSINFO_SUBINFO_FUNCTION 2 |
68 | #define SYSINFO_SUBINFO_FUNCTION 2 |
66 | 69 | ||
67 | - | ||
68 | typedef unative_t (*sysinfo_val_fn_t)(sysinfo_item_t *root); |
70 | typedef unative_t (*sysinfo_val_fn_t)(sysinfo_item_t *root); |
69 | typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname); |
71 | typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname); |
70 | 72 | ||
71 | typedef struct sysinfo_rettype { |
73 | typedef struct sysinfo_rettype { |
72 | unative_t val; |
74 | unative_t val; |
Line 81... | Line 83... | ||
81 | sysinfo_rettype_t sysinfo_get_val(const char *name,sysinfo_item_t **root); |
83 | sysinfo_rettype_t sysinfo_get_val(const char *name,sysinfo_item_t **root); |
82 | 84 | ||
83 | unative_t sys_sysinfo_valid(unative_t ptr,unative_t len); |
85 | unative_t sys_sysinfo_valid(unative_t ptr,unative_t len); |
84 | unative_t sys_sysinfo_value(unative_t ptr,unative_t len); |
86 | unative_t sys_sysinfo_value(unative_t ptr,unative_t len); |
85 | 87 | ||
- | 88 | #endif |
|
- | 89 | ||
86 | /** @} |
90 | /** @} |
87 | */ |
91 | */ |