3 #include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
13 #include <hw/rtc/rtc.h>
14 #include <hw/dos/dos.h>
15 #include <hw/8254/8254.h> /* 8254 timer */
16 #include <hw/8259/8259.h> /* 8259 PIC */
19 unsigned char idx,match=0;
22 for (idx=0;idx < 10;idx += 2) {
23 if (rtc_io_read(idx) != 0xFF) match++;
26 rtc_io_read_unmasked(0xD);
31 int rtc_wait_for_update_complete() {
36 if (v & 0x80) r = 1; /* caller also needs to know if update in progress was seen */
39 return r; /* return whether or not the update cycle was seen */