Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/device.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | struct class { | ||||
devclass_t bsdclass; | devclass_t bsdclass; | ||||
const struct dev_pm_ops *pm; | const struct dev_pm_ops *pm; | ||||
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 { | struct dev_pm_ops { | ||||
int (*prepare)(struct device *dev); | |||||
hselasky: You will need to bump the __FreeBSD_version when changing this structure. | |||||
Done Inline ActionsYes we intend to bump the version anyways. johalun: Yes we intend to bump the version anyways. | |||||
int (*suspend)(struct device *dev); | int (*suspend)(struct device *dev); | ||||
int (*suspend_late)(struct device *dev); | int (*suspend_late)(struct device *dev); | ||||
int (*resume)(struct device *dev); | int (*resume)(struct device *dev); | ||||
int (*resume_early)(struct device *dev); | int (*resume_early)(struct device *dev); | ||||
int (*freeze)(struct device *dev); | int (*freeze)(struct device *dev); | ||||
int (*freeze_late)(struct device *dev); | int (*freeze_late)(struct device *dev); | ||||
int (*thaw)(struct device *dev); | int (*thaw)(struct device *dev); | ||||
int (*thaw_early)(struct device *dev); | int (*thaw_early)(struct device *dev); | ||||
▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines |
You will need to bump the __FreeBSD_version when changing this structure.