Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/bus_if.m
Show First 20 Lines • Show All 648 Lines • ▼ Show 20 Lines | |||||
METHOD int child_present { | METHOD int child_present { | ||||
device_t _dev; | device_t _dev; | ||||
device_t _child; | device_t _child; | ||||
} DEFAULT bus_generic_child_present; | } DEFAULT bus_generic_child_present; | ||||
/** | /** | ||||
* @brief Returns the pnp info for this device. | * @brief Returns the pnp info for this device. | ||||
* | * | ||||
* Return it as a string. If the storage is insufficient for the | * Return it as a string, appended to @p _sb | ||||
* string, then return EOVERFLOW. | |||||
* | * | ||||
* The string must be formatted as a space-separated list of | * The string must be formatted as a space-separated list of | ||||
* name=value pairs. Names may only contain alphanumeric characters, | * name=value pairs. Names may only contain alphanumeric characters, | ||||
* underscores ('_') and hyphens ('-'). Values can contain any | * underscores ('_') and hyphens ('-'). Values can contain any | ||||
* non-whitespace characters. Values containing whitespace can be | * non-whitespace characters. Values containing whitespace can be | ||||
* quoted with double quotes ('"'). Double quotes and backslashes in | * quoted with double quotes ('"'). Double quotes and backslashes in | ||||
* quoted values can be escaped with backslashes ('\'). | * quoted values can be escaped with backslashes ('\'). | ||||
* | * | ||||
* @param _dev the parent device of @p _child | * @param _dev the parent device of @p _child | ||||
* @param _child the device which is being examined | * @param _child the device which is being examined | ||||
* @param _buf the address of a buffer to receive the pnp | * @param _sb sbuf for results string | ||||
* string | |||||
* @param _buflen the size of the buffer pointed to by @p _buf | |||||
*/ | */ | ||||
METHOD int child_pnpinfo_str { | METHOD int child_pnpinfo { | ||||
device_t _dev; | device_t _dev; | ||||
device_t _child; | device_t _child; | ||||
char *_buf; | struct sbuf *_sb; | ||||
size_t _buflen; | } DEFAULT bus_generic_child_pnpinfo; | ||||
}; | |||||
/** | /** | ||||
* @brief Returns the location for this device. | * @brief Returns the location for this device. | ||||
* | * | ||||
* Return it as a string. If the storage is insufficient for the | * Return it as a string, appended to @p _sb | ||||
* string, then return EOVERFLOW. | |||||
* | * | ||||
* The string must be formatted as a space-separated list of | * The string must be formatted as a space-separated list of | ||||
* name=value pairs. Names may only contain alphanumeric characters, | * name=value pairs. Names may only contain alphanumeric characters, | ||||
* underscores ('_') and hyphens ('-'). Values can contain any | * underscores ('_') and hyphens ('-'). Values can contain any | ||||
* non-whitespace characters. Values containing whitespace can be | * non-whitespace characters. Values containing whitespace can be | ||||
* quoted with double quotes ('"'). Double quotes and backslashes in | * quoted with double quotes ('"'). Double quotes and backslashes in | ||||
* quoted values can be escaped with backslashes ('\'). | * quoted values can be escaped with backslashes ('\'). | ||||
* | * | ||||
* @param _dev the parent device of @p _child | * @param _dev the parent device of @p _child | ||||
* @param _child the device which is being examined | * @param _child the device which is being examined | ||||
* @param _buf the address of a buffer to receive the location | * @param _sb sbuf for results string | ||||
* string | |||||
* @param _buflen the size of the buffer pointed to by @p _buf | |||||
*/ | */ | ||||
METHOD int child_location_str { | METHOD int child_location { | ||||
device_t _dev; | device_t _dev; | ||||
device_t _child; | device_t _child; | ||||
char *_buf; | struct sbuf *_sb; | ||||
size_t _buflen; | } DEFAULT bus_generic_child_location; | ||||
}; | |||||
/** | /** | ||||
* @brief Allow drivers to request that an interrupt be bound to a specific | * @brief Allow drivers to request that an interrupt be bound to a specific | ||||
* CPU. | * CPU. | ||||
* | * | ||||
* @param _dev the parent device of @p _child | * @param _dev the parent device of @p _child | ||||
* @param _child the device which allocated the resource | * @param _child the device which allocated the resource | ||||
* @param _irq the resource representing the interrupt | * @param _irq the resource representing the interrupt | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |