]>
Commit | Line | Data |
---|---|---|
cb2e3007 LE |
1 | /** @file\r |
2 | Various register numbers and value bits based on the following publications:\r | |
3 | - Intel(R) datasheet 290549-001\r | |
4 | - Intel(R) datasheet 290562-001\r | |
5 | - Intel(R) datasheet 297654-006\r | |
6 | - Intel(R) datasheet 297738-017\r | |
7 | \r | |
8 | Copyright (C) 2015, Red Hat, Inc.\r | |
9 | Copyright (c) 2014, Gabriel L. Somlo <somlo@cmu.edu>\r | |
10 | \r | |
11 | This program and the accompanying materials are licensed and made available\r | |
12 | under the terms and conditions of the BSD License which accompanies this\r | |
13 | distribution. The full text of the license may be found at\r | |
14 | http://opensource.org/licenses/bsd-license.php\r | |
15 | \r | |
16 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r | |
17 | WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef __I440FX_PIIX4_H__\r | |
21 | #define __I440FX_PIIX4_H__\r | |
22 | \r | |
23 | #include <Library/PciLib.h>\r | |
24 | \r | |
25 | //\r | |
26 | // Host Bridge Device ID (DID) value for I440FX\r | |
27 | //\r | |
28 | #define INTEL_82441_DEVICE_ID 0x1237\r | |
29 | \r | |
ba1d245f LE |
30 | //\r |
31 | // B/D/F/Type: 0/0/0/PCI\r | |
32 | //\r | |
33 | #define PMC_REGISTER_PIIX4(Offset) PCI_LIB_ADDRESS (0, 0, 0, (Offset))\r | |
34 | \r | |
35 | #define PIIX4_PAM0 0x59\r | |
36 | #define PIIX4_PAM1 0x5A\r | |
37 | #define PIIX4_PAM2 0x5B\r | |
38 | #define PIIX4_PAM3 0x5C\r | |
39 | #define PIIX4_PAM4 0x5D\r | |
40 | #define PIIX4_PAM5 0x5E\r | |
41 | #define PIIX4_PAM6 0x5F\r | |
42 | \r | |
cb2e3007 LE |
43 | //\r |
44 | // B/D/F/Type: 0/1/3/PCI\r | |
45 | //\r | |
46 | #define POWER_MGMT_REGISTER_PIIX4(Offset) PCI_LIB_ADDRESS (0, 1, 3, (Offset))\r | |
47 | \r | |
6b225ace | 48 | #define PIIX4_PMBA 0x40\r |
07d3ba07 LE |
49 | #define PIIX4_PMBA_MASK (BIT15 | BIT14 | BIT13 | BIT12 | BIT11 | \\r |
50 | BIT10 | BIT9 | BIT8 | BIT7 | BIT6)\r | |
6b225ace LE |
51 | \r |
52 | #define PIIX4_PMREGMISC 0x80\r | |
53 | #define PIIX4_PMREGMISC_PMIOSE BIT0\r | |
54 | \r | |
cb2e3007 | 55 | #endif\r |