Add additional config options to remove parts of code.
[seabios.git] / src / config.h
1 #ifndef __CONFIG_H
2 #define __CONFIG_H
3
4 // Configuration definitions.
5
6 /* Dont support QEMU BIOS by default.
7  * Change CONFIG_QEMU to 1 to support QEMU. */
8 #define CONFIG_QEMU 0
9
10 #if (QEMU_SUPPORT == 1)
11 #define CONFIG_APPNAME "QEMU"
12 #else
13 #define CONFIG_APPNAME "Bochs"
14 #endif
15
16 // Configure as a coreboot payload.
17 #define CONFIG_COREBOOT 0
18
19 // Control how verbose debug output is.
20 #define CONFIG_DEBUG_LEVEL 1
21
22 // Send debugging information to serial port
23 #define CONFIG_DEBUG_SERIAL 0
24
25 // Support for int13 floppy drive access
26 #define CONFIG_FLOPPY_SUPPORT 1
27 // Support for int15c2 mouse calls
28 #define CONFIG_PS2_MOUSE 1
29 // Support for IDE disk code
30 #define CONFIG_ATA 1
31 // Support calling int155f on each keyboard press
32 #define CONFIG_KBD_CALL_INT15_4F 1
33 // Support for booting from a CD
34 #define CONFIG_CDROM_BOOT 1
35 // Support for emulating a boot CD as a floppy/harddrive
36 #define CONFIG_CDROM_EMU 1
37 // Support int 1a/b1 PCI BIOS calls
38 #define CONFIG_PCIBIOS 1
39 // Support int 15/53 APM BIOS calls
40 #define CONFIG_APMBIOS 1
41 // Support int 19/18 system bootup support
42 #define CONFIG_BOOT 1
43 // Support int 14 parallel port calls
44 #define CONFIG_SERIAL 1
45 // Support int 17 parallel port calls
46 #define CONFIG_LPT 1
47 // Support int 16 keyboard calls
48 #define CONFIG_KEYBOARD 1
49 // Support an interactive boot menu at end of post.
50 #define CONFIG_BOOTMENU 1
51
52 // Support generation of a PIR table in 0xf000 segment (for emulators)
53 #define CONFIG_PIRTABLE 1
54 // Support generation of MPTable (for emulators)
55 #define CONFIG_MPTABLE 1
56 // Support generation of ACPI tables (for emulators)
57 #define CONFIG_ACPI 1
58 // Support bios callbacks specific to via vgabios.
59 #define CONFIG_VGAHOOKS 1
60
61 /* define it if the (emulated) hardware supports SMM mode */
62 #define CONFIG_USE_SMM 1
63
64 #define CONFIG_MAX_ATA_INTERFACES 4
65 #define CONFIG_MAX_ATA_DEVICES  (CONFIG_MAX_ATA_INTERFACES*2)
66
67 #define CONFIG_ACPI_DATA_SIZE 0x00010000L
68
69 #define CONFIG_MODEL_ID      0xFC
70 #define CONFIG_SUBMODEL_ID   0x00
71 #define CONFIG_BIOS_REVISION 0x01
72
73 // Various memory addresses used by the code.
74 #define BUILD_STACK_ADDR        0xfffe
75 #define BUILD_CPU_COUNT_ADDR    0xf000
76 #define BUILD_AP_BOOT_ADDR      0x10000
77 #define BUILD_BSS_ADDR          0x40000
78 #define BUILD_BIOS_ADDR         0xf0000
79 #define BUILD_BIOS_SIZE         0x10000
80  /* 64 KB used to copy the BIOS to shadow RAM */
81 #define BUILD_BIOS_TMP_ADDR     0x30000
82
83 #define BUILD_PM_IO_BASE        0xb000
84 #define BUILD_SMB_IO_BASE       0xb100
85 #define BUILD_SMI_CMD_IO_ADDR   0xb2
86
87 // Start of fixed addresses in 0xf0000 segment.
88 #define BUILD_START_FIXED       0xe050
89
90 // Important 16-bit segments
91 #define SEG_BIOS     0xf000
92 #define SEG_EBDA     0x9fc0
93 #define SEG_BDA      0x0000
94
95 // Debugging levels.  If non-zero and CONFIG_DEBUG_LEVEL is greater
96 // than the specified value, then the corresponding irq handler will
97 // report every enter event.
98 #define DEBUG_ISR_nmi 1
99 #define DEBUG_HDL_05 1
100 #define DEBUG_ISR_08 20
101 #define DEBUG_ISR_09 9
102 #define DEBUG_ISR_0e 9
103 #define DEBUG_HDL_10 20
104 #define DEBUG_HDL_11 1
105 #define DEBUG_HDL_12 1
106 #define DEBUG_HDL_13 10
107 #define DEBUG_HDL_14 1
108 #define DEBUG_HDL_15 9
109 #define DEBUG_HDL_16 9
110 #define DEBUG_HDL_17 1
111 #define DEBUG_HDL_18 1
112 #define DEBUG_HDL_19 1
113 #define DEBUG_HDL_1a 9
114 #define DEBUG_ISR_1c 20
115 #define DEBUG_HDL_40 1
116 #define DEBUG_ISR_70 9
117 #define DEBUG_ISR_74 9
118 #define DEBUG_ISR_75 1
119 #define DEBUG_ISR_76 10
120 #define DEBUG_ISR_hwirq 30
121
122 #endif // config.h