sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
usbhdfsd.h File Reference
#include <types.h>
#include <irx.h>
#include <usbhdfsd-common.h>

Go to the source code of this file.

Classes

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 _cache_set cache_set
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)

Detailed Description

IOP USBHDFSD definitions.

Definition in file usbhdfsd.h.

Macro Definition Documentation

◆ CACHE_SIZE

#define CACHE_SIZE   32

Definition at line 40 of file usbhdfsd.h.

◆ DIR_MASK_SIZE

#define DIR_MASK_SIZE   2048 * 11

Definition at line 122 of file usbhdfsd.h.

◆ I_UsbMassFatGetClusterChain

#define I_UsbMassFatGetClusterChain   DECLARE_IMPORT(10, UsbMassFatGetClusterChain)

Definition at line 149 of file usbhdfsd.h.

◆ I_UsbMassFatGetData

#define I_UsbMassFatGetData   DECLARE_IMPORT(6, UsbMassFatGetData)

Definition at line 145 of file usbhdfsd.h.

◆ I_UsbMassFlushCache

#define I_UsbMassFlushCache   DECLARE_IMPORT(9, UsbMassFlushCache)

Definition at line 148 of file usbhdfsd.h.

◆ I_UsbMassGetDeviceInfo

#define I_UsbMassGetDeviceInfo   DECLARE_IMPORT(4, UsbMassGetDeviceInfo)

Definition at line 143 of file usbhdfsd.h.

◆ I_UsbMassReadSector

#define I_UsbMassReadSector   DECLARE_IMPORT(7, UsbMassReadSector)

Definition at line 146 of file usbhdfsd.h.

◆ I_UsbMassRegisterCallback

#define I_UsbMassRegisterCallback   DECLARE_IMPORT(5, UsbMassRegisterCallback)

Definition at line 144 of file usbhdfsd.h.

◆ I_UsbMassWriteSector

#define I_UsbMassWriteSector   DECLARE_IMPORT(8, UsbMassWriteSector)

Definition at line 147 of file usbhdfsd.h.

◆ MAX_CLUSTER_STACK

#define MAX_CLUSTER_STACK   128

Definition at line 125 of file usbhdfsd.h.

◆ MAX_DE_STACK

#define MAX_DE_STACK   21

Definition at line 115 of file usbhdfsd.h.

◆ MAX_DIR_CLUSTER

#define MAX_DIR_CLUSTER   512

Definition at line 108 of file usbhdfsd.h.

◆ SEQ_MASK_SIZE

#define SEQ_MASK_SIZE   2048

Definition at line 120 of file usbhdfsd.h.

◆ usbmass_IMPORTS_end

#define usbmass_IMPORTS_end   END_IMPORT_TABLE

Definition at line 141 of file usbhdfsd.h.

◆ usbmass_IMPORTS_start

#define usbmass_IMPORTS_start   DECLARE_IMPORT_TABLE(usbmass, 1, 2)

Definition at line 140 of file usbhdfsd.h.

Typedef Documentation

◆ cache_set

typedef struct _cache_set cache_set

Definition at line 35 of file usbhdfsd.h.

◆ mass_dev

typedef struct _mass_dev mass_dev

Definition at line 37 of file usbhdfsd.h.

◆ usbmass_cb_t

typedef void(*) usbmass_cb_t(int cause)

Definition at line 32 of file usbhdfsd.h.

Function Documentation

◆ UsbMassFlushCache()

void UsbMassFlushCache ( fat_driver * fatd)
extern

Definition at line 36 of file api.c.

◆ UsbMassGetDeviceInfo()

int UsbMassGetDeviceInfo ( int device,
UsbMassDeviceInfo_t * info )
extern

Definition at line 1146 of file usb_driver.c.

◆ UsbMassReadSector()

int UsbMassReadSector ( fat_driver * fatd,
void ** buffer,
u32 sector )
extern

Definition at line 26 of file api.c.

◆ UsbMassRegisterCallback()

int UsbMassRegisterCallback ( int device,
usbmass_cb_t callback )
extern

Definition at line 1165 of file usb_driver.c.

◆ UsbMassWriteSector()

int UsbMassWriteSector ( fat_driver * fatd,
u32 sector )
extern

Definition at line 31 of file api.c.