Module Name:    src
Committed By:   nat
Date:           Mon Sep 22 13:30:55 UTC 2014

Modified Files:
        src/sys/arch/x86/x86: ipmi.c

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/x86/x86/ipmi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/ipmi.c
diff -u src/sys/arch/x86/x86/ipmi.c:1.58 src/sys/arch/x86/x86/ipmi.c:1.59
--- src/sys/arch/x86/x86/ipmi.c:1.58	Sun Sep 21 16:40:53 2014
+++ src/sys/arch/x86/x86/ipmi.c	Mon Sep 22 13:30:55 2014
@@ -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 @@ ipmi_smbios_probe(struct smbios_ipmi *pi
 	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;

Reply via email to