Lines Matching full:resource

61 .Nd resource management functions
66 .Fn rman_activate_resource "struct resource *r"
68 .Fn rman_adjust_resource "struct resource *r" "rman_res_t start" "rman_res_t end"
70 .Fn rman_deactivate_resource "struct resource *r"
76 .Fn rman_init_from_resource "struct rman *rm" "struct resource *r"
78 .Fn rman_is_region_manager "struct resource *r" "struct rman *rm"
86 .Fn rman_release_resource "struct resource *r"
95 .Fn rman_get_start "struct resource *r"
97 .Fn rman_get_end "struct resource *r"
99 .Fn rman_get_device "struct resource *r"
101 .Fn rman_get_size "struct resource *r"
103 .Fn rman_get_flags "struct resource *r"
105 .Fn rman_set_mapping "struct resource *r" "struct resource_map *map"
107 .Fn rman_get_mapping "struct resource *r" "struct resource_map *map"
109 .Fn rman_set_virtual "struct resource *r" "void *v"
111 .Fn rman_get_virtual "struct resource *r"
113 .Fn rman_set_bustag "struct resource *r" "bus_space_tag_t t"
115 .Fn rman_get_bustag "struct resource *r"
117 .Fn rman_set_bushandle "struct resource *r" "bus_space_handle_t h"
119 .Fn rman_get_bushandle "struct resource *r"
121 .Fn rman_set_rid "struct resource *r" "int rid"
123 .Fn rman_get_rid "struct resource *r"
125 .Fn rman_set_type "struct resource *r" "int type"
127 .Fn rman_get_type "struct resource *r"
131 set of functions provides a flexible resource management abstraction.
133 It implements the abstractions of region and resource.
139 Each segment, termed a resource, has several properties which are
142 #define RF_ALLOCATED 0x0001 /* resource has been reserved */
143 #define RF_ACTIVE 0x0002 /* resource allocation has been activated */
144 #define RF_SHAREABLE 0x0004 /* resource permits contemporaneous sharing */
146 #define RF_PREFETCHABLE 0x0040 /* resource is prefetchable */
147 #define RF_UNMAPPED 0x0100 /* don't map resource when activating */
151 of the resource within the region.
157 argument, for use with the resource management functions.
172 shall be set to a string that describes the resource to be managed.
177 fields may be set to limit the range of acceptable resource addresses.
180 will initialize them to allow the entire range of resource addresses.
231 function is a wrapper routine to create a resource manager backed by an
232 existing resource.
248 functions can be used to query a resource manager for its first
280 argument is the lowest acceptable starting value of the resource.
283 argument is the highest acceptable ending value of the resource.
315 function returns true if the allocated resource
324 function is used to adjust the reserved address range of an allocated resource
329 It can be used to grow or shrink one or both ends of the resource range.
330 The current implementation does not support entirely relocating the resource
333 if the new resource range does not overlap the old resource range.
334 If either end of the resource range grows and the new resource range would
335 conflict with another allocated resource,
340 function does not support adjusting the resource range for shared resources
344 the resource
358 function releases the reserved resource
364 function marks a resource as active, by setting the
367 If this is a time shared resource, and the caller has not yet acquired
368 the resource, the function returns
373 function marks a resource
387 resource
395 with the resource
406 with the resource
414 function is used to associate a kernel virtual address with a resource
422 function is used to associate a resource mapping with a resource
424 The mapping must cover the entire resource.
438 function can be used to retrieve the associated resource mapping once set.
442 function associates a resource identifier with a resource
450 function associates a resource type with a resource
458 function returns a pointer to the device which reserved the resource