Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/linuxkpi/common/include/linux/device.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | struct class { | ||||
struct module *owner; | struct module *owner; | ||||
struct kobject kobj; | struct kobject kobj; | ||||
devclass_t bsdclass; | devclass_t bsdclass; | ||||
void (*class_release)(struct class *class); | void (*class_release)(struct class *class); | ||||
void (*dev_release)(struct device *dev); | void (*dev_release)(struct device *dev); | ||||
char * (*devnode)(struct device *dev, umode_t *mode); | char * (*devnode)(struct device *dev, umode_t *mode); | ||||
}; | }; | ||||
struct dev_pm_ops { | |||||
int (*suspend)(struct device *dev); | |||||
int (*suspend_late)(struct device *dev); | |||||
int (*resume)(struct device *dev); | |||||
int (*resume_early)(struct device *dev); | |||||
int (*freeze)(struct device *dev); | |||||
int (*freeze_late)(struct device *dev); | |||||
int (*thaw)(struct device *dev); | |||||
int (*poweroff)(struct device *dev); | |||||
int (*poweroff_late)(struct device *dev); | |||||
int (*restore)(struct device *dev); | |||||
int (*restore_early)(struct device *dev); | |||||
int (*runtime_suspend)(struct device *dev); | |||||
int (*runtime_resume)(struct device *dev); | |||||
int (*runtime_idle)(struct device *dev); | |||||
}; | |||||
struct device { | struct device { | ||||
struct device *parent; | struct device *parent; | ||||
struct list_head irqents; | struct list_head irqents; | ||||
device_t bsddev; | device_t bsddev; | ||||
/* | /* | ||||
* The following flag is used to determine if the LinuxKPI is | * The following flag is used to determine if the LinuxKPI is | ||||
* responsible for detaching the BSD device or not. If the | * responsible for detaching the BSD device or not. If the | ||||
* LinuxKPI got the BSD device using devclass_get_device(), it | * LinuxKPI got the BSD device using devclass_get_device(), it | ||||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |