Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/bus_if.m
| Show First 20 Lines • Show All 421 Lines • ▼ Show 20 Lines | |||||
| * @brief Release a resource | * @brief Release a resource | ||||
| * | * | ||||
| * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid | * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid | ||||
| * value must be the same as the one returned by BUS_ALLOC_RESOURCE() | * value must be the same as the one returned by BUS_ALLOC_RESOURCE() | ||||
| * (which is not necessarily the same as the one the client passed). | * (which is not necessarily the same as the one the client passed). | ||||
| * | * | ||||
| * @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 _rid the resource identifier | |||||
| * @param _r the resource to release | * @param _r the resource to release | ||||
| */ | */ | ||||
| METHOD int release_resource { | METHOD int release_resource { | ||||
| device_t _dev; | device_t _dev; | ||||
| device_t _child; | device_t _child; | ||||
| int _type; | |||||
| int _rid; | |||||
| struct resource *_res; | struct resource *_res; | ||||
| }; | }; | ||||
| /** | /** | ||||
| * @brief Install an interrupt handler | * @brief Install an interrupt handler | ||||
| * | * | ||||
| * This method is used to associate an interrupt handler function with | * This method is used to associate an interrupt handler function with | ||||
| * an irq resource. When the interrupt triggers, the function @p _intr | * an irq resource. When the interrupt triggers, the function @p _intr | ||||
| ▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines | |||||