|
@@ -0,0 +1,55 @@
|
|
|
+
|
|
|
+/* include/asm-m68knommu/MC68EZ328.h: 'EZ328 control registers
|
|
|
+ *
|
|
|
+ * Copyright (C) 1999 Vladimir Gurevich <vgurevic@cisco.com>
|
|
|
+ * Bear & Hare Software, Inc.
|
|
|
+ *
|
|
|
+ * Based on include/asm-m68knommu/MC68332.h
|
|
|
+ * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
|
|
|
+ * The Silver Hammer Group, Ltd.
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+#ifndef _MC68EZ328_H_
|
|
|
+#define _MC68EZ328_H_
|
|
|
+
|
|
|
+#define BYTE_REF(addr) (*((volatile unsigned char*)addr))
|
|
|
+#define WORD_REF(addr) (*((volatile unsigned short*)addr))
|
|
|
+#define LONG_REF(addr) (*((volatile unsigned long*)addr))
|
|
|
+
|
|
|
+#define PUT_FIELD(field, val) (((val) << field##_SHIFT) & field##_MASK)
|
|
|
+#define GET_FIELD(reg, field) (((reg) & field##_MASK) >> field##_SHIFT)
|
|
|
+
|
|
|
+/**********
|
|
|
+ *
|
|
|
+ * 0xFFFFF0xx -- System Control
|
|
|
+ *
|
|
|
+ **********/
|
|
|
+
|
|
|
+/*
|
|
|
+ * System Control Register (SCR)
|
|
|
+ */
|
|
|
+#define SCR_ADDR 0xfffff000
|
|
|
+#define SCR BYTE_REF(SCR_ADDR)
|
|
|
+
|
|
|
+#define SCR_WDTH8 0x01 /* 8-Bit Width Select */
|
|
|
+#define SCR_DMAP 0x04 /* Double Map */
|
|
|
+#define SCR_SO 0x08 /* Supervisor Only */
|
|
|
+#define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */
|
|
|
+#define SCR_PRV 0x20 /* Privilege Violation */
|
|
|
+#define SCR_WPV 0x40 /* Write Protect Violation */
|
|
|
+#define SCR_BETO 0x80 /* Bus-Error TimeOut */
|
|
|
+
|
|
|
+/*
|
|
|
+ * Silicon ID Register (Mask Revision Register (MRR) for '328 Compatibility)
|
|
|
+ */
|
|
|
+#define MRR_ADDR 0xfffff004
|
|
|
+#define MRR LONG_REF(MRR_ADDR)
|
|
|
+
|
|
|
+/**********
|
|
|
+ *
|
|
|
+ * 0xFFFFF1xx -- Chip-Select logic
|
|
|
+ *
|
|
|
+ **********/
|
|
|
+
|
|
|
+/*
|