Go to the documentation of this file.
22 #include <linux/types.h>
26 #define PG_SIZE4K 4096
27 #define PG_MASK(pg_size) (~((pg_size)-1))
28 #define PG_ALIGN_LOW(addr, pg_size) ((addr) & PG_MASK(pg_size))
29 #define PG_ALIGN_HIGH(addr, pg_size) (((addr)+(pg_size)-1) & PG_MASK(pg_size))
35 #define DSP_MAXNAMELEN 32
38 #define DSP_SIGNALEVENT 0x00000001
41 #define DSP_PROCESSORSTATECHANGE 0x00000001
42 #define DSP_PROCESSORATTACH 0x00000002
43 #define DSP_PROCESSORDETACH 0x00000004
44 #define DSP_PROCESSORRESTART 0x00000008
47 #define DSP_MMUFAULT 0x00000010
48 #define DSP_SYSERROR 0x00000020
49 #define DSP_EXCEPTIONABORT 0x00000300
50 #define DSP_PWRERROR 0x00000080
51 #define DSP_WDTOVERFLOW 0x00000040
54 #define IVA_MMUFAULT 0x00000040
56 #define DSP_NODESTATECHANGE 0x00000100
57 #define DSP_NODEMESSAGEREADY 0x00000200
60 #define DSP_STREAMDONE 0x00001000
61 #define DSP_STREAMIOCOMPLETION 0x00002000
64 #define DSP_HGPPNODE 0xFFFFFFFF
68 #define DSP_FROMNODE 2
71 #define DSP_NODE_MIN_PRIORITY 1
72 #define DSP_NODE_MAX_PRIORITY 15
75 #define DSP_RMSBUFDESC RMS_BUFDESC
81 #define DSPWORD unsigned char
82 #define DSPWORDSIZE sizeof(DSPWORD)
84 #define MAX_PROFILES 16
87 #define DSPTYPE64 0x99
90 #define VALID_PROC_EVENT (DSP_PROCESSORSTATECHANGE | DSP_PROCESSORATTACH | \
91 DSP_PROCESSORDETACH | DSP_PROCESSORRESTART | DSP_NODESTATECHANGE | \
92 DSP_STREAMDONE | DSP_STREAMIOCOMPLETION | DSP_MMUFAULT | \
93 DSP_SYSERROR | DSP_WDTOVERFLOW | DSP_PWRERROR)
95 static inline bool is_valid_proc_event(
u32 x)
450 #define DSP_MAPVIRTUALADDR 0x00000000
451 #define DSP_MAPPHYSICALADDR 0x00000001
454 #define DSP_MAPBIGENDIAN 0x00000002
455 #define DSP_MAPLITTLEENDIAN 0x00000000
458 #define DSP_MAPMIXEDELEMSIZE 0x00000004
464 #define DSP_MAPELEMSIZE8 0x00000008
465 #define DSP_MAPELEMSIZE16 0x00000010
466 #define DSP_MAPELEMSIZE32 0x00000020
467 #define DSP_MAPELEMSIZE64 0x00000040
469 #define DSP_MAPVMALLOCADDR 0x00000080
471 #define DSP_MAPDONOTLOCK 0x00000100
473 #define DSP_MAP_DIR_MASK 0x3FFF
475 #define GEM_CACHE_LINE_SIZE 128
476 #define GEM_L1P_PREFETCH_SIZE 128
482 #define DSPPROCTYPE_C64 6410
483 #define IVAPROCTYPE_ARM7 470
486 #define MAXREGPATHLENGTH 255