]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/tidspbridge/include/dspbridge/dspioctl.h
x86: Fix included-by file reference comments
[karo-tx-linux.git] / drivers / staging / tidspbridge / include / dspbridge / dspioctl.h
1 /*
2  * dspioctl.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * Bridge driver BRD_IOCtl reserved command definitions.
7  *
8  * Copyright (C) 2005-2006 Texas Instruments, Inc.
9  *
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.
13  *
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.
17  */
18
19 #ifndef DSPIOCTL_
20 #define DSPIOCTL_
21
22 /*
23  * Any IOCTLS at or above this value are reserved for standard Bridge driver
24  * interfaces.
25  */
26 #define BRDIOCTL_RESERVEDBASE       0x8000
27
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)
33 /* DMMU */
34 #define BRDIOCTL_SETMMUCONFIG       (BRDIOCTL_RESERVEDBASE + 0x60)
35 /* PWR */
36 #define BRDIOCTL_PWRCONTROL         (BRDIOCTL_RESERVEDBASE + 0x70)
37
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)
54
55 /* Number of actual DSP-MMU TLB entrries */
56 #define BRDIOCTL_NUMOFMMUTLB        32
57
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 */
62         u32 ul_gpp_va;
63         u32 ul_size;            /* Size of the mapped memory in bytes */
64 };
65
66 #endif /* DSPIOCTL_ */