• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2 
3 Copyright (c) 2012  - 2014, Intel Corporation. All rights reserved
4 
5   This program and the accompanying materials are licensed and made available under
6   the terms and conditions of the BSD License that accompanies this distribution.
7   The full text of the license may be found at
8   http://opensource.org/licenses/bsd-license.php.
9 
10   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 
13 
14 
15   @file
16   PchRegsHda.h
17 
18   @brief
19   Register names for PCH High Definition Audio device.
20 
21   Conventions:
22 
23   - Prefixes:
24     Definitions beginning with "R_" are registers
25     Definitions beginning with "B_" are bits within registers
26     Definitions beginning with "V_" are meaningful values of bits within the registers
27     Definitions beginning with "S_" are register sizes
28     Definitions beginning with "N_" are the bit position
29   - In general, PCH registers are denoted by "_PCH_" in register names
30   - Registers / bits that are different between PCH generations are denoted by
31     "_PCH_<generation_name>_" in register/bit names. e.g., "_PCH_VLV_"
32   - Registers / bits that are different between SKUs are denoted by "_<SKU_name>"
33     at the end of the register/bit names
34   - Registers / bits of new devices introduced in a PCH generation will be just named
35     as "_PCH_" without <generation_name> inserted.
36 
37 **/
38 #ifndef _PCH_REGS_HDA_H_
39 #define _PCH_REGS_HDA_H_
40 
41 ///
42 /// Azalia Controller Registers (D27:F0)
43 ///
44 #define PCI_DEVICE_NUMBER_PCH_AZALIA       27
45 #define PCI_FUNCTION_NUMBER_PCH_AZALIA     0
46 
47 #define R_PCH_HDA_PCS                      0x54  // Power Management Control and Status
48 #define B_PCH_HDA_PCS_DATA                 0xFF000000 // Data, does not apply
49 #define B_PCH_HDA_PCS_CCE                  BIT23 // Bus Power Control Enable, does not apply
50 #define B_PCH_HDA_PCS_PMES                 BIT15 // PME Status
51 #define B_PCH_HDA_PCS_PMEE                 BIT8  // PME Enable
52 #define B_PCH_HDA_PCS_PS                   (BIT1 | BIT0) // Power State - D0/D3 Hot
53 #define V_PCH_HDA_PCS_PS0                  0x00
54 #define V_PCH_HDA_PCS_PS3                  0x03
55 
56 #endif
57