home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDX302.ST / DEFS.H < prev    next >
Encoding:
Text File  |  2001-02-09  |  2.2 KB  |  85 lines

  1. ;+
  2. ; Conditional assembly
  3. ;-
  4. SCDMA    equ    1            ; 0: not doing SCSI DMA
  5. SCFRDMA    equ    0            ; 0: don't allow SCSI DMA to fast RAM
  6. DRIVER    equ    0            ; 0: not to be included in driver
  7.  
  8. ;+
  9. ; Restraints 
  10. ;-
  11. MAXUNITS    equ    14        ; max # of log units w/o drv A & B
  12. MAXACSI        equ    8        ; maximum number of ACSI devices
  13. MAXSCSI        equ    8        ; maximum number of SCSI devices
  14. ACSIUNT        equ    7        ; highest ACSI unit number
  15. SCSIUNT        equ    15        ; highest SCSI unit number
  16. MAXACSECTS    equ    254        ; max # of sectors at one ACSI gulp
  17. MAXSCSECTS    equ    65534        ; max # of sectors at one SCSI gulp
  18.  
  19.  
  20. ;+
  21. ; Offsets to ...
  22. ;-
  23. DOSPM        equ    $1be        ; MSDOS boot sect's partition map
  24. DOSSIG        equ    $1fe        ; MSDOS boot sect's signature
  25. HDSIZ        equ    $1c2        ; offset to GEMDOS root sect's 
  26.                             ; hard disk size
  27.  
  28. ;+
  29. ; Constants and Variables
  30. ;-
  31. SIG        equ    $55aa        ; signature for valid MSDOS boot sects
  32. NRETRIES    equ    3        ; #retries-1
  33. MAXNPART    equ    3        ; #partition entries in root sect - 1
  34. BPBLEN        equ    18        ; length of bpb entry in bytes
  35. FATLEN        equ    64        ; max fat size = 64 sectors
  36. SERLEN        equ    3        ; length of a serial # in bytes
  37. CHKDATE        equ    $19870422    ; ROM date for bootstop checking
  38.  
  39.  
  40. ;+
  41. ; Number of bytes per Buffer Control Block (excluding the data block itself)
  42. ;
  43. ; struct_bcb {
  44. ;     struct_bcb    *b_link;     /*4 bytes */
  45. ;    int        b_neg1;              /*2 bytes */
  46. ;    int        b_private[5];     /*10 bytes*/ 
  47. ;    char        *b_bufr;     /*4 bytes*/
  48. ; };
  49. ;
  50. ; For GEMDOS buffer lists.
  51. ;-
  52. BCBLEN        equ    20
  53.  
  54.  
  55. ;+
  56. ; for extension of os pool
  57. ;-
  58. chunksiz    equ     66        ; #bytes/chunk
  59. chunkno        equ     4        ; chunk# (4 16-byte chunks)
  60.  
  61.  
  62. ;+
  63. ; for checking existence of fast RAM
  64. ;    If long word at _ramvalid == RAMMAGIC
  65. ; then  _ramtop is valid.  If _ramtop contains 0, no fast RAM is available,
  66. ; else _ramtop contains the address of top (end) of memory
  67. ;
  68. ; Fast RAM always starts at $01000000.
  69. ; _ramtop may hold $01000000 meaning there is no fast RAM!
  70. ;
  71. ; RAMRSV must be smaller than MAXACSECTS
  72. ;-
  73. RAMMAGIC    equ    $1357bd13    ; magic cookie for fast RAM
  74. RAMBOT        equ    $01000000    ; where fast RAM starts
  75. RAMRSV        equ    $80        ; # sectors of reserved RAM (64k)
  76.  
  77.  
  78. ;+
  79. ; Vector address
  80. ;-
  81. BERR        equ    $8        ; Bus ERRor vector
  82. IINS        equ    $10        ; Illegal INStruction vector
  83.  
  84.  
  85.