home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / libraries / configregs.e < prev    next >
Text File  |  1995-07-05  |  3KB  |  115 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. OBJECT expansionrom
  7.   type:CHAR
  8.   product:CHAR
  9.   flags:CHAR
  10.   reserved03:CHAR
  11.   manufacturer:INT  -> This is unsigned
  12.   serialnumber:LONG
  13.   initdiagvec:INT  -> This is unsigned
  14.   reserved0c:CHAR
  15.   reserved0d:CHAR
  16.   reserved0e:CHAR
  17.   reserved0f:CHAR
  18. ENDOBJECT     /* SIZEOF=16 */
  19.  
  20. OBJECT expansioncontrol
  21.   interrupt:CHAR
  22.   z3_highbase:CHAR
  23.   baseaddress:CHAR
  24.   shutup:CHAR
  25.   reserved14:CHAR
  26.   reserved15:CHAR
  27.   reserved16:CHAR
  28.   reserved17:CHAR
  29.   reserved18:CHAR
  30.   reserved19:CHAR
  31.   reserved1a:CHAR
  32.   reserved1b:CHAR
  33.   reserved1c:CHAR
  34.   reserved1d:CHAR
  35.   reserved1e:CHAR
  36.   reserved1f:CHAR
  37. ENDOBJECT     /* SIZEOF=16 */
  38.  
  39. CONST E_SLOTSIZE=$10000,
  40.       E_SLOTMASK=$FFFF,
  41.       E_SLOTSHIFT=16,
  42.       E_EXPANSIONBASE=$E80000,
  43.       EZ3_EXPANSIONBASE=$FF000000,
  44.       E_EXPANSIONSIZE=$80000,
  45.       E_EXPANSIONSLOTS=8,
  46.       E_MEMORYBASE=$200000,
  47.       E_MEMORYSIZE=$800000,
  48.       E_MEMORYSLOTS=$80,
  49.       EZ3_CONFIGAREA=$40000000,
  50.       EZ3_CONFIGAREAEND=$7FFFFFFF,
  51.       EZ3_SIZEGRANULARITY=$80000,
  52.       ERT_TYPEMASK=$C0,
  53.       ERT_TYPEBIT=6,
  54.       ERT_TYPESIZE=2,
  55.       ERT_NEWBOARD=$C0,
  56.       ERT_ZORROII=$C0,
  57.       ERT_ZORROIII=$80,
  58.       ERTB_MEMLIST=5,
  59.       ERTB_DIAGVALID=4,
  60.       ERTB_CHAINEDCONFIG=3,
  61.       ERTF_MEMLIST=$20,
  62.       ERTF_DIAGVALID=16,
  63.       ERTF_CHAINEDCONFIG=8,
  64.       ERT_MEMMASK=7,
  65.       ERT_MEMBIT=0,
  66.       ERT_MEMSIZE=3,
  67.       ERFB_MEMSPACE=7,
  68.       ERFB_NOSHUTUP=6,
  69.       ERFB_EXTENDED=5,
  70.       ERFB_ZORRO_III=4,
  71.       ERFF_MEMSPACE=$80,
  72.       ERFF_NOSHUTUP=$40,
  73.       ERFF_EXTENDED=$20,
  74.       ERFF_ZORRO_III=16,
  75.       ERT_Z3_SSMASK=15,
  76.       ERT_Z3_SSBIT=0,
  77.       ERT_Z3_SSSIZE=4,
  78.       ECIB_INTENA=1,
  79.       ECIB_RESET=3,
  80.       ECIB_INT2PEND=4,
  81.       ECIB_INT6PEND=5,
  82.       ECIB_INT7PEND=6,
  83.       ECIB_INTERRUPTING=7,
  84.       ECIF_INTENA=2,
  85.       ECIF_RESET=8,
  86.       ECIF_INT2PEND=16,
  87.       ECIF_INT6PEND=$20,
  88.       ECIF_INT7PEND=$40,
  89.       ECIF_INTERRUPTING=$80
  90.  
  91. #define ERT_MEMNEEDED(t) (IF (t) AND ERT_MEMMASK THEN Shl($10000, ((t) AND ERT_MEMMASK)-1) ELSE $800000)
  92. #define ERT_SLOTSNEEDED(t) (IF (t) AND ERT_MEMMASK THEN Shl(1, ((t) AND ERT_MEMMASK)-1) ELSE $80)
  93. #define EC_MEMADDR(slot) (Shl((slot), E_SLOTSHIFT))
  94.  
  95. OBJECT diagarea
  96.   config:CHAR
  97.   flags:CHAR
  98.   size:INT  -> This is unsigned
  99.   diagpoint:INT  -> This is unsigned
  100.   bootpoint:INT  -> This is unsigned
  101.   name:INT  -> This is unsigned
  102.   reserved01:INT
  103.   reserved02:INT
  104. ENDOBJECT     /* SIZEOF=14 */
  105.  
  106. CONST DAC_BUSWIDTH=$C0,
  107.       DAC_NIBBLEWIDE=0,
  108.       DAC_BYTEWIDE=$40,
  109.       DAC_WORDWIDE=$80,
  110.       DAC_BOOTTIME=$30,
  111.       DAC_NEVER=0,
  112.       DAC_CONFIGTIME=16,
  113.       DAC_BINDTIME=$20
  114.  
  115.