mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
sys/param.h was manually adjusted to not define __NetBSD_Version__ since it will be defined by the compiler.
29 lines
No EOL
614 B
C
Vendored
29 lines
No EOL
614 B
C
Vendored
/* $NetBSD: device_if.h,v 1.7 2022/09/13 08:30:57 riastradh Exp $ */
|
|
|
|
#ifndef _SYS_DEVICE_IF_H
|
|
#define _SYS_DEVICE_IF_H
|
|
|
|
#include <sys/stdint.h>
|
|
|
|
struct device;
|
|
typedef struct device *device_t;
|
|
|
|
#if defined(_KERNEL) || defined(_KMEMUSER)
|
|
typedef enum devact_level {
|
|
DEVACT_LEVEL_CLASS = 0
|
|
, DEVACT_LEVEL_DRIVER = 1
|
|
, DEVACT_LEVEL_BUS = 2
|
|
} devact_level_t;
|
|
|
|
#define DEVACT_LEVEL_FULL DEVACT_LEVEL_CLASS
|
|
|
|
struct device_lock;
|
|
struct device_suspensor;
|
|
|
|
typedef uint64_t devgen_t;
|
|
|
|
typedef struct device_lock *device_lock_t;
|
|
typedef struct device_suspensor device_suspensor_t;
|
|
#endif
|
|
|
|
#endif /* _SYS_DEVICE_IF_H */ |