~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/rtlx.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/include/asm/rtlx.h (Architecture sparc64) and /arch/alpha/include/asm-alpha/rtlx.h (Architecture alpha)


  1 /*                                                  1 
  2  * This file is subject to the terms and condi    
  3  * License.  See the file "COPYING" in the mai    
  4  * for more details.                              
  5  *                                                
  6  * Copyright (C) 2004, 2005 MIPS Technologies,    
  7  * Copyright (C) 2013 Imagination Technologies    
  8  */                                               
  9 #ifndef __ASM_RTLX_H_                             
 10 #define __ASM_RTLX_H_                             
 11                                                   
 12 #include <irq.h>                                  
 13                                                   
 14 #define RTLX_MODULE_NAME "rtlx"                   
 15                                                   
 16 #define LX_NODE_BASE 10                           
 17                                                   
 18 #define MIPS_CPU_RTLX_IRQ 0                       
 19                                                   
 20 #define RTLX_VERSION 2                            
 21 #define RTLX_xID 0x12345600                       
 22 #define RTLX_ID (RTLX_xID | RTLX_VERSION)         
 23 #define RTLX_BUFFER_SIZE 2048                     
 24 #define RTLX_CHANNELS 8                           
 25                                                   
 26 #define RTLX_CHANNEL_STDIO      0                 
 27 #define RTLX_CHANNEL_DBG        1                 
 28 #define RTLX_CHANNEL_SYSIO      2                 
 29                                                   
 30 void rtlx_starting(int vpe);                      
 31 void rtlx_stopping(int vpe);                      
 32                                                   
 33 int rtlx_open(int index, int can_sleep);          
 34 int rtlx_release(int index);                      
 35 ssize_t rtlx_read(int index, void __user *buff    
 36 ssize_t rtlx_write(int index, const void __use    
 37 unsigned int rtlx_read_poll(int index, int can    
 38 unsigned int rtlx_write_poll(int index);          
 39                                                   
 40 int __init rtlx_module_init(void);                
 41 void __exit rtlx_module_exit(void);               
 42                                                   
 43 void _interrupt_sp(void);                         
 44                                                   
 45 extern struct vpe_notifications rtlx_notify;      
 46 extern const struct file_operations rtlx_fops;    
 47 extern void (*aprp_hook)(void);                   
 48                                                   
 49 enum rtlx_state {                                 
 50         RTLX_STATE_UNUSED = 0,                    
 51         RTLX_STATE_INITIALISED,                   
 52         RTLX_STATE_REMOTE_READY,                  
 53         RTLX_STATE_OPENED                         
 54 };                                                
 55                                                   
 56 extern struct chan_waitqueues {                   
 57         wait_queue_head_t rt_queue;               
 58         wait_queue_head_t lx_queue;               
 59         atomic_t in_open;                         
 60         struct mutex mutex;                       
 61 } channel_wqs[RTLX_CHANNELS];                     
 62                                                   
 63 /* each channel supports read and write.          
 64    linux (vpe0) reads lx_buffer and writes rt_    
 65    SP (vpe1) reads rt_buffer and writes lx_buf    
 66 */                                                
 67 struct rtlx_channel {                             
 68         enum rtlx_state rt_state;                 
 69         enum rtlx_state lx_state;                 
 70                                                   
 71         int buffer_size;                          
 72                                                   
 73         /* read and write indexes per buffer *    
 74         int rt_write, rt_read;                    
 75         char *rt_buffer;                          
 76                                                   
 77         int lx_write, lx_read;                    
 78         char *lx_buffer;                          
 79 };                                                
 80                                                   
 81 extern struct rtlx_info {                         
 82         unsigned long id;                         
 83         enum rtlx_state state;                    
 84                                                   
 85         struct rtlx_channel channel[RTLX_CHANN    
 86 } *rtlx;                                          
 87 #endif /* __ASM_RTLX_H_ */                        
 88                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php