Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/bus_if.m
Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* Adjust the start and/or end of a resource allocated by | * Adjust the start and/or end of a resource allocated by | ||||
* BUS_ALLOC_RESOURCE. At least part of the new address range must overlap | * BUS_ALLOC_RESOURCE. At least part of the new address range must overlap | ||||
* with the existing address range. If the successful, the resource's range | * with the existing address range. If the successful, the resource's range | ||||
* will be adjusted to [start, end] on return. | * will be adjusted to [start, end] on return. | ||||
* | * | ||||
* @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 _type the type of resource | |||||
* @param _res the resource to adjust | * @param _res the resource to adjust | ||||
* @param _start the new starting address of the resource range | * @param _start the new starting address of the resource range | ||||
* @param _end the new ending address of the resource range | * @param _end the new ending address of the resource range | ||||
*/ | */ | ||||
METHOD int adjust_resource { | METHOD int adjust_resource { | ||||
device_t _dev; | device_t _dev; | ||||
device_t _child; | device_t _child; | ||||
int _type; | |||||
struct resource *_res; | struct resource *_res; | ||||
rman_res_t _start; | rman_res_t _start; | ||||
rman_res_t _end; | rman_res_t _end; | ||||
}; | }; | ||||
/** | /** | ||||
* @brief translate a resource value | * @brief translate a resource value | ||||
* | * | ||||
▲ Show 20 Lines • Show All 567 Lines • Show Last 20 Lines |