mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 16:30:53 +07: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!
28 lines
519 B
C
28 lines
519 B
C
/*
|
|
* Registers for the SGS-Thomson M48T35 Timekeeper RAM chip
|
|
*/
|
|
#ifndef _ASM_M48T35_H
|
|
#define _ASM_M48T35_H
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
extern spinlock_t rtc_lock;
|
|
|
|
struct m48t35_rtc {
|
|
volatile u8 pad[0x7ff8]; /* starts at 0x7ff8 */
|
|
volatile u8 control;
|
|
volatile u8 sec;
|
|
volatile u8 min;
|
|
volatile u8 hour;
|
|
volatile u8 day;
|
|
volatile u8 date;
|
|
volatile u8 month;
|
|
volatile u8 year;
|
|
};
|
|
|
|
#define M48T35_RTC_SET 0x80
|
|
#define M48T35_RTC_STOPPED 0x80
|
|
#define M48T35_RTC_READ 0x40
|
|
|
|
#endif /* _ASM_M48T35_H */
|