Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
dbdefs.h File Reference
#include <linux/types.h>
#include <dspbridge/rms_sh.h>

Go to the source code of this file.

Data Structures

struct  dsp_uuid
 
struct  dsp_memstat
 
struct  dsp_procloadstat
 
struct  dsp_strmattr
 
struct  dsp_cbdata
 
struct  dsp_msg
 
struct  dsp_resourcereqmts
 
struct  dsp_streamconnect
 
struct  dsp_nodeprofs
 
struct  dsp_ndbprops
 
struct  dsp_nodeattrin
 
struct  dsp_nodeinfo
 
struct  dsp_nodeattr
 
struct  dsp_notification
 
struct  dsp_processorattrin
 
struct  dsp_processorinfo
 
struct  dsp_errorinfo
 
struct  dsp_processorstate
 
struct  dsp_resourceinfo
 
struct  dsp_streamattrin
 
struct  dsp_bufferattr
 
struct  dsp_streaminfo
 

Macros

#define PG_SIZE4K   4096
 
#define PG_MASK(pg_size)   (~((pg_size)-1))
 
#define PG_ALIGN_LOW(addr, pg_size)   ((addr) & PG_MASK(pg_size))
 
#define PG_ALIGN_HIGH(addr, pg_size)   (((addr)+(pg_size)-1) & PG_MASK(pg_size))
 
#define DBAPI   int
 
#define DSP_MAXNAMELEN   32
 
#define DSP_SIGNALEVENT   0x00000001
 
#define DSP_PROCESSORSTATECHANGE   0x00000001
 
#define DSP_PROCESSORATTACH   0x00000002
 
#define DSP_PROCESSORDETACH   0x00000004
 
#define DSP_PROCESSORRESTART   0x00000008
 
#define DSP_MMUFAULT   0x00000010
 
#define DSP_SYSERROR   0x00000020
 
#define DSP_EXCEPTIONABORT   0x00000300
 
#define DSP_PWRERROR   0x00000080
 
#define DSP_WDTOVERFLOW   0x00000040
 
#define IVA_MMUFAULT   0x00000040
 
#define DSP_NODESTATECHANGE   0x00000100
 
#define DSP_NODEMESSAGEREADY   0x00000200
 
#define DSP_STREAMDONE   0x00001000
 
#define DSP_STREAMIOCOMPLETION   0x00002000
 
#define DSP_HGPPNODE   0xFFFFFFFF
 
#define DSP_TONODE   1
 
#define DSP_FROMNODE   2
 
#define DSP_NODE_MIN_PRIORITY   1
 
#define DSP_NODE_MAX_PRIORITY   15
 
#define DSP_RMSBUFDESC   RMS_BUFDESC
 
#define DSP_UNIT   0
 
#define IVA_UNIT   1
 
#define DSPWORD   unsigned char
 
#define DSPWORDSIZE   sizeof(DSPWORD)
 
#define MAX_PROFILES   16
 
#define DSPTYPE64   0x99
 
#define VALID_PROC_EVENT
 
#define DSP_MAPVIRTUALADDR   0x00000000
 
#define DSP_MAPPHYSICALADDR   0x00000001
 
#define DSP_MAPBIGENDIAN   0x00000002
 
#define DSP_MAPLITTLEENDIAN   0x00000000
 
#define DSP_MAPMIXEDELEMSIZE   0x00000004
 
#define DSP_MAPELEMSIZE8   0x00000008
 
#define DSP_MAPELEMSIZE16   0x00000010
 
#define DSP_MAPELEMSIZE32   0x00000020
 
#define DSP_MAPELEMSIZE64   0x00000040
 
#define DSP_MAPVMALLOCADDR   0x00000080
 
#define DSP_MAPDONOTLOCK   0x00000100
 
#define DSP_MAP_DIR_MASK   0x3FFF
 
#define GEM_CACHE_LINE_SIZE   128
 
#define GEM_L1P_PREFETCH_SIZE   128
 
#define DSPPROCTYPE_C64   6410
 
#define IVAPROCTYPE_ARM7   470
 
#define MAXREGPATHLENGTH   255
 

Enumerations

enum  dsp_dcdobjtype {
  DSP_DCDNODETYPE, DSP_DCDPROCESSORTYPE, DSP_DCDLIBRARYTYPE, DSP_DCDCREATELIBTYPE,
  DSP_DCDEXECUTELIBTYPE, DSP_DCDDELETELIBTYPE, DSP_DCDMAXOBJTYPE
}
 
enum  dsp_procstate { PROC_STOPPED, PROC_LOADED, PROC_RUNNING, PROC_ERROR }
 
enum  node_type {
  CompatTwister = 0, AltTwister = 1, CompatCyclone = 2, AltCyclone = 3,
  CompatWPEG = 4, AltWPEG = 5, LookOutAWPEG = 6, LookOutBWPEG = 7,
  NODE_DEVICE, NODE_TASK, NODE_DAISSOCKET, NODE_MESSAGE,
  NODE_GPP
}
 
