Lines Matching full:resource

44 	static struct resource *
266 * @brief Allocate a system resource
269 * The types are defined in <machine/resource.h>; the meaning of the
270 * resource-ID field varies from bus to bus (but @p *rid == 0 is always
271 * valid if the resource type is). If a resource was allocated and the
274 * BUS_ACTIVATE_RESOURCE() when it actually uses the resource.
278 * @param _type the type of resource to allocate
279 * @param _rid a pointer to the resource identifier
280 * @param _start hint at the start of the resource range - pass
282 * @param _end hint at the end of the resource range - pass
286 * @param _flags any extra flags to control the resource
290 * @returns the resource which was allocated or @c NULL if no
291 * resource could be allocated
293 METHOD struct resource * alloc_resource {
305 * @brief Activate a resource
307 * Activate a resource previously allocated with
308 * BUS_ALLOC_RESOURCE(). This may enable decoding of this resource in a
309 * device for instance. It will also establish a mapping for the resource
310 * unless RF_UNMAPPED was set when allocating the resource.
313 * @param _child the device which allocated the resource
314 * @param _r the resource to activate
319 struct resource *_r;
324 * @brief Map a resource
326 * Allocate a mapping for a range of an active resource. The mapping
331 * @param _child the device which allocated the resource
332 * @param _r the resource to map
339 struct resource *_r;
346 * @brief Unmap a resource
353 * @param _child the device which allocated the resource
354 * @param _r the resource
360 struct resource *_r;
366 * @brief Deactivate a resource
368 * Deactivate a resource previously allocated with
372 * @param _child the device which allocated the resource
373 * @param _r the resource to deactivate
378 struct resource *_r;
382 * @brief Adjust a resource
384 * Adjust the start and/or end of a resource allocated by
386 * with the existing address range. If the successful, the resource's range
390 * @param _child the device which allocated the resource
391 * @param _res the resource to adjust
392 * @param _start the new starting address of the resource range
393 * @param _end the new ending address of the resource range
398 struct resource *_res;
404 * @brief translate a resource value
406 * Give a bus driver the opportunity to translate resource ranges. If
407 * successful, the host's view of the resource starting at @p _start is
410 * @param _dev the device associated with the resource
411 * @param _type the type of resource
412 * @param _start the starting address of the resource range
413 * @param _newstart the new starting address of the resource range
423 * @brief Release a resource
425 * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid
430 * @param _child the device which allocated the resource
431 * @param _r the resource to release
436 struct resource *_res;
443 * an irq resource. When the interrupt triggers, the function @p _intr
450 * @param _child the device which allocated the resource
451 * @param _irq the resource representing the interrupt
465 struct resource *_irq;
477 * with an irq resource. The value of @p _cookie must be the value
481 * @param _child the device which allocated the resource
482 * @param _irq the resource representing the interrupt
489 struct resource *_irq;
499 * The value of @p _irq must be the interrupt resource passed
503 * @param _child the device which allocated the resource
504 * @param _irq the resource representing the interrupt
509 struct resource *_irq;
518 * The value of @p _irq must be the interrupt resource passed
522 * @param _child the device which allocated the resource
523 * @param _irq the resource representing the interrupt
528 struct resource *_irq;
532 * @brief Define a resource which can be allocated with
536 * driver to describe a resource range that it would like to
537 * allocate. The resource defined by @p _type and @p _rid is defined
542 * @param _child the device which owns the resource
543 * @param _type the type of resource
544 * @param _rid the resource identifier
545 * @param _start the start of the resource range
546 * @param _count the size of the resource range
558 * @brief Describe a resource
561 * resource without actually allocating it.
564 * @param _child the device which owns the resource
565 * @param _type the type of resource
566 * @param _rid the resource identifier
568 * index of the resource range
570 * of the resource range
582 * @brief Delete a resource.
584 * Use this to delete a resource (possibly one previously added with
588 * @param _child the device which owns the resource
589 * @param _type the type of resource
590 * @param _rid the resource identifier
603 * implement their resource handling. It should return the resource
607 * @param _child the device which owns the resource list
618 * implement their resource handling. It should return the resource
619 * manager used for the given resource type.
622 * @param _type the resource type
623 * @param _flags resource flags (@c RF_XXX flags in
701 * @param _child the device which allocated the resource
702 * @param _irq the resource representing the interrupt
708 struct resource *_irq;
733 * @param _child the device which allocated the resource
734 * @param _irq the resource representing the interrupt
742 struct resource *_irq;