root / lab4 / .minix-src / include / sys / device_if.h @ 14
History | View | Annotate | Download (559 Bytes)
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 |
|
6 |
struct device;
|
7 |
typedef struct device *device_t; |
8 |
|
9 |
#ifdef _KERNEL
|
10 |
typedef 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 |
|
18 |
struct device_lock;
|
19 |
struct device_suspensor;
|
20 |
|
21 |
typedef uint64_t devgen_t;
|
22 |
|
23 |
typedef struct device_lock *device_lock_t; |
24 |
typedef struct device_suspensor device_suspensor_t; |
25 |
#endif
|
26 |
|
27 |
#endif /* _SYS_DEVICE_IF_H */ |