1 /* $NetBSD: device_if.h,v 1.7 2022/09/13 08:30:57 riastradh Exp $ */ 2 3 #ifndef _SYS_DEVICE_IF_H 4 #define _SYS_DEVICE_IF_H 5 6 #include <sys/stdint.h> 7 8 struct device; 9 typedef struct device *device_t; 10 11 #if defined(_KERNEL) || defined(_KMEMUSER) 12 typedef enum devact_level { 13 DEVACT_LEVEL_CLASS = 0 14 , DEVACT_LEVEL_DRIVER = 1 15 , DEVACT_LEVEL_BUS = 2 16 } devact_level_t; 17 18 #define DEVACT_LEVEL_FULL DEVACT_LEVEL_CLASS 19 20 struct device_lock; 21 struct device_suspensor; 22 23 typedef uint64_t devgen_t; 24 25 typedef struct device_lock *device_lock_t; 26 typedef struct device_suspensor device_suspensor_t; 27 #endif 28 29 #endif /* _SYS_DEVICE_IF_H */ 30