Subversion Repositories HelenOS-historic

Rev

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

Rev 1771 Rev 1772
Line 35... Line 35...
35
/** OpenFirmware command structure
35
/** OpenFirmware command structure
36
 *
36
 *
37
 */
37
 */
38
typedef struct {
38
typedef struct {
39
    const char *service;          /**< Command name */
39
    const char *service;          /**< Command name */
40
    unsigned int nargs;           /**< Number of in arguments */
40
    unsigned long nargs;          /**< Number of in arguments */
41
    unsigned int nret;            /**< Number of out arguments */
41
    unsigned long nret;           /**< Number of out arguments */
42
    ofw_arg_t args[MAX_OFW_ARGS]; /**< List of arguments */
42
    ofw_arg_t args[MAX_OFW_ARGS]; /**< List of arguments */
43
} ofw_args_t;
43
} ofw_args_t;
44
 
44
 
45
typedef void (*ofw_entry)(ofw_args_t *);
45
typedef void (*ofw_entry)(ofw_args_t *);
46
 
46
 
Line 51... Line 51...
51
phandle ofw_root;
51
phandle ofw_root;
52
ihandle ofw_mmu;
52
ihandle ofw_mmu;
53
phandle ofw_memory;
53
phandle ofw_memory;
54
phandle ofw_aliases;
54
phandle ofw_aliases;
55
 
55
 
56
static int ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...)
56
static unsigned long ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...)
57
{
57
{
58
    va_list list;
58
    va_list list;
59
    ofw_args_t args;
59
    ofw_args_t args;
60
    int i;
60
    int i;
61
   
61