#include "diskio.h"
#include "Xmmc.h"
Go to the source code of this file.
Defines | |
#define | ATA 0 |
#define | MMC 1 |
#define | USB 2 |
Functions | |
static DSTATUS | DecodeMMCResult (unsigned char r) |
static DSTATUS | DecodeMMCStatus (unsigned short r) |
static DRESULT | DecodeMMCIO (unsigned char r) |
DSTATUS | disk_initialize (BYTE drv) |
DSTATUS | disk_status (BYTE drv) |
DRESULT | disk_read (BYTE drv, BYTE *buff, DWORD sector, BYTE count) |
DRESULT | disk_write (BYTE drv, const BYTE *buff, DWORD sector, BYTE count) |
DRESULT | disk_ioctl (BYTE drv, BYTE ctrl, void *buff) |
#define ATA 0 |
Definition at line 16 of file diskio.c.
Referenced by disk_initialize(), disk_ioctl(), disk_read(), disk_status(), and disk_write().
#define MMC 1 |
Definition at line 17 of file diskio.c.
Referenced by disk_initialize(), disk_ioctl(), disk_read(), disk_status(), and disk_write().
#define USB 2 |
Definition at line 18 of file diskio.c.
Referenced by disk_initialize(), disk_ioctl(), disk_read(), disk_status(), and disk_write().
static DRESULT DecodeMMCIO | ( | unsigned char | r | ) | [static] |
Definition at line 43 of file diskio.c.
References MMC_R1_ADDRESS, MMC_R1_BUSY, MMC_R1_COM_CRC, MMC_R1_ERASE_RESET, MMC_R1_ERASE_SEQ, MMC_R1_IDLE_STATE, MMC_R1_ILLEGAL_COM, MMC_R1_PARAMETER, RES_ERROR, RES_NOTRDY, and RES_PARERR.
Referenced by disk_read(), and disk_write().
static DSTATUS DecodeMMCResult | ( | unsigned char | r | ) | [static] |
Definition at line 21 of file diskio.c.
References MMC_R1_ADDRESS, MMC_R1_BUSY, MMC_R1_COM_CRC, MMC_R1_ERASE_RESET, MMC_R1_ERASE_SEQ, MMC_R1_IDLE_STATE, MMC_R1_ILLEGAL_COM, MMC_R1_PARAMETER, and STA_NOINIT.
Referenced by disk_initialize().
static DSTATUS DecodeMMCStatus | ( | unsigned short | r | ) | [static] |
Definition at line 33 of file diskio.c.
References MMC_R2_WP, MMC_R2_WP_ERASESKIPPED, STA_NOINIT, and STA_PROTECT.
Referenced by disk_status().
Definition at line 58 of file diskio.c.
References ATA, DecodeMMCResult(), MMC, mmcReset(), STA_NOINIT, and USB.
Referenced by auto_mount().
Definition at line 216 of file diskio.c.
References ATA, MMC, RES_PARERR, and USB.
Referenced by auto_mount(), and sync().
Definition at line 128 of file diskio.c.
References ATA, DecodeMMCIO(), MMC, mmcRead(), RES_PARERR, and USB.
Referenced by auto_mount(), check_fs(), f_lseek(), f_read(), f_write(), and move_window().
Definition at line 92 of file diskio.c.
References ATA, DecodeMMCStatus(), MMC, mmcSendStatus(), STA_NOINIT, and USB.
Referenced by auto_mount(), and validate().
Definition at line 173 of file diskio.c.
References ATA, DecodeMMCIO(), MMC, mmcWrite(), RES_PARERR, and USB.
Referenced by f_lseek(), f_mkdir(), f_read(), f_sync(), f_write(), move_window(), reserve_direntry(), and sync().