Subversion Repositories HelenOS

Rev

Rev 3386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3386 Rev 4263
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup generic
29
/** @addtogroup generic
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_SYSINFO_H_
35
#ifndef KERN_SYSINFO_H_
36
#define KERN_SYSINFO_H_
36
#define KERN_SYSINFO_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
-
 
39
#include <string.h>
39
 
40
 
40
typedef union sysinfo_item_val {
41
typedef union sysinfo_item_val {
41
    unative_t val;
42
    unative_t val;
42
    void *fn;
43
    void *fn;
43
} sysinfo_item_val_t;
44
} sysinfo_item_val_t;
Line 57... Line 58...
57
    struct sysinfo_item *next;
58
    struct sysinfo_item *next;
58
    int val_type;
59
    int val_type;
59
    int subinfo_type;
60
    int subinfo_type;
60
} sysinfo_item_t;
61
} sysinfo_item_t;
61
 
62
 
62
#define SYSINFO_VAL_VAL 0
63
#define SYSINFO_VAL_VAL        0
63
#define SYSINFO_VAL_FUNCTION 1
64
#define SYSINFO_VAL_FUNCTION   1
64
#define SYSINFO_VAL_UNDEFINED '?'
65
#define SYSINFO_VAL_UNDEFINED  U_SPECIAL
65
 
66
 
66
#define SYSINFO_SUBINFO_NONE 0
67
#define SYSINFO_SUBINFO_NONE      0
67
#define SYSINFO_SUBINFO_TABLE 1
68
#define SYSINFO_SUBINFO_TABLE     1
68
#define SYSINFO_SUBINFO_FUNCTION 2
69
#define SYSINFO_SUBINFO_FUNCTION  2
69
 
70
 
70
typedef unative_t (*sysinfo_val_fn_t)(sysinfo_item_t *root);
71
typedef unative_t (*sysinfo_val_fn_t)(sysinfo_item_t *root);
71
typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname);
72
typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname);
72
 
73
 
73
typedef struct sysinfo_rettype {
74
typedef struct sysinfo_rettype {