/* include/asm-m68knommu/MC68VZ328.h: 'VZ328 control registers * * Copyright (c) 2000-2001 Lineo Inc. * Copyright (c) 2000-2001 Lineo Canada Corp. * Copyright (C) 1999 Vladimir Gurevich * Bare & Hare Software, Inc. * Based on include/asm-m68knommu/MC68332.h * Copyright (C) 1998 Kenneth Albanowski , * The Silver Hammer Group, Ltd. * * M68VZ328 fixes by Evan Stawnyczy * vz multiport fixes by Michael Leslie */ #ifndef _MC68VZ328_H_ #define _MC68VZ328_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 * **********/ /* * Chip Select Group Base Registers */ #define CSGBA_ADDR 0xfffff100 #define CSGBB_ADDR 0xfffff102 #define CSGBC_ADDR 0xfffff104 #define CSGBD_ADDR 0xfffff106 #define CSGBA WORD_REF(CSGBA_ADDR) #define CSGBB WORD_REF(CSGBB_ADDR) #define CSGBC WORD_REF(CSGBC_ADDR)