/* * Copyright 2001-2008 Texas Instruments - http://www.ti.com/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * ======== windows.h ======== * DSP-BIOS Bridge driver support functions for TI OMAP processors. * *! 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 #if defined (OMAP_2430) || defined (OMAP_3430) #include #ifdef OMAP_3430 #include // #include #endif #endif #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 */ #ifdef OMAP_3430 #define INT_MAIL_MPU_IRQ 26 #define INT_DSP_MMU_IRQ 28 #endif #else #include #include #include #include #include #include #include #include #include #include #endif #include #endif