mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
27 lines
527 B
C
27 lines
527 B
C
/*
|
|
* Machine dependent access functions for RTC registers.
|
|
*/
|
|
#ifndef _ASM_MC146818RTC_H
|
|
#define _ASM_MC146818RTC_H
|
|
|
|
#include <linux/config.h>
|
|
|
|
#ifdef CONFIG_ATARI
|
|
/* RTC in Atari machines */
|
|
|
|
#include <asm/atarihw.h>
|
|
|
|
#define RTC_PORT(x) (TT_RTC_BAS + 2*(x))
|
|
|
|
#define CMOS_READ(addr) ({ \
|
|
atari_outb_p((addr),RTC_PORT(0)); \
|
|
atari_inb_p(RTC_PORT(1)); \
|
|
})
|
|
#define CMOS_WRITE(val, addr) ({ \
|
|
atari_outb_p((addr),RTC_PORT(0)); \
|
|
atari_outb_p((val),RTC_PORT(1)); \
|
|
})
|
|
#endif /* CONFIG_ATARI */
|
|
|
|
#endif /* _ASM_MC146818RTC_H */
|