Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bus.h
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
#define DEV_SUSPEND _IOW('D', 5, struct devreq) | #define DEV_SUSPEND _IOW('D', 5, struct devreq) | ||||
#define DEV_RESUME _IOW('D', 6, struct devreq) | #define DEV_RESUME _IOW('D', 6, struct devreq) | ||||
#define DEV_SET_DRIVER _IOW('D', 7, struct devreq) | #define DEV_SET_DRIVER _IOW('D', 7, struct devreq) | ||||
#define DEV_CLEAR_DRIVER _IOW('D', 8, struct devreq) | #define DEV_CLEAR_DRIVER _IOW('D', 8, struct devreq) | ||||
#define DEV_RESCAN _IOW('D', 9, struct devreq) | #define DEV_RESCAN _IOW('D', 9, struct devreq) | ||||
#define DEV_DELETE _IOW('D', 10, struct devreq) | #define DEV_DELETE _IOW('D', 10, struct devreq) | ||||
#define DEV_FREEZE _IOW('D', 11, struct devreq) | #define DEV_FREEZE _IOW('D', 11, struct devreq) | ||||
#define DEV_THAW _IOW('D', 12, struct devreq) | #define DEV_THAW _IOW('D', 12, struct devreq) | ||||
#define DEV_RESET _IOW('D', 13, struct devreq) | |||||
/* Flags for DEV_DETACH and DEV_DISABLE. */ | /* Flags for DEV_DETACH and DEV_DISABLE. */ | ||||
#define DEVF_FORCE_DETACH 0x0000001 | #define DEVF_FORCE_DETACH 0x0000001 | ||||
/* Flags for DEV_SET_DRIVER. */ | /* Flags for DEV_SET_DRIVER. */ | ||||
#define DEVF_SET_DRIVER_DETACH 0x0000001 /* Detach existing driver. */ | #define DEVF_SET_DRIVER_DETACH 0x0000001 /* Detach existing driver. */ | ||||
/* Flags for DEV_CLEAR_DRIVER. */ | /* Flags for DEV_CLEAR_DRIVER. */ | ||||
#define DEVF_CLEAR_DRIVER_DETACH 0x0000001 /* Detach existing driver. */ | #define DEVF_CLEAR_DRIVER_DETACH 0x0000001 /* Detach existing driver. */ | ||||
/* Flags for DEV_DELETE. */ | /* Flags for DEV_DELETE. */ | ||||
#define DEVF_FORCE_DELETE 0x0000001 | #define DEVF_FORCE_DELETE 0x0000001 | ||||
/* Flags for DEV_RESET */ | |||||
#define DEVF_RESET_DETACH 0x0000001 /* Detach drivers vs suspend | |||||
device */ | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/eventhandler.h> | #include <sys/eventhandler.h> | ||||
#include <sys/kobj.h> | #include <sys/kobj.h> | ||||
/** | /** | ||||
* devctl hooks. Typically one should use the devctl_notify | * devctl hooks. Typically one should use the devctl_notify | ||||
* hook to send the message. However, devctl_queue_data is also | * hook to send the message. However, devctl_queue_data is also | ||||
▲ Show 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | int bus_generic_suspend_intr(device_t dev, device_t child, | ||||
struct resource *irq); | struct resource *irq); | ||||
int bus_generic_resume_intr(device_t dev, device_t child, | int bus_generic_resume_intr(device_t dev, device_t child, | ||||
struct resource *irq); | struct resource *irq); | ||||
int bus_generic_unmap_resource(device_t dev, device_t child, int type, | int bus_generic_unmap_resource(device_t dev, device_t child, int type, | ||||
struct resource *r, | struct resource *r, | ||||
struct resource_map *map); | struct resource_map *map); | ||||
int bus_generic_write_ivar(device_t dev, device_t child, int which, | int bus_generic_write_ivar(device_t dev, device_t child, int which, | ||||
uintptr_t value); | uintptr_t value); | ||||
int bus_helper_reset_post(device_t dev, int flags); | |||||
int bus_helper_reset_prepare(device_t dev, int flags); | |||||
int bus_null_rescan(device_t dev); | int bus_null_rescan(device_t dev); | ||||
/* | /* | ||||
* Wrapper functions for the BUS_*_RESOURCE methods to make client code | * Wrapper functions for the BUS_*_RESOURCE methods to make client code | ||||
* a little simpler. | * a little simpler. | ||||
*/ | */ | ||||
struct resource_spec { | struct resource_spec { | ||||
▲ Show 20 Lines • Show All 449 Lines • Show Last 20 Lines |