base/include/asm-x86_64/rtai_lxrt.h File Reference

Include dependency graph for rtai_lxrt.h:

Go to the source code of this file.

Data Structures

union  rtai_lxrt_t

Defines

#define NR_syscalls   __NR_syscall_max
#define RTAI_SYSCALL_NR   0x70000000
#define RT_REG_ORIG_AX   orig_rax
#define RT_REG_SP   rsp
#define RT_REG_SS   ss
#define RT_REG_FLAGS   eflags
#define RT_REG_IP   rip
#define RT_REG_CS   cs
#define RT_REG_BP   rbp
#define RT_REG_BX   rbx
#define RT_REG_CX   rcx
#define RTAI_SYSCALL_CODE   rdi
#define RTAI_SYSCALL_ARGS   rsi
#define RTAI_SYSCALL_RETPNT   rdx
#define LINUX_SYSCALL_NR   RT_REG_ORIG_AX
#define LINUX_SYSCALL_REG1   rdi
#define LINUX_SYSCALL_REG2   rsi
#define LINUX_SYSCALL_REG3   rdx
#define LINUX_SYSCALL_REG4   r10
#define LINUX_SYSCALL_REG5   r8
#define LINUX_SYSCALL_REG6   r9
#define LINUX_SYSCALL_RETREG   rax
#define LINUX_SYSCALL_FLAGS   RT_REG_FLAGS
#define LXRT_DO_IMMEDIATE_LINUX_SYSCALL(regs)
#define SET_LXRT_RETVAL_IN_SYSCALL(regs, retval)
#define LOW   0
#define HIGH   1
#define USE_LINUX_TIMER
#define TIMER_NAME   "8254-PIT"
#define TIMER_TYPE   0
#define HRT_LINUX_TIMER_NAME   "pit"
#define TIMER_FREQ   RTAI_FREQ_8254
#define TIMER_LATENCY   RTAI_LATENCY_8254
#define TIMER_SETUP_TIME   RTAI_SETUP_TIME_8254
#define ONESHOT_SPAN   ((0x7FFF*(CPU_FREQ/TIMER_FREQ))/(CONFIG_RTAI_CAL_FREQS_FACT + 1))
#define update_linux_timer(cpuid)   hal_pend_uncond(TIMER_8254_IRQ, cpuid)
#define rtai_iopl()   do { extern int iopl(int); iopl(3); } while (0)

Functions

static union rtai_lxrt_t _rtai_lxrt (long srq, void *arg)
static union rtai_lxrt_t rtai_lxrt (long dynx, long lsize, long srq, void *arg)


Define Documentation

#define HIGH   1

Definition at line 110 of file rtai_lxrt.h.

#define HRT_LINUX_TIMER_NAME   "pit"

Definition at line 146 of file rtai_lxrt.h.

#define LINUX_SYSCALL_FLAGS   RT_REG_FLAGS

Definition at line 92 of file rtai_lxrt.h.

#define LINUX_SYSCALL_NR   RT_REG_ORIG_AX

Definition at line 84 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG1   rdi

Definition at line 85 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG2   rsi

Definition at line 86 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG3   rdx

Definition at line 87 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG4   r10

Definition at line 88 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG5   r8

Definition at line 89 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG6   r9

Definition at line 90 of file rtai_lxrt.h.

#define LINUX_SYSCALL_RETREG   rax

Definition at line 91 of file rtai_lxrt.h.

#define LOW   0

Definition at line 109 of file rtai_lxrt.h.

#define LXRT_DO_IMMEDIATE_LINUX_SYSCALL ( regs   ) 

Value:

do { \
        regs->RT_REG_CX = regs->r10; \
        regs->LINUX_SYSCALL_RETREG = ((asmlinkage int (*)(long, ...))sys_call_table[regs->LINUX_SYSCALL_RETREG])(regs->LINUX_SYSCALL_REG1, regs->LINUX_SYSCALL_REG2, regs->LINUX_SYSCALL_REG3, regs->RT_REG_CX, regs->LINUX_SYSCALL_RETREG, regs->r8, regs->r9, regs->r10, regs->r11, regs->RT_REG_BX, regs->RT_REG_BP, regs->r12, regs->r13, regs->r14, regs->r15); \
    } while (0)

