Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/bhnd_bus_if.m
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | CODE { | ||||
| #include <dev/bhnd/bhndvar.h> | #include <dev/bhnd/bhndvar.h> | ||||
| static struct bhnd_chipid * | static struct bhnd_chipid * | ||||
| bhnd_bus_null_get_chipid(device_t dev, device_t child) | bhnd_bus_null_get_chipid(device_t dev, device_t child) | ||||
| { | { | ||||
| panic("bhnd_bus_get_chipid unimplemented"); | panic("bhnd_bus_get_chipid unimplemented"); | ||||
| } | } | ||||
| static bhnd_attach_type | |||||
| bhnd_bus_null_get_attach_type(device_t dev, device_t child) | |||||
| { | |||||
| panic("bhnd_bus_get_attach_type 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 126 Lines • ▼ Show 20 Lines | |||||
| * @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, | ||||
| * such as a WiFi chipset. | * such as a WiFi chipset. | ||||
| * @retval BHND_ATTACH_NATIVE if the bus provides hardware services (clock, | * @retval BHND_ATTACH_NATIVE if the bus provides hardware services (clock, | ||||
| * CPU, etc) to a directly attached native host. | * CPU, etc) to a directly attached native host. | ||||
| */ | */ | ||||
| METHOD bhnd_attach_type get_attach_type { | METHOD bhnd_attach_type get_attach_type { | ||||
| device_t dev; | device_t dev; | ||||
| device_t child; | device_t child; | ||||
| } DEFAULT bhnd_bus_generic_get_attach_type; | } DEFAULT bhnd_bus_null_get_attach_type; | ||||
| /** | /** | ||||
| * Attempt to read the BHND board identification from the parent bus. | * Attempt to read the BHND board identification from the parent bus. | ||||
| * | * | ||||
| * This relies on NVRAM access, and will fail if a valid NVRAM device cannot | * This relies on NVRAM access, and will fail if a valid NVRAM device cannot | ||||
| * be found, or is not yet attached. | * be found, or is not yet attached. | ||||
| * | * | ||||
| * @param dev The parent of @p child. | * @param dev The parent of @p child. | ||||
| ▲ Show 20 Lines • Show All 675 Lines • Show Last 20 Lines | |||||