diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-04-06 06:41:43 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-04-06 06:41:43 +0000 |
commit | ae4bd25363a42e533d1655f3f8676a5ce572624f (patch) | |
tree | 42629cf463a4ca4b04949009a28668669e790ded /sys/dev/ccdvar.h | |
parent | 6d821bb9984a85702b61182e670a2d496a067fa8 (diff) |
use rwlocks instead of hand-rolled. make the softc private parts private.
this means making ccdconfig "SMALL" to turn off the kvm groveling nonsense
ok deraadt millert pedro todd
Diffstat (limited to 'sys/dev/ccdvar.h')
-rw-r--r-- | sys/dev/ccdvar.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sys/dev/ccdvar.h b/sys/dev/ccdvar.h index e84334234b4..c3a7d7464d1 100644 --- a/sys/dev/ccdvar.h +++ b/sys/dev/ccdvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ccdvar.h,v 1.8 2005/03/25 17:51:16 mickey Exp $ */ +/* $OpenBSD: ccdvar.h,v 1.9 2007/04/06 06:41:42 tedu Exp $ */ /* $NetBSD: ccdvar.h,v 1.11 1996/02/28 01:08:32 thorpej Exp $ */ /*- @@ -181,30 +181,6 @@ struct ccdgeom { }; /* - * A concatenated disk is described after initialization by this structure. - */ -struct ccd_softc { - struct disk sc_dkdev; /* generic disk device info */ - struct ccdgeom sc_geom; /* pseudo geometry info */ - struct ccdcinfo *sc_cinfo; /* component info */ - struct ccdiinfo *sc_itable; /* interleave table */ - char sc_xname[8]; /* XXX external name */ - size_t sc_size; /* size of ccd */ - int sc_flags; /* flags */ - int sc_cflags; /* copy of ccd_flags */ - int sc_ileave; /* interleave */ - u_int sc_nccdisks; /* # of components */ - u_int sc_nccunits; /* # of components for data */ -}; - -/* sc_flags */ -#define CCDF_INITED 0x01 /* unit has been initialized */ -#define CCDF_WLABEL 0x02 /* label area is writable */ -#define CCDF_LABELLING 0x04 /* unit is currently being labelled */ -#define CCDF_WANTED 0x40 /* someone is waiting to obtain a lock */ -#define CCDF_LOCKED 0x80 /* unit is locked */ - -/* * Before you can use a unit, it must be configured with CCDIOCSET. * The configuration persists across opens and closes of the device; * a CCDIOCCLR must be used to reset a configuration. An attempt to |