diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-08 08:54:11 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-08 08:54:11 +0000 |
commit | e882204423fffae258e60fde16b40179093743b1 (patch) | |
tree | 5c159add3d22a85f6b4ce6aa3328fd5f94408e9a | |
parent | d3383a11de9591315924e66ed384758762875b7b (diff) |
Add drive state definitions.
-rw-r--r-- | sys/dev/pci/ips.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 0ba29855d3d..b4ec9ef01e7 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.31 2009/01/09 21:47:08 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.32 2009/02/08 08:54:10 grange Exp $ */ /* * Copyright (c) 2006, 2007 Alexander Yurchenko <grange@openbsd.org> @@ -165,6 +165,13 @@ struct ips_driveinfo { u_int8_t __reserved; u_int8_t raid; u_int8_t state; +#define IPS_DS_FREE 0x00 +#define IPS_DS_OFFLINE 0x02 +#define IPS_DS_ONLINE 0x03 +#define IPS_DS_DEGRADED 0x04 +#define IPS_DS_SYS 0x06 +#define IPS_DS_CRS 0x24 + u_int32_t seccnt; } drive[IPS_MAXDRIVES]; }; |