Wed Dec 2 12:52:28 2009 UTC ()
KNF


(stacktic)
diff -r1.3 -r1.4 src/sys/sys/device_if.h

cvs diff -r1.3 -r1.4 src/sys/sys/device_if.h (switch to unified diff)

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