~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to xen/include/public/arch-ia64/hvm/memmap.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 * memmap.h
 
3
 *
 
4
 * Copyright (c) 2008 Tristan Gingold <tgingold AT free fr>
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __XEN_PUBLIC_HVM_MEMMAP_IA64_H__
 
23
#define __XEN_PUBLIC_HVM_MEMMAP_IA64_H__
 
24
 
 
25
#define MEM_G  (1UL << 30)
 
26
#define MEM_M  (1UL << 20)
 
27
#define MEM_K  (1UL << 10)
 
28
 
 
29
/* Guest physical address of IO ports space.  */
 
30
#define MMIO_START  (3 * MEM_G)
 
31
#define MMIO_SIZE   (512 * MEM_M)
 
32
 
 
33
#define VGA_IO_START  0xA0000UL
 
34
#define VGA_IO_SIZE   0x20000
 
35
 
 
36
#define LEGACY_IO_START  (MMIO_START + MMIO_SIZE)
 
37
#define LEGACY_IO_SIZE   (64 * MEM_M)
 
38
 
 
39
#define IO_PAGE_START  (LEGACY_IO_START + LEGACY_IO_SIZE)
 
40
#define IO_PAGE_SIZE   XEN_PAGE_SIZE
 
41
 
 
42
#define STORE_PAGE_START  (IO_PAGE_START + IO_PAGE_SIZE)
 
43
#define STORE_PAGE_SIZE   XEN_PAGE_SIZE
 
44
 
 
45
#define BUFFER_IO_PAGE_START  (STORE_PAGE_START + STORE_PAGE_SIZE)
 
46
#define BUFFER_IO_PAGE_SIZE   XEN_PAGE_SIZE
 
47
 
 
48
#define BUFFER_PIO_PAGE_START  (BUFFER_IO_PAGE_START + BUFFER_IO_PAGE_SIZE)
 
49
#define BUFFER_PIO_PAGE_SIZE   XEN_PAGE_SIZE
 
50
 
 
51
#define IO_SAPIC_START  0xfec00000UL
 
52
#define IO_SAPIC_SIZE   0x100000
 
53
 
 
54
#define PIB_START  0xfee00000UL
 
55
#define PIB_SIZE   0x200000
 
56
 
 
57
#define GFW_START  (4 * MEM_G - 16 * MEM_M)
 
58
#define GFW_SIZE   (16 * MEM_M)
 
59
 
 
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 */
 
67
 
 
68
/* Nvram belongs to GFW memory space  */
 
69
#define NVRAM_SIZE   (MEM_K * 64)
 
70
#define NVRAM_START  (GFW_START + 10 * MEM_M)
 
71
 
 
72
#define NVRAM_VALID_SIG  0x4650494e45584948 /* "HIXENIPF" */
 
73
struct nvram_save_addr {
 
74
    unsigned long addr;
 
75
    unsigned long signature;
 
76
};
 
77
 
 
78
#endif /* __XEN_PUBLIC_HVM_MEMMAP_IA64_H__ */
 
79
 
 
80
/*
 
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:
 
88
 */