enum  node_state {
  NODE_ALLOCATED, NODE_CREATED, NODE_RUNNING, NODE_PAUSED,
  NODE_DONE, NODE_CREATING, NODE_STARTING, NODE_PAUSING,
  NODE_TERMINATING, NODE_DELETING
}
 
enum  dsp_streamstate { STREAM_IDLE, STREAM_READY, STREAM_PENDING, STREAM_DONE }
 
enum  dsp_connecttype { CONNECTTYPE_NODEOUTPUT, CONNECTTYPE_GPPOUTPUT, CONNECTTYPE_NODEINPUT, CONNECTTYPE_GPPINPUT }
 
enum  dsp_strmmode { STRMMODE_PROCCOPY, STRMMODE_ZEROCOPY, STRMMODE_LDMA, STRMMODE_RDMA }
 
enum  dsp_resourceinfotype {
  DSP_RESOURCE_DYNDARAM = 0, DSP_RESOURCE_DYNSARAM, DSP_RESOURCE_DYNEXTERNAL, DSP_RESOURCE_DYNSRAM,
  DSP_RESOURCE_PROCLOAD
}
 
enum  dsp_memtype { DSP_DYNDARAM = 0, DSP_DYNSARAM, DSP_DYNEXTERNAL, DSP_DYNSRAM }
 
enum  dsp_flushtype { PROC_INVALIDATE_MEM = 0, PROC_WRITEBACK_MEM, PROC_WRITEBACK_INVALIDATE_MEM }
 

Macro Definition Documentation

#define DBAPI   int

Definition at line 32 of file dbdefs.h.

#define DSP_EXCEPTIONABORT   0x00000300

Definition at line 49 of file dbdefs.h.

#define DSP_FROMNODE   2

Definition at line 68 of file dbdefs.h.

#define DSP_HGPPNODE   0xFFFFFFFF

Definition at line 64 of file dbdefs.h.

#define DSP_MAP_DIR_MASK   0x3FFF

Definition at line 473 of file dbdefs.h.

#define DSP_MAPBIGENDIAN   0x00000002

Definition at line 454 of file dbdefs.h.

#define DSP_MAPDONOTLOCK   0x00000100

Definition at line 471 of file dbdefs.h.

#define DSP_MAPELEMSIZE16   0x00000010

Definition at line 465 of file dbdefs.h.

#define DSP_MAPELEMSIZE32   0x00000020

Definition at line 466 of file dbdefs.h.

#define DSP_MAPELEMSIZE64   0x00000040

Definition at line 467 of file dbdefs.h.

#define DSP_MAPELEMSIZE8   0x00000008

Definition at line 464 of file dbdefs.h.

#define DSP_MAPLITTLEENDIAN   0x00000000

Definition at line 455 of file dbdefs.h.

#define DSP_MAPMIXEDELEMSIZE   0x00000004

Definition at line 458 of file dbdefs.h.

#define DSP_MAPPHYSICALADDR   0x00000001

Definition at line 451 of file dbdefs.h.

#define DSP_MAPVIRTUALADDR   0x00000000

Definition at line 450 of file dbdefs.h.

#define DSP_MAPVMALLOCADDR   0x00000080

Definition at line 469 of file dbdefs.h.

#define DSP_MAXNAMELEN   32

Definition at line 35 of file dbdefs.h.

#define DSP_MMUFAULT   0x00000010

Definition at line 47 of file dbdefs.h.

#define DSP_NODE_MAX_PRIORITY   15

Definition at line 72 of file dbdefs.h.

#define DSP_NODE_MIN_PRIORITY   1

Definition at line 71 of file dbdefs.h.

#define DSP_NODEMESSAGEREADY   0x00000200

Definition at line 57 of file dbdefs.h.

#define DSP_NODESTATECHANGE   0x00000100

Definition at line 56 of file dbdefs.h.

#define DSP_PROCESSORATTACH   0x00000002

Definition at line 42 of file dbdefs.h.

#define DSP_PROCESSORDETACH   0x00000004

Definition at line 43 of file dbdefs.h.

#define DSP_PROCESSORRESTART   0x00000008

Definition at line 44 of file dbdefs.h.

#define DSP_PROCESSORSTATECHANGE   0x00000001

Definition at line 41 of file dbdefs.h.

#define DSP_PWRERROR   0x00000080

Definition at line 50 of file dbdefs.h.

#define DSP_RMSBUFDESC   RMS_BUFDESC

Definition at line 75 of file dbdefs.h.

#define DSP_SIGNALEVENT   0x00000001

Definition at line 38 of file dbdefs.h.

#define DSP_STREAMDONE   0x00001000

Definition at line 60 of file dbdefs.h.

#define DSP_STREAMIOCOMPLETION   0x00002000

