Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / xen / include / xen3-public / arch-ia64 / hvm / memmap.h
blob10054b25779dd14626d57d4185d0069602b9a054
1 /******************************************************************************
2 * memmap.h
4 * Copyright (c) 2008 Tristan Gingold <tgingold AT free fr>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __XEN_PUBLIC_HVM_MEMMAP_IA64_H__
23 #define __XEN_PUBLIC_HVM_MEMMAP_IA64_H__
25 #define MEM_G (1UL << 30)
26 #define MEM_M (1UL << 20)
27 #define MEM_K (1UL << 10)
29 /* Guest physical address of IO ports space. */
30 #define MMIO_START (3 * MEM_G)
31 #define MMIO_SIZE (512 * MEM_M)
33 #define VGA_IO_START 0xA0000UL
34 #define VGA_IO_SIZE 0x20000
36 #define LEGACY_IO_START (MMIO_START + MMIO_SIZE)
37 #define LEGACY_IO_SIZE (64 * MEM_M)
39 #define IO_PAGE_START (LEGACY_IO_START + LEGACY_IO_SIZE)
40 #define IO_PAGE_SIZE XEN_PAGE_SIZE
42 #define STORE_PAGE_START (IO_PAGE_START + IO_PAGE_SIZE)
43 #define STORE_PAGE_SIZE XEN_PAGE_SIZE
45 #define BUFFER_IO_PAGE_START (STORE_PAGE_START + STORE_PAGE_SIZE)
46 #define BUFFER_IO_PAGE_SIZE XEN_PAGE_SIZE
48 #define BUFFER_PIO_PAGE_START (BUFFER_IO_PAGE_START + BUFFER_IO_PAGE_SIZE)
49 #define BUFFER_PIO_PAGE_SIZE XEN_PAGE_SIZE
51 #define IO_SAPIC_START 0xfec00000UL
52 #define IO_SAPIC_SIZE 0x100000
54 #define PIB_START 0xfee00000UL
55 #define PIB_SIZE 0x200000
57 #define GFW_START (4 * MEM_G - 16 * MEM_M)
58 #define GFW_SIZE (16 * MEM_M)
60 /* domVTI */
61 #define GPFN_FRAME_BUFFER 0x1 /* VGA framebuffer */
62 #define GPFN_LOW_MMIO 0x2 /* Low MMIO range */
63 #define GPFN_PIB 0x3 /* PIB base */
64 #define GPFN_IOSAPIC 0x4 /* IOSAPIC base */
65 #define GPFN_LEGACY_IO 0x5 /* Legacy I/O base */
66 #define GPFN_HIGH_MMIO 0x6 /* High MMIO range */
68 /* Nvram belongs to GFW memory space */
69 #define NVRAM_SIZE (MEM_K * 64)
70 #define NVRAM_START (GFW_START + 10 * MEM_M)
72 #define NVRAM_VALID_SIG 0x4650494e45584948 /* "HIXENIPF" */
73 struct nvram_save_addr {
74 unsigned long addr;
75 unsigned long signature;
78 #endif /* __XEN_PUBLIC_HVM_MEMMAP_IA64_H__ */
81 * Local variables:
82 * mode: C
83 * c-set-style: "BSD"
84 * c-basic-offset: 4
85 * tab-width: 4
86 * indent-tabs-mode: nil
87 * End: