mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-22 19:59:58 +00:00
Create pspiofilemgr_devctl.h
This commit is contained in:
36
src/user/pspiofilemgr_devctl.h
Normal file
36
src/user/pspiofilemgr_devctl.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* PSP Software Development Kit - https://github.com/pspdev
|
||||
* -----------------------------------------------------------------------
|
||||
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
||||
*
|
||||
* pspiofilemgr_devctl.h - File attributes and directory entries.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef PSPIOFILEMGR_DEVCTL_H
|
||||
#define PSPIOFILEMGR_DEVCTL_H
|
||||
|
||||
#include <psptypes.h>
|
||||
|
||||
/* This sceIoDevctl command gets the device capacity. */
|
||||
#define SCE_PR_GETDEV 0x02425818
|
||||
|
||||
/* This structure stores the device capacity using SCE_PR_GETDEV in sceIoDevctl */
|
||||
typedef struct SceDevInf {
|
||||
/* max logical cluster x unit */
|
||||
uint32_t maxClusters;
|
||||
/* number of empty clusters */
|
||||
uint32_t freeClusters;
|
||||
/* cluster of empty logical block */
|
||||
uint32_t maxSectors;
|
||||
/* bytes x logical sector */
|
||||
int sectorSize;
|
||||
/* sector x cluster */
|
||||
int sectorCount;
|
||||
} SceDevInf;
|
||||
|
||||
typedef struct SceDevctlCmd {
|
||||
SceDevInf *dev_inf;
|
||||
} SceDevctlCmd;
|
||||
|
||||
#endif /* PSPIOFILEMGR_DEVCTL_H */
|
||||
Reference in New Issue
Block a user