PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Go to the source code of this file.
Data Structures | |
struct | hddIoctl2Transfer_t |
struct | hddAtaTransfer_t |
struct | hddSetOsdMBR_t |
Common HDD IOCTL, DEVCTL and IOCTL2 command definitions
Definition in file hdd-ioctl.h.
struct hddIoctl2Transfer_t |
Definition at line 79 of file hdd-ioctl.h.
Data Fields | ||
---|---|---|
u32 | sub |
main(0)/subs(1+) to read/write |
u32 | sector | |
u32 | size |
in sectors |
u32 | mode |
ATAD_MODE_READ/ATAD_MODE_WRITE..... |
void * | buffer |
struct hddAtaTransfer_t |
Definition at line 137 of file hdd-ioctl.h.
Data Fields | ||
---|---|---|
u32 | lba | |
u32 | size | |
u8 | data[] |
struct hddSetOsdMBR_t |
Definition at line 144 of file hdd-ioctl.h.
Data Fields | ||
---|---|---|
u32 | start | |
u32 | size |
#define DEV9_TYPE_PCMCIA 0 |
Definition at line 24 of file hdd-ioctl.h.
#define DEV9_TYPE_EXPBAY 1 |
Definition at line 25 of file hdd-ioctl.h.
#define DDIOC_MODEL 0x4401 |
Definition at line 27 of file hdd-ioctl.h.
#define DDIOC_OFF 0x4402 |
Definition at line 28 of file hdd-ioctl.h.
#define DDIOC_SETPIO3 0x4403 |
Definition at line 29 of file hdd-ioctl.h.
#define DDIOC_LED2CTL 0x4404 |
Definition at line 30 of file hdd-ioctl.h.
#define APA_TYPE_FREE 0x0000 |
Definition at line 36 of file hdd-ioctl.h.
#define APA_TYPE_MBR 0x0001 |
Master Boot Record
Definition at line 38 of file hdd-ioctl.h.
#define APA_TYPE_EXT2SWAP 0x0082 |
Definition at line 39 of file hdd-ioctl.h.
#define APA_TYPE_EXT2 0x0083 |
Definition at line 40 of file hdd-ioctl.h.
#define APA_TYPE_REISER 0x0088 |
Definition at line 41 of file hdd-ioctl.h.
#define APA_TYPE_PFS 0x0100 |
Definition at line 42 of file hdd-ioctl.h.
#define APA_TYPE_CFS 0x0101 |
Definition at line 43 of file hdd-ioctl.h.
#define APA_TYPE_HDL 0x1337 |
Definition at line 44 of file hdd-ioctl.h.
#define APA_IDMAX 32 |
Definition at line 46 of file hdd-ioctl.h.
#define APA_MAXSUB 64 |
Maximum # of sub-partitions
Definition at line 48 of file hdd-ioctl.h.
#define APA_PASSMAX 8 |
Definition at line 49 of file hdd-ioctl.h.
#define APA_FLAG_SUB 0x0001 |
Sub-partition status for partitions (attr field)
Definition at line 51 of file hdd-ioctl.h.
#define HIOCADDSUB 0x6801 |
Definition at line 56 of file hdd-ioctl.h.
#define HIOCDELSUB 0x6802 |
Definition at line 57 of file hdd-ioctl.h.
#define HIOCNSUB 0x6803 |
Definition at line 58 of file hdd-ioctl.h.
#define HIOCFLUSH 0x6804 |
Definition at line 59 of file hdd-ioctl.h.
#define HIOCTRANSFER 0x6832 |
Used by PFS.IRX to read/write data
Definition at line 63 of file hdd-ioctl.h.
#define HIOCGETSIZE 0x6833 |
For main(0)/subs(1+)
Definition at line 65 of file hdd-ioctl.h.
#define HIOCSETPARTERROR 0x6834 |
Set (sector of a partition) that has an error
Definition at line 67 of file hdd-ioctl.h.
#define HIOCGETPARTERROR 0x6835 |
Get (sector of a partition) that has an error
Definition at line 69 of file hdd-ioctl.h.
#define HIOCGETPARTSTART 0x6836 |
Definition at line 72 of file hdd-ioctl.h.
#define APA_IO_MODE_READ 0x00 |
Definition at line 75 of file hdd-ioctl.h.
#define APA_IO_MODE_WRITE 0x01 |
Definition at line 76 of file hdd-ioctl.h.
#define HDIOC_MAXSECTOR 0x4801 |
Maximum partition size (in sectors)
Definition at line 96 of file hdd-ioctl.h.
#define HDIOC_TOTALSECTOR 0x4802 |
Capacity of the disk (in sectors)
Definition at line 98 of file hdd-ioctl.h.
#define HDIOC_IDLE 0x4803 |
Definition at line 99 of file hdd-ioctl.h.
#define HDIOC_FLUSH 0x4804 |
Definition at line 100 of file hdd-ioctl.h.
#define HDIOC_SWAPTMP 0x4805 |
Definition at line 101 of file hdd-ioctl.h.
#define HDIOC_DEV9OFF 0x4806 |
Definition at line 102 of file hdd-ioctl.h.
#define HDIOC_STATUS 0x4807 |
Definition at line 103 of file hdd-ioctl.h.
#define HDIOC_FORMATVER 0x4808 |
Definition at line 104 of file hdd-ioctl.h.
#define HDIOC_SMARTSTAT 0x4809 |
Definition at line 105 of file hdd-ioctl.h.
#define HDIOC_FREESECTOR 0x480A |
Returns the approximate amount of free space
Definition at line 107 of file hdd-ioctl.h.
#define HDIOC_IDLEIMM 0x480B |
Definition at line 108 of file hdd-ioctl.h.
#define HDIOC_GETTIME 0x6832 |
Definition at line 112 of file hdd-ioctl.h.
#define HDIOC_SETOSDMBR 0x6833 |
arg = hddSetOsdMBR_t
Definition at line 114 of file hdd-ioctl.h.
#define HDIOC_GETSECTORERROR 0x6834 |
Definition at line 115 of file hdd-ioctl.h.
#define HDIOC_GETERRORPARTNAME 0x6835 |
bufp = namebuffer[0x20]
Definition at line 117 of file hdd-ioctl.h.
#define HDIOC_READSECTOR 0x6836 |
arg = hddAtaTransfer_t
Definition at line 119 of file hdd-ioctl.h.
#define HDIOC_WRITESECTOR 0x6837 |
arg = hddAtaTransfer_t
Definition at line 121 of file hdd-ioctl.h.
#define HDIOC_SCEIDENTIFY 0x6838 |
bufp = buffer for atadSceIdentifyDrive
Definition at line 123 of file hdd-ioctl.h.
#define HDIOC_INSTSEC 0x6839 |
Definition at line 125 of file hdd-ioctl.h.
#define HDIOC_SETMAXLBA28 0x683A |
arg = u32
Definition at line 127 of file hdd-ioctl.h.
#define HDIOC_GETMAXLBA48 0x683B |
Definition at line 128 of file hdd-ioctl.h.
#define HDIOC_ISLBA48 0x683C |
Definition at line 129 of file hdd-ioctl.h.
#define HDIOC_PRESETMAXLBA28 0x683D |
Definition at line 130 of file hdd-ioctl.h.
#define HDIOC_POSTSETMAXLBA28 0x683E |
Definition at line 131 of file hdd-ioctl.h.
#define HDIOC_ENABLEWRITECACHE 0x683F |
Definition at line 132 of file hdd-ioctl.h.
#define HDIOC_DISABLEWRITECACHE 0x6840 |
Definition at line 133 of file hdd-ioctl.h.
#define HDDIO_ADD_SUB HIOCADDSUB |
Definition at line 152 of file hdd-ioctl.h.
#define HDDIO_DELETE_END_SUB HIOCDELSUB |
Definition at line 153 of file hdd-ioctl.h.
#define HDDIO_NUMBER_OF_SUBS HIOCNSUB |
Definition at line 154 of file hdd-ioctl.h.
#define HDDIO_FLUSH_CACHE HIOCFLUSH |
Definition at line 155 of file hdd-ioctl.h.
#define HDDIO_GETSIZE HIOCGETSIZE |
Definition at line 156 of file hdd-ioctl.h.
#define APA_IOCTL2_ADD_SUB HIOCADDSUB |
Definition at line 158 of file hdd-ioctl.h.
#define APA_IOCTL2_DELETE_LAST_SUB HIOCDELSUB |
Definition at line 159 of file hdd-ioctl.h.
#define APA_IOCTL2_NUMBER_OF_SUBS HIOCNSUB |
Definition at line 160 of file hdd-ioctl.h.
#define APA_IOCTL2_FLUSH_CACHE HIOCFLUSH |
Definition at line 161 of file hdd-ioctl.h.
#define APA_IOCTL2_TRANSFER_DATA HIOCTRANSFER |
Definition at line 163 of file hdd-ioctl.h.
#define APA_IOCTL2_GETSIZE HIOCGETSIZE |
Definition at line 164 of file hdd-ioctl.h.
#define APA_IOCTL2_SET_PART_ERROR HIOCSETPARTERROR |
Definition at line 165 of file hdd-ioctl.h.
#define APA_IOCTL2_GET_PART_ERROR HIOCGETPARTERROR |
Definition at line 166 of file hdd-ioctl.h.
#define HDDCTL_MAX_SECTORS HDIOC_MAXSECTOR |
Definition at line 169 of file hdd-ioctl.h.
#define HDDCTL_TOTAL_SECTORS HDIOC_TOTALSECTOR |
Definition at line 170 of file hdd-ioctl.h.
#define HDDCTL_IDLE HDIOC_IDLE |
Definition at line 171 of file hdd-ioctl.h.
#define HDDCTL_FLUSH_CACHE HDIOC_FLUSH |
Definition at line 172 of file hdd-ioctl.h.
#define HDDCTL_SWAP_TMP HDIOC_SWAPTMP |
Definition at line 173 of file hdd-ioctl.h.
#define HDDCTL_DEV9_SHUTDOWN HDIOC_DEV9OFF |
Definition at line 174 of file hdd-ioctl.h.
#define HDDCTL_STATUS HDIOC_STATUS |
Definition at line 175 of file hdd-ioctl.h.
#define HDDCTL_FORMAT HDIOC_FORMATVER |
Definition at line 176 of file hdd-ioctl.h.
#define HDDCTL_SMART_STAT HDIOC_SMARTSTAT |
Definition at line 177 of file hdd-ioctl.h.
#define HDDCTL_FREE_SECTORS HDIOC_FREESECTOR |
Definition at line 178 of file hdd-ioctl.h.
#define APA_DEVCTL_MAX_SECTORS HDIOC_MAXSECTOR |
Definition at line 180 of file hdd-ioctl.h.
#define APA_DEVCTL_TOTAL_SECTORS HDIOC_TOTALSECTOR |
Definition at line 181 of file hdd-ioctl.h.
#define APA_DEVCTL_IDLE HDIOC_IDLE |
Definition at line 182 of file hdd-ioctl.h.
#define APA_DEVCTL_FLUSH_CACHE HDIOC_FLUSH |
Definition at line 183 of file hdd-ioctl.h.
#define APA_DEVCTL_SWAP_TMP HDIOC_SWAPTMP |
Definition at line 184 of file hdd-ioctl.h.
#define APA_DEVCTL_DEV9_SHUTDOWN HDIOC_DEV9OFF |
Definition at line 185 of file hdd-ioctl.h.
#define APA_DEVCTL_STATUS HDIOC_STATUS |
Definition at line 186 of file hdd-ioctl.h.
#define APA_DEVCTL_FORMAT HDIOC_FORMATVER |
Definition at line 187 of file hdd-ioctl.h.
#define APA_DEVCTL_SMART_STAT HDIOC_SMARTSTAT |
Definition at line 188 of file hdd-ioctl.h.
#define APA_DEVCTL_FREE_SECTORS HDIOC_FREESECTOR |
Definition at line 189 of file hdd-ioctl.h.
#define APA_DEVCTL_GETTIME HDIOC_GETTIME |
Definition at line 191 of file hdd-ioctl.h.
#define APA_DEVCTL_SET_OSDMBR HDIOC_SETOSDMBR |
Definition at line 192 of file hdd-ioctl.h.
#define APA_DEVCTL_GET_SECTOR_ERROR HDIOC_GETSECTORERROR |
Definition at line 193 of file hdd-ioctl.h.
#define APA_DEVCTL_GET_ERROR_PART_NAME HDIOC_GETERRORPARTNAME |
Definition at line 194 of file hdd-ioctl.h.
#define APA_DEVCTL_ATA_READ HDIOC_READSECTOR |
Definition at line 195 of file hdd-ioctl.h.
#define APA_DEVCTL_ATA_WRITE HDIOC_WRITESECTOR |
Definition at line 196 of file hdd-ioctl.h.
#define APA_DEVCTL_SCE_IDENTIFY_DRIVE HDIOC_SCEIDENTIFY |
Definition at line 197 of file hdd-ioctl.h.
#define PIOCALLOC 0x7001 |
Definition at line 204 of file hdd-ioctl.h.
#define PIOCFREE 0x7002 |
Definition at line 205 of file hdd-ioctl.h.
#define PIOCATTRADD 0x7003 |
Definition at line 206 of file hdd-ioctl.h.
#define PIOCATTRDEL 0x7004 |
Definition at line 207 of file hdd-ioctl.h.
#define PIOCATTRLOOKUP 0x7005 |
Definition at line 208 of file hdd-ioctl.h.
#define PIOCATTRREAD 0x7006 |
Definition at line 209 of file hdd-ioctl.h.
#define PIOCINVINODE 0x7032 |
Definition at line 210 of file hdd-ioctl.h.
#define PDIOC_ZONESZ 0x5001 |
Definition at line 214 of file hdd-ioctl.h.
#define PDIOC_ZONEFREE 0x5002 |
Definition at line 215 of file hdd-ioctl.h.
#define PDIOC_CLOSEALL 0x5003 |
Definition at line 216 of file hdd-ioctl.h.
#define PDIOC_GETFSCKSTAT 0x5004 |
Definition at line 217 of file hdd-ioctl.h.
#define PDIOC_CLRFSCKSTAT 0x5005 |
Definition at line 218 of file hdd-ioctl.h.
#define PDIOC_SHOWBITMAP 0xFF |
Definition at line 221 of file hdd-ioctl.h.
#define PFS_IO_MODE_READ 0x00 |
Definition at line 224 of file hdd-ioctl.h.
#define PFS_IO_MODE_WRITE 0x01 |
Definition at line 225 of file hdd-ioctl.h.
#define PFSIO_ALLOC PIOCALLOC |
Definition at line 229 of file hdd-ioctl.h.
#define PFSIO_FREE PIOCFREE |
Definition at line 230 of file hdd-ioctl.h.
#define PFSIO_ATTR_ADD PIOCATTRADD |
Definition at line 231 of file hdd-ioctl.h.
#define PFSIO_ATTR_DEL PIOCATTRDEL |
Definition at line 232 of file hdd-ioctl.h.
#define PFSIO_ATTR_LOOKUP PIOCATTRLOOKUP |
Definition at line 233 of file hdd-ioctl.h.
#define PFSIO_ATTR_READ PIOCATTRREAD |
Definition at line 234 of file hdd-ioctl.h.
#define PFS_IOCTL2_ALLOC PIOCALLOC |
Definition at line 236 of file hdd-ioctl.h.
#define PFS_IOCTL2_FREE PIOCFREE |
Definition at line 237 of file hdd-ioctl.h.
#define PFS_IOCTL2_ATTR_ADD PIOCATTRADD |
Definition at line 238 of file hdd-ioctl.h.
#define PFS_IOCTL2_ATTR_DEL PIOCATTRDEL |
Definition at line 239 of file hdd-ioctl.h.
#define PFS_IOCTL2_ATTR_LOOKUP PIOCATTRLOOKUP |
Definition at line 240 of file hdd-ioctl.h.
#define PFS_IOCTL2_ATTR_READ PIOCATTRREAD |
Definition at line 241 of file hdd-ioctl.h.
#define PFSCTL_GET_ZONE_SIZE PDIOC_ZONESZ |
Definition at line 244 of file hdd-ioctl.h.
#define PFSCTL_GET_ZONE_FREE PDIOC_ZONEFREE |
Definition at line 245 of file hdd-ioctl.h.
#define PFSCTL_CLOSE_ALL PDIOC_CLOSEALL |
Definition at line 246 of file hdd-ioctl.h.
#define PFSCTL_GET_STAT PDIOC_GETFSCKSTAT |
Definition at line 247 of file hdd-ioctl.h.
#define PFSCTL_CLEAR_STAT PDIOC_CLRFSCKSTAT |
Definition at line 248 of file hdd-ioctl.h.
#define PFS_DEVCTL_GET_ZONE_SIZE PDIOC_ZONESZ |
Definition at line 250 of file hdd-ioctl.h.
#define PFS_DEVCTL_GET_ZONE_FREE PDIOC_ZONEFREE |
Definition at line 251 of file hdd-ioctl.h.
#define PFS_DEVCTL_CLOSE_ALL PDIOC_CLOSEALL |
Definition at line 252 of file hdd-ioctl.h.
#define PFS_DEVCTL_GET_STAT PDIOC_GETFSCKSTAT |
Definition at line 253 of file hdd-ioctl.h.
#define PFS_DEVCTL_CLEAR_STAT PDIOC_CLRFSCKSTAT |
Definition at line 254 of file hdd-ioctl.h.
#define PFS_DEVCTL_SHOW_BITMAP PDIOC_SHOWBITMAP |
Definition at line 256 of file hdd-ioctl.h.