/* * dspbridge/mpu_api/inc/host_os.h * * DSP-BIOS Bridge driver support functions for TI OMAP processors. * * Copyright (C) 2007 Texas Instruments, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation version 2.1 of the License. * * This program is distributed .as is. WITHOUT ANY WARRANTY of any kind, * whether express or implied; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ /* * ======== windows.h ======== * *! Revision History *! ================ *! 08-Mar-2004 sb Added cacheflush.h to support Dynamic Memory Mapping feature *! 16-Feb-2004 sb Added headers required for consistent_alloc */ #ifndef _HOST_OS_H_ #define _HOST_OS_H_ #ifdef __KERNEL__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include #include #include // #include #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) #include #include #else // #include #include #include #endif /* ----------------------------------- Macros */ #define SEEK_SET 0 /* Seek from beginning of file. */ #define SEEK_CUR 1 /* Seek from current position. */ #define SEEK_END 2 /* Seek from end of file. */ /* TODO -- Remove, once BP defines them */ #define INT_MAIL_MPU_IRQ 26 #define INT_DSP_MMU_IRQ 28 #else #include #include #include #include #include #include #include #include #include #include #ifdef DEBUG_BRIDGE_PERF #include #endif #endif #include #endif