Lines Matching refs:wandev
73 static int cycx_wan_setup(struct wan_device *wandev, wandev_conf_t *conf);
74 static int cycx_wan_shutdown(struct wan_device *wandev);
124 struct wan_device *wandev = &card->wandev;
127 wandev->magic = ROUTER_MAGIC;
128 wandev->name = card->devname;
129 wandev->private = card;
130 wandev->setup = cycx_wan_setup;
131 wandev->shutdown = cycx_wan_shutdown;
132 err = register_wan_device(wandev);
182 static int cycx_wan_setup(struct wan_device *wandev, wandev_conf_t *conf)
190 if (!wandev || !wandev->private || !conf)
193 card = wandev->private;
195 if (wandev->state != WAN_UNCONFIGURED)
201 "data!\n", wandev->name);
207 wandev->name);
214 if (request_irq(irq, cycx_isr, 0, wandev->name, card)) {
216 wandev->name, irq);
233 wandev->irq = irq;
234 wandev->dma = wandev->ioport = 0;
235 wandev->maddr = (unsigned long)card->hw.dpmbase;
236 wandev->msize = card->hw.dpmsize;
237 wandev->hw_opt[2] = 0;
238 wandev->hw_opt[3] = card->hw.fwid;
249 wandev->name);
274 static int cycx_wan_shutdown(struct wan_device *wandev)
280 if (!wandev || !wandev->private)
284 if (wandev->state == WAN_UNCONFIGURED)
287 card = wandev->private;
288 wandev->state = WAN_UNCONFIGURED;
290 printk(KERN_INFO "%s: irq %d being freed!\n", wandev->name,
291 wandev->irq);
292 free_irq(wandev->irq, card);
306 if (card->wandev.state == WAN_UNCONFIGURED)
311 card->devname, card->wandev.irq);
330 if (card->wandev.state != state) {
340 card->wandev.state = state;