2013-12-30 09:17:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
2014-03-15 18:32:57 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2013-02-04 04:31:46 +00:00
|
|
|
|
|
|
|
class PointerWrap;
|
2012-11-06 14:45:13 +00:00
|
|
|
|
|
|
|
// mscmhc0 states
|
|
|
|
enum MemStickState {
|
2014-03-03 16:16:53 +00:00
|
|
|
PSP_MEMORYSTICK_STATE_DRIVER_READY = 1,
|
|
|
|
PSP_MEMORYSTICK_STATE_DRIVER_BUSY = 2,
|
2012-11-06 14:45:13 +00:00
|
|
|
PSP_MEMORYSTICK_STATE_DEVICE_INSERTED = 4,
|
2014-03-03 16:16:53 +00:00
|
|
|
PSP_MEMORYSTICK_STATE_DEVICE_REMOVED = 8,
|
2012-11-06 14:45:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// memstick FAT states.
|
|
|
|
enum MemStickFatState {
|
|
|
|
PSP_FAT_MEMORYSTICK_STATE_UNASSIGNED = 0,
|
2014-03-03 16:16:53 +00:00
|
|
|
PSP_FAT_MEMORYSTICK_STATE_ASSIGNED = 1,
|
2012-11-06 14:45:13 +00:00
|
|
|
};
|
|
|
|
|
2012-12-27 19:58:15 +00:00
|
|
|
void MemoryStick_DoState(PointerWrap &p);
|
2012-11-06 14:45:13 +00:00
|
|
|
MemStickState MemoryStick_State();
|
|
|
|
MemStickFatState MemoryStick_FatState();
|
|
|
|
|
2012-11-09 09:01:54 +00:00
|
|
|
void MemoryStick_SetFatState(MemStickFatState state);
|
|
|
|
|
2012-11-06 14:45:13 +00:00
|
|
|
u64 MemoryStick_SectorSize();
|
2013-12-30 09:17:11 +00:00
|
|
|
u64 MemoryStick_FreeSpace();
|