Subversion Repositories HelenOS

Rev

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

Rev 1789 Rev 1790
Line 72... Line 72...
72
        puts("\r\nError: Unable to find /aliases device, halted.\r\n");
72
        puts("\r\nError: Unable to find /aliases device, halted.\r\n");
73
        halt();
73
        halt();
74
    }
74
    }
75
}
75
}
76
 
76
 
-
 
77
/** Perform a call to OpenFirmware client interface.
-
 
78
 *
-
 
79
 * @param service String identifying the service requested.
-
 
80
 * @param nargs Number of input arguments.
-
 
81
 * @param nret Number of output arguments. This includes the return value.
-
 
82
 * @param rets Buffer for output arguments or NULL. The buffer must accommodate nret - 1 items.
77
 
83
 *
-
 
84
 * @return Return value returned by the client interface.
-
 
85
 */
78
static unsigned long ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...)
86
static unsigned long ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...)
79
{
87
{
80
    va_list list;
88
    va_list list;
81
    ofw_args_t args;
89
    ofw_args_t args;
82
    int i;
90
    int i;
83
   
91
   
84
    args.service = service;
92
    args.service = (ofw_arg_t) service;
85
    args.nargs = nargs;
93
    args.nargs = nargs;
86
    args.nret = nret;
94
    args.nret = nret;
87
   
95
   
88
    va_start(list, rets);
96
    va_start(list, rets);
89
    for (i = 0; i < nargs; i++)
97
    for (i = 0; i < nargs; i++)