* SMS2 - Channel definition
*
* This file - SMS7_in - contains the channel definition header for all channels
*
          nolist

chn_len   equ    $00 long           length of definition block
chn_drvr  equ    $04 long           address of driver linkage
chn_ownr  equ    $08 long           owner of this channel
chn_rflg  equ    $0c long           pointer to channel closed flag, cleared on close
chn_tag   equ    $10 word           channel tag
chn_stat  equ    $12 byte           status - 0 ok, $01 wait, $ff wait (a1 rel a6)
chn_actn  equ    $13 byte           io action (stored value of d0)
chn_jbwt  equ    $14 long           id of job waiting on io
chn_end   equ    $18                end of header
*
* extended channel definition for plain serial queues
*
chn_qin   equ    $18 long          pointer to input queue (or zero)
chn_qout  equ    $1c long          pointer to output queue (or zero)
chn_qend  equ    $20
*
* device driver header
*
chn_next  equ    $0  long           pointer to next driver
chn_inot  equ    $4  long           entry for input and output
chn_open  equ    $8  long           entry for open
chn_clos  equ    $c  long           entry for close
*
* the following are for directory devices (file system) only
*
chn_slav  equ    $10 long           entry for slaving blocks
chn_renm  equ    $14 long           entry for rename [ql]
*
chn_frmt  equ    $1c long           entry for format medium
chn_dfln  equ    $20 long           length of physical definition block
chn_dnam  equ    $24 2+n byte       drive name

          list
