Functions | |
resource * | request_region (unsigned long start, unsigned long n, const char *name) |
Allocate I/O port region. | |
resource * | request_mem_region (unsigned long start, unsigned long n, const char *name) |
Allocate I/O memory region. | |
void | release_region (unsigned long start, unsigned long n) |
Release I/O port region. | |
void | release_mem_region (unsigned long start, unsigned long n) |
Release I/O memory region. | |
int | release_resource (struct resource *res) |
Release any resource. | |
int | check_region (unsigned long start, unsigned long n) |
Check I/O port region availability. | |
int | check_mem_region (unsigned long start, unsigned long n) |
Check I/O memory region availability. | |
void * | ioremap (unsigned long phys_addr, unsigned long size) |
Remap I/O memory into kernel address space. | |
void * | ioremap_nocache (unsigned long phys_addr, unsigned long size) |
Remap I/O memory into kernel address space (no cache). | |
void | iounmap (void *addr) |
Unmap I/O memory from kernel address space. |
It is mostly a wrapper to libio request/release functions for I/O port and memory regions with additional bookkeeping of allocations. The ioremap()/iounmap() interface is also provided by this module.
Requirements: (additionally to Global Requirements)
region handling
address.c
) and call address_*
() and _va()
|
Check I/O memory region availability.
|
|
Check I/O port region availability.
|
|
Remap I/O memory into kernel address space.
Definition at line 213 of file res.c. References __va(), DEBUG_RES, DEBUG_RES_TRACE, and regions. Referenced by ioremap_nocache(). |
|
Remap I/O memory into kernel address space (no cache).
Definition at line 259 of file res.c. References DEBUG_RES_TRACE, and ioremap(). |
|
Unmap I/O memory from kernel address space.
Definition at line 273 of file res.c. References DEBUG_RES_TRACE. |
|
Release I/O memory region.
Definition at line 141 of file res.c. References dde_remove_region(), DEBUG_ERRORS, DEBUG_RES_TRACE, and regions. Referenced by pci_release_region(). |
|
Release I/O port region.
Definition at line 124 of file res.c. References DEBUG_RES_TRACE. Referenced by pci_release_region(). |
|
Release any resource.
|
|
Allocate I/O memory region.
Definition at line 97 of file res.c. References dde_add_region(), DEBUG_ERRORS, DEBUG_RES_TRACE, and regions. Referenced by pci_request_region(). |
|
Allocate I/O port region.
Definition at line 70 of file res.c. References DEBUG_ERRORS, and DEBUG_RES_TRACE. Referenced by pci_request_region(). |