Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/include/linux/dca.h (Version 2.6.25) and /linux/include/linux/dca.h (Version 2.6.11.8)


  1 #ifndef DCA_H                                       1 
  2 #define DCA_H                                     
  3 /* DCA Provider API */                            
  4                                                   
  5 /* DCA Notifier Interface */                      
  6 void dca_register_notify(struct notifier_block    
  7 void dca_unregister_notify(struct notifier_blo    
  8                                                   
  9 #define DCA_PROVIDER_ADD     0x0001               
 10 #define DCA_PROVIDER_REMOVE  0x0002               
 11                                                   
 12 struct dca_provider {                             
 13         struct dca_ops          *ops;             
 14         struct device           *cd;              
 15         int                      id;              
 16 };                                                
 17                                                   
 18 struct dca_ops {                                  
 19         int     (*add_requester)    (struct dc    
 20         int     (*remove_requester) (struct dc    
 21         u8      (*get_tag)          (struct dc    
 22 };                                                
 23                                                   
 24 struct dca_provider *alloc_dca_provider(struct    
 25 void free_dca_provider(struct dca_provider *dc    
 26 int register_dca_provider(struct dca_provider     
 27 void unregister_dca_provider(struct dca_provid    
 28                                                   
 29 static inline void *dca_priv(struct dca_provid    
 30 {                                                 
 31         return (void *)dca + sizeof(struct dca    
 32 }                                                 
 33                                                   
 34 /* Requester API */                               
 35 int dca_add_requester(struct device *dev);        
 36 int dca_remove_requester(struct device *dev);     
 37 u8 dca_get_tag(int cpu);                          
 38                                                   
 39 /* internal stuff */                              
 40 int __init dca_sysfs_init(void);                  
 41 void __exit dca_sysfs_exit(void);                 
 42 int dca_sysfs_add_provider(struct dca_provider    
 43 void dca_sysfs_remove_provider(struct dca_prov    
 44 int dca_sysfs_add_req(struct dca_provider *dca    
 45 void dca_sysfs_remove_req(struct dca_provider     
 46                                                   
 47 #endif /* DCA_H */                                
 48                                                   
  This page was automatically generated by the LXR engine.