base/include/asm/rtai_lxrt.h File Reference

#include <linux/version.h>
#include <asm/rtai_vectors.h>
#include <sys/syscall.h>
#include <unistd.h>

Include dependency graph for rtai_lxrt.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

union  rtai_lxrt_t

Defines

#define RTAI_SYSCALL_NR   0x70000000
#define RTAI_SYSCALL_CODE   ebx
#define RTAI_SYSCALL_ARGS   ecx
#define RTAI_SYSCALL_RETPNT   edx
#define RTAI_FAKE_LINUX_SYSCALL   20
#define SKIP_IMMEDIATE_LINUX_SYSCALL()
#define LINUX_SYSCALL_NR   orig_eax
#define LINUX_SYSCALL_REG1   ebx
#define LINUX_SYSCALL_REG2   ecx
#define LINUX_SYSCALL_REG3   edx
#define LINUX_SYSCALL_REG4   esi
#define LINUX_SYSCALL_REG5   edi
#define LINUX_SYSCALL_REG6   ebp
#define LINUX_SYSCALL_RETREG   eax
#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_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)
#define rtai_iopl()   do { extern int iopl(int); iopl(3); } while (0)

Functions

rtai_lxrt_t _rtai_lxrt (int srq, void *arg)
rtai_lxrt_t rtai_lxrt (short int dynx, short int lsize, int srq, void *arg)


Define Documentation

#define HIGH   1
 

Definition at line 60 of file rtai_lxrt.h.

#define LINUX_SYSCALL_NR   orig_eax
 

Definition at line 43 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG1   ebx
 

Definition at line 44 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG2   ecx
 

Definition at line 45 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG3   edx
 

Definition at line 46 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG4   esi
 

Definition at line 47 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG5   edi
 

Definition at line 48 of file rtai_lxrt.h.

#define LINUX_SYSCALL_REG6   ebp
 

Definition at line 49 of file rtai_lxrt.h.

#define LINUX_SYSCALL_RETREG   eax
 

Definition at line 50 of file rtai_lxrt.h.

#define LOW   0
 

Definition at line 59 of file rtai_lxrt.h.

