aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/qnx6_fs.h
diff options
context:
space:
mode:
authorAtzm Watanabe <atzm@stratosphere.co.jp>2013-12-17 08:53:36 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-18 00:36:16 -0500
commite4d26f4b080f55e9577b45e6b51a04971eb459e9 (patch)
treee7caf4bc1439ce04ac392d94dd71c13aaf90f0e4 /include/linux/qnx6_fs.h
parent51846355bc239b7d229ed7a1ea7b0333cbd23f01 (diff)
packet: fill the gap of TPACKET_ALIGNMENT with zeros
struct tpacket{2,3}_hdr is aligned to a multiple of TPACKET_ALIGNMENT. Explicitly defining and zeroing the gap of this makes additional changes easier. Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp> Acked-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qnx6_fs.h')
0 files changed, 0 insertions, 0 deletions
us-rt.git/refs/?h=wip-edf-os'>refslogblamecommitdiffstats
path: root/drivers/net/ibmlana.c
blob: 7d6cf3340c113041216fbca52ea23a3c9514d8c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
  











                                                                            
                                                          
                                                     
 












                                                                           
                                                                  





                                                                 
                                                                     



































                                                                             
                                                              






                                                                           


                            
                      


                              
                           









































































                                                                              

                                                                     


                          

                                                   










































































































                                                                                                             
 














































































































































                                                                                                     
                                             





















































































































































                                                                                                    
                                                                                     



















                                                                                   
                                                        








                                                                        



                                                                         

                                                                  








                                                                               
                                               
                                                    
                                                             
                                                    
                                                           

































                                                                                                              

                                          





















                                                                                                              
                               
                                                   
                                               
                                   
                                               
                                   
                                              
                                  
                                            














                                                                      
                                                       
 
                                        




































                                                                              
                                                                    


























                                                                                           
      









                                                                
                                                                                                           




























                                                                                        
                                                                          

                                              
                         







                                                                                    
                                        









                                                                                     
                                                             
                                                                         
                                            


































                                                                            
                            

 













                                                                              

                       

                                                                                        




                                                 
                                                      



                            










                                                             
                                                          
 
                                                      
                               
                                     



                                                      






                                                   


                              

                                                               
 






                                                       

                             







                                                                                             

                             



                                
                                                            

                                    
 










                                                                        

                                 

         

                                                                      

                         
                                              



                                    
                                      




                                                                         
                                    

                                                        
                              









                                                                                 



                                     
                                   
                 

                
                                      







                                                 
                                                  
 

                                                       




                                                         
                                      

                            
                 





                                                                              

                                             



                                                   









                                             
                                           
 
                                                    

 
                                               
 
                                               
 


                                    
/*
net-3-driver for the IBM LAN Adapter/A

This is an extension to the Linux operating system, and is covered by the
same GNU General Public License that covers that work.

Copyright 1999 by Alfred Arnold (alfred@ccac.rwth-aachen.de,
                                 alfred.arnold@lancom.de)

This driver is based both on the SK_MCA driver, which is itself based on the
SK_G16 and 3C523 driver.

paper sources:
  'PC Hardware: Aufbau, Funktionsweise, Programmierung' by
  Hans-Peter Messmer for the basic Microchannel stuff

  'Linux Geraetetreiber' by Allesandro Rubini, Kalle Dalheimer
  for help on Ethernet driver programming

  'DP83934CVUL-20/25 MHz SONIC-T Ethernet Controller Datasheet' by National
  Semiconductor for info on the MAC chip

  'LAN Technical Reference Ethernet Adapter Interface Version 1 Release 1.0
   Document Number SC30-3661-00' by IBM for info on the adapter itself

  Also see http://www.natsemi.com/

special acknowledgements to:
  - Bob Eager for helping me out with documentation from IBM
  - Jim Shorney for his endless patience with me while I was using
    him as a beta tester to trace down the address filter bug ;-)

  Missing things:

  -> set debug level via ioctl instead of compile-time switches
  -> I didn't follow the development of the 2.1.x kernels, so my
     assumptions about which things changed with which kernel version
     are probably nonsense

History:
  Nov 6th, 1999
  	startup from SK_MCA driver
  Dec 6th, 1999
	finally got docs about the card.  A big thank you to Bob Eager!
  Dec 12th, 1999
	first packet received
  Dec 13th, 1999
	recv queue done, tcpdump works
  Dec 15th, 1999
	transmission part works
  Dec 28th, 1999
	added usage of the isa_functions for Linux 2.3 .  Things should
	still work with 2.0.x....
  Jan 28th, 2000
	in Linux 2.2.13, the version.h file mysteriously didn't get
	included.  Added a workaround for this.  Futhermore, it now
	not only compiles as a modules ;-)
  Jan 30th, 2000
	newer kernels automatically probe more than one board, so the
	'startslot' as a variable is also needed here
  Apr 12th, 2000
	the interrupt mask register is not set 'hard' instead of individually
	setting registers, since this seems to set bits that shouldn't be
	set
  May 21st, 2000
	reset interrupt status immediately after CAM load
	add a recovery delay after releasing the chip's reset line
  May 24th, 2000
	finally found the bug in the address filter setup - damned signed
        chars!
  June 1st, 2000
	corrected version codes, added support for the latest 2.3 changes
  Oct 28th, 2002
	cleaned up for the 2.5 tree <alan@lxorguk.ukuu.org.uk>

 *************************************************************************/

#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/mca.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>

#include <asm/processor.h>
#include <asm/io.h>

#define _IBM_LANA_DRIVER_
#include "ibmlana.h"

#undef DEBUG

#define DRV_NAME "ibmlana"

/* ------------------------------------------------------------------------
 * global static data - not more since we can handle multiple boards and
 * have to pack all state info into the device struct!
 * ------------------------------------------------------------------------ */

static char *MediaNames[Media_Count] = {
	"10BaseT", "10Base5", "Unknown", "10Base2"
};