]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/PchRegs/PchRegsHda.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / SouthCluster / Include / PchRegs / PchRegsHda.h
diff --git a/Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/PchRegs/PchRegsHda.h b/Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/PchRegs/PchRegsHda.h
new file mode 100644 (file)
index 0000000..5d68925
--- /dev/null
@@ -0,0 +1,56 @@
+/**\r
+\r
+Copyright (c) 2012  - 2014, Intel Corporation. All rights reserved\r
+\r
+  This program and the accompanying materials are licensed and made available under\r
+  the terms and conditions of the BSD License that accompanies this distribution.\r
+  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
+\r
+\r
+\r
+  @file\r
+  PchRegsHda.h\r
+\r
+  @brief\r
+  Register names for PCH High Definition Audio device.\r
+\r
+  Conventions:\r
+\r
+  - Prefixes:\r
+    Definitions beginning with "R_" are registers\r
+    Definitions beginning with "B_" are bits within registers\r
+    Definitions beginning with "V_" are meaningful values of bits within the registers\r
+    Definitions beginning with "S_" are register sizes\r
+    Definitions beginning with "N_" are the bit position\r
+  - In general, PCH registers are denoted by "_PCH_" in register names\r
+  - Registers / bits that are different between PCH generations are denoted by\r
+    "_PCH_<generation_name>_" in register/bit names. e.g., "_PCH_VLV_"\r
+  - Registers / bits that are different between SKUs are denoted by "_<SKU_name>"\r
+    at the end of the register/bit names\r
+  - Registers / bits of new devices introduced in a PCH generation will be just named\r
+    as "_PCH_" without <generation_name> inserted.\r
+\r
+**/\r
+#ifndef _PCH_REGS_HDA_H_\r
+#define _PCH_REGS_HDA_H_\r
+\r
+///\r
+/// Azalia Controller Registers (D27:F0)\r
+///\r
+#define PCI_DEVICE_NUMBER_PCH_AZALIA       27\r
+#define PCI_FUNCTION_NUMBER_PCH_AZALIA     0\r
+\r
+#define R_PCH_HDA_PCS                      0x54  // Power Management Control and Status\r
+#define B_PCH_HDA_PCS_DATA                 0xFF000000 // Data, does not apply\r
+#define B_PCH_HDA_PCS_CCE                  BIT23 // Bus Power Control Enable, does not apply\r
+#define B_PCH_HDA_PCS_PMES                 BIT15 // PME Status\r
+#define B_PCH_HDA_PCS_PMEE                 BIT8  // PME Enable\r
+#define B_PCH_HDA_PCS_PS                   (BIT1 | BIT0) // Power State - D0/D3 Hot\r
+#define V_PCH_HDA_PCS_PS0                  0x00\r
+#define V_PCH_HDA_PCS_PS3                  0x03\r
+\r
+#endif\r