home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 032.lha / include / libraries / configregs.g < prev    next >
Text File  |  1987-05-16  |  2KB  |  100 lines

  1. type
  2.     ExpansionRom_t = struct {
  3.     ushort er_Type;
  4.     ushort er_Product;
  5.     ushort er_Flags;
  6.     ushort er_Reserved03;
  7.     uint er_Manufacturer;
  8.     ulong er_SerialNumber;
  9.     uint er_InitDiagVec;
  10.     ushort er_Reserved0c, er_Reserved0d, er_Reserved0e, er_Reserved0f;
  11.     },
  12.  
  13.     ExpansionControl_t = struct {
  14.     ushort ec_Interrupt;
  15.     ushort ec_Reserved11;
  16.     ushort ec_BaseAddress;
  17.     ushort ec_ShutUp;
  18.     ushort ec_Reserved14, ec_Reserved15, ec_Reserved16, ec_Reserved17,
  19.            ec_Reserved18, ec_Reserved19, ec_Reserved1a, ec_Reserved1b,
  20.            ec_Reserved1c, ec_Reserved1d, ec_Reserved1e, ec_Reserved1f;
  21.     };
  22.  
  23. ulong
  24.     E_SLOTSIZE        = 0x10000,
  25.     E_SLOTMASK        = 0xffff,
  26.     E_SLOTSHIFT     = 16,
  27.  
  28.     E_EXPANSIONBASE    = 0xe80000,
  29.     E_EXPANSIONSIZE    = 0x080000,
  30.     E_EXPANSIONSLOTS    = 8,
  31.  
  32.     E_MEMORYBASE    = 0x200000,
  33.     E_MEMORYSIZE    = 0x800000,
  34.     E_MEMORYSLOTS    = 128;
  35.  
  36. ushort
  37.     ERT_TYPEMASK    = 0xc0,
  38.     ERT_TYPEBIT     = 6,
  39.     ERT_TYPESIZE    = 2,
  40.     ERT_NEWBOARD    = 0xc0,
  41.  
  42.     ERT_MEMMASK     = 0x07,
  43.     ERT_MEMBIT        = 0,
  44.     ERT_MEMSIZE     = 3,
  45.  
  46.     ERTB_CHAINEDCONFIG    = 3,
  47.     ERTB_DIAGVALID    = 4,
  48.     ERTB_MEMLIST    = 5,
  49.  
  50.     ERTF_CHAINEDCONFIG    = 1 << ERTB_CHAINEDCONFIG,
  51.     ERTF_DIAGVALID    = 1 << ERTB_DIAGVALID,
  52.     ERTF_MEMLIST    = 1 << ERTB_MEMLIST,
  53.  
  54.     ERFB_MEMSPACE    = 7,
  55.     ERFB_NOSHUTUP    = 6,
  56.  
  57.     ERFF_MEMSPACE    = 1 << ERFB_MEMSPACE,
  58.     ERFF_NOSHUTUP    = 1 << ERFB_NOSHUTUP,
  59.  
  60.     ECIB_INTENA     = 1,
  61.     ECIB_RESET        = 3,
  62.     ECIB_INT2PEND    = 4,
  63.     ECIB_INT6PEND    = 5,
  64.     ECIB_INT7PEND    = 6,
  65.     ECIB_INTERRUPTING    = 7,
  66.  
  67.     ECIF_INTENA     = 1 << ECIB_INTENA,
  68.     ECIF_RESET        = 1 << ECIB_RESET,
  69.     ECIF_INT2PEND    = 1 << ECIB_INT2PEND,
  70.     ECIF_INT6PEND    = 1 << ECIB_INT6PEND,
  71.     ECIF_INT7PEND    = 1 << ECIB_INT7PEND,
  72.     ECIF_INTERRUPTING    = 1 << ECIB_INTERRUPTING;
  73.  
  74. type
  75.     DiagArea_t = struct {
  76.     ushort da_Config;
  77.     ushort da_Flags;
  78.     uint da_Size;
  79.     uint da_DiagPoint;
  80.     uint da_BootPoint;
  81.     uint da_Name;
  82.     uint da_Reserved01, da_Reserved02;
  83.     };
  84.  
  85. ushort
  86.     DAC_BUSWIDTH    = 0xC0,
  87.     DAC_NIBBLEWIDE    = 0x00,
  88.     DAC_BYTEWIDE    = 0x40,
  89.     DAC_WORDWIDE    = 0x80,
  90.  
  91.     DAC_BOOTTIME    = 0x30,
  92.     DAC_NEVER        = 0x00,
  93.     DAC_CONFIGTIME    = 0x10,
  94.     DAC_BINDTIME    = 0x20;
  95.  
  96. extern
  97.     EC_MEMADDR(ushort slot)ulong,
  98.     ERT_MEMNEEDED(ushort t)ulong,
  99.     ERT_SLOTSNEEDED(ushort t)ushort;
  100.