Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / include / pcd.h
1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  *     IBM Corporation - initial implementation
11  *****************************************************************************/
12 #ifndef PCD_H
13 #define PCD_H
14
15 #define PCD_START_ADDR 0xFF00000       // FIXME: this should not interfere with
16                                        // other parts of the firmware
17 #define PCD_HDR_SIZE   (6 * 8)   /* only use for ctrl file */
18
19 /* PCD File Definition ****************************************/
20 /* File = "p:ctrl"   0x703a6374726c0000                       */
21 /* Data :                                                     */
22 /* [00:07] - pointer to header of last file which was created */
23 /* [08:0f] - pointer to header of next file for creation      */
24 /**************************************************************/
25 #define PCDF_CTRL_LAST  0
26 #define PCDF_CTRL_NEXT  8
27
28 /* PCD File Definition ****************************************/
29 /* File = "p:pXmem"                                           */
30 /* Data :                                                     */
31 /* [00:07] - number of memory segments                        */
32 /* [08:0f] - real base of memory segment #n                   */
33 /* [10:17] - real size of memory segment #n                   */
34 /* [18:1f] - real base of memory segment #n+1                 */
35 /* [20:27] - real size of memory segment #n+1                 */
36 /* ... and so on..                                            */
37 /**************************************************************/
38 #define PCDF_MEM_NUM       0
39 #define PCDF_MEMN_BASE(N)  (8 + ((N) * 16))
40 #define PCDF_MEMN_SIZE(M)  (PCDF_MEMN_BASE(M) + 8)
41
42 /* PCD File Definition ****************************************/
43 /* File = "p:pXcfg"                                           */
44 /* Data :                                                     */
45 /* [00:07] - number of memory segments                        */
46 /* [08:0f] - real base of memory segment #n                   */
47 /* [10:17] - real size of memory segment #n                   */
48 /* [18:1f] - real base of memory segment #n+1                 */
49 /* [20:27] - real size of memory segment #n+1                 */
50 /* ... and so on..                                            */
51 /**************************************************************/
52 #define PCDF_PCFG_IOCBASE       (0 * 8)
53 #define PCDF_PCFG_BPBASE        (1 * 8)
54 #define PCDF_PCFG_SPUMAP        (2 * 8)
55 #define PCDF_PCFG_TIMEBASE      (3 * 8)
56 #define PCDF_PCFG_CPUFREQ   (4 * 8)
57
58 #endif