Subversion Repositories HelenOS

Rev

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

Rev 1755 Rev 1764
Line 25... Line 25...
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
#include "ofw.h"
29
#include "ofw.h"
30
#include "asm.h"
30
#include <printf.h>
31
#include "printf.h"
31
#include <asm.h>
32
 
32
 
33
#define MAX_OFW_ARGS    10
33
#define MAX_OFW_ARGS        10
34
#define BUF_SIZE        1024
34
#define BUF_SIZE        1024
35
 
35
 
36
typedef unsigned int ofw_arg_t;
36
typedef unsigned int ofw_arg_t;
37
typedef unsigned int ihandle;
37
typedef unsigned int ihandle;
38
typedef unsigned int phandle;
38
typedef unsigned int phandle;
Line 70... Line 70...
70
phandle ofw_root;
70
phandle ofw_root;
71
ihandle ofw_mmu;
71
ihandle ofw_mmu;
72
phandle ofw_memory;
72
phandle ofw_memory;
73
phandle ofw_aliases;
73
phandle ofw_aliases;
74
 
74
 
75
 
-
 
76
static int ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...)
75
static int ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...)
77
{
76
{
78
    va_list list;
77
    va_list list;
79
    ofw_args_t args;
78
    ofw_args_t args;
80
    int i;
79
    int i;