hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/mc146818rtc.h
....@@ -86,6 +86,8 @@
8686 /* 2 values for divider stage reset, others for "testing purposes only" */
8787 # define RTC_DIV_RESET1 0x60
8888 # define RTC_DIV_RESET2 0x70
89
+ /* In AMD BKDG bit 5 and 6 are reserved, bit 4 is for select dv0 bank */
90
+# define RTC_AMD_BANK_SELECT 0x10
8991 /* Periodic intr. / Square wave rate select. 0=none, 1=32.8kHz,... 15=2Hz */
9092 # define RTC_RATE_SELECT 0x0F
9193
....@@ -123,7 +125,11 @@
123125 #define RTC_IO_EXTENT_USED RTC_IO_EXTENT
124126 #endif /* ARCH_RTC_LOCATION */
125127
126
-unsigned int mc146818_get_time(struct rtc_time *time);
128
+bool mc146818_does_rtc_work(void);
129
+int mc146818_get_time(struct rtc_time *time);
127130 int mc146818_set_time(struct rtc_time *time);
128131
132
+bool mc146818_avoid_UIP(void (*callback)(unsigned char seconds, void *param),
133
+ void *param);
134
+
129135 #endif /* _MC146818RTC_H */