summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/ipc.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h
index 4f7e5d050..4535b61c0 100644
--- a/src/core/hle/ipc.h
+++ b/src/core/hle/ipc.h
@@ -62,19 +62,19 @@ union Header {
62}; 62};
63 63
64/** 64/**
65* @brief Creates a command header to be used for IPC 65 * @brief Creates a command header to be used for IPC
66* @param command_id ID of the command to create a header for. 66 * @param command_id ID of the command to create a header for.
67* @param normal_params_size Size of the normal parameters in words. Up to 63. 67 * @param normal_params_size Size of the normal parameters in words. Up to 63.
68* @param translate_params_size Size of the translate parameters in words. Up to 63. 68 * @param translate_params_size Size of the translate parameters in words. Up to 63.
69* @return The created IPC header. 69 * @return The created IPC header.
70* 70 *
71* Normal parameters are sent directly to the process while the translate parameters might go 71 * Normal parameters are sent directly to the process while the translate parameters might go
72* through modifications and checks by the kernel. 72 * through modifications and checks by the kernel.
73* The translate parameters are described by headers generated with the IPC::*Desc functions. 73 * The translate parameters are described by headers generated with the IPC::*Desc functions.
74* 74 *
75* @note While #normal_params_size is equivalent to the number of normal parameters, 75 * @note While #normal_params_size is equivalent to the number of normal parameters,
76* #translate_params_size includes the size occupied by the translate parameters headers. 76 * #translate_params_size includes the size occupied by the translate parameters headers.
77*/ 77 */
78inline u32 MakeHeader(u16 command_id, unsigned int normal_params_size, 78inline u32 MakeHeader(u16 command_id, unsigned int normal_params_size,
79 unsigned int translate_params_size) { 79 unsigned int translate_params_size) {
80 Header header; 80 Header header;
@@ -120,15 +120,15 @@ inline u32 StaticBufferDesc(u32 size, u8 buffer_id) {
120} 120}
121 121
122/** 122/**
123* @brief Creates a header describing a buffer to be sent over PXI. 123 * @brief Creates a header describing a buffer to be sent over PXI.
124* @param size Size of the buffer. Max 0x00FFFFFF. 124 * @param size Size of the buffer. Max 0x00FFFFFF.
125* @param buffer_id The Id of the buffer. Max 0xF. 125 * @param buffer_id The Id of the buffer. Max 0xF.
126* @param is_read_only true if the buffer is read-only. If false, the buffer is considered to have 126 * @param is_read_only true if the buffer is read-only. If false, the buffer is considered to have
127* read-write access. 127 * read-write access.
128* @return The created PXI buffer header. 128 * @return The created PXI buffer header.
129* 129 *
130* The next value is a phys-address of a table located in the BASE memregion. 130 * The next value is a phys-address of a table located in the BASE memregion.
131*/ 131 */
132inline u32 PXIBufferDesc(u32 size, unsigned buffer_id, bool is_read_only) { 132inline u32 PXIBufferDesc(u32 size, unsigned buffer_id, bool is_read_only) {
133 u32 type = PXIBuffer; 133 u32 type = PXIBuffer;
134 if (is_read_only) 134 if (is_read_only)