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

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'exec/interrupts',
  7.        'exec/nodes'
  8.  
  9. #define CARDRESNAME 'card.resource'
  10.  
  11. OBJECT cardhandle
  12.   cardnode:ln
  13.   cardremoved:PTR TO is
  14.   cardinserted:PTR TO is
  15.   cardstatus:PTR TO is
  16.   cardflags:CHAR
  17. ENDOBJECT     /* SIZEOF=27 */
  18.  
  19. OBJECT devicetdata
  20.   dtsize:LONG
  21.   dtspeed:LONG
  22.   dttype:CHAR
  23.   dtflags:CHAR
  24. ENDOBJECT     /* SIZEOF=10 */
  25.  
  26. OBJECT cardmemorymap
  27.   commonmemory:PTR TO CHAR
  28.   attributememory:PTR TO CHAR
  29.   iomemory:PTR TO CHAR
  30.   commonmemsize:LONG
  31.   attributememsize:LONG
  32.   iomemsize:LONG
  33. ENDOBJECT     /* SIZEOF=12 */
  34.  
  35. CONST CARDB_RESETREMOVE=0,
  36.       CARDF_RESETREMOVE=1,
  37.       CARDB_IFAVAILABLE=1,
  38.       CARDF_IFAVAILABLE=2,
  39.       CARDB_DELAYOWNERSHIP=2,
  40.       CARDF_DELAYOWNERSHIP=4,
  41.       CARDB_POSTSTATUS=3,
  42.       CARDF_POSTSTATUS=8,
  43.       CARDB_REMOVEHANDLE=0,
  44.       CARDF_REMOVEHANDLE=1,
  45.       CARD_STATUSB_CCDET=6,
  46.       CARD_STATUSF_CCDET=$40,
  47.       CARD_STATUSB_BVD1=5,
  48.       CARD_STATUSF_BVD1=$20,
  49.       CARD_STATUSB_SC=5,
  50.       CARD_STATUSF_SC=$20,
  51.       CARD_STATUSB_BVD2=4,
  52.       CARD_STATUSF_BVD2=16,
  53.       CARD_STATUSB_DA=4,
  54.       CARD_STATUSF_DA=16,
  55.       CARD_STATUSB_WR=3,
  56.       CARD_STATUSF_WR=8,
  57.       CARD_STATUSB_BSY=2,
  58.       CARD_STATUSF_BSY=4,
  59.       CARD_STATUSB_IRQ=2,
  60.       CARD_STATUSF_IRQ=4,
  61.       CARD_VOLTAGE_0V=0,
  62.       CARD_VOLTAGE_5V=1,
  63.       CARD_VOLTAGE_12V=2,
  64.       CARD_ENABLEB_DIGAUDIO=1,
  65.       CARD_ENABLEF_DIGAUDIO=2,
  66.       CARD_DISABLEB_WP=3,
  67.       CARD_DISABLEF_WP=8,
  68.       CARD_INTERFACE_AMIGA_0=0,
  69.       CARD_INTB_SETCLR=7,
  70.       CARD_INTF_SETCLR=128,
  71.       CARD_INTB_BVD1=5,
  72.       CARD_INTF_BVD1=32,
  73.       CARD_INTB_SC=5,
  74.       CARD_INTF_SC=32,
  75.       CARD_INTB_BVD2=4,
  76.       CARD_INTF_BVD2=16,
  77.       CARD_INTB_DA=4,
  78.       CARD_INTF_DA=16,
  79.       CARD_INTB_BSY=2,
  80.       CARD_INTF_BSY=4,
  81.       CARD_INTB_IRQ=2,
  82.       CARD_INTF_IRQ=4,
  83.       CISTPL_AMIGAXIP=$91
  84.  
  85. OBJECT amigaxip
  86. -> Um, this was all wrong
  87.   code:CHAR
  88.   link:CHAR
  89.   xiploc[4]:ARRAY
  90.   xipflags:CHAR
  91.   xipresrv:CHAR
  92. ENDOBJECT     /* SIZEOF=8 */
  93.  
  94. CONST XIPFLAGB_AUTORUN=0,
  95.       XIPFLAGF_AUTORUN=1
  96.  
  97.