2 * dspbridge/mpu_api/inc/dsptrap.h
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Copyright (C) 2007 Texas Instruments, Inc.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published
10 * by the Free Software Foundation version 2.1 of the License.
12 * This program is distributed .as is. WITHOUT ANY WARRANTY of any kind,
13 * whether express or implied; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
19 * ======== dsptrap.h ========
21 * Handles interaction between user and driver layers.
25 *! 13-Feb-2001 kc: DSP/BIOS Bridge name updates.
26 *! 28-Jan-2000 rr: New define for the TI Function offset.
27 *! NT_CMD_FROM_OFFSET moved in from wcdioctl.h
28 *! It is not hard coded any more; can be used by the class
30 *! 08-Oct-1999 rr: header information changed to dbclsdrv.dll
31 *! 18-Aug-1999 rr: Created
40 #define TI_FUNCTION_OFFSET 0x5000
42 #define NT_CMD_FROM_OFFSET(x) CTL_CODE(FILE_DEVICE_UNKNOWN, \
43 (TI_FUNCTION_OFFSET + (x)), METHOD_BUFFERED, FILE_ANY_ACCESS)
46 /* Function Prototypes */
47 extern DWORD DSPTRAP_Trap(Trapped_Args * args, int cmd);