rpcs3/rpcs3/Emu/Cell/lv2/sys_gpio.h
Lassi Hämäläinen 499035512b Split Emu/Memory into more logical headers
- 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
2019-06-25 17:11:10 +03:00

13 lines
270 B
C

#pragma once
#include "Emu/Memory/vm_ptr.h"
enum : u64
{
SYS_GPIO_UNKNOWN_DEVICE_ID,
SYS_GPIO_LED_DEVICE_ID,
SYS_GPIO_DIP_SWITCH_DEVICE_ID,
};
error_code sys_gpio_get(u64 device_id, vm::ptr<u64> value);
error_code sys_gpio_set(u64 device_id, u64 mask, u64 value);