Rev 953 | Rev 964 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 953 | Rev 956 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | void halt(void); |
58 | void halt(void); |
59 | 59 | ||
60 | extern phandle ofw_find_device(const char *name); |
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); |
61 | extern int ofw_get_property(const phandle device, const char *name, const void *buf, const int buflen); |
62 | 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 | 63 | ||
65 | extern ihandle ofw_open(const char *name); |
64 | extern ihandle ofw_open(const char *name); |
66 | extern void ofw_write(const char *str, const int len); |
65 | extern void ofw_write(const char *str, const int len); |
67 | 66 | ||
68 | extern void *ofw_claim(const void *addr, const int size, const int align); |
- | |
69 | extern void *ofw_translate(const void *virt); |
67 | extern void *ofw_translate(const void *virt); |
- | 68 | extern int ofw_map(const void *phys, const void *virt, const int size, const int mode); |
|
70 | 69 | ||
71 | #endif |
70 | #endif |