ia64/xen-unstable

view xen-2.4.16/include/xeno/config.h @ 86:4a10fe9b20ec

bitkeeper revision 1.15 (3e24a984iRiWWcgfKCxu2p5q3YbxXw)

Many files:
First half of support for per-domain GDTs and LDTs
author kaf24@labyrinth.cl.cam.ac.uk
date Wed Jan 15 00:21:24 2003 +0000 (2003-01-15)
parents c3e6a52cd801
children b46b05647a32 2c1ef70cc49f
line source
1 /******************************************************************************
2 * config.h
3 *
4 * A Linux-style configuration list.
5 */
7 #ifndef __XENO_CONFIG_H__
8 #define __XENO_CONFIG_H__
10 #define CONFIG_SMP 1
11 #define CONFIG_X86_LOCAL_APIC 1
12 #define CONFIG_X86_IO_APIC 1
13 #define CONFIG_X86_L1_CACHE_SHIFT 5
15 #define CONFIG_PCI 1
16 #define CONFIG_PCI_BIOS 1
17 #define CONFIG_PCI_DIRECT 1
19 #define CONFIG_IDE 1
20 #define CONFIG_BLK_DEV_IDE 1
21 #define CONFIG_BLK_DEV_IDEDMA 1
22 #define CONFIG_BLK_DEV_IDEPCI 1
23 #define CONFIG_IDEDISK_MULTI_MODE 1
24 #define CONFIG_IDEDISK_STROKE 1
25 #define CONFIG_IDEPCI_SHARE_IRQ 1
26 #define CONFIG_BLK_DEV_IDEDMA_PCI 1
27 #define CONFIG_IDEDMA_PCI_AUTO 1
28 #define CONFIG_IDEDMA_AUTO 1
29 #define CONFIG_BLK_DEV_IDE_MODES 1
31 #define CONFIG_SCSI 1
32 #define CONFIG_BLK_DEV_SD 1
33 #define CONFIG_SD_EXTRA_DEVS 40
34 #define CONFIG_SCSI_MULTI_LUN 1
36 #define HZ 100
38 /* Just to keep compiler happy. */
39 #define SMP_CACHE_BYTES 64
40 #define NR_CPUS 16
41 #define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
42 #define ____cacheline_aligned __cacheline_aligned
44 /* 0-16MB is fixed monitor space. 0-52MB is direct-mapped at top of memory.*/
45 #define MAX_MONITOR_ADDRESS (16*1024*1024)
46 #define MAX_DMA_ADDRESS (16*1024*1024)
47 #define MAX_DIRECTMAP_ADDRESS (52*1024*1024)
48 /* Next 4MB of virtual address space used for per-domain mappings (eg. GDT). */
49 #define PERDOMAIN_VIRT_START (PAGE_OFFSET + MAX_DIRECTMAP_ADDRESS)
50 #define PERDOMAIN_VIRT_END (PERDOMAIN_VIRT_START + (4*1024*1024))
51 /* Penultimate 4MB of virtual address space used for domain page mappings. */
52 #define MAPCACHE_VIRT_START (PERDOMAIN_VIRT_END)
53 #define MAPCACHE_VIRT_END (MAPCACHE_VIRT_START + (4*1024*1024))
54 /* Final 4MB of virtual address space used for ioremap(). */
55 #define IOREMAP_VIRT_START (MAPCACHE_VIRT_END)
56 #define IOREMAP_VIRT_END (IOREMAP_VIRT_START + (4*1024*1024))
58 /* Linkage for x86 */
59 #define FASTCALL(x) x __attribute__((regparm(3)))
60 #define asmlinkage __attribute__((regparm(0)))
61 #define __ALIGN .align 16,0x90
62 #define __ALIGN_STR ".align 16,0x90"
63 #define SYMBOL_NAME_STR(X) #X
64 #define SYMBOL_NAME(X) X
65 #define SYMBOL_NAME_LABEL(X) X##:
66 #ifdef __ASSEMBLY__
67 #define ALIGN __ALIGN
68 #define ALIGN_STR __ALIGN_STR
69 #define ENTRY(name) \
70 .globl SYMBOL_NAME(name); \
71 ALIGN; \
72 SYMBOL_NAME_LABEL(name)
73 #endif
75 /* syslog levels ==> nothing! */
76 #define KERN_NOTICE
77 #define KERN_WARNING
78 #define KERN_DEBUG
79 #define KERN_INFO
80 #define KERN_ERR
81 #define KERN_CRIT
82 #define KERN_EMERG
83 #define KERN_ALERT
85 #define barrier() __asm__ __volatile__("": : :"memory")
87 #define __HYPERVISOR_CS 0x30
88 #define __HYPERVISOR_DS 0x38
89 #define __GUEST_CS 0x11
90 #define __GUEST_DS 0x19
92 #define NR_syscalls 255
94 #define offsetof(_p,_f) ((unsigned long)&(((_p *)0)->_f))
95 #define struct_cpy(_x,_y) (memcpy((_x),(_y),sizeof(*(_x))))
97 #define likely(_x) (_x)
98 #define unlikely(_x) (_x)
100 #define dev_probe_lock() ((void)0)
101 #define dev_probe_unlock() ((void)0)
103 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
105 #define capable(_c) 0
107 #ifndef __ASSEMBLY__
108 extern unsigned long opt_ipbase, opt_nfsserv, opt_gateway, opt_netmask;
109 extern unsigned char opt_nfsroot[];
110 #endif
112 #endif /* __XENO_CONFIG_H__ */