44 #include <linux/ioport.h> 45 #include <linux/version.h> 62 struct resource *p = request_region( port, n,
driver_name );
87 release_region( port, n );
106 struct resource *p = request_mem_region( start, len,
driver_name );
111 (
unsigned long long) start, len );
116 (
unsigned long long) start, len, p );
133 release_mem_region( start, len );
136 (
unsigned long long) start, len );
#define _mbgddmsg_3(_f, _lvl, _fmt, _p1, _p2, _p3)
void rsrc_dealloc_mem(ulong start, ulong len)
Release a memory resource range which has been allocated before.
int rsrc_alloc_mem(ulong start, ulong len)
Try to allocate a memory resource range.
int rsrc_alloc_ports(ulong port, ulong n)
Try to allocate an I/O port resource range.
#define MBG_SUCCESS
Error codes used with Meinberg devices and drivers.
#define _mbgddmsg_2(_f, _lvl, _fmt, _p1, _p2)
#define MBG_ERR_CLAIM_RSRC
Failed to claim port or mem resource.
void rsrc_dealloc_ports(ulong port, ulong n)
Release an I/O port resource range which has been allocated before.
#define _mbg_kdd_msg_2(_lvl, _fmt, _p1, _p2)