Definition at line 61 of file dbdefs.h.

#define DSP_SYSERROR   0x00000020

Definition at line 48 of file dbdefs.h.

#define DSP_TONODE   1

Definition at line 67 of file dbdefs.h.

#define DSP_UNIT   0

Definition at line 78 of file dbdefs.h.

#define DSP_WDTOVERFLOW   0x00000040

Definition at line 51 of file dbdefs.h.

#define DSPPROCTYPE_C64   6410

Definition at line 482 of file dbdefs.h.

#define DSPTYPE64   0x99

Definition at line 87 of file dbdefs.h.

#define DSPWORD   unsigned char

Definition at line 81 of file dbdefs.h.

#define DSPWORDSIZE   sizeof(DSPWORD)

Definition at line 82 of file dbdefs.h.

#define GEM_CACHE_LINE_SIZE   128

Definition at line 475 of file dbdefs.h.

#define GEM_L1P_PREFETCH_SIZE   128

Definition at line 476 of file dbdefs.h.

#define IVA_MMUFAULT   0x00000040

Definition at line 54 of file dbdefs.h.

#define IVA_UNIT   1

Definition at line 79 of file dbdefs.h.

#define IVAPROCTYPE_ARM7   470

Definition at line 483 of file dbdefs.h.

#define MAX_PROFILES   16

Definition at line 84 of file dbdefs.h.

#define MAXREGPATHLENGTH   255

Definition at line 486 of file dbdefs.h.

#define PG_ALIGN_HIGH (   addr,
  pg_size 
)    (((addr)+(pg_size)-1) & PG_MASK(pg_size))

Definition at line 29 of file dbdefs.h.

#define PG_ALIGN_LOW (   addr,
  pg_size 
)    ((addr) & PG_MASK(pg_size))

Definition at line 28 of file dbdefs.h.

#define PG_MASK (   pg_size)    (~((pg_size)-1))

Definition at line 27 of file dbdefs.h.

#define PG_SIZE4K   4096

Definition at line 26 of file dbdefs.h.

#define VALID_PROC_EVENT
Value:

Definition at line 90 of file dbdefs.h.

Enumeration Type Documentation

Enumerator:
CONNECTTYPE_NODEOUTPUT 
CONNECTTYPE_GPPOUTPUT 
CONNECTTYPE_NODEINPUT 
CONNECTTYPE_GPPINPUT 

Definition at line 170 of file dbdefs.h.

Enumerator:
DSP_DCDNODETYPE 
DSP_DCDPROCESSORTYPE 
DSP_DCDLIBRARYTYPE 
DSP_DCDCREATELIBTYPE 
DSP_DCDEXECUTELIBTYPE 
DSP_DCDDELETELIBTYPE 
DSP_DCDMAXOBJTYPE 

Definition at line 111 of file dbdefs.h.

Enumerator:
PROC_INVALIDATE_MEM 
PROC_WRITEBACK_MEM 
PROC_WRITEBACK_INVALIDATE_MEM 

Definition at line 203 of file dbdefs.h.

Enumerator:
DSP_DYNDARAM 
DSP_DYNSARAM 
DSP_DYNEXTERNAL 
DSP_DYNSRAM 

Definition at line 195 of file dbdefs.h.

Enumerator:
PROC_STOPPED 
PROC_LOADED 
PROC_RUNNING 
PROC_ERROR 

Definition at line 123 of file dbdefs.h.

Enumerator:
DSP_RESOURCE_DYNDARAM 
DSP_RESOURCE_DYNSARAM 
DSP_RESOURCE_DYNEXTERNAL 
DSP_RESOURCE_DYNSRAM 
DSP_RESOURCE_PROCLOAD 

Definition at line 186 of file dbdefs.h.

Enumerator:
STREAM_IDLE 
STREAM_READY 
STREAM_PENDING 
STREAM_DONE 

Definition at line 162 of file dbdefs.h.

Enumerator:
STRMMODE_PROCCOPY 
STRMMODE_ZEROCOPY 
STRMMODE_LDMA 
STRMMODE_RDMA 

Definition at line 178 of file dbdefs.h.

enum node_state
Enumerator:
NODE_ALLOCATED 
NODE_CREATED 
NODE_RUNNING 
NODE_PAUSED 
NODE_DONE 
NODE_CREATING 
NODE_STARTING 
NODE_PAUSING 
NODE_TERMINATING 
NODE_DELETING 

Definition at line 148 of file dbdefs.h.

enum node_type
Enumerator:
CompatTwister 
AltTwister 
CompatCyclone 
AltCyclone 
CompatWPEG 
AltWPEG 
LookOutAWPEG 
LookOutBWPEG 
NODE_DEVICE 
NODE_TASK 
NODE_DAISSOCKET 
NODE_MESSAGE 
NODE_GPP 

Definition at line 136 of file dbdefs.h.