Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/bhnd_bus_if.m
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | HEADER { | ||||
struct bhnd_resource; | struct bhnd_resource; | ||||
} | } | ||||
CODE { | CODE { | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <dev/bhnd/bhndvar.h> | #include <dev/bhnd/bhndvar.h> | ||||
static struct bhnd_chipid * | |||||
bhnd_bus_null_get_chipid(device_t dev, device_t child) | |||||
{ | |||||
panic("bhnd_bus_get_chipid unimplemented"); | |||||
} | |||||
static int | static int | ||||
bhnd_bus_null_read_board_info(device_t dev, device_t child, | bhnd_bus_null_read_board_info(device_t dev, device_t child, | ||||
struct bhnd_board_info *info) | struct bhnd_board_info *info) | ||||
{ | { | ||||
panic("bhnd_bus_read_boardinfo unimplemented"); | panic("bhnd_bus_read_boardinfo unimplemented"); | ||||
} | } | ||||
static device_t | static device_t | ||||
▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
* Return the BHND chip identification for the parent bus. | * Return the BHND chip identification for the parent bus. | ||||
* | * | ||||
* @param dev The device whose child is being examined. | * @param dev The device whose child is being examined. | ||||
* @param child The child device. | * @param child The child device. | ||||
*/ | */ | ||||
METHOD const struct bhnd_chipid * get_chipid { | METHOD const struct bhnd_chipid * get_chipid { | ||||
device_t dev; | device_t dev; | ||||
device_t child; | device_t child; | ||||
} DEFAULT bhnd_bus_null_get_chipid; | } DEFAULT bhnd_bus_generic_get_chipid; | ||||
/** | /** | ||||
* Return the BHND attachment type of the parent bus. | * Return the BHND attachment type of the parent bus. | ||||
* | * | ||||
* @param dev The device whose child is being examined. | * @param dev The device whose child is being examined. | ||||
* @param child The child device. | * @param child The child device. | ||||
* | * | ||||
* @retval BHND_ATTACH_ADAPTER if the bus is resident on a bridged adapter, | * @retval BHND_ATTACH_ADAPTER if the bus is resident on a bridged adapter, | ||||
▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines |