4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Bridge driver BRD_IOCtl reserved command definitions.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23 * Any IOCTLS at or above this value are reserved for standard Bridge driver
26 #define BRDIOCTL_RESERVEDBASE 0x8000
28 #define BRDIOCTL_CHNLREAD (BRDIOCTL_RESERVEDBASE + 0x10)
29 #define BRDIOCTL_CHNLWRITE (BRDIOCTL_RESERVEDBASE + 0x20)
30 #define BRDIOCTL_GETINTRCOUNT (BRDIOCTL_RESERVEDBASE + 0x30)
31 #define BRDIOCTL_RESETINTRCOUNT (BRDIOCTL_RESERVEDBASE + 0x40)
32 #define BRDIOCTL_INTERRUPTDSP (BRDIOCTL_RESERVEDBASE + 0x50)
34 #define BRDIOCTL_SETMMUCONFIG (BRDIOCTL_RESERVEDBASE + 0x60)
36 #define BRDIOCTL_PWRCONTROL (BRDIOCTL_RESERVEDBASE + 0x70)
38 /* attention, modifiers:
39 * Some of these control enumerations are made visible to user for power
40 * control, so any changes to this list, should also be updated in the user
41 * header file 'dbdefs.h' ***/
42 /* These ioctls are reserved for PWR power commands for the DSP */
43 #define BRDIOCTL_DEEPSLEEP (BRDIOCTL_PWRCONTROL + 0x0)
44 #define BRDIOCTL_EMERGENCYSLEEP (BRDIOCTL_PWRCONTROL + 0x1)
45 #define BRDIOCTL_WAKEUP (BRDIOCTL_PWRCONTROL + 0x2)
46 #define BRDIOCTL_PWRENABLE (BRDIOCTL_PWRCONTROL + 0x3)
47 #define BRDIOCTL_PWRDISABLE (BRDIOCTL_PWRCONTROL + 0x4)
48 #define BRDIOCTL_CLK_CTRL (BRDIOCTL_PWRCONTROL + 0x7)
49 /* DSP Initiated Hibernate */
50 #define BRDIOCTL_PWR_HIBERNATE (BRDIOCTL_PWRCONTROL + 0x8)
51 #define BRDIOCTL_PRESCALE_NOTIFY (BRDIOCTL_PWRCONTROL + 0x9)
52 #define BRDIOCTL_POSTSCALE_NOTIFY (BRDIOCTL_PWRCONTROL + 0xA)
53 #define BRDIOCTL_CONSTRAINT_REQUEST (BRDIOCTL_PWRCONTROL + 0xB)
55 /* Number of actual DSP-MMU TLB entrries */
56 #define BRDIOCTL_NUMOFMMUTLB 32
58 struct bridge_ioctl_extproc {
59 u32 ul_dsp_va; /* DSP virtual address */
60 u32 ul_gpp_pa; /* GPP physical address */
61 /* GPP virtual address. __va does not work for ioremapped addresses */
63 u32 ul_size; /* Size of the mapped memory in bytes */
66 #endif /* DSPIOCTL_ */