mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
765 B

  1. --- linux-2.6.12.3/include/asm-i386/mc146818rtc.h
  2. +++ linux-2.6.12.3/include/asm-i386/mc146818rtc.h
  3. @@ -5,14 +5,21 @@
  4. #define _ASM_MC146818RTC_H
  5. #include <asm/io.h>
  6. +
  7. +#ifdef __KERNEL__
  8. +
  9. #include <asm/system.h>
  10. #include <linux/mc146818rtc.h>
  11. +#endif /* __KERNEL__ */
  12. +
  13. #ifndef RTC_PORT
  14. #define RTC_PORT(x) (0x70 + (x))
  15. #define RTC_ALWAYS_BCD 1 /* RTC operates in binary mode */
  16. #endif
  17. +#ifdef __KERNEL__
  18. +
  19. #ifdef __HAVE_ARCH_CMPXCHG
  20. /*
  21. * This lock provides nmi access to the CMOS/RTC registers. It has some
  22. @@ -80,6 +87,8 @@
  23. #define current_lock_cmos_reg() 0
  24. #endif
  25. +#endif /* __KERNEL__ */
  26. +
  27. /*
  28. * The yet supported machines all access the RTC index register via
  29. * an ISA port access but the way to access the date register differs ...