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

TOMOYO Linux Cross Reference
Linux/include/net/ncsi.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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/net/ncsi.h (Version linux-6.12-rc7) and /include/net/ncsi.h (Version linux-2.4.37.11)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef __NET_NCSI_H                              
  3 #define __NET_NCSI_H                              
  4                                                   
  5 #include <linux/types.h>                          
  6                                                   
  7 /*                                                
  8  * The NCSI device states seen from external.     
  9  * only visible internally (in net/ncsi/intern    
 10  * is registered, it's in ncsi_dev_state_regis    
 11  * ncsi_dev_state_start is used to drive to ch    
 12  * channel. After that, its state is changed t    
 13  *                                                
 14  * The state ncsi_dev_state_stop helps to shut    
 15  * package and channel while ncsi_dev_state_co    
 16  * them.                                          
 17  */                                               
 18 enum {                                            
 19         ncsi_dev_state_registered       = 0x00    
 20         ncsi_dev_state_functional       = 0x01    
 21         ncsi_dev_state_probe            = 0x02    
 22         ncsi_dev_state_config           = 0x03    
 23         ncsi_dev_state_suspend          = 0x04    
 24 };                                                
 25                                                   
 26 struct ncsi_dev {                                 
 27         int               state;                  
 28         int               link_up;                
 29         struct net_device *dev;                   
 30         void              (*handler)(struct nc    
 31 };                                                
 32                                                   
 33 #ifdef CONFIG_NET_NCSI                            
 34 int ncsi_vlan_rx_add_vid(struct net_device *de    
 35 int ncsi_vlan_rx_kill_vid(struct net_device *d    
 36 struct ncsi_dev *ncsi_register_dev(struct net_    
 37                                    void (*noti    
 38 int ncsi_start_dev(struct ncsi_dev *nd);          
 39 void ncsi_stop_dev(struct ncsi_dev *nd);          
 40 void ncsi_unregister_dev(struct ncsi_dev *nd);    
 41 #else /* !CONFIG_NET_NCSI */                      
 42 static inline int ncsi_vlan_rx_add_vid(struct     
 43 {                                                 
 44         return -EINVAL;                           
 45 }                                                 
 46                                                   
 47 static inline int ncsi_vlan_rx_kill_vid(struct    
 48 {                                                 
 49         return -EINVAL;                           
 50 }                                                 
 51                                                   
 52 static inline struct ncsi_dev *ncsi_register_d    
 53                                         void (    
 54 {                                                 
 55         return NULL;                              
 56 }                                                 
 57                                                   
 58 static inline int ncsi_start_dev(struct ncsi_d    
 59 {                                                 
 60         return -ENOTTY;                           
 61 }                                                 
 62                                                   
 63 static void ncsi_stop_dev(struct ncsi_dev *nd)    
 64 {                                                 
 65 }                                                 
 66                                                   
 67 static inline void ncsi_unregister_dev(struct     
 68 {                                                 
 69 }                                                 
 70 #endif /* CONFIG_NET_NCSI */                      
 71                                                   
 72 #endif /* __NET_NCSI_H */                         
 73                                                   

~ [ 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