/tmp/l4check/full_tree/trunk/l4/pkg/generic_io/lib/clientlib/req_rel.c File Reference
L4Env I/O Client Library Request/Release Wrapper.
More...
#include <l4/sys/types.h>
#include <l4/env/errno.h>
#include <l4/l4rm/l4rm.h>
#include <l4/generic_io/libio.h>
#include "internal.h"
#include "__macros.h"
Go to the source code of this file.
Detailed Description
L4Env I/O Client Library Request/Release Wrapper.
- Date:
- 2007-03-23
- Author:
- Christian Helmuth <ch12@os.inf.tu-dresden.de>
Definition in file req_rel.c.
Function Documentation
int l4io_release_dma |
( |
unsigned int |
channel |
) |
|
Release ISA DMA channel.
- Parameters:
-
| channel | ISA DMA channel number |
- Returns:
- 0 on success; negative error code otherwise
- Test:
- krishna: Not yet implemented.
Definition at line 210 of file req_rel.c.
int l4io_release_mem_region |
( |
l4_addr_t |
start, |
|
|
l4_size_t |
len | |
|
) |
| | |
Release I/O memory region.
- Parameters:
-
| start | begin of port region |
| len | size of port region |
- Returns:
- 0 on success; negative error code otherwise
- Todo:
- undo area reservation at l4rm but we need the area id for [start, start+len] here
Definition at line 147 of file req_rel.c.
int l4io_release_region |
( |
l4_uint16_t |
start, |
|
|
l4_uint16_t |
len | |
|
) |
| | |
Release I/O port region.
- Parameters:
-
| start | begin of port region |
| len | size of port region |
- Returns:
- 0 on success; negative error code otherwise
Definition at line 170 of file req_rel.c.
int l4io_request_dma |
( |
unsigned int |
channel |
) |
|
Request ISA DMA channel.
- Parameters:
-
| channel | ISA DMA channel number |
- Returns:
- 0 on success; negative error code otherwise
- Test:
- krishna: Not yet implemented.
Definition at line 194 of file req_rel.c.
l4_addr_t l4io_request_mem_region |
( |
l4_addr_t |
start, |
|
|
l4_size_t |
len, |
|
|
int |
flags | |
|
) |
| | |
Request I/O memory region.
- Parameters:
-
| start | begin of mem region |
| len | size of mem region |
- Return values:
-
| offset | offset within memory region |
- Returns:
- virtual address of mapped region; 0 on error
Definition at line 39 of file req_rel.c.
int l4io_request_region |
( |
l4_uint16_t |
start, |
|
|
l4_uint16_t |
length | |
|
) |
| | |
Request I/O port region.
- Parameters:
-
| start | begin of port region |
| len | size of port region |
- Returns:
- 0 on success; negative error code otherwise
Definition at line 117 of file req_rel.c.
int l4io_search_mem_region |
( |
l4_addr_t |
addr, |
|
|
l4_addr_t * |
start, |
|
|
l4_size_t * |
len | |
|
) |
| | |
Search I/O memory region for an address.
- Parameters:
-
| addr | Address to search for |
- Return values:
-
| start | Start of memory region if found |
| len | Length of memory region if found. |
- Returns:
- 0 on success; negative error code otherwise
Definition at line 92 of file req_rel.c.