Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/bhnd.9
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | |||||
.Fo bhnd_read_config | .Fo bhnd_read_config | ||||
.Fa "device_t dev" "bus_size_t offset" "void *value" "u_int width" | .Fa "device_t dev" "bus_size_t offset" "void *value" "u_int width" | ||||
.Fc | .Fc | ||||
.Ft int | .Ft int | ||||
.Fo bhnd_write_config | .Fo bhnd_write_config | ||||
.Fa "device_t dev" "bus_size_t offset" "const void *value" "u_int width" | .Fa "device_t dev" "bus_size_t offset" "const void *value" "u_int width" | ||||
.Fc | .Fc | ||||
.Ft int | .Ft int | ||||
.Fn bhnd_reset_hw "device_t dev" "uint16_t ioctl" | .Fn bhnd_reset_hw "device_t dev" "uint16_t ioctl" "uint16_t reset_ioctl" | ||||
.Ft int | .Ft int | ||||
.Fn bhnd_suspend_hw "device_t dev" | .Fn bhnd_suspend_hw "device_t dev" "uint16_t ioctl" | ||||
.Ft bool | .Ft bool | ||||
.Fn bhnd_is_hw_suspended "device_t dev" | .Fn bhnd_is_hw_suspended "device_t dev" | ||||
.\" | .\" | ||||
.Ss "Device Information Functions" | .Ss "Device Information Functions" | ||||
.Ft bhnd_attach_type | .Ft bhnd_attach_type | ||||
.Fo bhnd_get_attach_type | .Fo bhnd_get_attach_type | ||||
.Fa "device_t dev" | .Fa "device_t dev" | ||||
.Fc | .Fc | ||||
▲ Show 20 Lines • Show All 769 Lines • ▼ Show 20 Lines | |||||
function. | function. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn bhnd_suspend_hw | .Fn bhnd_suspend_hw | ||||
function transitions the device | function transitions the device | ||||
.Fa dev | .Fa dev | ||||
to a low power | to a low power | ||||
.Dq RESET | .Dq RESET | ||||
state. | state, writing | ||||
.Fa ioctl | |||||
to the I/O control flags of | |||||
.Fa dev . | |||||
The hardware may be brought out of this state using | The hardware may be brought out of this state using | ||||
.Fn bhnd_reset_hw . | .Fn bhnd_reset_hw . | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn bhnd_reset_hw | .Fn bhnd_reset_hw | ||||
function first transitions the device | function first transitions the device | ||||
.Fa dev | .Fa dev | ||||
to a low power RESET state, and then brings the device out of RESET, writing | to a low power RESET state, writing | ||||
.Fa ioctl_reset | |||||
to the I/O control flags | |||||
of | |||||
.Fa dev , | |||||
and then brings the device out of RESET, writing | |||||
.Fa ioctl | .Fa ioctl | ||||
to the I/O control flags of | to the device's I/O control flags. | ||||
.Fa dev . | |||||
.Pp | .Pp | ||||
The | The | ||||
.Fn bhnd_is_hw_suspended | .Fn bhnd_is_hw_suspended | ||||
function returns | function returns | ||||
.Dv true | .Dv true | ||||
if the device | if the device | ||||
.Fa dev | .Fa dev | ||||
is currently held in a RESET state, or is otherwise not clocked. | is currently held in a RESET state, or is otherwise not clocked. | ||||
▲ Show 20 Lines • Show All 1,568 Lines • Show Last 20 Lines |