coreboot-kgpe-d16/src/include/pc80
Alexandru Gagniuc b5669ba579 drivers/pc80/mc146818rtc: Reduce superfluous preprocessor use
cmos_init() had layers of preprocessor directives, which resulted in
a complete mess. Refactor it to make use of the IS_ENABLED() macro.
This improves readability significantly.

One of the changes is to remove in inline stub declaration of
(get|set)_option. Although that provided the ability for the compiler
to optimize out code when USE_OPTION_TABLE is not selected, there is
no evidence that such savings are measureable.

Change-Id: I07f00084d809adbb55031b2079f71136ade3028e
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/8306
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
2015-02-06 23:56:04 +01:00
..
i8254.h pc80/mc146818rtc.h: Has X86 specific inlines without guards 2014-06-25 11:43:09 +02:00
i8259.h PIC i8259: Move #defines and functions to i8259.h 2014-06-11 17:07:38 +02:00
isa-dma.h - Bump the LinuxBIOS major version 2004-10-21 10:44:08 +00:00
keyboard.h src/*: Remove the last remnants of struct keyboard 2014-05-13 12:14:34 +02:00
mc146818rtc.h drivers/pc80/mc146818rtc: Reduce superfluous preprocessor use 2015-02-06 23:56:04 +01:00
vga.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
vga_io.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00