Referenced by _rt_shm_alloc(), ddn2nl(), ftask_init(), linux_syscall_server_fun(), ll2a(), mq_close(), mq_getattr(), mq_notify(), mq_open(), mq_receive(), mq_send(), mq_setattr(), mq_timedreceive(), mq_timedsend(), mq_unlink(), pthread_cond_broadcast_rt(), pthread_cond_signal_rt(), pthread_cond_timedwait_rt(), pthread_cond_wait_rt(), pthread_mutex_close_rt(), pthread_mutex_init_rt(), pthread_mutex_open_rt(), pthread_rwlock_close_rt(), pthread_rwlock_init_rt(), pthread_rwlock_rdlock_rt(), pthread_rwlock_tryrdlock_rt(), pthread_rwlock_trywrlock_rt(), pthread_rwlock_unlock_rt(), pthread_rwlock_wrlock_rt(), rt_agent(), rt_Alias_attach(), rt_bits_delete(), rt_bits_init(), rt_bits_reset(), rt_bits_signal(), rt_bits_wait(), rt_bits_wait_if(), rt_bits_wait_timed(), rt_bits_wait_until(), rt_buddy_task_use_fpu(), rt_change_prio(), rt_cond_signal(), rt_cond_wait(), rt_cond_wait_timed(), rt_cond_wait_until(), rt_Creceive(), rt_delete_tasklet(), rt_evdrp(), rt_evdrpx(), rt_exec_tasklet(), rt_find_asgn_stub(), rt_force_task_soft(), RT_get_adr(), rt_get_adr(), rt_get_bits(), rt_get_errno(), rt_get_linux_signal(), rt_get_name(), rt_get_timer_cpu(), rt_get_usp_flags(), rt_get_usp_flags_mask(), rt_GetTickQueueHook(), rt_halloc(), rt_hard_timer_tick(), rt_hard_timer_tick_cpuid(), rt_init_tasklet(), rt_InitTickQueue(), rt_insert_tasklet(), rt_insert_timer(), rt_irq_signal(), rt_irq_wait(), rt_irq_wait_if(), rt_irq_wait_timed(), rt_irq_wait_until(), rt_is_hard_real_time(), rt_is_hard_timer_running(), RT_isrpc(), rt_isrpc(), rt_linux_syscall_server_create(), rt_linux_use_fpu(), rt_malloc(), rt_mbx_delete(), RT_mbx_evdrp(), rt_mbx_evdrp(), RT_mbx_ovrwr_send(), rt_mbx_ovrwr_send(), RT_mbx_receive(), rt_mbx_receive(), RT_mbx_receive_if(), rt_mbx_receive_if(), RT_mbx_receive_timed(), rt_mbx_receive_timed(), RT_mbx_receive_until(), rt_mbx_receive_until(), RT_mbx_receive_wp(), rt_mbx_receive_wp(), RT_mbx_send(), rt_mbx_send(), RT_mbx_send_if(), rt_mbx_send_if(), RT_mbx_send_timed(), rt_mbx_send_timed(), RT_mbx_send_until(), rt_mbx_send_until(), RT_mbx_send_wp(), rt_mbx_send_wp(), rt_msg_broadcast(), rt_msg_broadcast_if(), rt_msg_broadcast_timed(), rt_msg_broadcast_until(), rt_msg_evdrp(), rt_msg_receive(), rt_msg_receive_if(), rt_msg_receive_timed(), rt_msg_receive_until(), rt_msg_send(), rt_msg_send_if(), rt_msg_send_timed(), rt_msg_send_until(), rt_msgq_delete(), rt_msgq_init(), rt_Name_detach(), rt_Name_locate(), rt_named_halloc(), rt_named_malloc(), RT_named_mbx_delete(), rt_named_mbx_delete(), rt_named_msgq_delete(), rt_named_msgq_init(), rt_named_rwl_delete(), rt_named_rwl_init(), rt_named_sem_delete(), RT_named_sem_delete(), rt_named_spl_delete(), rt_named_spl_init(), rt_Proxy_attach(), rt_proxy_attach(), rt_Proxy_detach(), rt_proxy_detach(), rt_qBlkUnhook(), rt_qDynAlloc(), rt_qDynFree(), rt_qDynInit(), rt_qHookInit(), rt_qReceive(), rt_qSync(), rt_Receive(), rt_receive(), rt_receive_if(), rt_receive_linux_syscall(), rt_receive_timed(), rt_receive_until(), rt_receivex(), rt_receivex_if(), rt_receivex_timed(), rt_receivex_until(), rt_rel_stub(), rt_release_irq_task(), rt_release_signal(), rt_Reply(), rt_request_irq_task(), rt_request_signal(), rt_return(), rt_returnx(), RT_rpc(), rt_rpc(), RT_rpc_if(), rt_rpc_if(), RT_rpc_timed(), rt_rpc_timed(), RT_rpc_until(), rt_rpc_until(), RT_rpcx(), rt_rpcx(), RT_rpcx_if(), rt_rpcx_if(), RT_rpcx_timed(), rt_rpcx_timed(), RT_rpcx_until(), rt_rpcx_until(), rt_rwl_delete(), rt_rwl_init(), rt_rwl_rdlock(), rt_rwl_rdlock_if(), rt_rwl_rdlock_timed(), rt_rwl_rdlock_until(), rt_rwl_unlock(), rt_rwl_wrlock(), rt_rwl_wrlock_if(), rt_rwl_wrlock_timed(), rt_rwl_wrlock_until(), rt_sem_broadcast(), RT_sem_broadcast(), rt_sem_count(), rt_sem_delete(), rt_sem_signal(), RT_sem_signal(), rt_sem_wait(), RT_sem_wait(), rt_sem_wait_barrier(), rt_sem_wait_if(), RT_sem_wait_if(), rt_sem_wait_timed(), RT_sem_wait_timed(), rt_sem_wait_until(), RT_sem_wait_until(), RT_send(), rt_Send(), rt_send(), RT_send_if(), rt_send_if(), rt_send_req_rel_port(), RT_send_timed(), rt_send_timed(), RT_send_until(), rt_send_until(), RT_sendx(), rt_sendx(), RT_sendx_if(), rt_sendx_if(), RT_sendx_timed(), rt_sendx_timed(), RT_sendx_until(), rt_sendx_until(), rt_set_linux_signal_handler(), rt_set_period(), rt_set_resume_time(), rt_set_tasklet_handler(), rt_set_this_node(), rt_shm_free(), rt_sleep(), rt_sleep_until(), rt_spl_delete(), rt_spl_init(), rt_spl_lock(), rt_spl_lock_if(), rt_spl_lock_timed(), rt_spl_unlock(), rt_sync_net_rpc(), rt_task_delete(), rt_task_init_schmod(), rt_task_make_periodic(), rt_task_make_periodic_relative_ns(), rt_task_masked_unblock(), rt_task_resume(), rt_task_signal_handler(), rt_task_suspend(), rt_task_suspend_if(), rt_task_suspend_timed(), rt_task_suspend_until(), rt_task_use_fpu(), rt_task_wait_period(), rt_task_yield(), rt_tasklet_use_fpu(), rt_Trigger(), rt_trigger(), rt_typed_mbx_init(), RT_typed_named_mbx_init(), rt_typed_named_mbx_init(), rt_typed_named_sem_init(), RT_typed_named_sem_init(), rt_typed_sem_init(), rt_vc_attach(), rt_vc_release(), rt_vc_reserve(), rt_waiting_return(), rtf_create(), rtf_create_named_lxrt(), rtf_destroy(), rtf_get(), rtf_get_if(), rtf_getfifobyname_lxrt(), rtf_named_create_lxrt(), rtf_ovrwr_put(), rtf_put(), rtf_put_if(), rtf_reset_lxrt(), rtf_resize_lxrt(), rtf_sem_destroy_lxrt(), rtf_sem_init_lxrt(), rtf_sem_post_lxrt(), rtf_sem_trywait_lxrt(), sem_close_rt(), sem_getvalue_rt(), sem_init_rt(), sem_open_rt(), sem_post_rt(), sem_timedwait_rt(), sem_trywait_rt(), and signal_suprt_fun().

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

