]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/kernel/arch-x86/asm/mc146818rtc_32.h
auto import from //depot/cupcake/@132589
[android-sdk/platform-bionic.git] / libc / kernel / arch-x86 / asm / mc146818rtc_32.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _ASM_MC146818RTC_H
13 #define _ASM_MC146818RTC_H
15 #include <asm/io.h>
16 #include <asm/system.h>
17 #include <asm/processor.h>
18 #include <linux/mc146818rtc.h>
20 #ifndef RTC_PORT
21 #define RTC_PORT(x) (0x70 + (x))
22 #define RTC_ALWAYS_BCD 1  
23 #endif
25 #ifdef __HAVE_ARCH_CMPXCHG
27 #include <linux/smp.h>
29 #define lock_cmos_prefix(reg)   do {   unsigned long cmos_flags;   local_irq_save(cmos_flags);   lock_cmos(reg)
30 #define lock_cmos_suffix(reg)   unlock_cmos();   local_irq_restore(cmos_flags);   } while (0)
31 #else
32 #define lock_cmos_prefix(reg) do {} while (0)
33 #define lock_cmos_suffix(reg) do {} while (0)
34 #define lock_cmos(reg)
35 #define unlock_cmos()
36 #define do_i_have_lock_cmos() 0
37 #define current_lock_cmos_reg() 0
38 #endif
39 #define CMOS_READ(addr) rtc_cmos_read(addr)
40 #define CMOS_WRITE(val, addr) rtc_cmos_write(val, addr)
42 #define RTC_IRQ 8
44 #endif