6c8f7fc3ba
. add all sys/sys headers not already present to help compiling . take netbsd dirent.h and struct dirent; main result is introducing d_type and d_namlen that have to be set by getdents() in all FS code implementing it . d_off is gone . alignment of the struct has become 8 bytes instead of 4 . remove _MAX_BLOCK_SIZE, _MIN_BLOCK_SIZE, _STATIC_BLOCK_SIZE . libminlib: cleanup unused yet duplicate code . mfs: throw out the long-broken v1, v2 support . new test for dirent contents filled by getdents() Change-Id: I1459755c7ba5e5d1c9396d3a587ce6e63ddc283e
28 lines
559 B
C
28 lines
559 B
C
/* $NetBSD: device_if.h,v 1.5 2010/02/24 22:38:10 dyoung Exp $ */
|
|
|
|
#ifndef _SYS_DEVICE_IF_H
|
|
#define _SYS_DEVICE_IF_H
|
|
|
|
struct device;
|
|
typedef struct device *device_t;
|
|
|
|
#ifdef _KERNEL
|
|
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 */
|