bus_activate_resource,
- Provided by: freebsd-manpages (Version: 10.1~RC1-1)
- Report a bug
#include
<sys/param.h>
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
#include
<machine/resource.h>
int
bus_activate_resource(device_t
dev, int type, int rid,
struct resource *r);
int
bus_deactivate_resource(device_t
dev, int type, int rid,
struct resource *r);
These functions activate or deactivate a previously allocated resource. In general, resources must be activated before they can be accessed by the driver so that the bus driver can map the resource into the devices space.
The arguments are as follows:
SYS_RES_IRQSYS_RES_DRQSYS_RES_IOPORTSYS_RES_MEMORYZero is returned on success, otherwise an error is returned.
This manual page was written by Warner Losh ⟨imp@FreeBSD.org⟩.