diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-07-21 22:23:05 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-07-21 22:23:05 -0400 |
commit | 409670204b5da474d558444c7c4f9defe0242815 (patch) | |
tree | c4903a409ff451ea9b77d9cf2a890ddcaa13a390 /src/serial.c | |
parent | ae8be531d7a0f04666b51bb6a8b78b6a956efcaf (diff) | |
download | qemu-seabios-409670204b5da474d558444c7c4f9defe0242815.tar.gz |
Add additional config options to remove parts of code.
Added options CONFIG_BOOT, CONFIG_SERIAL, CONFIG_LPT, CONFIG_KEYBOARD,
CONFIG_BOOTMENU.
Also extended coverage of existing options to ensure full code got
removed.
Diffstat (limited to 'src/serial.c')
-rw-r--r-- | src/serial.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/serial.c b/src/serial.c index 46a9558..6d1f928 100644 --- a/src/serial.c +++ b/src/serial.c @@ -31,7 +31,10 @@ detect_serial(u16 port, u8 timeout, u8 count) void serial_setup() { + if (! CONFIG_SERIAL) + return; dprintf(3, "init serial\n"); + u16 count = 0; count += detect_serial(0x3f8, 0x0a, count); count += detect_serial(0x2f8, 0x0a, count); @@ -151,6 +154,10 @@ void VISIBLE16 handle_14(struct bregs *regs) { debug_enter(regs, DEBUG_HDL_14); + if (! CONFIG_SERIAL) { + handle_14XX(regs); + return; + } irq_enable(); @@ -186,7 +193,10 @@ detect_parport(u16 port, u8 timeout, u8 count) void lpt_setup() { + if (! CONFIG_LPT) + return; dprintf(3, "init lpt\n"); + u16 count = 0; count += detect_parport(0x378, 0x14, count); count += detect_parport(0x278, 0x14, count); @@ -280,6 +290,10 @@ void VISIBLE16 handle_17(struct bregs *regs) { debug_enter(regs, DEBUG_HDL_17); + if (! CONFIG_LPT) { + handle_17XX(regs); + return; + } irq_enable(); |