Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bus.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
#define DF_QUIET 0x10 /* don't print verbose attach message */ | #define DF_QUIET 0x10 /* don't print verbose attach message */ | ||||
#define DF_DONENOMATCH 0x20 /* don't execute DEVICE_NOMATCH again */ | #define DF_DONENOMATCH 0x20 /* don't execute DEVICE_NOMATCH again */ | ||||
#define DF_EXTERNALSOFTC 0x40 /* softc not allocated by us */ | #define DF_EXTERNALSOFTC 0x40 /* softc not allocated by us */ | ||||
#define DF_REBID 0x80 /* Can rebid after attach */ | #define DF_REBID 0x80 /* Can rebid after attach */ | ||||
#define DF_SUSPENDED 0x100 /* Device is suspended. */ | #define DF_SUSPENDED 0x100 /* Device is suspended. */ | ||||
#define DF_QUIET_CHILDREN 0x200 /* Default to quiet for all my children */ | #define DF_QUIET_CHILDREN 0x200 /* Default to quiet for all my children */ | ||||
#define DF_ATTACHED_ONCE 0x400 /* Has been attached at least once */ | #define DF_ATTACHED_ONCE 0x400 /* Has been attached at least once */ | ||||
#define DF_NEEDNOMATCH 0x800 /* Has a pending NOMATCH event */ | #define DF_NEEDNOMATCH 0x800 /* Has a pending NOMATCH event */ | ||||
#define DF_SUSPEND_AT_IDLE 0x1000 /* Suspend this device when idling */ | |||||
/** | /** | ||||
* @brief Device request structure used for ioctl's. | * @brief Device request structure used for ioctl's. | ||||
* | * | ||||
* Used for ioctl's on /dev/devctl2. All device ioctl's | * Used for ioctl's on /dev/devctl2. All device ioctl's | ||||
* must have parameter definitions which begin with dr_name. | * must have parameter definitions which begin with dr_name. | ||||
*/ | */ | ||||
struct devreq_buffer { | struct devreq_buffer { | ||||
▲ Show 20 Lines • Show All 511 Lines • ▼ Show 20 Lines | |||||
void device_set_flags(device_t dev, u_int32_t flags); | void device_set_flags(device_t dev, u_int32_t flags); | ||||
void device_set_softc(device_t dev, void *softc); | void device_set_softc(device_t dev, void *softc); | ||||
void device_free_softc(void *softc); | void device_free_softc(void *softc); | ||||
void device_claim_softc(device_t dev); | void device_claim_softc(device_t dev); | ||||
int device_set_unit(device_t dev, int unit); /* XXX DONT USE XXX */ | int device_set_unit(device_t dev, int unit); /* XXX DONT USE XXX */ | ||||
int device_shutdown(device_t dev); | int device_shutdown(device_t dev); | ||||
void device_unbusy(device_t dev); | void device_unbusy(device_t dev); | ||||
void device_verbose(device_t dev); | void device_verbose(device_t dev); | ||||
void device_set_idle_suspend(device_t dev); | |||||
int device_get_idle_suspend(device_t dev); | |||||
/* | /* | ||||
* Access functions for devclass. | * Access functions for devclass. | ||||
*/ | */ | ||||
int devclass_add_driver(devclass_t dc, driver_t *driver, | int devclass_add_driver(devclass_t dc, driver_t *driver, | ||||
int pass, devclass_t *dcp); | int pass, devclass_t *dcp); | ||||
devclass_t devclass_create(const char *classname); | devclass_t devclass_create(const char *classname); | ||||
int devclass_delete_driver(devclass_t busclass, driver_t *driver); | int devclass_delete_driver(devclass_t busclass, driver_t *driver); | ||||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |