#include <types.h>
#include <irx.h>
#include <usbhdfsd-common.h>
Go to the source code of this file.
|
|
#define | CACHE_SIZE 32 |
| |
|
#define | MAX_DIR_CLUSTER 512 |
| |
|
#define | MAX_DE_STACK 21 |
| |
|
#define | SEQ_MASK_SIZE 2048 |
| |
|
#define | DIR_MASK_SIZE 2048 * 11 |
| |
|
#define | MAX_CLUSTER_STACK 128 |
| |
|
#define | usbmass_IMPORTS_start DECLARE_IMPORT_TABLE(usbmass, 1, 2) |
| |
|
#define | usbmass_IMPORTS_end END_IMPORT_TABLE |
| |
|
#define | I_UsbMassGetDeviceInfo DECLARE_IMPORT(4, UsbMassGetDeviceInfo) |
| |
|
#define | I_UsbMassRegisterCallback DECLARE_IMPORT(5, UsbMassRegisterCallback) |
| |
|
#define | I_UsbMassFatGetData DECLARE_IMPORT(6, UsbMassFatGetData) |
| |
|
#define | I_UsbMassReadSector DECLARE_IMPORT(7, UsbMassReadSector) |
| |
|
#define | I_UsbMassWriteSector DECLARE_IMPORT(8, UsbMassWriteSector) |
| |
|
#define | I_UsbMassFlushCache DECLARE_IMPORT(9, UsbMassFlushCache) |
| |
|
#define | I_UsbMassFatGetClusterChain DECLARE_IMPORT(10, UsbMassFatGetClusterChain) |
| |
|
|
int | UsbMassGetDeviceInfo (int device, UsbMassDeviceInfo_t *info) |
| |
|
int | UsbMassRegisterCallback (int device, usbmass_cb_t callback) |
| |
|
fat_driver * | UsbMassFatGetData (int device) |
| |
|
int | UsbMassReadSector (fat_driver *fatd, void **buffer, u32 sector) |
| |
|
int | UsbMassWriteSector (fat_driver *fatd, u32 sector) |
| |
|
void | UsbMassFlushCache (fat_driver *fatd) |
| |
|
int | UsbMassFatGetClusterChain (fat_driver *fatd, unsigned int cluster, unsigned int *buf, unsigned int bufSize, int startFlag) |
| |
IOP USBHDFSD definitions.
Definition in file usbhdfsd.h.
◆ UsbMassDeviceInfo
Definition at line 23 of file usbhdfsd.h.
| Data Fields |
|
unsigned short int |
status |
If the CONNected bit is not set, the contents of the other fields of this structure are undefined.
|
|
unsigned short int |
SectorSize |
|
|
unsigned int |
MaxLBA |
|
◆ _cache_record
Definition at line 17 of file scache.h.
| Data Fields |
|
unsigned int |
sector |
|
|
int |
tax |
|
|
char |
writeDirty |
|
◆ _cache_set
Definition at line 24 of file scache.h.
| Data Fields |
|
struct block_device * |
bd |
|
|
unsigned int |
sectorSize |
|
|
unsigned int |
indexLimit |
|
|
unsigned char * |
sectorBuf |
|
|
cache_record |
rec[CACHE_SIZE] |
|
|
unsigned int |
cacheAccess |
|
|
unsigned int |
cacheHits |
|
|
unsigned int |
writeFlag |
|
|
mass_dev * |
dev |
|
◆ _fat_bpb
Definition at line 22 of file fat_driver.h.
| Data Fields |
|
unsigned int |
sectorSize |
|
|
unsigned char |
clusterSize |
|
|
unsigned int |
resSectors |
|
|
unsigned char |
fatCount |
|
|
unsigned int |
rootSize |
|
|
unsigned int |
fatSize |
|
|
unsigned int |
trackSize |
|
|
unsigned int |
headCount |
|
|
unsigned int |
sectorCount |
|
|
unsigned int |
partStart |
|
|
unsigned int |
rootDirStart |
|
|
unsigned int |
rootDirCluster |
|
|
unsigned int |
activeFat |
|
|
unsigned char |
fatType |
|
|
unsigned char |
fatId[9] |
|
|
unsigned int |
dataStart |
|
◆ _fat_driver
Definition at line 42 of file fat_driver.h.
| Data Fields |
|
struct block_device * |
bd |
|
|
cache_set * |
cache |
|
|
fat_bpb |
partBpb |
|
|
unsigned int |
cbuf[MAX_DIR_CLUSTER] |
|
|
unsigned int |
lastChainCluster |
|
|
int |
lastChainResult |
|
|
unsigned int |
deSec[MAX_DE_STACK] |
|
|
int |
deOfs[MAX_DE_STACK] |
|
|
int |
deIdx |
|
|
u8 |
seq_mask[SEQ_MASK_SIZE/8] |
|
|
u8 |
dir_used_mask[DIR_MASK_SIZE/8] |
|
|
unsigned int |
clStack[MAX_CLUSTER_STACK] |
|
|
int |
clStackIndex |
|
|
unsigned int |
clStackLast |
|
|
mass_dev * |
dev |
|