summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdevinfo
diff options
context:
space:
mode:
authorstephh <none@none>2008-08-02 03:26:27 -0700
committerstephh <none@none>2008-08-02 03:26:27 -0700
commit25c6ff4b77fcddf4097ce78a8277275ca603b46c (patch)
tree418fc0cf406815a0bf23f782b349ac0653121a77 /usr/src/lib/libdevinfo
parent5d2225f6bb395dbd38b87e1f0af3ce4afbca42f3 (diff)
downloadillumos-joyent-25c6ff4b77fcddf4097ce78a8277275ca603b46c.tar.gz
PSARC/2008/487 Repair Observability changes
6534561 need means of finding existing fault state of a resource 6637804 fmd should distinguish between "repaired" and "acquitted" resources 6637812 fmd_nvl_fmri_has_fault() required to report if a given fault has been diagnosed on a resourtce/fru 6663744 send list.updated events when an individual suspect in a suspect list is repaired 6682295 need fmd_nvl_fmri_replaced() functionality 6686317 extend fmd case state to include final "repair responses complete" state 6712074 need scheme/topo interface to report full service state of a resource 6720169 add location member to the sun-fm-mib
Diffstat (limited to 'usr/src/lib/libdevinfo')
-rw-r--r--usr/src/lib/libdevinfo/devinfo.c2
-rw-r--r--usr/src/lib/libdevinfo/libdevinfo.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/lib/libdevinfo/devinfo.c b/usr/src/lib/libdevinfo/devinfo.c
index 582aad2156..db6a62cab1 100644
--- a/usr/src/lib/libdevinfo/devinfo.c
+++ b/usr/src/lib/libdevinfo/devinfo.c
@@ -978,6 +978,8 @@ di_state(di_node_t node)
result |= DI_DEVICE_OFFLINE;
if (DI_NODE(node)->state & DEVI_DEVICE_DOWN)
result |= DI_DEVICE_OFFLINE;
+ if (DI_NODE(node)->state & DEVI_DEVICE_DEGRADED)
+ result |= DI_DEVICE_DEGRADED;
if (DI_NODE(node)->state & DEVI_BUS_QUIESCED)
result |= DI_BUS_QUIESCED;
if (DI_NODE(node)->state & DEVI_BUS_DOWN)
diff --git a/usr/src/lib/libdevinfo/libdevinfo.h b/usr/src/lib/libdevinfo/libdevinfo.h
index ca745b3b31..0bea41674c 100644
--- a/usr/src/lib/libdevinfo/libdevinfo.h
+++ b/usr/src/lib/libdevinfo/libdevinfo.h
@@ -82,6 +82,7 @@ extern "C" {
#define DI_DRIVER_DETACHED 0x8000
#define DI_DEVICE_OFFLINE 0x1
#define DI_DEVICE_DOWN 0x2
+#define DI_DEVICE_DEGRADED 0x4
#define DI_BUS_QUIESCED 0x100
#define DI_BUS_DOWN 0x200