ipmi_acpi.c (162562) | ipmi_acpi.c (188078) |
---|---|
1/*- 2 * Copyright (c) 2006 IronPort Systems Inc. <ambrisko@ironport.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 IronPort Systems Inc. <ambrisko@ironport.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi_acpi.c 162562 2006-09-22 22:11:29Z jhb $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi_acpi.c 188078 2009-02-03 16:39:51Z jhb $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/condvar.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/rman.h> --- 62 unchanged lines hidden (view full) --- 99 mode = "SMIC"; 100 break; 101 case BT_MODE: 102 device_printf(dev, "BT interface not supported\n"); 103 return (ENXIO); 104 case SSIF_MODE: 105 if (ACPI_FAILURE(acpi_GetInteger(devh, "_ADR", &flags))) 106 return (ENXIO); | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/condvar.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/rman.h> --- 62 unchanged lines hidden (view full) --- 99 mode = "SMIC"; 100 break; 101 case BT_MODE: 102 device_printf(dev, "BT interface not supported\n"); 103 return (ENXIO); 104 case SSIF_MODE: 105 if (ACPI_FAILURE(acpi_GetInteger(devh, "_ADR", &flags))) 106 return (ENXIO); |
107 info.address = flags >> 1; | 107 info.address = flags; |
108 device_printf(dev, "SSIF interface not supported on ACPI\n"); 109 return (0); 110 default: 111 return (ENXIO); 112 } 113 114 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, NULL, NULL) == 0) 115 type = SYS_RES_IOPORT; --- 95 unchanged lines hidden --- | 108 device_printf(dev, "SSIF interface not supported on ACPI\n"); 109 return (0); 110 default: 111 return (ENXIO); 112 } 113 114 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, NULL, NULL) == 0) 115 type = SYS_RES_IOPORT; --- 95 unchanged lines hidden --- |