hwacpi.c (6e9041c6ddd6cbdc61d87bcaca8ca7bb17c28377) hwacpi.c (1d1ea1b723d9f239f736b8cf284327cbbf9d15d1)
1/******************************************************************************
2 *
3 * Module Name: hwacpi - ACPI Hardware Initialization/Mode Interface
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 94 unchanged lines hidden (view full) ---

103
104 status = acpi_hw_write_port(acpi_gbl_FADT.smi_command,
105 (u32) acpi_gbl_FADT.acpi_enable, 8);
106 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
107 "Attempting to enable ACPI mode\n"));
108 break;
109
110 case ACPI_SYS_MODE_LEGACY:
1/******************************************************************************
2 *
3 * Module Name: hwacpi - ACPI Hardware Initialization/Mode Interface
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 94 unchanged lines hidden (view full) ---

103
104 status = acpi_hw_write_port(acpi_gbl_FADT.smi_command,
105 (u32) acpi_gbl_FADT.acpi_enable, 8);
106 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
107 "Attempting to enable ACPI mode\n"));
108 break;
109
110 case ACPI_SYS_MODE_LEGACY:
111
112 /*
113 * BIOS should clear all fixed status bits and restore fixed event
114 * enable bits to default
115 */
116 status = acpi_hw_write_port(acpi_gbl_FADT.smi_command,
117 (u32)acpi_gbl_FADT.acpi_disable, 8);
118 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
119 "Attempting to enable Legacy (non-ACPI) mode\n"));
120 break;
121
122 default:
111 /*
112 * BIOS should clear all fixed status bits and restore fixed event
113 * enable bits to default
114 */
115 status = acpi_hw_write_port(acpi_gbl_FADT.smi_command,
116 (u32)acpi_gbl_FADT.acpi_disable, 8);
117 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
118 "Attempting to enable Legacy (non-ACPI) mode\n"));
119 break;
120
121 default:
122
123 return_ACPI_STATUS(AE_BAD_PARAMETER);
124 }
125
126 if (ACPI_FAILURE(status)) {
127 ACPI_EXCEPTION((AE_INFO, status,
128 "Could not write ACPI mode change"));
129 return_ACPI_STATUS(status);
130 }

--- 51 unchanged lines hidden ---
123 return_ACPI_STATUS(AE_BAD_PARAMETER);
124 }
125
126 if (ACPI_FAILURE(status)) {
127 ACPI_EXCEPTION((AE_INFO, status,
128 "Could not write ACPI mode change"));
129 return_ACPI_STATUS(status);
130 }

--- 51 unchanged lines hidden ---