mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
- Add vm_locking.h and vm_reservation.h and move relevant functions and types to these headers. - Change include order and make vm_ptr.h, vm_var.h and vm_ref.h headers usable invidually and them including vm.h instead of other way around - Because usage of vm::ptr now requires including vm_ptr.h instead of vm.h updated multiple #includes - Added additional #includes to vm_reservation.h and vm_locking to where vm::reservation_* and locking related functions are used
30 lines
754 B
C
30 lines
754 B
C
#pragma once
|
|
|
|
#include "Emu/Memory/vm_ptr.h"
|
|
#include "Emu/Cell/ErrorCodes.h"
|
|
|
|
// TTY channels
|
|
enum
|
|
{
|
|
SYS_TTYP_PPU_STDIN = 0,
|
|
SYS_TTYP_PPU_STDOUT = 0,
|
|
SYS_TTYP_PPU_STDERR = 1,
|
|
SYS_TTYP_SPU_STDOUT = 2,
|
|
SYS_TTYP_USER1 = 3,
|
|
SYS_TTYP_USER2 = 4,
|
|
SYS_TTYP_USER3 = 5,
|
|
SYS_TTYP_USER4 = 6,
|
|
SYS_TTYP_USER5 = 7,
|
|
SYS_TTYP_USER6 = 8,
|
|
SYS_TTYP_USER7 = 9,
|
|
SYS_TTYP_USER8 = 10,
|
|
SYS_TTYP_USER9 = 11,
|
|
SYS_TTYP_USER10 = 12,
|
|
SYS_TTYP_USER11 = 13,
|
|
SYS_TTYP_USER12 = 14,
|
|
SYS_TTYP_USER13 = 15,
|
|
};
|
|
|
|
// SysCalls
|
|
error_code sys_tty_read(s32 ch, vm::ptr<char> buf, u32 len, vm::ptr<u32> preadlen);
|
|
error_code sys_tty_write(s32 ch, vm::cptr<char> buf, u32 len, vm::ptr<u32> pwritelen);
|