Lines Matching refs:resource

44 	static struct resource *  struct
272 * @brief Allocate a system resource
275 * The types are defined in <machine/resource.h>; the meaning of the
276 * resource-ID field varies from bus to bus (but @p *rid == 0 is always
277 * valid if the resource type is). If a resource was allocated and the
280 * BUS_ACTIVATE_RESOURCE() when it actually uses the resource.
284 * @param _type the type of resource to allocate
285 * @param _rid a pointer to the resource identifier
286 * @param _start hint at the start of the resource range - pass
288 * @param _end hint at the end of the resource range - pass
292 * @param _flags any extra flags to control the resource
296 * @returns the resource which was allocated or @c NULL if no
297 * resource could be allocated
299 METHOD struct resource * alloc_resource { struct
311 * @brief Activate a resource
313 * Activate a resource previously allocated with
314 * BUS_ALLOC_RESOURCE(). This may enable decoding of this resource in a
315 * device for instance. It will also establish a mapping for the resource
316 * unless RF_UNMAPPED was set when allocating the resource.
319 * @param _child the device which allocated the resource
320 * @param _r the resource to activate
325 struct resource *_r;
330 * @brief Map a resource
332 * Allocate a mapping for a range of an active resource. The mapping
337 * @param _child the device which allocated the resource
338 * @param _r the resource to map
345 struct resource *_r;
352 * @brief Unmap a resource
359 * @param _child the device which allocated the resource
360 * @param _r the resource
366 struct resource *_r;
372 * @brief Deactivate a resource
374 * Deactivate a resource previously allocated with
378 * @param _child the device which allocated the resource
379 * @param _r the resource to deactivate
384 struct resource *_r;
388 * @brief Adjust a resource
390 * Adjust the start and/or end of a resource allocated by
392 * with the existing address range. If the successful, the resource's range
396 * @param _child the device which allocated the resource
397 * @param _res the resource to adjust
398 * @param _start the new starting address of the resource range
399 * @param _end the new ending address of the resource range
404 struct resource *_res;
410 * @brief translate a resource value
412 * Give a bus driver the opportunity to translate resource ranges. If
413 * successful, the host's view of the resource starting at @p _start is
416 * @param _dev the device associated with the resource
417 * @param _type the type of resource
418 * @param _start the starting address of the resource range
419 * @param _newstart the new starting address of the resource range
429 * @brief Release a resource
431 * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid
436 * @param _child the device which allocated the resource
437 * @param _r the resource to release
442 struct resource *_res;
449 * an irq resource. When the interrupt triggers, the function @p _intr
456 * @param _child the device which allocated the resource
457 * @param _irq the resource representing the interrupt
471 struct resource *_irq;
483 * with an irq resource. The value of @p _cookie must be the value
487 * @param _child the device which allocated the resource
488 * @param _irq the resource representing the interrupt
495 struct resource *_irq;
505 * The value of @p _irq must be the interrupt resource passed
509 * @param _child the device which allocated the resource
510 * @param _irq the resource representing the interrupt
515 struct resource *_irq;
524 * The value of @p _irq must be the interrupt resource passed
528 * @param _child the device which allocated the resource
529 * @param _irq the resource representing the interrupt
534 struct resource *_irq;
538 * @brief Define a resource which can be allocated with
542 * driver to describe a resource range that it would like to
543 * allocate. The resource defined by @p _type and @p _rid is defined
548 * @param _child the device which owns the resource
549 * @param _type the type of resource
550 * @param _rid the resource identifier
551 * @param _start the start of the resource range
552 * @param _count the size of the resource range
564 * @brief Describe a resource
567 * resource without actually allocating it.
570 * @param _child the device which owns the resource
571 * @param _type the type of resource
572 * @param _rid the resource identifier
574 * index of the resource range
576 * of the resource range
588 * @brief Delete a resource.
590 * Use this to delete a resource (possibly one previously added with
594 * @param _child the device which owns the resource
595 * @param _type the type of resource
596 * @param _rid the resource identifier
609 * implement their resource handling. It should return the resource
613 * @param _child the device which owns the resource list
624 * implement their resource handling. It should return the resource
625 * manager used for the given resource type.
628 * @param _type the resource type
629 * @param _flags resource flags (@c RF_XXX flags in
707 * @param _child the device which allocated the resource
708 * @param _irq the resource representing the interrupt
714 struct resource *_irq;
739 * @param _child the device which allocated the resource
740 * @param _irq the resource representing the interrupt
748 struct resource *_irq;