Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Add support for iBBU-09 to show BBU voltage, current...
details: https://anonhg.NetBSD.org/src/rev/c20d35271b3d
branches: trunk
changeset: 366043:c20d35271b3d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed May 11 15:30:33 2022 +0000
description:
Add support for iBBU-09 to show BBU voltage, current and temp correctly.
diffstat:
sys/dev/ic/mfireg.h | 3 ++-
sys/dev/pci/mfii.c | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r c5275c52832e -r c20d35271b3d sys/dev/ic/mfireg.h
--- a/sys/dev/ic/mfireg.h Wed May 11 15:24:45 2022 +0000
+++ b/sys/dev/ic/mfireg.h Wed May 11 15:30:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfireg.h,v 1.17 2022/05/11 15:20:54 msaitoh Exp $ */
+/* $NetBSD: mfireg.h,v 1.18 2022/05/11 15:30:33 msaitoh Exp $ */
/* $OpenBSD: mfireg.h,v 1.24 2006/06/19 19:05:45 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco%peereboom.us@localhost>
@@ -1234,6 +1234,7 @@
#define MFI_BBU_TYPE_NONE 0
#define MFI_BBU_TYPE_IBBU 1
#define MFI_BBU_TYPE_BBU 2
+#define MFI_BBU_TYPE_IBBU09 5
uint8_t reserved;
uint16_t voltage;
int16_t current;
diff -r c5275c52832e -r c20d35271b3d sys/dev/pci/mfii.c
--- a/sys/dev/pci/mfii.c Wed May 11 15:24:45 2022 +0000
+++ b/sys/dev/pci/mfii.c Wed May 11 15:30:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfii.c,v 1.12 2022/05/11 15:24:45 msaitoh Exp $ */
+/* $NetBSD: mfii.c,v 1.13 2022/05/11 15:30:33 msaitoh Exp $ */
/* $OpenBSD: mfii.c,v 1.58 2018/08/14 05:22:21 jmatthew Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.12 2022/05/11 15:24:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.13 2022/05/11 15:30:33 msaitoh Exp $");
#include "bio.h"
@@ -3712,6 +3712,7 @@
soh_bad = 0;
break;
case MFI_BBU_TYPE_BBU:
+ case MFI_BBU_TYPE_IBBU09:
mask = MFI_BBU_STATE_BAD_BBU;
soh_bad = (bbu.detail.bbu.is_SOH_good == 0);
break;
Home |
Main Index |
Thread Index |
Old Index