1 /*---------------------------------------------------------------------------* 2 Project: IOP Shell 3 File: iopsh_cos.h 4 Description: COS client interface for using IOPSH service 5 6 Copyright (C) 2013 Nintendo. All rights reserved. 7 8 These coded instructions, statements, and computer programs contain 9 proprietary information of Nintendo of America Inc. and/or Nintendo 10 Company Ltd., and are protected by Federal copyright law. They may 11 not be disclosed to third parties or copied or duplicated in any form, 12 in whole or in part, without the prior written consent of Nintendo. 13 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef __IOPSH_COS__ 17 #define __IOPSH_COS__ 18 19 #include <types.h> 20 #include <cafe/private/iopsh_types.h> 21 22 #define IOPSH_USER_DATA_SIZEOF_ROUNDUP(__PADDED_DATA_TYPE) \ 23 ( ((sizeof(__PADDED_DATA_TYPE)+(KERNEL_IO_BUFFER_ALIGN-1)) & \ 24 ~(KERNEL_IO_BUFFER_ALIGN-1)) ) 25 26 #include <iop/private/iopsh_shim_defs.h> 27 28 #ifdef __cplusplus 29 extern "C" { 30 #endif 31 32 /*---------------------------------------------------------------------------* 33 * 34 * Globals/Externs 35 * -- Variables/Functions -- 36 * 37 *---------------------------------------------------------------------------*/ 38 39 /*---------------------------------------------------------------------------* 40 * 41 * Constants defined for this file 42 * -- #Defines -- 43 * 44 *---------------------------------------------------------------------------*/ 45 46 47 /*---------------------------------------------------------------------------* 48 * 49 * Data types defined for this file 50 * -- Structs, Typedefs, Enums -- 51 * 52 *---------------------------------------------------------------------------*/ 53 54 /*---------------------------------------------------------------------------* 55 * 56 * -- Interface Function Prototypes -- 57 * 58 *---------------------------------------------------------------------------*/ 59 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif // __IOPSH_COS__ 66