diff options
Diffstat (limited to 'system/alpha/h/eb164mem.h')
-rw-r--r-- | system/alpha/h/eb164mem.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/system/alpha/h/eb164mem.h b/system/alpha/h/eb164mem.h new file mode 100644 index 000000000..0e35de570 --- /dev/null +++ b/system/alpha/h/eb164mem.h @@ -0,0 +1,71 @@ +#ifndef __EB164MEM_H_LOADED +#define __EB164MEM_H_LOADED +/***************************************************************************** + + Copyright © 1993, 1994 Digital Equipment Corporation, + Maynard, Massachusetts. + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided +that the copyright notice and this permission notice appear in all copies +of software and supporting documentation, and that the name of Digital not +be used in advertising or publicity pertaining to distribution of the software +without specific, written prior permission. Digital grants this permission +provided that you prominently mark, as not part of the original, any +modifications made to this software or documentation. + +Digital Equipment Corporation disclaims all warranties and/or guarantees +with regard to this software, including all implied warranties of fitness for +a particular purpose and merchantability, and makes no representations +regarding the use of, or the results of the use of, the software and +documentation in terms of correctness, accuracy, reliability, currentness or +otherwise; and you rely on the software, documentation and results solely at +your own risk. + +******************************************************************************/ + +/* + * $Id: eb164mem.h,v 1.1.1.1 1997/10/30 23:27:14 verghese Exp $; + */ + +/* + * $Log: eb164mem.h,v $ + * Revision 1.1.1.1 1997/10/30 23:27:14 verghese + * current 10/29/97 + * + * Revision 1.2 1995/04/20 16:37:48 cruz + * Made some macro definition changes. + * + * Revision 1.1 1994/12/19 18:33:33 cruz + * Initial revision + * + * + */ + +#ifdef EB164 + +#include "system.h" +#include "lib.h" +#include "cia.h" + +#ifndef MAKEDEPEND +#include "cserve.h" +#endif + + +/* + * Macros used to access the memory controller + * csr's. + */ +#define MEM_MCR(x) (((ul)MC_MCR_BASE<<MC_MCR_BASE_SHIFT)|(ul)(x)) +#define _IN_MEM_MCR(p) (ReadL(MEM_MCR(p))) +#define _OUT_MEM_MCR(p,d) WriteL((MEM_MCR(p)),d);mb(); + +#define MEM_GCR(x) (((ul)MC_GCR_BASE<<MC_GCR_BASE_SHIFT)|(ul)(x)) +#define _IN_MEM_GCR(p) (ReadL(MEM_GCR(p))) +#define _OUT_MEM_GCR(p,d) WriteL((MEM_GCR(p)),d);mb(); + +#endif /* EB164 */ +#endif /* __EB164MEM_H_LOADED */ |