Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/ofw/libofw/openfirm.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
int OF_call_method(char *, ihandle_t, int, int, ...); | int OF_call_method(char *, ihandle_t, int, int, ...); | ||||
/* Device I/O functions */ | /* Device I/O functions */ | ||||
ihandle_t OF_open(char *); | ihandle_t OF_open(char *); | ||||
void OF_close(ihandle_t); | void OF_close(ihandle_t); | ||||
int OF_read(ihandle_t, void *, int); | int OF_read(ihandle_t, void *, int); | ||||
int OF_write(ihandle_t, void *, int); | int OF_write(ihandle_t, void *, int); | ||||
int OF_seek(ihandle_t, u_quad_t); | int OF_seek(ihandle_t, u_quad_t); | ||||
unsigned int OF_blocks(ihandle_t); | |||||
int OF_block_size(ihandle_t); | |||||
/* Memory functions */ | /* Memory functions */ | ||||
void *OF_claim(void *, u_int, u_int); | void *OF_claim(void *, u_int, u_int); | ||||
void OF_release(void *, u_int); | void OF_release(void *, u_int); | ||||
/* Control transfer functions */ | /* Control transfer functions */ | ||||
void OF_boot(char *); | void OF_boot(char *); | ||||
void OF_enter(void); | void OF_enter(void); | ||||
void OF_exit(void) __attribute__((noreturn)); | void OF_exit(void) __attribute__((noreturn)); | ||||
void OF_chain(void *, u_int, void (*)(), void *, u_int); | void OF_chain(void *, u_int, void (*)(), void *, u_int); | ||||
/* Time function */ | /* Time function */ | ||||
int OF_milliseconds(void); | int OF_milliseconds(void); | ||||
#endif /* _OPENFIRM_H_ */ | #endif /* _OPENFIRM_H_ */ |