Lines Matching defs:link
96 static int ibmtr_config(struct pcmcia_device *link);
98 static void ibmtr_release(struct pcmcia_device *link);
134 static int __devinit ibmtr_attach(struct pcmcia_device *link)
139 dev_dbg(&link->dev, "ibmtr_attach()\n");
150 info->p_dev = link;
151 link->priv = info;
154 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
155 link->resource[0]->end = 4;
156 link->conf.Attributes = CONF_ENABLE_IRQ;
157 link->conf.IntType = INT_MEMORY_AND_IO;
158 link->conf.Present = PRESENT_OPTION;
164 return ibmtr_config(link);
176 static void ibmtr_detach(struct pcmcia_device *link)
178 struct ibmtr_dev_t *info = link->priv;
182 dev_dbg(&link->dev, "ibmtr_detach\n");
194 ibmtr_release(link);
208 static int __devinit ibmtr_config(struct pcmcia_device *link)
210 ibmtr_dev_t *info = link->priv;
216 dev_dbg(&link->dev, "ibmtr_config\n");
218 link->conf.ConfigIndex = 0x61;
219 link->io_lines = 16;
224 link->resource[0]->start = 0xA20;
225 i = pcmcia_request_io(link);
228 link->resource[0]->start = 0xA24;
229 ret = pcmcia_request_io(link);
233 dev->base_addr = link->resource[0]->start;
235 ret = pcmcia_request_exclusive_irq(link, ibmtr_interrupt);
238 dev->irq = link->irq;
239 ti->irq = link->irq;
248 ret = pcmcia_request_window(link, &req, &link->win);
252 ret = pcmcia_map_mem_page(link, link->win, mmiobase);
263 ret = pcmcia_request_window(link, &req, &info->sram_win_handle);
267 ret = pcmcia_map_mem_page(link, info->sram_win_handle, srambase);
275 ret = pcmcia_request_configuration(link, &link->conf);
284 SET_NETDEV_DEV(dev, &link->dev);
300 ibmtr_release(link);
312 static void ibmtr_release(struct pcmcia_device *link)
314 ibmtr_dev_t *info = link->priv;
317 dev_dbg(&link->dev, "ibmtr_release\n");
319 if (link->win) {
323 pcmcia_disable_device(link);
326 static int ibmtr_suspend(struct pcmcia_device *link)
328 ibmtr_dev_t *info = link->priv;
331 if (link->open)
337 static int __devinit ibmtr_resume(struct pcmcia_device *link)
339 ibmtr_dev_t *info = link->priv;
342 if (link->open) {