1 /* 2 * dspbridge/mpu_api/inc/dsptrap.h 3 * 4 * DSP-BIOS Bridge driver support functions for TI OMAP processors. 5 * 6 * Copyright (C) 2007 Texas Instruments, Inc. 7 * 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. 11 * 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. 16 */ 17 18 /* 19 * ======== dsptrap.h ======== 20 * Purpose: 21 * Handles interaction between user and driver layers. 22 * 23 *! Revision History 24 *! ================ 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 29 *! driver as well. 30 *! 08-Oct-1999 rr: header information changed to dbclsdrv.dll 31 *! 18-Aug-1999 rr: Created 32 */ 33 34 #ifndef DSPTRAP_ 35 #define DSPTRAP_ 36 37 #include <wcdioctl.h> 38 39 #ifndef LINUX 40 #define TI_FUNCTION_OFFSET 0x5000 41 42 #define NT_CMD_FROM_OFFSET(x) CTL_CODE(FILE_DEVICE_UNKNOWN, \ 43 (TI_FUNCTION_OFFSET + (x)), METHOD_BUFFERED, FILE_ANY_ACCESS) 44 #endif 45 46 /* Function Prototypes */ 47 extern DWORD DSPTRAP_Trap(Trapped_Args * args, int cmd); 48 49 #endif /* DSPTRAP_ */ 50