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

Go to the source code of this file.

Classes

struct  bd_fragment

Macros

#define USBMASS_IOCTL_RENAME   0x0000
#define USBMASS_IOCTL_GET_CLUSTER   0x0001
#define USBMASS_IOCTL_GET_LBA   0x0002
#define USBMASS_IOCTL_GET_DRIVERNAME   0x0003
#define USBMASS_IOCTL_CHECK_CHAIN   0x0004
#define USBMASS_IOCTL_GET_FRAGLIST   0x0005
#define USBMASS_IOCTL_GET_DEVICE_NUMBER   0x0006
#define USBMASS_DEVCTL_STOP_UNIT   0x0000
#define USBMASS_DEVCTL_STOP_ALL   0x0001
#define USBMASS_DEVCTL_GET_SECTOR_SIZE   0x0002
#define USBMASS_DEVCTL_GET_TOTAL_SIZE   0x0003
#define USBMASS_DEVCTL_GET_FREE_SIZE   0x0004
#define USBMASS_DEV_STAT_CONN   0x01
#define USBMASS_DEV_STAT_CONF   0x02
#define USBMASS_DEV_STAT_ERR   0x80

Enumerations

enum  USBMASS_DEV_EV { USBMASS_DEV_EV_CONN = 0 , USBMASS_DEV_EV_DISCONN }

Functions

struct bd_fragment __attribute__ ((packed)) bd_fragment_t

Variables

u64 sector
u32 count
 start sector of fragmented bd/file
enum USBMASS_DEV_EV __attribute__

Detailed Description

Common USBHDFSD definitions.

Definition in file usbhdfsd-common.h.

Macro Definition Documentation

◆ USBMASS_DEV_STAT_CONF

#define USBMASS_DEV_STAT_CONF   0x02

CONFigured

Definition at line 58 of file usbhdfsd-common.h.

◆ USBMASS_DEV_STAT_CONN

#define USBMASS_DEV_STAT_CONN   0x01

CONNected

Definition at line 56 of file usbhdfsd-common.h.

◆ USBMASS_DEV_STAT_ERR

#define USBMASS_DEV_STAT_ERR   0x80

ERRor

Definition at line 60 of file usbhdfsd-common.h.

◆ USBMASS_DEVCTL_GET_FREE_SIZE

#define USBMASS_DEVCTL_GET_FREE_SIZE   0x0004

Returns the free space in bytes of the mounted volume as a u64 in the output buffer (bdmfs_fatfs only).

Definition at line 52 of file usbhdfsd-common.h.

◆ USBMASS_DEVCTL_GET_SECTOR_SIZE

#define USBMASS_DEVCTL_GET_SECTOR_SIZE   0x0002

Returns the sector size in bytes of the device as a u32 in the output buffer (bdmfs_fatfs only).

Definition at line 48 of file usbhdfsd-common.h.

◆ USBMASS_DEVCTL_GET_TOTAL_SIZE

#define USBMASS_DEVCTL_GET_TOTAL_SIZE   0x0003

Returns the total size in bytes of the device as a u64 in the output buffer (bdmfs_fatfs only).

Definition at line 50 of file usbhdfsd-common.h.

◆ USBMASS_DEVCTL_STOP_ALL

#define USBMASS_DEVCTL_STOP_ALL   0x0001

Issues the SCSI STOP UNIT command too all devices. Use this to shut down devices properly.

Definition at line 46 of file usbhdfsd-common.h.

◆ USBMASS_DEVCTL_STOP_UNIT

#define USBMASS_DEVCTL_STOP_UNIT   0x0000

Issues the SCSI STOP UNIT command to the specified device. Use this to shut down devices properly.

Definition at line 44 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_CHECK_CHAIN

#define USBMASS_IOCTL_CHECK_CHAIN   0x0004

Check if fragments exist

Definition at line 36 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_GET_CLUSTER

#define USBMASS_IOCTL_GET_CLUSTER   0x0001

Returns first cluster number of opened file, within the filesystem.

Definition at line 30 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_GET_DEVICE_NUMBER

#define USBMASS_IOCTL_GET_DEVICE_NUMBER   0x0006

Get the device number for the block device backing the mass partition

Definition at line 40 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_GET_DRIVERNAME

#define USBMASS_IOCTL_GET_DRIVERNAME   0x0003

Returns the block device driver name

Definition at line 34 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_GET_FRAGLIST

#define USBMASS_IOCTL_GET_FRAGLIST   0x0005

Return fragment table

Definition at line 38 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_GET_LBA

#define USBMASS_IOCTL_GET_LBA   0x0002

Returns the absolute LBA of the opened file.

Definition at line 32 of file usbhdfsd-common.h.

◆ USBMASS_IOCTL_RENAME

#define USBMASS_IOCTL_RENAME   0x0000

Rename opened file. Data input to ioctl() -> new, full filename of file.

Definition at line 28 of file usbhdfsd-common.h.

Enumeration Type Documentation

◆ USBMASS_DEV_EV

enum USBMASS_DEV_EV

Definition at line 63 of file usbhdfsd-common.h.

Function Documentation

◆ __attribute__()

struct bd_fragment __attribute__ ( (packed) )

Definition at line 21 of file gpt_types.h.

Variable Documentation

◆ count

u32 count

start sector of fragmented bd/file

Definition at line 1 of file usbhdfsd-common.h.

◆ sector

u64 sector

Definition at line 0 of file usbhdfsd-common.h.