Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Make remote access cards on HP ProLiant mic...



details:   https://anonhg.NetBSD.org/src/rev/9663ece418d0
branches:  trunk
changeset: 332465:9663ece418d0
user:      nat <nat%NetBSD.org@localhost>
date:      Mon Sep 22 13:30:55 2014 +0000

description:
Make remote access cards on HP ProLiant microservers N36L,
N40L and N54L work with ipmi(4).

Addresses PR 48233.

This commit was approved by christos@

diffstat:

 sys/arch/x86/x86/ipmi.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r f663735cdb10 -r 9663ece418d0 sys/arch/x86/x86/ipmi.c
--- a/sys/arch/x86/x86/ipmi.c   Mon Sep 22 13:01:44 2014 +0000
+++ b/sys/arch/x86/x86/ipmi.c   Mon Sep 22 13:30:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipmi.c,v 1.58 2014/09/21 16:40:53 christos Exp $ */
+/*     $NetBSD: ipmi.c,v 1.59 2014/09/22 13:30:55 nat Exp $ */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipmi.c,v 1.58 2014/09/21 16:40:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipmi.c,v 1.59 2014/09/22 13:30:55 nat Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -938,6 +938,14 @@
        if (pipmi->smipmi_base_flags & SMIPMI_FLAG_ODDOFFSET)
                ia->iaa_if_iobase++;
 
+       if (strcmp(pmf_get_platform("system-product"),
+            "ProLiant MicroServer") == 0) {
+                ia->iaa_if_iospacing = 1;
+                ia->iaa_if_iobase = pipmi->smipmi_base_address - 7;
+                ia->iaa_if_iotype = 'i';
+                return;
+        }
+
        if (pipmi->smipmi_base_flags == 0x7f) {
                /* IBM 325 eServer workaround */
                ia->iaa_if_iospacing = 1;



Home | Main Index | Thread Index | Old Index