Kevin O'Connor | bdce35f | 2008-02-26 21:33:14 -0500 | [diff] [blame] | 1 | #ifndef __CONFIG_H |
| 2 | #define __CONFIG_H |
Kevin O'Connor | d9b0659 | 2008-05-06 20:00:12 -0400 | [diff] [blame] | 3 | |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 4 | // Configuration definitions. |
| 5 | |
Kevin O'Connor | d9b0659 | 2008-05-06 20:00:12 -0400 | [diff] [blame] | 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 | |
Kevin O'Connor | f64f0db | 2008-05-18 02:42:58 -0400 | [diff] [blame] | 16 | // Configure as a payload coreboot payload. |
| 17 | #define CONFIG_COREBOOT 0 |
| 18 | |
Kevin O'Connor | ac8df8c | 2008-05-24 23:46:33 -0400 | [diff] [blame^] | 19 | // Control how verbose debug output is. |
| 20 | #define CONFIG_DEBUG_LEVEL 1 |
| 21 | |
Kevin O'Connor | 0f803e4 | 2008-05-24 23:07:16 -0400 | [diff] [blame] | 22 | // Send debugging information to serial port |
Kevin O'Connor | 1812e20 | 2008-05-07 21:29:50 -0400 | [diff] [blame] | 23 | #define CONFIG_DEBUG_SERIAL 0 |
| 24 | |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 25 | #define CONFIG_FLOPPY_SUPPORT 1 |
Kevin O'Connor | c65a380 | 2008-03-02 13:58:23 -0500 | [diff] [blame] | 26 | #define CONFIG_PS2_MOUSE 1 |
Kevin O'Connor | 3491e8b | 2008-02-29 00:22:27 -0500 | [diff] [blame] | 27 | #define CONFIG_ATA 1 |
Kevin O'Connor | 38fcbfe | 2008-02-25 22:30:47 -0500 | [diff] [blame] | 28 | #define CONFIG_KBD_CALL_INT15_4F 1 |
Kevin O'Connor | 180a959 | 2008-03-04 22:50:53 -0500 | [diff] [blame] | 29 | #define CONFIG_CDROM_BOOT 1 |
Kevin O'Connor | dfa1650 | 2008-03-22 20:13:08 -0400 | [diff] [blame] | 30 | #define CONFIG_CDROM_EMU 1 |
Kevin O'Connor | 0f803e4 | 2008-05-24 23:07:16 -0400 | [diff] [blame] | 31 | // Support built-in PIR table in 0xf000 segment |
| 32 | #define CONFIG_PIRTABLE 1 |
| 33 | // Support int 1a/b1 PCI BIOS calls |
Kevin O'Connor | a0dc296 | 2008-03-16 14:29:32 -0400 | [diff] [blame] | 34 | #define CONFIG_PCIBIOS 1 |
Kevin O'Connor | c65a380 | 2008-03-02 13:58:23 -0500 | [diff] [blame] | 35 | |
Kevin O'Connor | d9b0659 | 2008-05-06 20:00:12 -0400 | [diff] [blame] | 36 | /* define it if the (emulated) hardware supports SMM mode */ |
| 37 | #define CONFIG_USE_SMM 1 |
| 38 | |
| 39 | /* if true, put the MP float table and ACPI RSDT in EBDA and the MP |
| 40 | table in RAM. Unfortunately, Linux has bugs with that, so we prefer |
| 41 | to modify the BIOS in shadow RAM */ |
| 42 | #define CONFIG_USE_EBDA_TABLES 0 |
| 43 | |
Kevin O'Connor | bdce35f | 2008-02-26 21:33:14 -0500 | [diff] [blame] | 44 | #define CONFIG_MAX_ATA_INTERFACES 4 |
| 45 | #define CONFIG_MAX_ATA_DEVICES (CONFIG_MAX_ATA_INTERFACES*2) |
Kevin O'Connor | 38fcbfe | 2008-02-25 22:30:47 -0500 | [diff] [blame] | 46 | |
| 47 | #define CONFIG_STACK_SEGMENT 0x00 |
| 48 | #define CONFIG_STACK_OFFSET 0xfffe |
Kevin O'Connor | bdce35f | 2008-02-26 21:33:14 -0500 | [diff] [blame] | 49 | |
Kevin O'Connor | 438f635 | 2008-03-30 21:46:53 -0400 | [diff] [blame] | 50 | #define CONFIG_ACPI_DATA_SIZE 0x00010000L |
| 51 | |
Kevin O'Connor | 44c631d | 2008-03-02 11:24:36 -0500 | [diff] [blame] | 52 | #define CONFIG_MODEL_ID 0xFC |
| 53 | #define CONFIG_SUBMODEL_ID 0x00 |
| 54 | #define CONFIG_BIOS_REVISION 0x01 |
| 55 | |
Kevin O'Connor | 7453453 | 2008-05-12 18:28:58 -0400 | [diff] [blame] | 56 | // Start of fixed addresses in 0xf0000 segment. |
| 57 | #define CONFIG_START_FIXED 0xe050 |
| 58 | |
Kevin O'Connor | bdce35f | 2008-02-26 21:33:14 -0500 | [diff] [blame] | 59 | #endif // config.h |