diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-15 02:29:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-28 22:05:55 -0400 |
commit | 8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 (patch) | |
tree | 09bda27298457051fa75436f792d77d56aedaef5 /src/resume.c | |
parent | 9fcd199861abe0941c76f92b6ee5d450db364e66 (diff) | |
download | seabios-hppa-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.zip seabios-hppa-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.tar.gz seabios-hppa-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.tar.bz2 |
Rename hw/cmos.h to hw/rtc.h and copy RTC code from clock.c to hw/rtc.c.
Group the Real Time Clock code into hw/rtc.[ch].
Also, use rtc_read/write/mask function naming (instead of
inb/outb_cmos) to be more consistent with other register accessors.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/resume.c')
-rw-r--r-- | src/resume.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resume.c b/src/resume.c index af39a1d..12daf0f 100644 --- a/src/resume.c +++ b/src/resume.c @@ -7,10 +7,10 @@ #include "bregs.h" // struct bregs #include "config.h" // CONFIG_* #include "farptr.h" // FLATPTR_TO_SEGOFF -#include "hw/cmos.h" // inb_cmos #include "hw/pci.h" // pci_reboot #include "hw/pic.h" // pic_eoi2 #include "hw/ps2port.h" // i8042_reboot +#include "hw/rtc.h" // rtc_read #include "ioport.h" // outb #include "output.h" // dprintf #include "stacks.h" // farcall16big @@ -40,8 +40,8 @@ handle_resume(void) { ASSERT16(); debug_serial_preinit(); - int status = inb_cmos(CMOS_RESET_CODE); - outb_cmos(0, CMOS_RESET_CODE); + int status = rtc_read(CMOS_RESET_CODE); + rtc_write(CMOS_RESET_CODE, 0); dprintf(1, "In resume (status=%d)\n", status); dma_setup(); |