root/include/asm-sparc/cypress.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* cypress.h: Cypress module specific definitions and defines.
   2  *
   3  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
   4  */
   5 
   6 #ifndef _SPARC_CYPRESS_H
   7 #define _SPARC_CYPRESS_H
   8 
   9 /* Cypress chips have %psr 'impl' of '0001' and 'vers' of '0001'. */
  10 
  11 /* The MMU control register fields on the Sparc Cypress 604/605 MMU's.
  12  *
  13  * ---------------------------------------------------------------
  14  * |implvers| MCA | MCM |MV| MID |BM| C|RSV|MR|CM|CL|CE|RSV|NF|ME|
  15  * ---------------------------------------------------------------
  16  *  31    24 23-22 21-20 19 18-15 14 13  12 11 10  9  8 7-2  1  0
  17  *
  18  * MCA: MultiChip Access -- Used for configuration of multiple
  19  *      CY7C604/605 cache units.
  20  * MCM: MultiChip Mask -- Again, for multiple cache unit config.
  21  * MV: MultiChip Valid -- Indicates MCM and MCA have valid settings.
  22  * MID: ModuleID -- Unique processor ID for MBus transactions. (605 only)
  23  * BM: Boot Mode -- 0 = not in boot mode, 1 = in boot mode
  24  * C: Cacheable -- Indicates whether accesses are cacheable while
  25  *    the MMU is off.  0=no 1=yes
  26  * MR: MemoryReflection -- Indicates whether the bus attacted to the
  27  *     MBus supports memory reflection. 0=no 1=yes (605 only)
  28  * CM: CacheMode -- Indicates whether the cache is operating in write
  29  *     through or copy-back mode. 0=write-through 1=copy-back
  30  * CL: CacheLock -- Indicates if the entire cache is locked or not.
  31  *     0=not-locked 1=locked  (604 only)
  32  * CE: CacheEnable -- Is the virtual cache on? 0=no 1=yes
  33  * NF: NoFault -- Do faults generate traps? 0=yes 1=no
  34  * ME: MmuEnable -- Is the MMU doing translations? 0=no 1=yes
  35  */
  36 
  37 /* NEEDS TO BE FIXED */
  38 #define CYPRESS_MCABITS   0x01800000
  39 #define CYPRESS_MCMBITS   0x00600000
  40 #define CYPRESS_MVALID    0x00040000
  41 #define CYPRESS_MIDMASK   0x0003c000   /* Only on 605 */
  42 #define CYPRESS_BMODE     0x00002000
  43 #define CYPRESS_ACENABLE  0x00001000
  44 #define CYPRESS_MRFLCT    0x00000800   /* Only on 605 */
  45 #define CYPRESS_CMODE     0x00000400
  46 #define CYPRESS_CLOCK     0x00000200   /* Only on 604 */
  47 #define CYPRESS_CENABLE   0x00000100
  48 #define CYPRESS_NFAULT    0x00000002
  49 #define CYPRESS_MENABLE   0x00000001
  50 
  51 #endif /* !(_SPARC_CYPRESS_H) */

/* [previous][next][first][last][top][bottom][index][help] */