aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
The LITMUS^RT kernel.Bjoern Brandenburg
aboutsummaryrefslogblamecommitdiffstats
path: root/drivers/net/pcnet32.c
blob: 0dc7ff896eebc4b0a167c2598977f69cfe43babb (plain) (tree)























                                                                              

                                     

                                     

                                                                               


                         
                        












                              
                           












                                                                  
                                                   

                                                                         




                                                                              

                                                                                

                                    

  
                                          






                                                   
                                      

                             

                                                                                                 
























                                                     
                                                
















                                                                         


                                                              
                                  
  
 
                                                                 
 
                            
 
                                                                               














                                                                        




                                                                 



                                                                


                                                               
                                                                   

                                                               
                                                                   
 




                                                               













                                    
















                                                 

                              

                                             




                                                                


                        




                                                                



                                                                     

                          
                             

                          
                                                                    

                        



                              






                                                       


  

                                                                     

                        
                                              
                                                                                             

                                         

                                                                                            

                                         
                                                                               

















                                                                               

                                     










                                                                                

                                                 
                                        
                                                                           

  



                                                                             

                                                           
                                                       
                                                  
                                              


                                                                       
                                                                   

                                                                      

                                                                       

                                                                            

                                                                            



                                                                               
                                        
                                                          
                                                                        
                                                      
                                                                     
 
                                                              
 

                                            

 
                                                                         
 

                                            

 
                                                              
 

                                            

 
                                                                         
 

                                            

 
                                                   
 
                                           

 
                                                              
 
                                          

 
                                                 
 
                                      

 
                                                
 

                                                   


                                            






                                           

  
                                                               
 

                                                       

 
                                                                          
 

                                             

 
                                                               
 

                                                       

 
                                                                          
 

                                             

 
                                                    
 
                                                       

 
                                                               
 
                                           

 
                                                  
 
                                       

 
                                                 
 

                                                               


                                             






                                            

  

                                                      
                                                      
 
                                   
                                




                                                       
                                                      

                                      
 
                              


                                           
                               

























                                                                           
                                       









                                                                             
                                       







                                                                             
                                       
























































                                                                             
                                       









                                                                             
                                       







                                                                             
                                       













                                                                             
                                                               







                                                                                             
                                                     


                                                                        
                                                                             
                                                                            
                                                                        
                                                              




                                                                           
                                                                           























                                                                             
                                                                           














                                                            

                                                         
                                                      







                                                                         
                                                                           






                                                            


                                                           
                              
                                  
                             


      

                                                                                
                                                      

                            
 






                                                         



                                                                                
                                                      

                            
 





                                                         

 

                                                             
 
                                                      






                                                                     



                                                   
                                                      

                            
 


                                             
                                                         

                                                                           

                                                                     



                                                 



                                                       
                                                      
                              



                                                                   
                                                      
                               



                                                     
                                                      

                            
 





                                                         

 

                                                                  
 
                                                      
 



                                                 

 

                                                                 
 
                                                      
                            

                                      





                                                              
                                        

                                            


                                                                           




                                                                             
                                     

                              

                                                    
 
                                                                      
                                                           
                                     

                              

                                                    
 
                                               



                                                  
         
 
                                                 
 

                                

                                                                              
 
                 

 

                                                                      
 
                                                                           

 
                                                                   
 





                                        


                                                        
                                                                       
 
                                                      











                                                                                
                                    



                                                                             
 
                                                                          
 
                                                      





                                                                         
                                                         






                                                                      


                                                     
                                        

                                            


                                                                               


                               
                                                                 



                                          


                                                           
                                                                          













                                                                                
                                                                       


















                                                                            
                                                                              
                                                                                          
                                                                    
                 
         
 

                                                                            
 


                                                   
 
                                         
                                                                          






                                                                               
                                  











                                                                        
                                                                          












                                                                            
 

















                                                                                         
 
               
                    
                                   
 

                                                                                
 

                                                                     
 







                                                                          


                                                                


                                                              
                                                      











                                                                         



                                                            
                                                      




















                                                                              
                                                          













                                                                  

 






                                                                        
                                                      



                                          



                                                  
























                                                                           





















                                                                               
                                                                      
                                  
                                                     
                                  
                                                    
                                  
                                                   
                                  
                                                    





                                                             
                                               


                                                                           
                                       




                                                                         
                                       





                                       

                                                            


                                                                
                                                      


                                                             


                                                                        
                                                                        
                                                                               
                                                                        



                                        
                                                            






                                                                        
                                        

                       
                           
                                               


                                                                   
                                                    
                                                                
                                            
                                                                               
                                          

                                                                      
                                                       

                                                                   
                                        
                                                 
                               
                                


               
                                                         
 
                                                      
                                                 

                                                          

                                                                      
                                                                           

                                                      
                  

                                                                                
                   
                                                            
                                                                              
                                                  
                                                         
                                          

         
                        

 
                                             
 
                                                      













                                                                           
                                                              
                                                                              
                                               





                                                                                    
                                                               
                                                    
                                                               
                                                    
                                                              

                                                      
                                                            



                                                                                      

                                                                      



                                                      
                                                            


                                                                                               
                                                                 
                                                               

                                                                              





                                                         

                                                        







                                                                
                                                                





                                                    
                                                                               





















                                                                                      
                                                             
 

                                                                                      

                                              
                      

                
                                            










                                                                               

                                                    
 
                                      
 



                                                   
 

                                                          
 


                                                         
 
 

                                  

                                                       
                                                      
                                                    
 
                                                      


                                                                               
                                       
 

                        
                                                      

                                          



                                            


                                                            
 










                                                 
 






















                                                                             


                                                            
                                                       

                                                                   


                                                 

 
                                                       








                                                        
                                                      



                                                       
                                                         




                                                           
                                                                         
 






                                                                                  

                                                         





                                                                           

 


                                                                        


















                                                                           
 












                                                                                          
 




                                              

 















                                                             






                                                                      
                                   
















                                                                                

                                                            
                                          


                                                                           
                                                
                 



















































































                                                                                              
          




                                                                                 
           







                                                                             
                                          





                                                                           


                                                
 
                                            





                                                                                   

                                                                              









                                                              
                               

                                              

                                                  












                                                                              
                                                   

                                              
                                              



                                                                                       
                                                                        

                                          
                                                                

                                      
                                                                

                                      
                                                                

                                      
                                                                


                                                                                     
                                                                    
                                         
                                                               
                                         
                                                               
                                         
                                                             
                                          
                                                             
                                                    
                                                                         
                                                    
                                                                      

                                                    
                                                             



                                
                              
                                                                                                        

                                                                                                





                                                                         

                           

                      

                                  












                                                                          
                                        
                                       

                                                              






                                                                    


                                                                     
                                                                           
 



                                                                     







                                                                       

                                                                   
                                                                  
 
                                                                                
                                   
                                                           
                               


                                                                

                                                                    



                                          

                                                              













                                                                                 
                                                                   











                                                                         
 




























                                                                                               
         





                                                                   
                                              
                                                
                                       
 
















                                                                                
 

                 
              
                               
                                                                 
                                                               
                
                         
                   


                                                   
 
                                                                      
                                                                       
 
                                                      
 




                                                                           
                                      
                                           



                                                                            
 




                                                                           
                                      
                                           



                                                                            
 
                                                                       

                                              
                                      
                                           


                                                                        
 
                                                                       

                                              
                                      
                                           


                                                                        
 
                                                                           

                                            
                                      
                                           


                                                                        
 
                                                                           

                                            
                                      
                                           


                                                                        


                 


                                                     
                                                      
 

                             
 

                             
 

                               
 

                               
 






                                                                    
 






                                                                    

 
                                               
 
                                                      
                                           





                                              
                                                    
                                                                    





















                                                                                   
                                                  



                                             
                         










                                                                                
                                                       











                                                                                  


                                                                     
                                                      


































































                                                                                      
                 



























                                                                             

                 
                                                                        
                                                   
                            
                                                   
         

      
                              
                                                                   






                                     
                               
 
                                                                

                                                                 
 

                                                                 


                               


                                                                  
                                                                         
         


                         
                                                             




                                                                            
                                                   




                                                                                       
                                                 
                                                     






                                                    
                                   
 









                                                                














                                                                            
                                                         
 
                                                      
              
 












                                                                         

                                             
                                                    
 
                                                      










                                                             
                                                           
                                                                                
                                                      




                                                                                               
                                                             





                                                                        
                                                                             
                                                                      
                                                                      
                                                                                          
                                                            









                                                                                
                                   
                                                           
                               
                                                                

                                                                    

                                                                       





                                                                      
                                                                           
 
                                                      

                                              
 

                                 
                                                             
                              
 



                                                                           
 


                                   
 
                         
                                                 

                          
                                                             
                              
 
                                                 

 
                                                      
 
                                                      






                                                                            

                                                                
                               



















                                                                              
                                          
 

                                   
 


                                                 

                                                             
 
                                                      



                                              
 
                                            
 


                                                                        
                                                                
         
 



                                                              
 
                                     
 

                                             
 

                                                                     
 
                                                           
 
                                             
 


                                                                               
                                                                      
                                                                                          
                                                        
 
                     
                                        
 
                                             
                                                                
 
                                   
 




                                                                   
                            



                                    
                                        
 


                                        
                 
                                          
 
                                
                              
 

                             

                                                    



                                                                            
                                                              
 


                                                                              
                                                                              
 

                                      
                                                                

                                    







                                                                              
                                                     
                           
                                                                        






                                                                                             
                 
                                                    




                                                           
 
                                                   

                              
                                                    

         

                                                                          
                                                                



                               

 
                                                
 
                                              
                                                      
                            
 
                                            
 
                              
                                
 
                                            
 
                                                                  
 


                                                                          
                                                                
 
                                                                                   
                                                 
 




                                                                
 
                                                 
 
                                
 
                                            
 

                                   
 
                                                 
 
                 

 
                                                                         
 
                                                      
                                              


                                            
                                                                  

                                                 
                           


                                                                         
                                                          
 
                                                      
                                                                
                                                            
                                               
                                              





                                        

                                                 



                                                                     
















                                             
                                                                       
         


                                                              
               

 




                                                              
                                                     
                                                      
                             

                                            

                                                    




                                                                           
                                      
                                                                                
                                   
                                                               
                
                                      
                                                                           
                                                               


                                            




                                                                      
                



                                                         

                                                 




                                                                     
                                                      

                                              
 

                         
 

                                                                               
 
                       




                                                                                
                                                      
                                              
 

                       
 

                                                                               



                                                                           
                                                      

                            
 







                                                                           
 
                  

 

                                                         
                                                      


                                            
 



























                                                                                
         
                 











                                                                       
                                                      



                                                      
                      
                                                     
                





































                                                                                
         






                                                                         

                                                    
                                                      
                            
 



                                                     
 
                                                                                

 


























                                                                       

                                                              


                                                       
                                                              



                                                                   
                                                                         
                                                                       



                                            


                                           



                                                  

                                      









                                                      

                                                                   
                                   

                                                                        









                                                                             


                                                                                            








                                                                              
                                        
 
                                                                   
 

                                                     
 
                                  
                                                  
                                     
 

                                                          
                                                      
 

                                                                       
 
                                                              



                                               


                                    
                                                                      



                                                                           
                                                                         
                                                                       


                                         
 

                                                       










                                    
/* pcnet32.c: An AMD PCnet32 ethernet driver for linux. */
/*
 *	Copyright 1996-1999 Thomas Bogendoerfer
 *
 *	Derived from the lance driver written 1993,1994,1995 by Donald Becker.
 *
 *	Copyright 1993 United States Government as represented by the
 *	Director, National Security Agency.
 *
 *	This software may be used and distributed according to the terms
 *	of the GNU General Public License, incorporated herein by reference.
 *
 *	This driver is for PCnet32 and PCnetPCI based ethercards
 */
/**************************************************************************
 *  23 Oct, 2000.
 *  Fixed a few bugs, related to running the controller in 32bit mode.
 *
 *  Carsten Langgaard, carstenl@mips.com
 *  Copyright (C) 2000 MIPS Technologies, Inc.  All rights reserved.
 *
 *************************************************************************/

#define DRV_NAME	"pcnet32"
#define DRV_VERSION	"1.35"
#define DRV_RELDATE	"21.Apr.2008"
#define PFX		DRV_NAME ": "

static const char *const version =
    DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " tsbogend@alpha.franken.de\n";

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/crc32.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/moduleparam.h>
#include <linux/bitops.h>

#include <asm/dma.h>