Add config option to disable scanning for option roms.
[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 finding and running option roms during post.
50 #define CONFIG_OPTIONROMS 1
51 // Support an interactive boot menu at end of post.
52 #define CONFIG_BOOTMENU 1
53
54 // Support generation of a PIR table in 0xf000 segment (for emulators)
55 #define CONFIG_PIRTABLE 1
56 // Support generation of MPTable (for emulators)
57 #define CONFIG_MPTABLE 1
58 // Support generation of ACPI tables (for emulators)
59 #define CONFIG_ACPI 1
60 // Support bios callbacks specific to via vgabios.
61 #define CONFIG_VGAHOOKS 1
62
63 /* define it if the (emulated) hardware supports SMM mode */
64 #define CONFIG_USE_SMM 1
65
66 #define CONFIG_MAX_ATA_INTERFACES 4
67 #define CONFIG_MAX_ATA_DEVICES  (CONFIG_MAX_ATA_INTERFACES*2)
68
69 #define CONFIG_ACPI_DATA_SIZE 0x00010000L
70
71 #define CONFIG_MODEL_ID      0xFC
72 #define CONFIG_SUBMODEL_ID   0x00
73 #define CONFIG_BIOS_REVISION 0x01
74
75 // Various memory addresses used by the code.
76 #define BUILD_STACK_ADDR        0xfffe
77 #define BUILD_CPU_COUNT_ADDR    0xf000
78 #define BUILD_AP_BOOT_ADDR      0x10000
79 #define BUILD_BSS_ADDR          0x40000
80 #define BUILD_BIOS_ADDR         0xf0000
81 #define BUILD_BIOS_SIZE         0x10000
82  /* 64 KB used to copy the BIOS to shadow RAM */
83 #define BUILD_BIOS_TMP_ADDR     0x30000
84
85 #define BUILD_PM_IO_BASE        0xb000
86 #define BUILD_SMB_IO_BASE       0xb100
87 #define BUILD_SMI_CMD_IO_ADDR   0xb2
88
89 // Start of fixed addresses in 0xf0000 segment.
90 #define BUILD_START_FIXED       0xe050
91
92 // Important 16-bit segments
93 #define SEG_BIOS     0xf000
94 #define SEG_EBDA     0x9fc0
95 #define SEG_BDA      0x0000
96
97 // Debugging levels.  If non-zero and CONFIG_DEBUG_LEVEL is greater
98 // than the specified value, then the corresponding irq handler will
99 // report every enter event.
100 #define DEBUG_ISR_nmi 1
101 #define DEBUG_HDL_05 1
102 #define DEBUG_ISR_08 20
103 #define DEBUG_ISR_09 9
104 #define DEBUG_ISR_0e 9
105 #define DEBUG_HDL_10 20
106 #define DEBUG_HDL_11 1
107 #define DEBUG_HDL_12 1
108 #define DEBUG_HDL_13 10
109 #define DEBUG_HDL_14 1
110 #define DEBUG_HDL_15 9
111 #define DEBUG_HDL_16 9
112 #define DEBUG_HDL_17 1
113 #define DEBUG_HDL_18 1
114 #define DEBUG_HDL_19 1
115 #define DEBUG_HDL_1a 9
116 #define DEBUG_ISR_1c 20
117 #define DEBUG_HDL_40 1
118 #define DEBUG_ISR_70 9
119 #define DEBUG_ISR_74 9
120 #define DEBUG_ISR_75 1
121 #define DEBUG_ISR_76 10
122 #define DEBUG_ISR_hwirq 30
123
124 #endif // config.h