4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Copyright (C) 2008 Texas Instruments, Inc.
8 * This package is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 #include <linux/types.h>
23 * ======== _TI_ ========
24 * _TI_ is defined for all TI targets
26 #if defined(_29_) || defined(_30_) || defined(_40_) || defined(_50_) || \
27 defined(_54_) || defined(_55_) || defined(_6x_) || defined(_80_) || \
28 defined(_28_) || defined(_24_)
33 * ======== _FLOAT_ ========
34 * _FLOAT_ is defined for all targets that natively support floating point
36 #if defined(_SUN_) || defined(_30_) || defined(_40_) || defined(_67_) || \
42 * ======== _FIXED_ ========
43 * _FIXED_ is defined for all fixed point target architectures
45 #if defined(_29_) || defined(_50_) || defined(_54_) || defined(_55_) || \
46 defined(_62_) || defined(_64_) || defined(_28_)
51 * ======== _TARGET_ ========
52 * _TARGET_ is defined for all target architectures (as opposed to
55 #if defined(_FIXED_) || defined(_FLOAT_)
60 * 8, 16, 32-bit type definitions
67 * *u32 - unsigned type
68 * *Bits - unsigned type (bit-maps)
72 * Aliases for standard C types
75 typedef s32(*fxn) (void); /* generic function type */
78 * These macros are used to cast 'Arg' types to 's32' or 'Ptr'.
79 * These macros were added for the 55x since Arg is not the same
80 * size as s32 and Ptr in 55x large model.
82 #if defined(_28l_) || defined(_55l_)
83 #define ARG_TO_INT(A) ((s32)((long)(A) & 0xffff))
84 #define ARG_TO_PTR(A) ((Ptr)(A))
86 #define ARG_TO_INT(A) ((s32)(A))
87 #define ARG_TO_PTR(A) ((Ptr)(A))