diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-06-04 07:36:07 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-06-04 07:36:07 +0200 |
commit | f55b47ebf4e9bd0dd1e5e46011404456b7cd2825 (patch) | |
tree | 49e2624cfa5fd82c1eb1b83befa50f0397589ffb | |
parent | 77042ddb052bbad8de75ffe7e46d5ec5b40c8c06 (diff) |
remove redundant fields in mach_device.
-rw-r--r-- | libmachdev/dev_hdr.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libmachdev/dev_hdr.h b/libmachdev/dev_hdr.h index db44f712..f6394256 100644 --- a/libmachdev/dev_hdr.h +++ b/libmachdev/dev_hdr.h @@ -104,21 +104,6 @@ typedef struct emul_device *emul_device_t; struct mach_device { struct port_info port; struct emul_device dev; /* the real device structure */ - struct mutex lock; - short state; /* state: */ -#define DEV_STATE_INIT 0 /* not open */ -#define DEV_STATE_OPENING 1 /* being opened */ -#define DEV_STATE_OPEN 2 /* open */ -#define DEV_STATE_CLOSING 3 /* being closed */ - short flag; /* random flags: */ -#define D_EXCL_OPEN 0x0001 /* open only once */ - short open_count; /* number of times open */ - short io_in_progress; /* number of IOs in progress */ - boolean_t io_wait; /* someone waiting for IO to finish */ - - int dev_number; /* device number */ - int bsize; /* replacement for DEV_BSIZE */ - struct dev_ops *dev_ops; /* and operations vector */ }; typedef struct mach_device *mach_device_t; #define MACH_DEVICE_NULL ((mach_device_t)0) |