Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ofw/openfirm.h
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | |||||
void OF_release(void *virt, size_t size); | void OF_release(void *virt, size_t size); | ||||
/* Control transfer functions */ | /* Control transfer functions */ | ||||
void OF_enter(void); | void OF_enter(void); | ||||
void OF_exit(void) __attribute__((noreturn)); | void OF_exit(void) __attribute__((noreturn)); | ||||
/* User interface functions */ | /* User interface functions */ | ||||
int OF_interpret(const char *cmd, int nreturns, ...); | int OF_interpret(const char *cmd, int nreturns, ...); | ||||
int OF_model(char *buf, size_t len); | |||||
int OF_compatible(char *buf, size_t len); | |||||
/* | /* | ||||
* Decode the Nth register property of the given device node and create a bus | * Decode the Nth register property of the given device node and create a bus | ||||
* space tag and handle for accessing it. This is for use in setting up things | * space tag and handle for accessing it. This is for use in setting up things | ||||
* like early console output before newbus is available. | * like early console output before newbus is available. | ||||
*/ | */ | ||||
int OF_decode_addr(phandle_t dev, int regno, bus_space_tag_t *ptag, | int OF_decode_addr(phandle_t dev, int regno, bus_space_tag_t *ptag, | ||||
bus_space_handle_t *phandle, bus_size_t *sz); | bus_space_handle_t *phandle, bus_size_t *sz); | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _DEV_OPENFIRM_H_ */ | #endif /* _DEV_OPENFIRM_H_ */ |