31 return ((
u32) command_id << 16) | (((
u32) normal_params & 0x3F) << 6) | (((
u32) translate_params & 0x3F) << 0);
45 return ((
u32)(number - 1) << 26);
59 return ((
u32)(number - 1) << 26) | 0x10;
88 return (size << 14) | ((buffer_id & 0xF) << 10) | 0x2;
103 if(is_read_only)type = 0x6;
104 return (size << 8) | ((buffer_id & 0xF) << 4) | type;
117 return (size << 4) | 0x8 | rights;
static u32 IPC_Desc_SharedHandles(unsigned number)
Creates a header to share handles.
Definition: ipc.h:43
static u32 IPC_Desc_StaticBuffer(size_t size, unsigned buffer_id)
Creates a header describing a static buffer.
Definition: ipc.h:86
static u32 IPC_Desc_MoveHandles(unsigned number)
Creates the header to transfer handle ownership.
Definition: ipc.h:57
static u32 IPC_Desc_CurProcessId(void)
Returns the code to ask the kernel to fill the handle with the current process ID.
Definition: ipc.h:68
static u32 IPC_MakeHeader(u16 command_id, unsigned normal_params, unsigned translate_params)
Creates a command header to be used for IPC.
Definition: ipc.h:29
static u32 IPC_Desc_Buffer(size_t size, IPC_BufferRights rights)
Creates a header describing a buffer from the main memory.
Definition: ipc.h:115
IPC_BufferRights
IPC buffer access rights.
Definition: ipc.h:11
@ IPC_BUFFER_W
Writable.
Definition: ipc.h:13
@ IPC_BUFFER_RW
Readable and Writable.
Definition: ipc.h:14
@ IPC_BUFFER_R
Readable.
Definition: ipc.h:12
static u32 IPC_Desc_PXIBuffer(size_t size, unsigned buffer_id, bool is_read_only)
Creates a header describing a buffer to be sent over PXI.
Definition: ipc.h:100
#define CTR_DEPRECATED
Flags a function as deprecated.
Definition: types.h:56
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23