Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev The register spacing for the Milan is dif...
details: https://anonhg.NetBSD.org/src/rev/374d793f387b
branches: trunk
changeset: 509002:374d793f387b
user: leo <leo%NetBSD.org@localhost>
date: Tue Apr 24 06:27:58 2001 +0000
description:
The register spacing for the Milan is different.
diffstat:
sys/arch/atari/dev/clockreg.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 1e7cc4aa1720 -r 374d793f387b sys/arch/atari/dev/clockreg.h
--- a/sys/arch/atari/dev/clockreg.h Tue Apr 24 06:26:48 2001 +0000
+++ b/sys/arch/atari/dev/clockreg.h Tue Apr 24 06:27:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clockreg.h,v 1.4 1996/01/06 20:11:07 leo Exp $ */
+/* $NetBSD: clockreg.h,v 1.5 2001/04/24 06:27:58 leo Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -32,6 +32,8 @@
#ifndef _CLOCKREG_H
#define _CLOCKREG_H
+#include "opt_mbtype.h"
+
/*
* Atari TT hardware:
* Motorola MC146818A RealTimeClock
@@ -43,8 +45,13 @@
volatile u_char rtc_dat[4];
};
+#ifdef _ATARIHW_
#define rtc_regno rtc_dat[1] /* register nr. select */
#define rtc_data rtc_dat[3] /* data register */
+#elif _MILANHW_
+#define rtc_regno rtc_dat[0] /* register nr. select */
+#define rtc_data rtc_dat[1] /* data register */
+#endif
/*
* Pull in general mc146818 definitions
Home |
Main Index |
Thread Index |
Old Index