Rev 885 | Rev 956 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 885 | Rev 953 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | } ofw_args_t; |
53 | } ofw_args_t; |
54 | 54 | ||
55 | typedef void (*ofw_entry)(ofw_args_t *); |
55 | typedef void (*ofw_entry)(ofw_args_t *); |
56 | 56 | ||
57 | extern void init(void); |
57 | extern void init(void); |
- | 58 | void halt(void); |
|
- | 59 | ||
- | 60 | extern phandle ofw_find_device(const char *name); |
|
- | 61 | extern int ofw_get_property(const phandle device, const char *name, const void *buf, const int buflen); |
|
58 | extern int ofw_call(const char *service, const int nargs, const int nret, ...); |
62 | extern int ofw_call(const char *service, const int nargs, const int nret, ...); |
- | 63 | #define ofw_call_method(instance, method, nargs, nret, ...) ofw_call("call-method", (nargs + 2), nret, method, instance, ##__VA_ARGS__) |
|
- | 64 | ||
- | 65 | extern ihandle ofw_open(const char *name); |
|
59 | extern void ofw_write(const char *str, const int len); |
66 | extern void ofw_write(const char *str, const int len); |
60 | extern void ofw_puts(const char *str); |
- | |
- | 67 | ||
61 | extern void *ofw_claim(const void *addr, const int size, const int align); |
68 | extern void *ofw_claim(const void *addr, const int size, const int align); |
62 | extern phandle ofw_find_device(const char *name); |
69 | extern void *ofw_translate(const void *virt); |
63 | extern int ofw_get_property(const phandle device, const char *name, const void *buf, const int buflen); |
- | |
64 | 70 | ||
65 | #endif |
71 | #endif |