Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
dsp.h File Reference
#include <asm/cpu.h>
#include <asm/cpu-features.h>
#include <asm/hazards.h>
#include <asm/mipsregs.h>

Go to the source code of this file.

Macros

#define DSP_DEFAULT   0x00000000
 
#define DSP_MASK   0x3ff
 
#define __enable_dsp_hazard()
 
#define __save_dsp(tsk)
 
#define save_dsp(tsk)
 
#define __restore_dsp(tsk)
 
#define restore_dsp(tsk)
 
#define __get_dsp_regs(tsk)
 

Macro Definition Documentation

#define __enable_dsp_hazard ( )
Value:
do { \
asm("_ehb"); \
} while (0)

Definition at line 21 of file dsp.h.

#define __get_dsp_regs (   tsk)
Value:
({ \
if (tsk == current) \
__save_dsp(current); \
\
tsk->thread.dsp.dspr; \
})

Definition at line 77 of file dsp.h.

#define __restore_dsp (   tsk)
Value:
do { \
mthi1(tsk->thread.dsp.dspr[0]); \
mtlo1(tsk->thread.dsp.dspr[1]); \
mthi2(tsk->thread.dsp.dspr[2]); \
mtlo2(tsk->thread.dsp.dspr[3]); \
mthi3(tsk->thread.dsp.dspr[4]); \
mtlo3(tsk->thread.dsp.dspr[5]); \
wrdsp(tsk->thread.dsp.dspcontrol, DSP_MASK); \
} while (0)

Definition at line 60 of file dsp.h.

#define __save_dsp (   tsk)
Value:
do { \
tsk->thread.dsp.dspr[0] = mfhi1(); \
tsk->thread.dsp.dspr[1] = mflo1(); \
tsk->thread.dsp.dspr[2] = mfhi2(); \
tsk->thread.dsp.dspr[3] = mflo2(); \
tsk->thread.dsp.dspr[4] = mfhi3(); \
tsk->thread.dsp.dspr[5] = mflo3(); \
tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \
} while (0)

Definition at line 43 of file dsp.h.

#define DSP_DEFAULT   0x00000000

Definition at line 18 of file dsp.h.

#define DSP_MASK   0x3ff

Definition at line 19 of file dsp.h.

#define restore_dsp (   tsk)
Value:
do { \
if (cpu_has_dsp) \
__restore_dsp(tsk); \
} while (0)

Definition at line 71 of file dsp.h.

#define save_dsp (   tsk)
Value:
do { \
if (cpu_has_dsp) \
__save_dsp(tsk); \
} while (0)

Definition at line 54 of file dsp.h.