1/* $NetBSD: device_if.h,v 1.5 2010/02/24 22:38:10 dyoung Exp $ */
2
3#ifndef _SYS_DEVICE_IF_H
4#define _SYS_DEVICE_IF_H
5
6struct device;
7typedef struct device *device_t;
8
9#ifdef _KERNEL
10typedef enum devact_level {
11 DEVACT_LEVEL_CLASS = 0
12 , DEVACT_LEVEL_DRIVER = 1
13 , DEVACT_LEVEL_BUS = 2
14} devact_level_t;
15
16#define DEVACT_LEVEL_FULL DEVACT_LEVEL_CLASS
17
18struct device_lock;
19struct device_suspensor;
20
21typedef uint64_t devgen_t;
22
23typedef struct device_lock *device_lock_t;
24typedef struct device_suspensor device_suspensor_t;
25#endif
26
27#endif /* _SYS_DEVICE_IF_H */
28