ofw_standard.c (4a26780b9af58249d999a9e43fbc7519bdabb26f) ofw_standard.c (8297758a2206bc0fdc5383ddc4a496aca1686af0)
1/* $NetBSD: Locore.c,v 1.7 2000/08/20 07:04:59 tsubai Exp $ */
2
3/*-
4 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
5 * Copyright (C) 1995, 1996 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 56 unchanged lines hidden (view full) ---

65
66#include <machine/stdarg.h>
67
68#include <dev/ofw/ofwvar.h>
69#include <dev/ofw/openfirm.h>
70
71#include "ofw_if.h"
72
1/* $NetBSD: Locore.c,v 1.7 2000/08/20 07:04:59 tsubai Exp $ */
2
3/*-
4 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
5 * Copyright (C) 1995, 1996 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 56 unchanged lines hidden (view full) ---

65
66#include <machine/stdarg.h>
67
68#include <dev/ofw/ofwvar.h>
69#include <dev/ofw/openfirm.h>
70
71#include "ofw_if.h"
72
73static void ofw_std_init(ofw_t ofw, void *openfirm);
73static int ofw_std_init(ofw_t ofw, void *openfirm);
74static int ofw_std_test(ofw_t ofw, const char *name);
75static int ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
76 unsigned long *returns);
77static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
78static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
79static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
80static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
81static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,

--- 63 unchanged lines hidden (view full) ---

145 0
146};
147OFW_DEF(ofw_std);
148
149static int (*openfirmware)(void *);
150
151/* Initializer */
152
74static int ofw_std_test(ofw_t ofw, const char *name);
75static int ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
76 unsigned long *returns);
77static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
78static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
79static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
80static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
81static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,

--- 63 unchanged lines hidden (view full) ---

145 0
146};
147OFW_DEF(ofw_std);
148
149static int (*openfirmware)(void *);
150
151/* Initializer */
152
153static void
153static int
154ofw_std_init(ofw_t ofw, void *openfirm)
155{
156
157 openfirmware = (int (*)(void *))openfirm;
154ofw_std_init(ofw_t ofw, void *openfirm)
155{
156
157 openfirmware = (int (*)(void *))openfirm;
158 return (0);
158}
159
160/*
161 * Generic functions
162 */
163
164/* Test to see if a service exists. */
165static int

--- 603 unchanged lines hidden ---
159}
160
161/*
162 * Generic functions
163 */
164
165/* Test to see if a service exists. */
166static int

--- 603 unchanged lines hidden ---