|
PS2SDK
PS2 Homebrew Libraries
|
Include dependency graph for usbhdfsd.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | UsbMassDeviceInfo |
| struct | _cache_record |
| struct | _cache_set |
| struct | _mass_dev |
| struct | _fat_bpb |
| struct | _fat_driver |
Macros | |
| #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) |
Typedefs | |
| typedef struct UsbMassDeviceInfo | UsbMassDeviceInfo_t |
| typedef void(* | usbmass_cb_t) (int cause) |
| typedef struct _mass_dev | mass_dev |
| typedef struct _cache_record | cache_record |
| typedef struct _fat_bpb | fat_bpb |
| typedef struct _fat_driver | fat_driver |
Functions | |
| 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.
| struct 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 | |
| struct _cache_record |
| struct _cache_set |
Collaboration diagram for _cache_set:| 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 | |
| struct _fat_bpb |
Definition at line 22 of file fat_driver.h.
| struct _fat_driver |
Definition at line 42 of file fat_driver.h.
Collaboration diagram for _fat_driver:| 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 | |
| #define CACHE_SIZE 32 |
Definition at line 39 of file usbhdfsd.h.
| #define MAX_DIR_CLUSTER 512 |
Definition at line 107 of file usbhdfsd.h.
| #define MAX_DE_STACK 21 |
Definition at line 114 of file usbhdfsd.h.
| #define SEQ_MASK_SIZE 2048 |
Definition at line 119 of file usbhdfsd.h.
| #define DIR_MASK_SIZE 2048 * 11 |
Definition at line 121 of file usbhdfsd.h.
| #define MAX_CLUSTER_STACK 128 |
Definition at line 124 of file usbhdfsd.h.
| #define usbmass_IMPORTS_start DECLARE_IMPORT_TABLE(usbmass, 1, 2) |
Definition at line 139 of file usbhdfsd.h.
| #define usbmass_IMPORTS_end END_IMPORT_TABLE |
Definition at line 140 of file usbhdfsd.h.
| #define I_UsbMassGetDeviceInfo DECLARE_IMPORT(4, UsbMassGetDeviceInfo) |
Definition at line 142 of file usbhdfsd.h.
| #define I_UsbMassRegisterCallback DECLARE_IMPORT(5, UsbMassRegisterCallback) |
Definition at line 143 of file usbhdfsd.h.
| #define I_UsbMassFatGetData DECLARE_IMPORT(6, UsbMassFatGetData) |
Definition at line 144 of file usbhdfsd.h.
| #define I_UsbMassReadSector DECLARE_IMPORT(7, UsbMassReadSector) |
Definition at line 145 of file usbhdfsd.h.
| #define I_UsbMassWriteSector DECLARE_IMPORT(8, UsbMassWriteSector) |
Definition at line 146 of file usbhdfsd.h.
| #define I_UsbMassFlushCache DECLARE_IMPORT(9, UsbMassFlushCache) |
Definition at line 147 of file usbhdfsd.h.
| #define I_UsbMassFatGetClusterChain DECLARE_IMPORT(10, UsbMassFatGetClusterChain) |
Definition at line 148 of file usbhdfsd.h.
| typedef void(* usbmass_cb_t) (int cause) |
Definition at line 31 of file usbhdfsd.h.
Definition at line 36 of file usbhdfsd.h.
|
extern |
Definition at line 1146 of file usb_driver.c.
|
extern |
Definition at line 1165 of file usb_driver.c.
|
extern |
|
extern |
|
extern |