tbfadt.c (228110) | tbfadt.c (229989) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: tbfadt - FADT table utilities 4 * 5 *****************************************************************************/ 6 7/* | 1/****************************************************************************** 2 * 3 * Module Name: tbfadt - FADT table utilities 4 * 5 *****************************************************************************/ 6 7/* |
8 * Copyright (C) 2000 - 2011, Intel Corp. | 8 * Copyright (C) 2000 - 2012, Intel Corp. |
9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. --- 55 unchanged lines hidden (view full) --- 72 void); 73 74 75/* Table for conversion of FADT to common internal format and FADT validation */ 76 77typedef struct acpi_fadt_info 78{ 79 char *Name; | 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. --- 55 unchanged lines hidden (view full) --- 72 void); 73 74 75/* Table for conversion of FADT to common internal format and FADT validation */ 76 77typedef struct acpi_fadt_info 78{ 79 char *Name; |
80 UINT8 Address64; 81 UINT8 Address32; 82 UINT8 Length; | 80 UINT16 Address64; 81 UINT16 Address32; 82 UINT16 Length; |
83 UINT8 DefaultLength; 84 UINT8 Type; 85 86} ACPI_FADT_INFO; 87 | 83 UINT8 DefaultLength; 84 UINT8 Type; 85 86} ACPI_FADT_INFO; 87 |
88#define ACPI_FADT_OPTIONAL 0 |
|
88#define ACPI_FADT_REQUIRED 1 89#define ACPI_FADT_SEPARATE_LENGTH 2 90 91static ACPI_FADT_INFO FadtInfoTable[] = 92{ 93 {"Pm1aEventBlock", 94 ACPI_FADT_OFFSET (XPm1aEventBlock), 95 ACPI_FADT_OFFSET (Pm1aEventBlock), 96 ACPI_FADT_OFFSET (Pm1EventLength), 97 ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ 98 ACPI_FADT_REQUIRED}, 99 100 {"Pm1bEventBlock", 101 ACPI_FADT_OFFSET (XPm1bEventBlock), 102 ACPI_FADT_OFFSET (Pm1bEventBlock), 103 ACPI_FADT_OFFSET (Pm1EventLength), 104 ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ | 89#define ACPI_FADT_REQUIRED 1 90#define ACPI_FADT_SEPARATE_LENGTH 2 91 92static ACPI_FADT_INFO FadtInfoTable[] = 93{ 94 {"Pm1aEventBlock", 95 ACPI_FADT_OFFSET (XPm1aEventBlock), 96 ACPI_FADT_OFFSET (Pm1aEventBlock), 97 ACPI_FADT_OFFSET (Pm1EventLength), 98 ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ 99 ACPI_FADT_REQUIRED}, 100 101 {"Pm1bEventBlock", 102 ACPI_FADT_OFFSET (XPm1bEventBlock), 103 ACPI_FADT_OFFSET (Pm1bEventBlock), 104 ACPI_FADT_OFFSET (Pm1EventLength), 105 ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ |
105 0}, | 106 ACPI_FADT_OPTIONAL}, |
106 107 {"Pm1aControlBlock", 108 ACPI_FADT_OFFSET (XPm1aControlBlock), 109 ACPI_FADT_OFFSET (Pm1aControlBlock), 110 ACPI_FADT_OFFSET (Pm1ControlLength), 111 ACPI_PM1_REGISTER_WIDTH, 112 ACPI_FADT_REQUIRED}, 113 114 {"Pm1bControlBlock", 115 ACPI_FADT_OFFSET (XPm1bControlBlock), 116 ACPI_FADT_OFFSET (Pm1bControlBlock), 117 ACPI_FADT_OFFSET (Pm1ControlLength), 118 ACPI_PM1_REGISTER_WIDTH, | 107 108 {"Pm1aControlBlock", 109 ACPI_FADT_OFFSET (XPm1aControlBlock), 110 ACPI_FADT_OFFSET (Pm1aControlBlock), 111 ACPI_FADT_OFFSET (Pm1ControlLength), 112 ACPI_PM1_REGISTER_WIDTH, 113 ACPI_FADT_REQUIRED}, 114 115 {"Pm1bControlBlock", 116 ACPI_FADT_OFFSET (XPm1bControlBlock), 117 ACPI_FADT_OFFSET (Pm1bControlBlock), 118 ACPI_FADT_OFFSET (Pm1ControlLength), 119 ACPI_PM1_REGISTER_WIDTH, |
119 0}, | 120 ACPI_FADT_OPTIONAL}, |
120 121 {"Pm2ControlBlock", 122 ACPI_FADT_OFFSET (XPm2ControlBlock), 123 ACPI_FADT_OFFSET (Pm2ControlBlock), 124 ACPI_FADT_OFFSET (Pm2ControlLength), 125 ACPI_PM2_REGISTER_WIDTH, 126 ACPI_FADT_SEPARATE_LENGTH}, 127 --- 23 unchanged lines hidden (view full) --- 151 (sizeof (FadtInfoTable) / sizeof (ACPI_FADT_INFO)) 152 153 154/* Table used to split Event Blocks into separate status/enable registers */ 155 156typedef struct acpi_fadt_pm_info 157{ 158 ACPI_GENERIC_ADDRESS *Target; | 121 122 {"Pm2ControlBlock", 123 ACPI_FADT_OFFSET (XPm2ControlBlock), 124 ACPI_FADT_OFFSET (Pm2ControlBlock), 125 ACPI_FADT_OFFSET (Pm2ControlLength), 126 ACPI_PM2_REGISTER_WIDTH, 127 ACPI_FADT_SEPARATE_LENGTH}, 128 --- 23 unchanged lines hidden (view full) --- 152 (sizeof (FadtInfoTable) / sizeof (ACPI_FADT_INFO)) 153 154 155/* Table used to split Event Blocks into separate status/enable registers */ 156 157typedef struct acpi_fadt_pm_info 158{ 159 ACPI_GENERIC_ADDRESS *Target; |
159 UINT8 Source; | 160 UINT16 Source; |
160 UINT8 RegisterNum; 161 162} ACPI_FADT_PM_INFO; 163 164static ACPI_FADT_PM_INFO FadtPmInfoTable[] = 165{ 166 {&AcpiGbl_XPm1aStatus, 167 ACPI_FADT_OFFSET (XPm1aEventBlock), --- 536 unchanged lines hidden --- | 161 UINT8 RegisterNum; 162 163} ACPI_FADT_PM_INFO; 164 165static ACPI_FADT_PM_INFO FadtPmInfoTable[] = 166{ 167 {&AcpiGbl_XPm1aStatus, 168 ACPI_FADT_OFFSET (XPm1aEventBlock), --- 536 unchanged lines hidden --- |