Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
CODE { | CODE { | ||||
static struct chipc_caps * | static struct chipc_caps * | ||||
bhnd_chipc_null_get_caps(device_t dev) | bhnd_chipc_null_get_caps(device_t dev) | ||||
{ | { | ||||
panic("bhnd_chipc_generic_get_caps unimplemented"); | panic("bhnd_chipc_generic_get_caps unimplemented"); | ||||
} | } | ||||
} | } | ||||
/** | |||||
* Return the current value of the chipstatus register. | |||||
* | |||||
* @param dev A bhnd(4) ChipCommon device. | |||||
* | |||||
* Drivers should only use function for functionality that is not | |||||
* available via another bhnd_chipc() function. | |||||
* | |||||
* @returns The chipstatus register value, or 0 if undefined by this | |||||
* hardware (e.g. if @p dev is an EXTIF core). | |||||
*/ | |||||
METHOD uint32_t read_chipst { | |||||
device_t dev; | |||||
} | |||||
/** | /** | ||||
* Write @p value with @p mask directly to the chipctrl register. | * Write @p value with @p mask directly to the chipctrl register. | ||||
* | * | ||||
* @param dev A bhnd(4) ChipCommon device. | * @param dev A bhnd(4) ChipCommon device. | ||||
* @param value The value to write. | * @param value The value to write. | ||||
* @param mask The mask of bits to be written from @p value. | * @param mask The mask of bits to be written from @p value. | ||||
* | * | ||||
* Drivers should only use function for functionality that is not | * Drivers should only use function for functionality that is not | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |