1*4882a593SmuzhiyunThis driver supports NE2000 compatible cards (those based on DP8390, 2*4882a593SmuzhiyunDP83902 and similar). It can be used with PCMCIA/CF cards provided 3*4882a593Smuzhiyunthat the CCR is correctly initialized. 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunThe code is based on sources from the Linux kernel (pcnet_cs.c, 6*4882a593Smuzhiyun8390.h) and eCOS(if_dp83902a.c, if_dp83902a.h). Both of these 2 7*4882a593Smuzhiyunwonderful world are GPL, so this is, of course, GPL. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunI developed and tested this driver on a custom PXA255 based system and 10*4882a593Smuzhiyunwith a billionton CF network card connected to the PCMCIA interface of 11*4882a593Smuzhiyunthe micro (have a look at README.PXA_CF for the support of this port). 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunThe options you have to specify in the config file are (with the 14*4882a593Smuzhiyunvalue for my board as an example): 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun#define CONFIG_DRIVER_NE2000 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun- Enables the driver 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun#define CONFIG_DRIVER_NE2000_BASE (0x20000000+0x300) 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun- Address where the board is mapped 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun#define CONFIG_DRIVER_NE2000_CCR (0x28000000+0x3f8) 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun- Address of the CCR (card configuration register). It could be found 27*4882a593Smuzhiyunby enabling DEBUG in cmd_pcmcia.c. If this is not defined nothing is 28*4882a593Smuzhiyundone as far as PCMCIA support is concerned. 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun#define CONFIG_DRIVER_NE2000_VAL (0x20) 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun- The value to be written in the CCR. It selects among different I/O 33*4882a593Smuzhiyunspaces that could be used by the card. 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun 36*4882a593SmuzhiyunEnjoy! 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunChristian Pellegrin <chri@ascensit.com> 39