blob: e8d431a8302dad6048dd421eb7095e692c28c250 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* enternow_pci.c,v 0.99 2001/10/02
2 *
3 * enternow_pci.c Card-specific routines for
4 * Formula-n enter:now ISDN PCI ab
5 * Gerdes AG Power ISDN PCI
6 * Woerltronic SA 16 PCI
7 * (based on HiSax driver by Karsten Keil)
8 *
9 * Author Christoph Ersfeld <info@formula-n.de>
10 * Formula-n Europe AG (www.formula-n.com)
11 * previously Gerdes AG
12 *
13 *
14 * This file is (c) under GNU PUBLIC LICENSE
15 *
16 * Notes:
17 * This driver interfaces to netjet.c which performs B-channel
18 * processing.
19 *
20 * Version 0.99 is the first release of this driver and there are
21 * certainly a few bugs.
22 * It isn't testet on linux 2.4 yet, so consider this code to be
23 * beta.
24 *
25 * Please don't report me any malfunction without sending
26 * (compressed) debug-logs.
27 * It would be nearly impossible to retrace it.
28 *
29 * Log D-channel-processing as follows:
30 *
31 * 1. Load hisax with card-specific parameters, this example ist for
32 * Formula-n enter:now ISDN PCI and compatible
33 * (f.e. Gerdes Power ISDN PCI)
34 *
35 * modprobe hisax type=41 protocol=2 id=gerdes
36 *
37 * if you chose an other value for id, you need to modify the
38 * code below, too.
39 *
40 * 2. set debug-level
41 *
42 * hisaxctrl gerdes 1 0x3ff
43 * hisaxctrl gerdes 11 0x4f
44 * cat /dev/isdnctrl >> ~/log &
45 *
46 * Please take also a look into /var/log/messages if there is
47 * anything importand concerning HISAX.
48 *
49 *
50 * Credits:
51 * Programming the driver for Formula-n enter:now ISDN PCI and
52 * necessary the driver for the used Amd 7930 D-channel-controller
53 * was spnsored by Formula-n Europe AG.
54 * Thanks to Karsten Keil and Petr Novak, who gave me support in
55 * Hisax-specific questions.
56 * I want so say special thanks to Carl-Friedrich Braun, who had to
57 * answer a lot of questions about generally ISDN and about handling
58 * of the Amd-Chip.
59 *
60 */
61
62
Linus Torvalds1da177e2005-04-16 15:20:36 -070063#include "hisax.h"
64#include "isac.h"
65#include "isdnl1.h"
66#include "amd7930_fn.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070067#include <linux/interrupt.h>
68#include <linux/ppp_defs.h>
69#include <linux/pci.h>
70#include <linux/init.h>
71#include "netjet.h"
72
73
74
Adrian Bunk672c3fd2005-06-25 14:59:18 -070075static const char *enternow_pci_rev = "$Revision: 1.1.4.5 $";
76
77
Jan Engelhardt96de0e22007-10-19 23:21:04 +020078/* for PowerISDN PCI */
Adrian Bunk672c3fd2005-06-25 14:59:18 -070079#define TJ_AMD_IRQ 0x20
80#define TJ_LED1 0x40
81#define TJ_LED2 0x80
82
83
Jan Engelhardt96de0e22007-10-19 23:21:04 +020084/* The window to [the] AMD [chip]...
85 * From address hw.njet.base + TJ_AMD_PORT onwards, the AMD
86 * maps [consecutive/multiple] 8 bits into the TigerJet I/O space
87 * -> 0x01 of the AMD at hw.njet.base + 0C4 */
Adrian Bunk672c3fd2005-06-25 14:59:18 -070088#define TJ_AMD_PORT 0xC0
89
Linus Torvalds1da177e2005-04-16 15:20:36 -070090
91
92/* *************************** I/O-Interface functions ************************************* */
93
94
95/* cs->readisac, macro rByteAMD */
Adrian Bunk672c3fd2005-06-25 14:59:18 -070096static unsigned char
97ReadByteAmd7930(struct IsdnCardState *cs, unsigned char offset)
Linus Torvalds1da177e2005-04-16 15:20:36 -070098{
Jan Engelhardt96de0e22007-10-19 23:21:04 +020099 /* direct register */
Joe Perches475be4d2012-02-19 19:52:38 -0800100 if (offset < 8)
101 return (inb(cs->hw.njet.isac + 4 * offset));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102
Jan Engelhardt96de0e22007-10-19 23:21:04 +0200103 /* indirect register */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104 else {
Joe Perches475be4d2012-02-19 19:52:38 -0800105 outb(offset, cs->hw.njet.isac + 4 * AMD_CR);
106 return (inb(cs->hw.njet.isac + 4 * AMD_DR));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107 }
108}
109
110/* cs->writeisac, macro wByteAMD */
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700111static void
112WriteByteAmd7930(struct IsdnCardState *cs, unsigned char offset, unsigned char value)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113{
Jan Engelhardt96de0e22007-10-19 23:21:04 +0200114 /* direct register */
Joe Perches475be4d2012-02-19 19:52:38 -0800115 if (offset < 8)
116 outb(value, cs->hw.njet.isac + 4 * offset);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117
Jan Engelhardt96de0e22007-10-19 23:21:04 +0200118 /* indirect register */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119 else {
Joe Perches475be4d2012-02-19 19:52:38 -0800120 outb(offset, cs->hw.njet.isac + 4 * AMD_CR);
121 outb(value, cs->hw.njet.isac + 4 * AMD_DR);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 }
123}
124
125
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700126static void
127enpci_setIrqMask(struct IsdnCardState *cs, unsigned char val) {
Joe Perches475be4d2012-02-19 19:52:38 -0800128 if (!val)
129 outb(0x00, cs->hw.njet.base + NETJET_IRQMASK1);
130 else
131 outb(TJ_AMD_IRQ, cs->hw.njet.base + NETJET_IRQMASK1);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132}
133
134
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700135static unsigned char dummyrr(struct IsdnCardState *cs, int chan, unsigned char off)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136{
Joe Perches475be4d2012-02-19 19:52:38 -0800137 return (5);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700138}
139
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700140static void dummywr(struct IsdnCardState *cs, int chan, unsigned char off, unsigned char value)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141{
142
143}
144
145
146/* ******************************************************************************** */
147
148
149static void
150reset_enpci(struct IsdnCardState *cs)
151{
152 if (cs->debug & L1_DEB_ISAC)
153 debugl1(cs, "enter:now PCI: reset");
154
155 /* Reset on, (also for AMD) */
156 cs->hw.njet.ctrl_reg = 0x07;
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700157 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158 mdelay(20);
159 /* Reset off */
160 cs->hw.njet.ctrl_reg = 0x30;
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700161 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162 /* 20ms delay */
163 mdelay(20);
164 cs->hw.njet.auxd = 0; // LED-status
165 cs->hw.njet.dmactrl = 0;
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700166 outb(~TJ_AMD_IRQ, cs->hw.njet.base + NETJET_AUXCTRL);
167 outb(TJ_AMD_IRQ, cs->hw.njet.base + NETJET_IRQMASK1);
168 outb(cs->hw.njet.auxd, cs->hw.njet.auxa); // LED off
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169}
170
171
172static int
173enpci_card_msg(struct IsdnCardState *cs, int mt, void *arg)
174{
175 u_long flags;
Joe Perches475be4d2012-02-19 19:52:38 -0800176 unsigned char *chan;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177
178 if (cs->debug & L1_DEB_ISAC)
179 debugl1(cs, "enter:now PCI: card_msg: 0x%04X", mt);
180
Joe Perches475be4d2012-02-19 19:52:38 -0800181 switch (mt) {
182 case CARD_RESET:
183 spin_lock_irqsave(&cs->lock, flags);
184 reset_enpci(cs);
185 Amd7930_init(cs);
186 spin_unlock_irqrestore(&cs->lock, flags);
187 break;
188 case CARD_RELEASE:
189 release_io_netjet(cs);
190 break;
191 case CARD_INIT:
192 reset_enpci(cs);
193 inittiger(cs);
194 /* irq must be on here */
195 Amd7930_init(cs);
196 break;
197 case CARD_TEST:
198 break;
199 case MDL_ASSIGN:
200 /* TEI assigned, LED1 on */
201 cs->hw.njet.auxd = TJ_AMD_IRQ << 1;
202 outb(cs->hw.njet.auxd, cs->hw.njet.base + NETJET_AUXDATA);
203 break;
204 case MDL_REMOVE:
205 /* TEI removed, LEDs off */
206 cs->hw.njet.auxd = 0;
207 outb(0x00, cs->hw.njet.base + NETJET_AUXDATA);
208 break;
209 case MDL_BC_ASSIGN:
210 /* activate B-channel */
211 chan = (unsigned char *)arg;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700212
Joe Perches475be4d2012-02-19 19:52:38 -0800213 if (cs->debug & L1_DEB_ISAC)
214 debugl1(cs, "enter:now PCI: assign phys. BC %d in AMD LMR1", *chan);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215
Joe Perches475be4d2012-02-19 19:52:38 -0800216 cs->dc.amd7930.ph_command(cs, (cs->dc.amd7930.lmr1 | (*chan + 1)), "MDL_BC_ASSIGN");
217 /* at least one b-channel in use, LED 2 on */
218 cs->hw.njet.auxd |= TJ_AMD_IRQ << 2;
219 outb(cs->hw.njet.auxd, cs->hw.njet.base + NETJET_AUXDATA);
220 break;
221 case MDL_BC_RELEASE:
222 /* deactivate B-channel */
223 chan = (unsigned char *)arg;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700224
Joe Perches475be4d2012-02-19 19:52:38 -0800225 if (cs->debug & L1_DEB_ISAC)
226 debugl1(cs, "enter:now PCI: release phys. BC %d in Amd LMR1", *chan);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227
Joe Perches475be4d2012-02-19 19:52:38 -0800228 cs->dc.amd7930.ph_command(cs, (cs->dc.amd7930.lmr1 & ~(*chan + 1)), "MDL_BC_RELEASE");
229 /* no b-channel active -> LED2 off */
230 if (!(cs->dc.amd7930.lmr1 & 3)) {
231 cs->hw.njet.auxd &= ~(TJ_AMD_IRQ << 2);
232 outb(cs->hw.njet.auxd, cs->hw.njet.base + NETJET_AUXDATA);
233 }
234 break;
235 default:
236 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237
238 }
Joe Perches475be4d2012-02-19 19:52:38 -0800239 return (0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240}
241
242static irqreturn_t
David Howells7d12e782006-10-05 14:55:46 +0100243enpci_interrupt(int intno, void *dev_id)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244{
245 struct IsdnCardState *cs = dev_id;
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700246 unsigned char s0val, s1val, ir;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700247 u_long flags;
248
249 spin_lock_irqsave(&cs->lock, flags);
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700250 s1val = inb(cs->hw.njet.base + NETJET_IRQSTAT1);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251
Joe Perches475be4d2012-02-19 19:52:38 -0800252 /* AMD threw an interrupt */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253 if (!(s1val & TJ_AMD_IRQ)) {
Joe Perches475be4d2012-02-19 19:52:38 -0800254 /* read and clear interrupt-register */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255 ir = ReadByteAmd7930(cs, 0x00);
256 Amd7930_interrupt(cs, ir);
257 s1val = 1;
258 } else
259 s1val = 0;
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700260 s0val = inb(cs->hw.njet.base + NETJET_IRQSTAT0);
Joe Perches475be4d2012-02-19 19:52:38 -0800261 if ((s0val | s1val) == 0) { // shared IRQ
Linus Torvalds1da177e2005-04-16 15:20:36 -0700262 spin_unlock_irqrestore(&cs->lock, flags);
263 return IRQ_NONE;
Joe Perches475be4d2012-02-19 19:52:38 -0800264 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265 if (s0val)
Adrian Bunk672c3fd2005-06-25 14:59:18 -0700266 outb(s0val, cs->hw.njet.base + NETJET_IRQSTAT0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267
268 /* DMA-Interrupt: B-channel-stuff */
269 /* set bits in sval to indicate which page is free */
270 if (inl(cs->hw.njet.base + NETJET_DMA_WRITE_ADR) <
Joe Perches475be4d2012-02-19 19:52:38 -0800271 inl(cs->hw.njet.base + NETJET_DMA_WRITE_IRQ))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272 /* the 2nd write page is free */
273 s0val = 0x08;
274 else /* the 1st write page is free */
275 s0val = 0x04;
276 if (inl(cs->hw.njet.base + NETJET_DMA_READ_ADR) <
Joe Perches475be4d2012-02-19 19:52:38 -0800277 inl(cs->hw.njet.base + NETJET_DMA_READ_IRQ))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278 /* the 2nd read page is free */
279 s0val = s0val | 0x02;
280 else /* the 1st read page is free */
281 s0val = s0val | 0x01;
282 if (s0val != cs->hw.njet.last_is0) /* we have a DMA interrupt */
283 {
284 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) {
285 spin_unlock_irqrestore(&cs->lock, flags);
286 return IRQ_HANDLED;
287 }
288 cs->hw.njet.irqstat0 = s0val;
289 if ((cs->hw.njet.irqstat0 & NETJET_IRQM0_READ) !=
Joe Perches475be4d2012-02-19 19:52:38 -0800290 (cs->hw.njet.last_is0 & NETJET_IRQM0_READ))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291 /* we have a read dma int */
292 read_tiger(cs);
293 if ((cs->hw.njet.irqstat0 & NETJET_IRQM0_WRITE) !=
Joe Perches475be4d2012-02-19 19:52:38 -0800294 (cs->hw.njet.last_is0 & NETJET_IRQM0_WRITE))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700295 /* we have a write dma int */
296 write_tiger(cs);
297 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags);
298 }
299 spin_unlock_irqrestore(&cs->lock, flags);
300 return IRQ_HANDLED;
301}
302
Greg Kroah-Hartmaned5a84c2012-12-21 13:13:05 -0800303static int en_pci_probe(struct pci_dev *dev_netjet, struct IsdnCardState *cs)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304{
Jeff Garzika2b66512007-07-15 19:25:45 -0400305 if (pci_enable_device(dev_netjet))
Joe Perches475be4d2012-02-19 19:52:38 -0800306 return (0);
Jeff Garzika2b66512007-07-15 19:25:45 -0400307 cs->irq = dev_netjet->irq;
308 if (!cs->irq) {
309 printk(KERN_WARNING "enter:now PCI: No IRQ for PCI card found\n");
Joe Perches475be4d2012-02-19 19:52:38 -0800310 return (0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311 }
Jeff Garzika2b66512007-07-15 19:25:45 -0400312 cs->hw.njet.base = pci_resource_start(dev_netjet, 0);
313 if (!cs->hw.njet.base) {
314 printk(KERN_WARNING "enter:now PCI: No IO-Adr for PCI card found\n");
Joe Perches475be4d2012-02-19 19:52:38 -0800315 return (0);
Jeff Garzika2b66512007-07-15 19:25:45 -0400316 }
317 /* checks Sub-Vendor ID because system crashes with Traverse-Card */
318 if ((dev_netjet->subsystem_vendor != 0x55) ||
319 (dev_netjet->subsystem_device != 0x02)) {
320 printk(KERN_WARNING "enter:now: You tried to load this driver with an incompatible TigerJet-card\n");
321 printk(KERN_WARNING "Use type=20 for Traverse NetJet PCI Card.\n");
Joe Perches475be4d2012-02-19 19:52:38 -0800322 return (0);
Jeff Garzika2b66512007-07-15 19:25:45 -0400323 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324
Joe Perches475be4d2012-02-19 19:52:38 -0800325 return (1);
Jeff Garzika2b66512007-07-15 19:25:45 -0400326}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327
Greg Kroah-Hartmaned5a84c2012-12-21 13:13:05 -0800328static void en_cs_init(struct IsdnCard *card, struct IsdnCardState *cs)
Jeff Garzika2b66512007-07-15 19:25:45 -0400329{
330 cs->hw.njet.auxa = cs->hw.njet.base + NETJET_AUXDATA;
331 cs->hw.njet.isac = cs->hw.njet.base + 0xC0; // Fenster zum AMD
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332
Jeff Garzika2b66512007-07-15 19:25:45 -0400333 /* Reset an */
Al Virod36b6912011-12-29 17:09:01 -0500334 cs->hw.njet.ctrl_reg = 0x07; // geƤndert von 0xff
Jeff Garzika2b66512007-07-15 19:25:45 -0400335 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL);
336 /* 20 ms Pause */
337 mdelay(20);
338
339 cs->hw.njet.ctrl_reg = 0x30; /* Reset Off and status read clear */
340 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL);
341 mdelay(10);
342
343 cs->hw.njet.auxd = 0x00; // war 0xc0
344 cs->hw.njet.dmactrl = 0;
345
346 outb(~TJ_AMD_IRQ, cs->hw.njet.base + NETJET_AUXCTRL);
347 outb(TJ_AMD_IRQ, cs->hw.njet.base + NETJET_IRQMASK1);
348 outb(cs->hw.njet.auxd, cs->hw.njet.auxa);
349}
350
Greg Kroah-Hartmaned5a84c2012-12-21 13:13:05 -0800351static int en_cs_init_rest(struct IsdnCard *card, struct IsdnCardState *cs)
Jeff Garzika2b66512007-07-15 19:25:45 -0400352{
353 const int bytecnt = 256;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700354
355 printk(KERN_INFO
Joe Perches475be4d2012-02-19 19:52:38 -0800356 "enter:now PCI: PCI card configured at 0x%lx IRQ %d\n",
357 cs->hw.njet.base, cs->irq);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700358 if (!request_region(cs->hw.njet.base, bytecnt, "Fn_ISDN")) {
359 printk(KERN_WARNING
Jeff Garzika2b66512007-07-15 19:25:45 -0400360 "HiSax: enter:now config port %lx-%lx already in use\n",
361 cs->hw.njet.base,
362 cs->hw.njet.base + bytecnt);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700363 return (0);
364 }
Jeff Garzika2b66512007-07-15 19:25:45 -0400365
Linus Torvalds1da177e2005-04-16 15:20:36 -0700366 setup_Amd7930(cs);
367 cs->hw.njet.last_is0 = 0;
Joe Perches475be4d2012-02-19 19:52:38 -0800368 /* macro rByteAMD */
369 cs->readisac = &ReadByteAmd7930;
370 /* macro wByteAMD */
371 cs->writeisac = &WriteByteAmd7930;
372 cs->dc.amd7930.setIrqMask = &enpci_setIrqMask;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700373
Joe Perches475be4d2012-02-19 19:52:38 -0800374 cs->BC_Read_Reg = &dummyrr;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375 cs->BC_Write_Reg = &dummywr;
376 cs->BC_Send_Data = &netjet_fill_dma;
377 cs->cardmsg = &enpci_card_msg;
378 cs->irq_func = &enpci_interrupt;
Thomas Gleixner9ba02be2006-07-01 19:29:36 -0700379 cs->irq_flags |= IRQF_SHARED;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700380
Jeff Garzika2b66512007-07-15 19:25:45 -0400381 return (1);
382}
383
Greg Kroah-Hartmaned5a84c2012-12-21 13:13:05 -0800384static struct pci_dev *dev_netjet = NULL;
Jeff Garzika2b66512007-07-15 19:25:45 -0400385
386/* called by config.c */
Greg Kroah-Hartmaned5a84c2012-12-21 13:13:05 -0800387int setup_enternow_pci(struct IsdnCard *card)
Jeff Garzika2b66512007-07-15 19:25:45 -0400388{
389 int ret;
390 struct IsdnCardState *cs = card->cs;
391 char tmp[64];
392
393#ifdef __BIG_ENDIAN
394#error "not running on big endian machines now"
395#endif
396
Joe Perches475be4d2012-02-19 19:52:38 -0800397 strcpy(tmp, enternow_pci_rev);
Jeff Garzika2b66512007-07-15 19:25:45 -0400398 printk(KERN_INFO "HiSax: Formula-n Europe AG enter:now ISDN PCI driver Rev. %s\n", HiSax_getrev(tmp));
399 if (cs->typ != ISDN_CTYPE_ENTERNOW)
Joe Perches475be4d2012-02-19 19:52:38 -0800400 return (0);
Jeff Garzika2b66512007-07-15 19:25:45 -0400401 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags);
402
Joe Perches475be4d2012-02-19 19:52:38 -0800403 for (;;)
Jeff Garzika2b66512007-07-15 19:25:45 -0400404 {
Tilman Schmidt41a68a72010-01-18 17:24:10 +0100405 if ((dev_netjet = hisax_find_pci_device(PCI_VENDOR_ID_TIGERJET,
Joe Perches475be4d2012-02-19 19:52:38 -0800406 PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) {
Jeff Garzika2b66512007-07-15 19:25:45 -0400407 ret = en_pci_probe(dev_netjet, cs);
408 if (!ret)
Joe Perches475be4d2012-02-19 19:52:38 -0800409 return (0);
Jeff Garzika2b66512007-07-15 19:25:45 -0400410 } else {
Joe Perches475be4d2012-02-19 19:52:38 -0800411 printk(KERN_WARNING "enter:now PCI: No PCI card found\n");
412 return (0);
Jeff Garzika2b66512007-07-15 19:25:45 -0400413 }
414
415 en_cs_init(card, cs);
416 break;
417 }
418
Joe Perches475be4d2012-02-19 19:52:38 -0800419 return en_cs_init_rest(card, cs);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420}