Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dspioctl.h
Go to the documentation of this file.
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 /* ------------------------------------ Hardware Abstraction Layer */
23 #include <hw_defs.h>
24 #include <hw_mmu.h>
25 
26 /*
27  * Any IOCTLS at or above this value are reserved for standard Bridge driver
28  * interfaces.
29  */
30 #define BRDIOCTL_RESERVEDBASE 0x8000
31 
32 #define BRDIOCTL_CHNLREAD (BRDIOCTL_RESERVEDBASE + 0x10)
33 #define BRDIOCTL_CHNLWRITE (BRDIOCTL_RESERVEDBASE + 0x20)
34 /* DMMU */
35 #define BRDIOCTL_SETMMUCONFIG (BRDIOCTL_RESERVEDBASE + 0x60)
36 /* PWR */
37 #define BRDIOCTL_PWRCONTROL (BRDIOCTL_RESERVEDBASE + 0x70)
38 
39 /* attention, modifiers:
40  * Some of these control enumerations are made visible to user for power
41  * control, so any changes to this list, should also be updated in the user
42  * header file 'dbdefs.h' ***/
43 /* These ioctls are reserved for PWR power commands for the DSP */
44 #define BRDIOCTL_DEEPSLEEP (BRDIOCTL_PWRCONTROL + 0x0)
45 #define BRDIOCTL_EMERGENCYSLEEP (BRDIOCTL_PWRCONTROL + 0x1)
46 #define BRDIOCTL_WAKEUP (BRDIOCTL_PWRCONTROL + 0x2)
47 #define BRDIOCTL_CLK_CTRL (BRDIOCTL_PWRCONTROL + 0x7)
48 /* DSP Initiated Hibernate */
49 #define BRDIOCTL_PWR_HIBERNATE (BRDIOCTL_PWRCONTROL + 0x8)
50 #define BRDIOCTL_PRESCALE_NOTIFY (BRDIOCTL_PWRCONTROL + 0x9)
51 #define BRDIOCTL_POSTSCALE_NOTIFY (BRDIOCTL_PWRCONTROL + 0xA)
52 #define BRDIOCTL_CONSTRAINT_REQUEST (BRDIOCTL_PWRCONTROL + 0xB)
53 
54 /* Number of actual DSP-MMU TLB entries */
55 #define BRDIOCTL_NUMOFMMUTLB 32
56 
58  u32 dsp_va; /* DSP virtual address */
59  u32 gpp_pa; /* GPP physical address */
60  /* GPP virtual address. __va does not work for ioremapped addresses */
62  u32 size; /* Size of the mapped memory in bytes */
66 };
67 
68 #endif /* DSPIOCTL_ */