mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-28 14:00:52 +01:00
Adds a header only include utility folder that can be included from everywhere. Contains syscall helpers for older glibc and defines for older Linux uapi headers missing some defines.
26 lines
640 B
C++
26 lines
640 B
C++
#include "Tests/LinuxSyscalls/x32/Types.h"
|
|
#include "Tests/LinuxSyscalls/x32/Ioctl/HelperDefines.h"
|
|
|
|
#include <cstdint>
|
|
#include <linux/usbdevice_fs.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
namespace FEX::HLE::x32 {
|
|
namespace usbdev {
|
|
#ifndef USBDEVFS_CONNINFO_EX
|
|
#define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len)
|
|
#endif
|
|
#ifndef USBDEVFS_FORBID_SUSPEND
|
|
#define USBDEVFS_FORBID_SUSPEND _IO('U', 33)
|
|
#endif
|
|
#ifndef USBDEVFS_ALLOW_SUSPEND
|
|
#define USBDEVFS_ALLOW_SUSPEND _IO('U', 34)
|
|
#endif
|
|
#ifndef USBDEVFS_WAIT_FOR_RESUME
|
|
#define USBDEVFS_WAIT_FOR_RESUME _IO('U', 35)
|
|
#endif
|
|
#include "Tests/LinuxSyscalls/x32/Ioctl/usbdev.inl"
|
|
}
|
|
}
|
|
|