-/** @file \r
+/** @file\r
ACPI Watchdog Resource Table (WDRT) as defined at\r
Microsoft Windows Hardware Developer Central.\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation\r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
**/\r
\r
#ifndef _WATCHDOG_RESOURCE_TABLE_H_\r
\r
#include <IndustryStandard/Acpi.h>\r
\r
+//\r
+// Ensure proper structure formats\r
+//\r
+#pragma pack(1)\r
+\r
///\r
/// Watchdog Resource Table definition.\r
///\r
typedef struct {\r
- EFI_ACPI_DESCRIPTION_HEADER Header;\r
- EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE ControlRegisterAddress;\r
- EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE CountRegisterAddress;\r
- UINT16 PCIDeviceID;\r
- UINT16 PCIVendorID;\r
- UINT8 PCIBusNumber;\r
- UINT8 PCIDeviceNumber;\r
- UINT8 PCIFunctionNumber;\r
- UINT8 PCISegment;\r
- UINT16 MaxCount;\r
- UINT8 Units;\r
+ EFI_ACPI_DESCRIPTION_HEADER Header;\r
+ EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE ControlRegisterAddress;\r
+ EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE CountRegisterAddress;\r
+ UINT16 PCIDeviceID;\r
+ UINT16 PCIVendorID;\r
+ UINT8 PCIBusNumber;\r
+ UINT8 PCIDeviceNumber;\r
+ UINT8 PCIFunctionNumber;\r
+ UINT8 PCISegment;\r
+ UINT16 MaxCount;\r
+ UINT8 Units;\r
} EFI_ACPI_WATCHDOG_RESOURCE_1_0_TABLE;\r
\r
+#pragma pack()\r
+\r
//\r
// WDRT Revision (defined in spec)\r
//\r
//\r
// WDRT 1.0 Count Unit\r
//\r
-#define EFI_ACPI_WDRT_1_0_COUNT_UNIT_1_SEC_PER_COUNT 1\r
-#define EFI_ACPI_WDRT_1_0_COUNT_UNIT_100_MILLISEC_PER_COUNT 2\r
-#define EFI_ACPI_WDRT_1_0_COUNT_UNIT_10_MILLISEC_PER_COUNT 3\r
+#define EFI_ACPI_WDRT_1_0_COUNT_UNIT_1_SEC_PER_COUNT 1\r
+#define EFI_ACPI_WDRT_1_0_COUNT_UNIT_100_MILLISEC_PER_COUNT 2\r
+#define EFI_ACPI_WDRT_1_0_COUNT_UNIT_10_MILLISEC_PER_COUNT 3\r
\r
#endif\r