hostio.h 1.03 KB

#define	VERSION		"1.00"

#define	STACKSIZE	0x2000

#if defined(_LANGUAGE_C)

#include <ultra64.h>
#include <PR/leo.h>
#include "../ddwrite.h"

typedef struct
{
  u32		cmdFlags;		/* flags of the command line */
  s32		offset;			/* start LBA */
  s32		filesize;		/* in bytes */
  u32		type;
  void		*address;
#ifdef WIN32
  u32		reserve;
#endif
  LEODiskID	diskID;
} ctrlblk;


/*
 * Definition of the ctrlblk packet
 */
#define	DO_FORMAT		0x0001	/* Force to format the disk */
#define	SEND_ME_INFO		0x0004	/* send disk info to the host */
#define	SPECD_ID_FILE		0x0010	/* ID area is specified by file */
#define	SYS_UNFORMATTED		0x0100	/* system area is unformatted */
#define	ID_UNFORMATTED		0x0200	/* id area is unformatted */
#define	END_COMMAND		0x8000  /* end of leowrite */

#define	DO_FORMAT_MASK		0x0061

#define	Min(a, b)	(((a) < (b)) ? (a) : (b))
#define	Max(a, b)	(((a) > (b)) ? (a) : (b))

#define	BUFSIZE		1024*1024
#define	NUM_LBAS	4292
#define	MAX_HOSTNAME_LEN	8
#define	MAX_TIME_LEN		8

#define	TYPE_DONT_CHANGE	-1

#endif	/* _LANGUAGE_C */