1 /* 2 * Copyright 2010-2016 Intel Corporation. 3 * 4 * This library is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as published 6 * by the Free Software Foundation, version 2.1. 7 * 8 * This library is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * Lesser General Public License for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public 14 * License along with this library; if not, write to the Free Software 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16 * 02110-1301 USA. 17 * 18 * Disclaimer: The codes contained in these modules may be specific 19 * to the Intel Software Development Platform codenamed Knights Ferry, 20 * and the Intel product codenamed Knights Corner, and are not backward 21 * compatible with other Intel products. Additionally, Intel will NOT 22 * support the codes or instruction set in future products. 23 * 24 * Intel offers no warranty of any kind regarding the code. This code is 25 * licensed on an "AS IS" basis and Intel is not obligated to provide 26 * any support, assistance, installation, training, or other services 27 * of any kind. Intel is also not obligated to provide any updates, 28 * enhancements or extensions. Intel specifically disclaims any warranty 29 * of merchantability, non-infringement, fitness for any particular 30 * purpose, and any other warranty. 31 * 32 * Further, Intel disclaims all liability of any kind, including but 33 * not limited to liability for infringement of any proprietary rights, 34 * relating to the use of the code, even if Intel is notified of the 35 * possibility of such liability. Except as expressly stated in an Intel 36 * license agreement provided with this code and agreed upon with Intel, 37 * no license, express or implied, by estoppel or otherwise, to any 38 * intellectual property rights is granted herein. 39 */ 40 41 #ifndef _COITYPES_COMMON_H 42 #define _COITYPES_COMMON_H 43 44 /** @ingroup COITypes 45 * @addtogroup COITypesSource 46 @{ 47 48 * @file common/COITypes_common.h 49 */ 50 #ifndef DOXYGEN_SHOULD_SKIP_THIS 51 #include <stdint.h> 52 #include <wchar.h> 53 #define COIACCESSAPI /* nothing */ 54 #define COIACCESSAPI2 /* nothing */ 55 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 56 57 58 #ifdef __cplusplus 59 extern "C" { 60 #endif 61 62 63 struct coievent 64 { 65 uint64_t opaque[2]; 66 }; 67 68 typedef struct coiprocess *COIPROCESS; 69 typedef struct coipipeline *COIPIPELINE; 70 typedef struct coifunction *COIFUNCTION; 71 typedef struct coiengine *COIENGINE; 72 typedef struct coievent COIEVENT; 73 typedef struct coibuffer *COIBUFFER; 74 typedef struct coilibrary *COILIBRARY; 75 typedef struct coimapinst *COIMAPINSTANCE; 76 77 typedef uint64_t COI_CPU_MASK[16]; 78 79 /** 80 * On Windows, coi_wchar_t is a uint32_t. On Windows, wchar_t is 16 bits wide, and on Linux it is 32 bits wide, so uint32_t is used for portability. 81 */ 82 typedef wchar_t coi_wchar_t; 83 84 #ifdef __cplusplus 85 } /* extern "C" */ 86 #endif 87 88 #endif /* _COITYPES_COMMON_H */ 89