rpcsx/rpcs3/Emu/Cell/Modules/cellFs.h

43 lines
730 B
C
Raw Normal View History

2015-03-12 20:02:02 +01:00
#pragma once
2016-06-02 17:16:01 +02:00
#include "Emu/Cell/lv2/sys_fs.h"
2015-03-12 20:02:02 +01:00
// CellFsRingBuffer.copy
enum : s32
{
CELL_FS_ST_COPY = 0,
CELL_FS_ST_COPYLESS = 1,
};
struct CellFsRingBuffer
{
be_t<u64> ringbuf_size;
be_t<u64> block_size;
be_t<u64> transfer_rate;
be_t<s32> copy;
};
2015-03-16 01:21:40 +01:00
// cellFsStReadGetStatus status
2015-03-12 20:02:02 +01:00
enum : u64
{
CELL_FS_ST_INITIALIZED = 0x0001,
CELL_FS_ST_NOT_INITIALIZED = 0x0002,
CELL_FS_ST_STOP = 0x0100,
CELL_FS_ST_PROGRESS = 0x0200,
};
enum : s32
{
CELL_FS_AIO_MAX_FS = 10, // cellFsAioInit limit
CELL_FS_AIO_MAX_REQUEST = 32, // cellFsAioRead request limit per mount point
};
struct CellFsAio
{
be_t<u32> fd;
be_t<u64> offset;
2016-06-02 17:16:01 +02:00
vm::bptrb<void> buf;
2015-03-12 20:02:02 +01:00
be_t<u64> size;
be_t<u64> user_data;
};