1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41static const char version[] =
42 "de620.c: $Revision: 1.40 $, Bjorn Ekwall <bj0rn@blox.se>\n";
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72#define DE620_CLONE 0
73
74
75
76
77
78
79
80
81
82
83#ifndef READ_DELAY
84#define READ_DELAY 100
85#endif
86
87#ifndef WRITE_DELAY
88#define WRITE_DELAY 100
89#endif
90
91
92
93
94
95
96
97
98
99
100#ifdef LOWSPEED
101
102
103
104
105
106
107#endif
108
109#include <linux/module.h>
110#include <linux/kernel.h>
111#include <linux/types.h>
112#include <linux/fcntl.h>
113#include <linux/string.h>
114#include <linux/interrupt.h>
115#include <linux/ioport.h>
116#include <linux/in.h>
117#include <linux/errno.h>
118#include <linux/init.h>
119#include <linux/inet.h>
120#include <linux/netdevice.h>
121#include <linux/etherdevice.h>
122#include <linux/skbuff.h>
123
124#include <asm/io.h>
125#include <asm/system.h>
126
127
128#include "de620.h"
129
130typedef unsigned char byte;
131
132
133
134
135
136
137
138#ifndef DE620_IO
139#define DE620_IO 0x378
140#endif
141
142#ifndef DE620_IRQ
143#define DE620_IRQ 7
144#endif
145
146#define DATA_PORT (dev->base_addr)
147#define STATUS_PORT (dev->base_addr + 1)
148#define COMMAND_PORT (dev->base_addr + 2)
149
150#define RUNT 60
151#define GIANT 1514
152
153
154
155
156
157
158
159
160
161
162
163
164
165static int bnc;
166static int utp;
167static int io = DE620_IO;
168static int irq = DE620_IRQ;
169static int clone = DE620_CLONE;
170
171static spinlock_t de620_lock;
172
173module_param(bnc, int, 0);
174module_param(utp, int, 0);
175module_param(io, int, 0);
176module_param(irq, int, 0);
177module_param(clone, int, 0);
178MODULE_PARM_DESC(bnc, "DE-620 set BNC medium (0-1)");
179MODULE_PARM_DESC(utp, "DE-620 set UTP medium (0-1)");
180MODULE_PARM_DESC(io, "DE-620 I/O base address,required");
181MODULE_PARM_DESC(irq, "DE-620 IRQ number,required");
182MODULE_PARM_DESC(clone, "Check also for non-D-Link DE-620 clones (0-1)");
183
184
185
186
187
188
189
190
191
192
193
194
195static int de620_open(struct net_device *);
196static int de620_close(struct net_device *);
197static void de620_set_multicast_list(struct net_device *);
198static int de620_start_xmit(struct sk_buff *, struct net_device *);
199
200
201static irqreturn_t de620_interrupt(int, void *);
202static int de620_rx_intr(struct net_device *);
203
204
205static int adapter_init(struct net_device *);
206static int read_eeprom(struct net_device *);
207
208
209
210
211
212#define SCR_DEF NIBBLEMODE |INTON | SLEEP | AUTOTX
213#define TCR_DEF RXPB
214#define DE620_RX_START_PAGE 12
215#define DEF_NIC_CMD IRQEN | ICEN | DS1
216
217static volatile byte NIC_Cmd;
218static volatile byte next_rx_page;
219static byte first_rx_page;
220static byte last_rx_page;
221static byte EIPRegister;
222
223static struct nic {
224 byte NodeID[6];
225 byte RAM_Size;
226 byte Model;
227 byte Media;
228 byte SCR;
229} nic_data;
230
231
232
233
234
235
236#define de620_tx_buffs(dd) (inb(STATUS_PORT) & (TXBF0 | TXBF1))
237#define de620_flip_ds(dd) NIC_Cmd ^= DS0 | DS1; outb(NIC_Cmd, COMMAND_PORT);
238
239
240#ifdef COUNT_LOOPS
241static int tot_cnt;
242#endif
243static inline byte
244de620_ready(struct net_device *dev)
245{
246 byte value;
247 register short int cnt = 0;
248
249 while ((((value = inb(STATUS_PORT)) & READY) == 0) && (cnt <= 1000))
250 ++cnt;
251
252#ifdef COUNT_LOOPS
253 tot_cnt += cnt;
254#endif
255 return value & 0xf0;
256}
257
258static inline void
259de620_send_command(struct net_device *dev, byte cmd)
260{
261 de620_ready(dev);
262 if (cmd == W_DUMMY)
263 outb(NIC_Cmd, COMMAND_PORT);
264
265 outb(cmd, DATA_PORT);
266
267 outb(NIC_Cmd ^ CS0, COMMAND_PORT);
268 de620_ready(dev);
269 outb(NIC_Cmd, COMMAND_PORT);
270}
271
272static inline void
273de620_put_byte(struct net_device *dev, byte value)
274{
275
276 de620_ready(dev);
277 outb(value, DATA_PORT);
278 de620_flip_ds(dev);
279}
280
281static inline byte
282de620_read_byte(struct net_device *dev)
283{
284 byte value;
285
286
287 value = de620_ready(dev);
288 de620_flip_ds(dev);
289 value |= de620_ready(dev) >> 4;
290 return value;
291}
292
293static inline void
294de620_write_block(struct net_device *dev, byte *buffer, int count, int pad)
295{
296#ifndef LOWSPEED
297 byte uflip = NIC_Cmd ^ (DS0 | DS1);
298 byte dflip = NIC_Cmd;
299#else
300#ifdef COUNT_LOOPS
301 int bytes = count;
302#endif
303#endif
304
305#ifdef LOWSPEED
306#ifdef COUNT_LOOPS
307 tot_cnt = 0;
308#endif
309
310 for ( ; count > 0; --count, ++buffer) {
311 de620_put_byte(dev,*buffer);
312 }
313 for ( count = pad ; count > 0; --count, ++buffer) {
314 de620_put_byte(dev, 0);
315 }
316 de620_send_command(dev,W_DUMMY);
317#ifdef COUNT_LOOPS
318
319 printk("WRITE(%d)\n", tot_cnt/((bytes?bytes:1)));
320#endif
321#else
322 for ( ; count > 0; count -=2) {
323 outb(*buffer++, DATA_PORT);
324 outb(uflip, COMMAND_PORT);
325 outb(*buffer++, DATA_PORT);
326 outb(dflip, COMMAND_PORT);
327 }
328 de620_send_command(dev,W_DUMMY);
329#endif
330}
331
332static inline void
333de620_read_block(struct net_device *dev, byte *data, int count)
334{
335#ifndef LOWSPEED
336 byte value;
337 byte uflip = NIC_Cmd ^ (DS0 | DS1);
338 byte dflip = NIC_Cmd;
339#else
340#ifdef COUNT_LOOPS
341 int bytes = count;
342
343 tot_cnt = 0;
344#endif
345#endif
346
347#ifdef LOWSPEED
348
349 while (count-- > 0) {
350 *data++ = de620_read_byte(dev);
351 de620_flip_ds(dev);
352 }
353#ifdef COUNT_LOOPS
354
355 printk("READ(%d)\n", tot_cnt/(2*(bytes?bytes:1)));
356#endif
357#else
358 while (count-- > 0) {
359 value = inb(STATUS_PORT) & 0xf0;
360 outb(uflip, COMMAND_PORT);
361 *data++ = value | inb(STATUS_PORT) >> 4;
362 outb(dflip , COMMAND_PORT);
363 }
364#endif
365}
366
367static inline void
368de620_set_delay(struct net_device *dev)
369{
370 de620_ready(dev);
371 outb(W_DFR, DATA_PORT);
372 outb(NIC_Cmd ^ CS0, COMMAND_PORT);
373
374 de620_ready(dev);
375#ifdef LOWSPEED
376 outb(WRITE_DELAY, DATA_PORT);
377#else
378 outb(0, DATA_PORT);
379#endif
380 de620_flip_ds(dev);
381
382 de620_ready(dev);
383#ifdef LOWSPEED
384 outb(READ_DELAY, DATA_PORT);
385#else
386 outb(0, DATA_PORT);
387#endif
388 de620_flip_ds(dev);
389}
390
391static inline void
392de620_set_register(struct net_device *dev, byte reg, byte value)
393{
394 de620_ready(dev);
395 outb(reg, DATA_PORT);
396 outb(NIC_Cmd ^ CS0, COMMAND_PORT);
397
398 de620_put_byte(dev, value);
399}
400
401static inline byte
402de620_get_register(struct net_device *dev, byte reg)
403{
404 byte value;
405
406 de620_send_command(dev,reg);
407 value = de620_read_byte(dev);
408 de620_send_command(dev,W_DUMMY);
409
410 return value;
411}
412
413
414
415
416
417
418
419
420
421
422static int de620_open(struct net_device *dev)
423{
424 int ret = request_irq(dev->irq, de620_interrupt, 0, dev->name, dev);
425 if (ret) {
426 printk (KERN_ERR "%s: unable to get IRQ %d\n", dev->name, dev->irq);
427 return ret;
428 }
429
430 if (adapter_init(dev)) {
431 ret = -EIO;
432 goto out_free_irq;
433 }
434
435 netif_start_queue(dev);
436 return 0;
437
438out_free_irq:
439 free_irq(dev->irq, dev);
440 return ret;
441}
442
443
444
445
446
447
448
449static int de620_close(struct net_device *dev)
450{
451 netif_stop_queue(dev);
452
453 de620_set_register(dev, W_TCR, RXOFF);
454 free_irq(dev->irq, dev);
455 return 0;
456}
457
458
459
460
461
462
463
464
465static void de620_set_multicast_list(struct net_device *dev)
466{
467 if (!netdev_mc_empty(dev) || dev->flags&(IFF_ALLMULTI|IFF_PROMISC))
468 {
469 de620_set_register(dev, W_TCR, (TCR_DEF & ~RXPBM) | RXALL);
470 }
471 else
472 {
473 de620_set_register(dev, W_TCR, TCR_DEF);
474 }
475}
476
477
478
479
480
481
482static void de620_timeout(struct net_device *dev)
483{
484 printk(KERN_WARNING "%s: transmit timed out, %s?\n", dev->name, "network cable problem");
485
486 if (!adapter_init(dev))
487 netif_wake_queue(dev);
488}
489
490
491
492
493
494
495static int de620_start_xmit(struct sk_buff *skb, struct net_device *dev)
496{
497 unsigned long flags;
498 int len;
499 byte *buffer = skb->data;
500 byte using_txbuf;
501
502 using_txbuf = de620_tx_buffs(dev);
503
504 netif_stop_queue(dev);
505
506
507 if ((len = skb->len) < RUNT)
508 len = RUNT;
509 if (len & 1)
510 ++len;
511
512
513
514 spin_lock_irqsave(&de620_lock, flags);
515 pr_debug("de620_start_xmit: len=%d, bufs 0x%02x\n",
516 (int)skb->len, using_txbuf);
517
518
519 switch (using_txbuf) {
520 default:
521 case TXBF1:
522 de620_send_command(dev,W_CR | RW0);
523 using_txbuf |= TXBF0;
524 break;
525
526 case TXBF0:
527 de620_send_command(dev,W_CR | RW1);
528 using_txbuf |= TXBF1;
529 break;
530
531 case (TXBF0 | TXBF1):
532 printk(KERN_WARNING "%s: No tx-buffer available!\n", dev->name);
533 spin_unlock_irqrestore(&de620_lock, flags);
534 return NETDEV_TX_BUSY;
535 }
536 de620_write_block(dev, buffer, skb->len, len-skb->len);
537
538 if(!(using_txbuf == (TXBF0 | TXBF1)))
539 netif_wake_queue(dev);
540
541 dev->stats.tx_packets++;
542 spin_unlock_irqrestore(&de620_lock, flags);
543 dev_kfree_skb (skb);
544 return NETDEV_TX_OK;
545}
546
547
548
549
550
551
552static irqreturn_t
553de620_interrupt(int irq_in, void *dev_id)
554{
555 struct net_device *dev = dev_id;
556 byte irq_status;
557 int bogus_count = 0;
558 int again = 0;
559
560 spin_lock(&de620_lock);
561
562
563 irq_status = de620_get_register(dev, R_STS);
564
565 pr_debug("de620_interrupt (%2.2X)\n", irq_status);
566
567 if (irq_status & RXGOOD) {
568 do {
569 again = de620_rx_intr(dev);
570 pr_debug("again=%d\n", again);
571 }
572 while (again && (++bogus_count < 100));
573 }
574
575 if(de620_tx_buffs(dev) != (TXBF0 | TXBF1))
576 netif_wake_queue(dev);
577
578 spin_unlock(&de620_lock);
579 return IRQ_HANDLED;
580}
581
582
583
584
585
586
587
588
589static int de620_rx_intr(struct net_device *dev)
590{
591 struct header_buf {
592 byte status;
593 byte Rx_NextPage;
594 unsigned short Rx_ByteCount;
595 } header_buf;
596 struct sk_buff *skb;
597 int size;
598 byte *buffer;
599 byte pagelink;
600 byte curr_page;
601
602 pr_debug("de620_rx_intr: next_rx_page = %d\n", next_rx_page);
603
604
605 de620_send_command(dev, W_CR | RRN);
606 de620_set_register(dev, W_RSA1, next_rx_page);
607 de620_set_register(dev, W_RSA0, 0);
608
609
610 de620_read_block(dev, (byte *)&header_buf, sizeof(struct header_buf));
611 pr_debug("page status=0x%02x, nextpage=%d, packetsize=%d\n",
612 header_buf.status, header_buf.Rx_NextPage,
613 header_buf.Rx_ByteCount);
614
615
616 pagelink = header_buf.Rx_NextPage;
617 if ((pagelink < first_rx_page) || (last_rx_page < pagelink)) {
618
619 printk(KERN_WARNING "%s: Ring overrun? Restoring...\n", dev->name);
620
621 adapter_init(dev);
622 netif_wake_queue(dev);
623 dev->stats.rx_over_errors++;
624 return 0;
625 }
626
627
628
629 pagelink = next_rx_page +
630 ((header_buf.Rx_ByteCount + (4 - 1 + 0x100)) >> 8);
631
632
633 if (pagelink > last_rx_page)
634 pagelink -= (last_rx_page - first_rx_page + 1);
635
636
637 if (pagelink != header_buf.Rx_NextPage) {
638
639 printk(KERN_WARNING "%s: Page link out of sync! Restoring...\n", dev->name);
640 next_rx_page = header_buf.Rx_NextPage;
641 de620_send_command(dev, W_DUMMY);
642 de620_set_register(dev, W_NPRF, next_rx_page);
643 dev->stats.rx_over_errors++;
644 return 0;
645 }
646 next_rx_page = pagelink;
647
648 size = header_buf.Rx_ByteCount - 4;
649 if ((size < RUNT) || (GIANT < size)) {
650 printk(KERN_WARNING "%s: Illegal packet size: %d!\n", dev->name, size);
651 }
652 else {
653 skb = dev_alloc_skb(size+2);
654 if (skb == NULL) {
655 printk(KERN_WARNING "%s: Couldn't allocate a sk_buff of size %d.\n", dev->name, size);
656 dev->stats.rx_dropped++;
657 }
658 else {
659 skb_reserve(skb,2);
660
661 buffer = skb_put(skb,size);
662
663 de620_read_block(dev, buffer, size);
664 pr_debug("Read %d bytes\n", size);
665 skb->protocol=eth_type_trans(skb,dev);
666 netif_rx(skb);
667
668 dev->stats.rx_packets++;
669 dev->stats.rx_bytes += size;
670 }
671 }
672
673
674
675 curr_page = de620_get_register(dev, R_CPR);
676 de620_set_register(dev, W_NPRF, next_rx_page);
677 pr_debug("next_rx_page=%d CPR=%d\n", next_rx_page, curr_page);
678
679 return next_rx_page != curr_page;
680}
681
682
683
684
685
686
687static int adapter_init(struct net_device *dev)
688{
689 int i;
690 static int was_down;
691
692 if ((nic_data.Model == 3) || (nic_data.Model == 0)) {
693 EIPRegister = NCTL0;
694 if (nic_data.Media != 1)
695 EIPRegister |= NIS0;
696 }
697 else if (nic_data.Model == 2) {
698 EIPRegister = NCTL0 | NIS0;
699 }
700
701 if (utp)
702 EIPRegister = NCTL0 | NIS0;
703 if (bnc)
704 EIPRegister = NCTL0;
705
706 de620_send_command(dev, W_CR | RNOP | CLEAR);
707 de620_send_command(dev, W_CR | RNOP);
708
709 de620_set_register(dev, W_SCR, SCR_DEF);
710
711 de620_set_register(dev, W_TCR, RXOFF);
712
713
714 for (i = 0; i < 6; ++i) {
715 de620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]);
716 }
717
718 de620_set_register(dev, W_EIP, EIPRegister);
719
720 next_rx_page = first_rx_page = DE620_RX_START_PAGE;
721 if (nic_data.RAM_Size)
722 last_rx_page = nic_data.RAM_Size - 1;
723 else
724 last_rx_page = 255;
725
726 de620_set_register(dev, W_SPR, first_rx_page);
727 de620_set_register(dev, W_EPR, last_rx_page);
728 de620_set_register(dev, W_CPR, first_rx_page);
729 de620_send_command(dev, W_NPR | first_rx_page);
730 de620_send_command(dev, W_DUMMY);
731 de620_set_delay(dev);
732
733
734
735#define CHECK_MASK ( 0 | TXSUC | T16 | 0 | RXCRC | RXSHORT | 0 | 0 )
736#define CHECK_OK ( 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 )
737
738
739
740 if (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) {
741 printk(KERN_ERR "%s: Something has happened to the DE-620! Please check it"
742#ifdef SHUTDOWN_WHEN_LOST
743 " and do a new ifconfig"
744#endif
745 "! (%02x)\n", dev->name, i);
746#ifdef SHUTDOWN_WHEN_LOST
747
748 dev->flags &= ~IFF_UP;
749 de620_close(dev);
750#endif
751 was_down = 1;
752 return 1;
753 }
754 if (was_down) {
755 printk(KERN_WARNING "%s: Thanks, I feel much better now!\n", dev->name);
756 was_down = 0;
757 }
758
759
760 de620_set_register(dev, W_TCR, TCR_DEF);
761
762 return 0;
763}
764
765static const struct net_device_ops de620_netdev_ops = {
766 .ndo_open = de620_open,
767 .ndo_stop = de620_close,
768 .ndo_start_xmit = de620_start_xmit,
769 .ndo_tx_timeout = de620_timeout,
770 .ndo_set_rx_mode = de620_set_multicast_list,
771 .ndo_change_mtu = eth_change_mtu,
772 .ndo_set_mac_address = eth_mac_addr,
773 .ndo_validate_addr = eth_validate_addr,
774};
775
776
777
778
779
780
781
782
783
784
785struct net_device * __init de620_probe(int unit)
786{
787 byte checkbyte = 0xa5;
788 struct net_device *dev;
789 int err = -ENOMEM;
790 int i;
791
792 dev = alloc_etherdev(0);
793 if (!dev)
794 goto out;
795
796 spin_lock_init(&de620_lock);
797
798
799
800
801
802 dev->base_addr = io;
803 dev->irq = irq;
804
805
806 if (unit >= 0) {
807 sprintf(dev->name, "eth%d", unit);
808 netdev_boot_setup_check(dev);
809 }
810
811 pr_debug("%s", version);
812
813 printk(KERN_INFO "D-Link DE-620 pocket adapter");
814
815 if (!request_region(dev->base_addr, 3, "de620")) {
816 printk(" io 0x%3lX, which is busy.\n", dev->base_addr);
817 err = -EBUSY;
818 goto out1;
819 }
820
821
822 NIC_Cmd = DEF_NIC_CMD;
823 de620_set_register(dev, W_EIP, EIPRegister);
824
825
826 de620_set_register(dev, W_CPR, checkbyte);
827 checkbyte = de620_get_register(dev, R_CPR);
828
829 if ((checkbyte != 0xa5) || (read_eeprom(dev) != 0)) {
830 printk(" not identified in the printer port\n");
831 err = -ENODEV;
832 goto out2;
833 }
834
835
836 dev->dev_addr[0] = nic_data.NodeID[0];
837 for (i = 1; i < ETH_ALEN; i++) {
838 dev->dev_addr[i] = nic_data.NodeID[i];
839 dev->broadcast[i] = 0xff;
840 }
841
842 printk(", Ethernet Address: %pM", dev->dev_addr);
843
844 printk(" (%dk RAM,",
845 (nic_data.RAM_Size) ? (nic_data.RAM_Size >> 2) : 64);
846
847 if (nic_data.Media == 1)
848 printk(" BNC)\n");
849 else
850 printk(" UTP)\n");
851
852 dev->netdev_ops = &de620_netdev_ops;
853 dev->watchdog_timeo = HZ*2;
854
855
856
857
858 pr_debug("\nEEPROM contents:\n"
859 "RAM_Size = 0x%02X\n"
860 "NodeID = %pM\n"
861 "Model = %d\n"
862 "Media = %d\n"
863 "SCR = 0x%02x\n", nic_data.RAM_Size, nic_data.NodeID,
864 nic_data.Model, nic_data.Media, nic_data.SCR);
865
866 err = register_netdev(dev);
867 if (err)
868 goto out2;
869 return dev;
870
871out2:
872 release_region(dev->base_addr, 3);
873out1:
874 free_netdev(dev);
875out:
876 return ERR_PTR(err);
877}
878
879
880
881
882
883
884
885#define sendit(dev,data) de620_set_register(dev, W_EIP, data | EIPRegister);
886
887static unsigned short __init ReadAWord(struct net_device *dev, int from)
888{
889 unsigned short data;
890 int nbits;
891
892
893
894
895 sendit(dev, 0); sendit(dev, 1); sendit(dev, 5); sendit(dev, 4);
896
897
898 for (nbits = 9; nbits > 0; --nbits, from <<= 1) {
899 if (from & 0x0100) {
900
901
902
903 sendit(dev, 6); sendit(dev, 7); sendit(dev, 7); sendit(dev, 6);
904 }
905 else {
906
907
908
909 sendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
910 }
911 }
912
913
914 for (data = 0, nbits = 16; nbits > 0; --nbits) {
915
916
917
918 sendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
919 data = (data << 1) | ((de620_get_register(dev, R_STS) & EEDI) >> 7);
920 }
921
922
923
924 sendit(dev, 0); sendit(dev, 1); sendit(dev, 1); sendit(dev, 0);
925
926 return data;
927}
928
929static int __init read_eeprom(struct net_device *dev)
930{
931 unsigned short wrd;
932
933
934 wrd = ReadAWord(dev, 0x1aa);
935 if (!clone && (wrd != htons(0x0080)))
936 return -1;
937 nic_data.NodeID[0] = wrd & 0xff;
938 nic_data.NodeID[1] = wrd >> 8;
939
940 wrd = ReadAWord(dev, 0x1ab);
941 if (!clone && ((wrd & 0xff) != 0xc8))
942 return -1;
943 nic_data.NodeID[2] = wrd & 0xff;
944 nic_data.NodeID[3] = wrd >> 8;
945
946 wrd = ReadAWord(dev, 0x1ac);
947 nic_data.NodeID[4] = wrd & 0xff;
948 nic_data.NodeID[5] = wrd >> 8;
949
950 wrd = ReadAWord(dev, 0x1ad);
951 nic_data.RAM_Size = (wrd >> 8);
952
953 wrd = ReadAWord(dev, 0x1ae);
954 nic_data.Model = (wrd & 0xff);
955
956 wrd = ReadAWord(dev, 0x1af);
957 nic_data.Media = (wrd & 0xff);
958
959 wrd = ReadAWord(dev, 0x1a8);
960 nic_data.SCR = (wrd >> 8);
961
962 return 0;
963}
964
965
966
967
968
969
970#ifdef MODULE
971static struct net_device *de620_dev;
972
973int __init init_module(void)
974{
975 de620_dev = de620_probe(-1);
976 if (IS_ERR(de620_dev))
977 return PTR_ERR(de620_dev);
978 return 0;
979}
980
981void cleanup_module(void)
982{
983 unregister_netdev(de620_dev);
984 release_region(de620_dev->base_addr, 3);
985 free_netdev(de620_dev);
986}
987#endif
988MODULE_LICENSE("GPL");
989