OSDN Git Service

Moved the junk codes to junk directory.
[kozos-expbrd/kozos_expbrd.git] / firm / junk / 10 / bootload / diskio.h
1 /*-----------------------------------------------------------------------\r
2 /  PFF - Low level disk interface modlue include file    (C)ChaN, 2010\r
3 /-----------------------------------------------------------------------*/\r
4 \r
5 #ifndef _DISKIO\r
6 #define _DISKIO\r
7 \r
8 #include "integer.h"\r
9 #include "pff.h"\r
10 \r
11 \r
12 /* Status of Disk Functions */\r
13 typedef BYTE    DSTATUS;\r
14 \r
15 #define STA_NOINIT              0x01    /* Drive not initialized */\r
16 #define STA_NODISK              0x02    /* No medium in the drive */\r
17 \r
18 \r
19 /* Results of Disk Functions */\r
20 typedef enum {\r
21         RES_OK = 0,             /* 0: Function succeeded */\r
22         RES_ERROR,              /* 1: Disk error */\r
23         RES_NOTRDY,             /* 2: Not ready */\r
24         RES_PARERR              /* 3: Invalid parameter */\r
25 } DRESULT;\r
26 \r
27 \r
28 /*---------------------------------------*/\r
29 /* Prototypes for disk control functions */\r
30 \r
31 DSTATUS disk_initialize (void);\r
32 #if _USE_READ\r
33 DRESULT disk_readp (BYTE*, DWORD, WORD, WORD);\r
34 #endif\r
35 #if _USE_WRITE\r
36 DRESULT disk_writep (const BYTE*, DWORD);\r
37 #endif\r
38 \r
39 #endif\r