1File: PKTIO.H                                                             Page       1
     1   /********************************************************
     2   *							*
     3   *		CP/M-68K header file 			*
     4   *    Copyright (c) 1982 by Digital Research, Inc.	*
     5   *    Structure definitions for doing I/O in packets	*
     6   *							*
     7   ********************************************************/
     8    
     9   /* May use this information structure instead of disk parameter header and
    10      disk parameter block in future, but for now it's unused
    11   struct dskinfo
    12   {
    13   	UBYTE	*dbuffp;
    14   	UBYTE	*csv;
    15   	UBYTE	*alv;
    16   	UBYTE	blksize;
    17   	UBYTE	didummy;
    18   	UWORD	dskmax;
    19   	UWORD	dirmax;
    20   	UWORD	chksize;
    21   };
    22   			*/
    23    
    24   struct iopb
    25   {
    26   	UBYTE	iofcn;		/*  function number, see defines below	*/
    27   	UBYTE	ioflags;	/*  used for login flag and write flag	*/
    28   	UBYTE	devtype;	/*  device type, see defines below 	*/
    29   				/*  currently unused			*/
    30   	UBYTE	devnum;		/*  device number, or, devtype and devnum
    31   				    taken together form int device number */
    32   	LONG	devadr;		/*  item nmbr on device to start xfer at */
    33   		/* note -- item is sector for disks, byte for char devs */
    34   	UWORD	xferlen;	/*  number items to transfer		*/
    35   	UBYTE	*xferadr;	/*  memory address to xfer to/from	*/
    36   	struct dph *infop;	/*  pointer to disk parameter header	*/
    37   				/*  return parm for fcn 0, input for rest */
    38   };
    39    
    40    
    41   /*  Definitions for iofcn, the function number */
    42   #define	sel_info 0		/*  select and return info on device */
    43   #define	read	 1
    44   #define	write    2
    45   #define	flush    3
    46   #define	status   4		/* not currently used */
    47    
    48    
    49   /*  Definitions for devtype, the device type */
    50   /*  This field not currently used	*/
    51   #define	console	 0
    52   #define	printer	 1
    53   #define	disk     2
    54   #define	memory   3		/* gets TPA boundaries */
    55   #define	redir    4		/* read/write IOByte   */
    56   #define	exc_vec	 5		/* set exception vector */
    57    
