17#include <l4/sys/linkage.h>
18#include <l4/io/types.h>
115 unsigned long size,
int flags);
190 l4io_device_handle_t *dev_handle,
211 l4io_resource_handle_t *reshandle,
231 l4io_resource_handle_t *reshandle);
long l4io_request_ioport(unsigned portnum, unsigned len)
Request an IO port region.
long l4io_release_iomem(l4_addr_t virt, unsigned long size)
Release an IO memory region.
long l4io_request_iomem(l4_addr_t phys, unsigned long size, int flags, l4_addr_t *virt)
Request an IO memory region.
int l4io_lookup_resource(l4io_device_handle_t devhandle, enum l4io_resource_types_t type, l4io_resource_handle_t *reshandle, l4io_resource_t *res)
Request a specific resource from a device description.
long l4io_release_ioport(unsigned portnum, unsigned len)
Release an IO port region.
int l4io_lookup_device(const char *devname, l4io_device_handle_t *dev_handle, l4io_device_t *dev, l4io_resource_handle_t *res_handle)
Find a device by name.
int l4io_has_resource(enum l4io_resource_types_t type, l4vbus_paddr_t start, l4vbus_paddr_t end)
Check if a resource is available.
l4_addr_t l4io_request_resource_iomem(l4io_device_handle_t devhandle, l4io_resource_handle_t *reshandle)
Request IO memory.
l4io_resource_types_t
Resource types.
long l4io_request_iomem_region(l4_addr_t phys, l4_addr_t virt, unsigned long size, int flags)
Request an IO memory region and map it to a specified region.
unsigned long l4_addr_t
Address type.
unsigned long l4_cap_idx_t
Capability selector type.
#define L4_CV
Define calling convention.
#define L4_INLINE
L4 Inline function attribute.
#define L4_EXPORT
Attribute to mark functions, variables, and data types as being exported from a library.
#define EXTERN_C_BEGIN
Start section with C types and functions.
#define EXTERN_C_END
End section with C types and functions.
l4io_device_handle_t l4io_get_root_device(void)
Get root device handle of the device bus.
void l4io_request_all_ioports(void(*res_cb)(l4vbus_resource_t const *res))
Request all available IO-port resources.
l4_cap_idx_t l4io_request_icu(void)
Request the ICU object of the client.
int l4io_iterate_devices(l4io_device_handle_t *devhandle, l4io_device_t *dev, l4io_resource_handle_t *reshandle)
Iterate over the device bus.
Common L4 ABI Data Types.
Detailed information about a vbus device.
Description of a single vbus resource.
l4_addr_t l4vbus_paddr_t
Address of resources on the vbus.