Server IP : 13.213.54.232 / Your IP : 216.73.216.72 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/modules/6.8.0-1031-aws/build/arch/mips/include/asm/ |
Upload File : |
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2004, 2005 MIPS Technologies, Inc. All rights reserved. * Copyright (C) 2013 Imagination Technologies Ltd. */ #ifndef __ASM_RTLX_H_ #define __ASM_RTLX_H_ #include <irq.h> #define RTLX_MODULE_NAME "rtlx" #define LX_NODE_BASE 10 #define MIPS_CPU_RTLX_IRQ 0 #define RTLX_VERSION 2 #define RTLX_xID 0x12345600 #define RTLX_ID (RTLX_xID | RTLX_VERSION) #define RTLX_BUFFER_SIZE 2048 #define RTLX_CHANNELS 8 #define RTLX_CHANNEL_STDIO 0 #define RTLX_CHANNEL_DBG 1 #define RTLX_CHANNEL_SYSIO 2 void rtlx_starting(int vpe); void rtlx_stopping(int vpe); int rtlx_open(int index, int can_sleep); int rtlx_release(int index); ssize_t rtlx_read(int index, void __user *buff, size_t count); ssize_t rtlx_write(int index, const void __user *buffer, size_t count); unsigned int rtlx_read_poll(int index, int can_sleep); unsigned int rtlx_write_poll(int index); int __init rtlx_module_init(void); void __exit rtlx_module_exit(void); void _interrupt_sp(void); extern struct vpe_notifications rtlx_notify; extern const struct file_operations rtlx_fops; extern void (*aprp_hook)(void); enum rtlx_state { RTLX_STATE_UNUSED = 0, RTLX_STATE_INITIALISED, RTLX_STATE_REMOTE_READY, RTLX_STATE_OPENED }; extern struct chan_waitqueues { wait_queue_head_t rt_queue; wait_queue_head_t lx_queue; atomic_t in_open; struct mutex mutex; } channel_wqs[RTLX_CHANNELS]; /* each channel supports read and write. linux (vpe0) reads lx_buffer and writes rt_buffer SP (vpe1) reads rt_buffer and writes lx_buffer */ struct rtlx_channel { enum rtlx_state rt_state; enum rtlx_state lx_state; int buffer_size; /* read and write indexes per buffer */ int rt_write, rt_read; char *rt_buffer; int lx_write, lx_read; char *lx_buffer; }; extern struct rtlx_info { unsigned long id; enum rtlx_state state; struct rtlx_channel channel[RTLX_CHANNELS]; } *rtlx; #endif /* __ASM_RTLX_H_ */