Definition at line 89 of file rtai_lxrt.h.

Referenced by rt_timer_handler().

#define RTAI_FAKE_LINUX_SYSCALL   20
 

Definition at line 39 of file rtai_lxrt.h.

Referenced by lxrt_intercept_syscall_prologue().

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

Definition at line 209 of file rtai_lxrt.h.

Referenced by rt_task_init_schmod().

#define RTAI_SYSCALL_ARGS   ecx
 

Definition at line 36 of file rtai_lxrt.h.

#define RTAI_SYSCALL_CODE   ebx
 

Definition at line 35 of file rtai_lxrt.h.

#define RTAI_SYSCALL_NR   0x70000000
 

Definition at line 34 of file rtai_lxrt.h.

Referenced by _rtai_lxrt(), lxrt_intercept_syscall_epilogue(), lxrt_intercept_syscall_prologue(), and rt_do_signal().

#define RTAI_SYSCALL_RETPNT   edx
 

Definition at line 37 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 52 of file rtai_lxrt.h.

Referenced by lxrt_intercept_syscall_prologue().

 
#define SKIP_IMMEDIATE_LINUX_SYSCALL  ) 
 

Definition at line 41 of file rtai_lxrt.h.

Referenced by lxrt_intercept_syscall_prologue().

#define TIMER_FREQ   RTAI_FREQ_8254
 

Definition at line 86 of file rtai_lxrt.h.

Referenced by __rtai_lxrt_init(), count2nano(), count2nano_cpuid(), nano2count(), nano2count_cpuid(), rt_get_time_ns(), rt_get_time_ns_cpuid(), rt_schedule(), rt_set_runnable_on_cpuid(), and rt_timer_handler().

#define TIMER_LATENCY   RTAI_LATENCY_8254
 

Definition at line 87 of file rtai_lxrt.h.

#define TIMER_NAME   "8254-PIT"
 

Definition at line 85 of file rtai_lxrt.h.

Referenced by __rtai_lxrt_init().

#define TIMER_SETUP_TIME   RTAI_SETUP_TIME_8254
 

Definition at line 88 of file rtai_lxrt.h.

#define update_linux_timer cpuid   ) 
 

Value:

do { \ if (!IS_FUSION_TIMER_RUNNING()) { \ hal_pend_uncond(TIMER_8254_IRQ, cpuid); \ } \ } while (0)
Definition at line 90 of file rtai_lxrt.h.

Referenced by recover_jiffies(), and rt_timer_handler().

#define USE_LINUX_TIMER
 

Definition at line 84 of file rtai_lxrt.h.


Function Documentation

union rtai_lxrt_t _rtai_lxrt int  srq,
void *  arg
[static]
 

Definition at line 193 of file rtai_lxrt.h.

References _rtai_lxrt(), RTAI_DO_TRAP, RTAI_SYS_VECTOR, RTAI_SYSCALL_NR, and srq.

Referenced by _rtai_lxrt().

Here is the call graph for this function:

union rtai_lxrt_t rtai_lxrt short int  dynx,
short int  lsize,
int  srq,
void *  arg
[inline, static]
 

Definition at line 204 of file rtai_lxrt.h.

References _rtai_lxrt(), ENCODE_LXRT_REQ, rtai_lxrt(), and srq.

Referenced by rtai_lxrt().

Here is the call graph for this function:


Generated on Thu Nov 20 11:52:11 2008 for RTAI API by doxygen 1.3.8