/************************************************************************/ /* * * Filename : MILPA.H * Owner : Matrox Imaging dept. * Content : This file contains the defines necessary to use the * Matrox Native PA DTK. * * COPYRIGHT (c) Matrox Electronic Systems Ltd. * All Rights Reserved *************************************************************************/ #ifndef __MILPA_H #define __MILPA_H /* Defines necessary on the PowerPc to compile Native PA code. Note: On Odyssey, MIL.H can also be included and MIL function used in the Slave PA function but this give a function that is not portable on the Helios. */ #if M_MIL_USE_PPC /* C++ directive if needed */ #ifdef __cplusplus extern "C" { #endif #define MFTYPE32 #define MFTYPE #define MPTYPE #define MIL_TEXT_PTR char * typedef long MIL_ID; typedef unsigned long long MIL_UINT64; #include #define M_NATIVE_ID 1016L MFTYPE32 long MFTYPE MbufInquire(MIL_ID BufId, long InquireType, void MPTYPE *ResultPtr); #define mp_mil_buf_inquire(Src, InquireType, VarPtr) (MbufInquire(Src, InquireType, VarPtr)) #define mp_mil_func_resource(Func) (mp_thr_thread_resource(mp_thr_thread_descriptor(mp_sys_this_thread()))) typedef void (*MFUNCSLAVEPAFCTPTR)(MIL_ID FunctionId); #define M_NULL 0x00000000L /* C++ directive if needed */ #ifdef __cplusplus } #endif #include #endif /* Defines necessary on the Host to compile Native PA code in the kernel mode DLL. */ #if M_MIL_USE_PA_CODE_ONLY #include #endif #endif /* Defines to support MfuncErrorReport() in PA slave functions (must match MIL.H). */ #define M_NBERRMSGMAX 100 #define M_FUNC_ERROR (M_NBERRMSGMAX+1L) /* Defines for PA slave functions return value (must match MIL.H). */ #define M_TRUE 1 /* sucess */ #define M_FALSE 0 /* fail */