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

25 lines
536 B
C
Raw Normal View History

#pragma once
2014-11-08 17:58:51 +01:00
#include "Emu/RSX/GCM.h"
enum
{
CELL_GCM_ERROR_FAILURE = 0x802100ff,
CELL_GCM_ERROR_NO_IO_PAGE_TABLE = 0x80210001,
CELL_GCM_ERROR_INVALID_ENUM = 0x80210002,
CELL_GCM_ERROR_INVALID_VALUE = 0x80210003,
CELL_GCM_ERROR_INVALID_ALIGNMENT = 0x80210004,
2014-08-17 11:22:36 +02:00
CELL_GCM_ERROR_ADDRESS_OVERWRAP = 0x80210005,
};
struct CellGcmOffsetTable
{
vm::bptr<u16> ioAddress;
vm::bptr<u16> eaAddress;
};
void InitOffsetTable();
// Auxiliary functions
2015-02-13 22:45:36 +01:00
s32 gcmMapEaIoAddress(u32 ea, u32 io, u32 size, bool is_strict);