summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfireg.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-05-01 03:44:23 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-05-01 03:44:23 +0000
commit64cb31eef5469c67291ea4aedc1bd3bd057ca4ce (patch)
treee757d575b56a5df9fca1f3533c9cc64fd6637308 /sys/dev/ic/mfireg.h
parent07825f8062303ef331ada74e5c75a1b5afb5a136 (diff)
provide a sensor for the battery backup unit (bbu) on mfi boards that
support it. now i can tell (a bit better) why io might be slow on some of my boxes.
Diffstat (limited to 'sys/dev/ic/mfireg.h')
-rw-r--r--sys/dev/ic/mfireg.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/ic/mfireg.h b/sys/dev/ic/mfireg.h
index 865ddb63379..0a7aeffba7b 100644
--- a/sys/dev/ic/mfireg.h
+++ b/sys/dev/ic/mfireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfireg.h,v 1.38 2013/05/01 01:56:29 dlg Exp $ */
+/* $OpenBSD: mfireg.h,v 1.39 2013/05/01 03:44:22 dlg Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -1091,6 +1091,18 @@ struct mfi_bbu_status {
"\013REPLACE_PACK" \
"\014CAPACITY_LOW" \
"\015LEARN_REQUIRED"
+#define MFI_BBU_STATE_BAD_IBBU ( \
+ MFI_BBU_STATE_PACK_MISSING | \
+ MFI_BBU_STATE_VOLTAGE_LOW | \
+ MFI_BBU_STATE_DISCHARGE_ACTIVE | \
+ MFI_BBU_STATE_LEARN_CYC_REQ | \
+ MFI_BBU_STATE_LEARN_CYC_ACTIVE | \
+ MFI_BBU_STATE_REPLACE_PACK | \
+ MFI_BBU_STATE_CAPACITY_LOW)
+#define MFI_BBU_STATE_BAD_BBU ( \
+ MFI_BBU_STATE_PACK_MISSING | \
+ MFI_BBU_STATE_REPLACE_PACK | \
+ MFI_BBU_STATE_CAPACITY_LOW)
uint8_t pad[20];
union mfi_bbu_status_detail detail;