Definition at line 96 of file rtai_lxrt.h.

#define NR_syscalls   __NR_syscall_max

Definition at line 36 of file rtai_lxrt.h.

#define ONESHOT_SPAN   ((0x7FFF*(CPU_FREQ/TIMER_FREQ))/(CONFIG_RTAI_CAL_FREQS_FACT + 1))

Definition at line 150 of file rtai_lxrt.h.

#define RT_REG_BP   rbp

Definition at line 75 of file rtai_lxrt.h.

#define RT_REG_BX   rbx

Definition at line 76 of file rtai_lxrt.h.

#define RT_REG_CS   cs

Definition at line 74 of file rtai_lxrt.h.

#define RT_REG_CX   rcx

Definition at line 77 of file rtai_lxrt.h.

#define RT_REG_FLAGS   eflags

Definition at line 72 of file rtai_lxrt.h.

#define RT_REG_IP   rip

Definition at line 73 of file rtai_lxrt.h.

#define RT_REG_ORIG_AX   orig_rax

Definition at line 69 of file rtai_lxrt.h.

#define RT_REG_SP   rsp

Definition at line 70 of file rtai_lxrt.h.

#define RT_REG_SS   ss

Definition at line 71 of file rtai_lxrt.h.

 
#define rtai_iopl (  )     do { extern int iopl(int); iopl(3); } while (0)

Definition at line 312 of file rtai_lxrt.h.

#define RTAI_SYSCALL_ARGS   rsi

Definition at line 80 of file rtai_lxrt.h.

#define RTAI_SYSCALL_CODE   rdi

Definition at line 79 of file rtai_lxrt.h.

#define RTAI_SYSCALL_NR   0x70000000

Definition at line 39 of file rtai_lxrt.h.

#define RTAI_SYSCALL_RETPNT   rdx

Definition at line 81 of file rtai_lxrt.h.

#define SET_LXRT_RETVAL_IN_SYSCALL ( regs,
retval   ) 

Value:

do { \
                if (regs->RTAI_SYSCALL_RETPNT) { \
            rt_copy_to_user((void *)regs->RTAI_SYSCALL_RETPNT, &retval, sizeof(retval)); \
        } \
    } while (0)

Definition at line 102 of file rtai_lxrt.h.

#define TIMER_FREQ   RTAI_FREQ_8254

Definition at line 147 of file rtai_lxrt.h.

#define TIMER_LATENCY   RTAI_LATENCY_8254

Definition at line 148 of file rtai_lxrt.h.

#define TIMER_NAME   "8254-PIT"

Definition at line 144 of file rtai_lxrt.h.

#define TIMER_SETUP_TIME   RTAI_SETUP_TIME_8254

Definition at line 149 of file rtai_lxrt.h.

#define TIMER_TYPE   0

Definition at line 145 of file rtai_lxrt.h.

#define update_linux_timer ( cpuid   )     hal_pend_uncond(TIMER_8254_IRQ, cpuid)

Definition at line 151 of file rtai_lxrt.h.

#define USE_LINUX_TIMER

Definition at line 143 of file rtai_lxrt.h.


Function Documentation

static union rtai_lxrt_t _rtai_lxrt ( long  srq,
void *  arg 
) [static]

Definition at line 296 of file rtai_lxrt.h.

References RTAI_DO_TRAP, RTAI_SYS_VECTOR, RTAI_SYSCALL_NR, and srq.

static union rtai_lxrt_t rtai_lxrt ( long  dynx,
long  lsize,
long  srq,
void *  arg 
) [inline, static]

Definition at line 307 of file rtai_lxrt.h.

References _rtai_lxrt(), ENCODE_LXRT_REQ, and srq.

Here is the call graph for this function:


Generated on Tue Feb 2 17:46:43 2010 for RTAI API by  doxygen 1.4.7