/*	CPM structure definitions

	Holds all CPM structure definitions.
*/

#include "cpmconst.def"

/*=============================================================================
				HISTORY
    Last change:	6 December 1983	mep
ver	0
rev	0
mod	d
patch	2


 mod
-----
  d		December 6, 1983	mep
	.change this file to cpmstruc.def, deleting non-cpm structures

  c		October 11, 1983	tpl
	.Change this files namd to 'DMSTRUCT.DEF'

  b		September 21, 1983	tpl
	.Add comments. (!).

  a		September 15, 1983	tpl
	.Create this module from alocinit.dat, alocdata.dat, alloc4.c

*/
/*=============================================================================
			DATA STRUCTURES
*/

/* CPM Disk Parameter Block */

struct	DPB
{
	CHAR	control;
	int	max_checksum;
	int	max_allocation;
	char	drive_name[ DRIVENAMESIZE];
	CHAR	hd_volume;
	CHAR	media_type;
	CHAR	unit;
		int	sect_per_track;
		CHAR	block_shift;
		CHAR	block_mask;
		CHAR	extent_mask;
		int	disk_size_mask;
		int	dir_max;
		CHAR	alloc_0_byte;
		CHAR	alloc_1_byte;
		int	dir_check_size;
		int	sys_offset;
	CHAR	sec_shared_allocvect;
	int	trk_shared_allocvect;
	CHAR	siz_shared_allocvect;
};

/*...........................................................................*/

/* CPM Disk Parameter Header */

struct DPH
{
	int	translate_table;
	int	reserved_CPM[ 3];
	int	dir_buff_address;
	int	dpb_address;
	int	checkSum_address;
	int	alloc_vec_address;
};

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

