]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ppi/SuperIo.h
MdePkg/PiFirmwareFile: fix undefined behavior in FFS_FILE_SIZE
[mirror_edk2.git] / MdePkg / Include / Ppi / SuperIo.h
index 21f91485c31b16d570a5b125825b65978560dba5..8daed326c0f963a0f678f494e9011b8c7d90359a 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   This PPI provides the super I/O register access functionality.\r
 \r
-  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-  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) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Revision Reference:\r
   This PPI is from PI Version 1.2.1.\r
@@ -34,7 +28,7 @@ typedef UINT16 EFI_SIO_REGISTER;
 \r
 /**\r
   Read a Super I/O register.\r
\r
+\r
   The register is specified as an 8-bit logical device number and an 8-bit\r
   register value. The logical device numbers for specific SIO devices can be\r
   determined using the Info member of the PPI structure.\r
@@ -47,8 +41,8 @@ typedef UINT16 EFI_SIO_REGISTER;
                       track the current state of the configuration mode (if any)\r
                       and turn on configuration mode (if necessary) prior to\r
                       register access.\r
-  @param Register     A value specifying the logical device number (bits 15:8) \r
-                      and the register to read (bits 7:0). The logical device \r
+  @param Register     A value specifying the logical device number (bits 15:8)\r
+                      and the register to read (bits 7:0). The logical device\r
                       number of EFI_SIO_LDN_GLOBAL indicates that global\r
                       registers will be used.\r
   @param IoData       A pointer to the returned register value.\r
@@ -85,8 +79,8 @@ EFI_STATUS
                       track the current state of the configuration mode (if any)\r
                       and turn on configuration mode (if necessary) prior to\r
                       register access.\r
-  @param Register     A value specifying the logical device number (bits 15:8) \r
-                      and the register to read (bits 7:0). The logical device \r
+  @param Register     A value specifying the logical device number (bits 15:8)\r
+                      and the register to read (bits 7:0). The logical device\r
                       number of EFI_SIO_LDN_GLOBAL indicates that global\r
                       registers will be used.\r
   @param IoData       A pointer to the returned register value.\r
@@ -97,7 +91,7 @@ EFI_STATUS
   @retval EFI_INVALID_PARAMETERS Register was out of range for this device.\r
   @retval EFI_INVALID_PARAMETERS IoData was NULL\r
   @retval EFI_DEVICE_ERROR       There was a device fault or the device was not present.\r
-**/ \r
+**/\r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_PEI_SIO_REGISTER_WRITE)(\r
@@ -129,7 +123,7 @@ EFI_STATUS
 \r
   @retval EFI_SUCCESS             The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETERS  Command is NULL.\r
-**/ \r
+**/\r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_PEI_SIO_REGISTER_MODIFY)(\r
@@ -142,7 +136,7 @@ EFI_STATUS
 ///\r
 /// Specifies the end of the information list.\r
 ///\r
-#define EFI_ACPI_PNP_HID_END       0\r
+#define EFI_ACPI_PNP_HID_END       EFI_PNP_ID (0x0000)\r
 \r
 typedef UINT32                     EFI_ACPI_HID;\r
 typedef UINT32                     EFI_ACPI_UID;\r
@@ -186,4 +180,4 @@ struct _EFI_SIO_PPI {
 \r
 extern EFI_GUID gEfiSioPpiGuid;\r
 \r
-#endif \r
+#endif\r