hostio.h
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#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 */