Lines Matching refs:wd
50 static inline u8 wd719x_readb(struct wd719x *wd, u8 reg) in wd719x_readb() argument
52 return ioread8(wd->base + reg); in wd719x_readb()
55 static inline u32 wd719x_readl(struct wd719x *wd, u8 reg) in wd719x_readl() argument
57 return ioread32(wd->base + reg); in wd719x_readl()
60 static inline void wd719x_writeb(struct wd719x *wd, u8 reg, u8 val) in wd719x_writeb() argument
62 iowrite8(val, wd->base + reg); in wd719x_writeb()
65 static inline void wd719x_writew(struct wd719x *wd, u8 reg, u16 val) in wd719x_writew() argument
67 iowrite16(val, wd->base + reg); in wd719x_writew()
70 static inline void wd719x_writel(struct wd719x *wd, u8 reg, u32 val) in wd719x_writel() argument
72 iowrite32(val, wd->base + reg); in wd719x_writel()
76 static inline int wd719x_wait_ready(struct wd719x *wd) in wd719x_wait_ready() argument
81 if (wd719x_readb(wd, WD719X_AMR_COMMAND) == WD719X_CMD_READY) in wd719x_wait_ready()
86 dev_err(&wd->pdev->dev, "command register is not ready: 0x%02x\n", in wd719x_wait_ready()
87 wd719x_readb(wd, WD719X_AMR_COMMAND)); in wd719x_wait_ready()
93 static inline int wd719x_wait_done(struct wd719x *wd, int timeout) in wd719x_wait_done() argument
98 status = wd719x_readb(wd, WD719X_AMR_INT_STATUS); in wd719x_wait_done()
106 dev_err(&wd->pdev->dev, "direct command timed out\n"); in wd719x_wait_done()
111 u8 sue = wd719x_readb(wd, WD719X_AMR_SCB_ERROR); in wd719x_wait_done()
118 dev_err(&wd->pdev->dev, "direct command failed, status 0x%02x, SUE 0x%02x\n", in wd719x_wait_done()
126 static int wd719x_direct_cmd(struct wd719x *wd, u8 opcode, u8 dev, u8 lun, in wd719x_direct_cmd() argument
132 wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); in wd719x_direct_cmd()
135 if (wd719x_wait_ready(wd)) in wd719x_direct_cmd()
142 wd719x_writeb(wd, WD719X_AMR_CMD_PARAM, dev); in wd719x_direct_cmd()
143 wd719x_writeb(wd, WD719X_AMR_CMD_PARAM_2, lun); in wd719x_direct_cmd()
144 wd719x_writeb(wd, WD719X_AMR_CMD_PARAM_3, tag); in wd719x_direct_cmd()
146 wd719x_writel(wd, WD719X_AMR_SCB_IN, data); in wd719x_direct_cmd()
149 wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); in wd719x_direct_cmd()
152 wd719x_writeb(wd, WD719X_AMR_COMMAND, opcode); in wd719x_direct_cmd()
155 ret = wd719x_wait_done(wd, timeout); in wd719x_direct_cmd()
159 wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); in wd719x_direct_cmd()
164 static void wd719x_destroy(struct wd719x *wd) in wd719x_destroy() argument
167 if (wd719x_direct_cmd(wd, WD719X_CMD_SLEEP, 0, 0, 0, 0, in wd719x_destroy()
169 dev_warn(&wd->pdev->dev, "RISC sleep command failed\n"); in wd719x_destroy()
171 wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); in wd719x_destroy()
173 WARN_ON_ONCE(!list_empty(&wd->active_scbs)); in wd719x_destroy()
176 dma_free_coherent(&wd->pdev->dev, wd->fw_size, wd->fw_virt, in wd719x_destroy()
177 wd->fw_phys); in wd719x_destroy()
178 wd->fw_virt = NULL; in wd719x_destroy()
179 dma_free_coherent(&wd->pdev->dev, WD719X_HASH_TABLE_SIZE, wd->hash_virt, in wd719x_destroy()
180 wd->hash_phys); in wd719x_destroy()
181 wd->hash_virt = NULL; in wd719x_destroy()
182 dma_free_coherent(&wd->pdev->dev, sizeof(struct wd719x_host_param), in wd719x_destroy()
183 wd->params, wd->params_phys); in wd719x_destroy()
184 wd->params = NULL; in wd719x_destroy()
185 free_irq(wd->pdev->irq, wd); in wd719x_destroy()
192 struct wd719x *wd = shost_priv(cmd->device->host); in wd719x_finish_cmd() local
196 dma_unmap_single(&wd->pdev->dev, scb->phys, in wd719x_finish_cmd()
199 dma_unmap_single(&wd->pdev->dev, cmd->SCp.dma_handle, in wd719x_finish_cmd()
212 struct wd719x *wd = shost_priv(sh); in wd719x_queuecommand() local
224 scb->phys = dma_map_single(&wd->pdev->dev, scb, sizeof(*scb), in wd719x_queuecommand()
227 if (dma_mapping_error(&wd->pdev->dev, scb->phys)) in wd719x_queuecommand()
232 cmd->SCp.dma_handle = dma_map_single(&wd->pdev->dev, cmd->sense_buffer, in wd719x_queuecommand()
234 if (dma_mapping_error(&wd->pdev->dev, cmd->SCp.dma_handle)) in wd719x_queuecommand()
272 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_queuecommand()
275 if (wd719x_readb(wd, WD719X_AMR_COMMAND) != WD719X_CMD_READY) { in wd719x_queuecommand()
276 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
280 list_add(&scb->list, &wd->active_scbs); in wd719x_queuecommand()
283 wd719x_writel(wd, WD719X_AMR_SCB_IN, scb->phys); in wd719x_queuecommand()
285 wd719x_writeb(wd, WD719X_AMR_COMMAND, WD719X_CMD_PROCESS_SCB); in wd719x_queuecommand()
287 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
291 dma_unmap_single(&wd->pdev->dev, cmd->SCp.dma_handle, in wd719x_queuecommand()
294 dma_unmap_single(&wd->pdev->dev, scb->phys, sizeof(*scb), in wd719x_queuecommand()
302 static int wd719x_chip_init(struct wd719x *wd) in wd719x_chip_init() argument
310 memset(wd->hash_virt, 0, WD719X_HASH_TABLE_SIZE); in wd719x_chip_init()
313 ret = request_firmware(&fw_wcs, fwname_wcs, &wd->pdev->dev); in wd719x_chip_init()
315 dev_err(&wd->pdev->dev, "Unable to load firmware %s: %d\n", in wd719x_chip_init()
320 ret = request_firmware(&fw_risc, fwname_risc, &wd->pdev->dev); in wd719x_chip_init()
322 dev_err(&wd->pdev->dev, "Unable to load firmware %s: %d\n", in wd719x_chip_init()
327 wd->fw_size = ALIGN(fw_wcs->size, 4) + fw_risc->size; in wd719x_chip_init()
329 if (!wd->fw_virt) in wd719x_chip_init()
330 wd->fw_virt = dma_alloc_coherent(&wd->pdev->dev, wd->fw_size, in wd719x_chip_init()
331 &wd->fw_phys, GFP_KERNEL); in wd719x_chip_init()
332 if (!wd->fw_virt) { in wd719x_chip_init()
338 memcpy(wd->fw_virt, fw_wcs->data, fw_wcs->size); in wd719x_chip_init()
339 memcpy(wd->fw_virt + ALIGN(fw_wcs->size, 4), fw_risc->data, in wd719x_chip_init()
343 wd719x_writeb(wd, WD719X_PCI_PORT_RESET, WD719X_PCI_RESET); in wd719x_chip_init()
346 wd719x_writeb(wd, WD719X_AMR_CMD_PARAM, 0); in wd719x_chip_init()
348 wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); in wd719x_chip_init()
350 wd719x_writeb(wd, WD719X_AMR_COMMAND, 0); in wd719x_chip_init()
351 if (wd719x_wait_ready(wd)) { in wd719x_chip_init()
357 risc_init[0] = wd->fw_phys; /* WCS FW */ in wd719x_chip_init()
358 risc_init[1] = wd->fw_phys + ALIGN(fw_wcs->size, 4); /* RISC FW */ in wd719x_chip_init()
359 risc_init[2] = wd->hash_phys; /* hash table */ in wd719x_chip_init()
362 wd719x_writeb(wd, WD719X_PCI_CHANNEL2_3STATUS, 0); in wd719x_chip_init()
365 wd719x_writel(wd, WD719X_PCI_EXTERNAL_ADDR, risc_init[1]); in wd719x_chip_init()
367 wd719x_writew(wd, WD719X_PCI_INTERNAL_ADDR, WD719X_PRAM_BASE_ADDR); in wd719x_chip_init()
369 wd719x_writew(wd, WD719X_PCI_DMA_TRANSFER_SIZE, 2048 * 2); in wd719x_chip_init()
371 wd719x_writeb(wd, WD719X_PCI_CHANNEL2_3CMD, WD719X_START_CHANNEL2_3DMA); in wd719x_chip_init()
376 u8 status = wd719x_readb(wd, WD719X_PCI_CHANNEL2_3STATUS); in wd719x_chip_init()
380 dev_warn(&wd->pdev->dev, "RISC bootstrap failed: DMA aborted\n"); in wd719x_chip_init()
387 dev_warn(&wd->pdev->dev, "RISC bootstrap failed: DMA timeout\n"); in wd719x_chip_init()
394 wd719x_writel(wd, WD719X_AMR_SCB_IN, risc_init[0]); in wd719x_chip_init()
395 wd719x_writel(wd, WD719X_AMR_SCB_IN + 4, risc_init[1]); in wd719x_chip_init()
396 wd719x_writel(wd, WD719X_AMR_SCB_IN + 8, risc_init[2]); in wd719x_chip_init()
399 wd719x_writeb(wd, WD719X_AMR_CMD_PARAM, WD719X_DISABLE_INT); in wd719x_chip_init()
402 wd719x_writeb(wd, WD719X_AMR_COMMAND, WD719X_CMD_INIT_RISC); in wd719x_chip_init()
404 wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, WD719X_ENABLE_ADVANCE_MODE); in wd719x_chip_init()
407 ret = wd719x_wait_done(wd, WD719X_WAIT_FOR_RISC); in wd719x_chip_init()
409 wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); in wd719x_chip_init()
411 dev_warn(&wd->pdev->dev, "Unable to initialize RISC\n"); in wd719x_chip_init()
417 ret = wd719x_direct_cmd(wd, WD719X_CMD_READ_FIRMVER, 0, 0, 0, 0, in wd719x_chip_init()
420 dev_warn(&wd->pdev->dev, "Unable to read firmware version\n"); in wd719x_chip_init()
423 dev_info(&wd->pdev->dev, "RISC initialized with firmware version %.2x.%.2x\n", in wd719x_chip_init()
424 wd719x_readb(wd, WD719X_AMR_SCB_OUT + 1), in wd719x_chip_init()
425 wd719x_readb(wd, WD719X_AMR_SCB_OUT)); in wd719x_chip_init()
428 ret = wd719x_direct_cmd(wd, WD719X_CMD_BUSRESET, 0, 0, 0, 0, in wd719x_chip_init()
431 dev_warn(&wd->pdev->dev, "SCSI bus reset failed\n"); in wd719x_chip_init()
436 ret = wd719x_direct_cmd(wd, WD719X_CMD_SET_PARAM, 0, in wd719x_chip_init()
438 wd->params_phys, WD719X_WAIT_FOR_RISC); in wd719x_chip_init()
440 dev_warn(&wd->pdev->dev, "Failed to set HOST PARAMETERS\n"); in wd719x_chip_init()
446 ret = wd719x_direct_cmd(wd, WD719X_CMD_INIT_SCAM, 0, 0, 0, 0, in wd719x_chip_init()
449 dev_warn(&wd->pdev->dev, "SCAM initialization failed\n"); in wd719x_chip_init()
454 wd719x_writeb(wd, WD719X_AMR_BIOS_SHARE_INT, 0); in wd719x_chip_init()
468 struct wd719x *wd = shost_priv(cmd->device->host); in wd719x_abort() local
470 dev_info(&wd->pdev->dev, "abort command, tag: %x\n", cmd->tag); in wd719x_abort()
474 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_abort()
475 result = wd719x_direct_cmd(wd, action, cmd->device->id, in wd719x_abort()
478 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_abort()
489 struct wd719x *wd = shost_priv(cmd->device->host); in wd719x_reset() local
492 dev_info(&wd->pdev->dev, "%s reset requested\n", in wd719x_reset()
495 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_reset()
496 result = wd719x_direct_cmd(wd, opcode, device, 0, 0, 0, in wd719x_reset()
499 list_for_each_entry_safe(scb, tmp, &wd->active_scbs, list) { in wd719x_reset()
504 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_reset()
523 struct wd719x *wd = shost_priv(cmd->device->host); in wd719x_host_reset() local
527 dev_info(&wd->pdev->dev, "host reset requested\n"); in wd719x_host_reset()
528 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_host_reset()
530 if (wd719x_direct_cmd(wd, WD719X_CMD_SLEEP, 0, 0, 0, 0, in wd719x_host_reset()
532 dev_warn(&wd->pdev->dev, "RISC sleep command failed\n"); in wd719x_host_reset()
534 wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); in wd719x_host_reset()
537 list_for_each_entry_safe(scb, tmp, &wd->active_scbs, list) in wd719x_host_reset()
539 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_host_reset()
542 return wd719x_chip_init(wd) == 0 ? SUCCESS : FAILED; in wd719x_host_reset()
561 static inline void wd719x_interrupt_SCB(struct wd719x *wd, in wd719x_interrupt_SCB() argument
573 dev_err(&wd->pdev->dev, "command rejected\n"); in wd719x_interrupt_SCB()
577 dev_err(&wd->pdev->dev, "SCB queue is full\n"); in wd719x_interrupt_SCB()
581 dev_dbg(&wd->pdev->dev, "SCB terminated by direct command\n"); in wd719x_interrupt_SCB()
587 dev_err(&wd->pdev->dev, "DMA abort\n"); in wd719x_interrupt_SCB()
592 dev_err(&wd->pdev->dev, "DMA parity error\n"); in wd719x_interrupt_SCB()
596 dev_dbg(&wd->pdev->dev, "selection timeout\n"); in wd719x_interrupt_SCB()
599 dev_dbg(&wd->pdev->dev, "bus reset occurred\n"); in wd719x_interrupt_SCB()
603 dev_dbg(&wd->pdev->dev, "SCSI bus error\n"); in wd719x_interrupt_SCB()
607 dev_err(&wd->pdev->dev, "wrong data transfer direction\n"); in wd719x_interrupt_SCB()
611 dev_err(&wd->pdev->dev, "invalid SCSI phase\n"); in wd719x_interrupt_SCB()
615 dev_err(&wd->pdev->dev, "record too long\n"); in wd719x_interrupt_SCB()
619 dev_err(&wd->pdev->dev, "unexpected bus free\n"); in wd719x_interrupt_SCB()
623 dev_dbg(&wd->pdev->dev, "auto request sense\n"); in wd719x_interrupt_SCB()
630 dev_err(&wd->pdev->dev, "target id %d ignored command\n", in wd719x_interrupt_SCB()
635 dev_err(&wd->pdev->dev, "reversed tags\n"); in wd719x_interrupt_SCB()
639 dev_err(&wd->pdev->dev, "tag type not supported by target\n"); in wd719x_interrupt_SCB()
643 dev_err(&wd->pdev->dev, "no SCAM soft ID available\n"); in wd719x_interrupt_SCB()
647 dev_warn(&wd->pdev->dev, "unknown SUE error code: 0x%x\n", in wd719x_interrupt_SCB()
658 struct wd719x *wd = dev_id; in wd719x_interrupt() local
663 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_interrupt()
665 SCB_out = wd719x_readl(wd, WD719X_AMR_SCB_OUT); in wd719x_interrupt()
667 regs.all = cpu_to_le32(wd719x_readl(wd, WD719X_AMR_OP_CODE)); in wd719x_interrupt()
671 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_interrupt()
674 dev_err(&wd->pdev->dev, "linked command completed with no status\n"); in wd719x_interrupt()
677 dev_err(&wd->pdev->dev, "unsolicited interrupt\n"); in wd719x_interrupt()
686 list_for_each_entry(scb, &wd->active_scbs, list) in wd719x_interrupt()
690 wd719x_interrupt_SCB(wd, regs, scb); in wd719x_interrupt()
692 dev_err(&wd->pdev->dev, "card returned invalid SCB pointer\n"); in wd719x_interrupt()
694 dev_dbg(&wd->pdev->dev, "direct command 0x%x completed\n", in wd719x_interrupt()
698 dev_err(&wd->pdev->dev, "card indicates PIO data ready but we never use PIO\n"); in wd719x_interrupt()
702 dev_err(&wd->pdev->dev, "unknown interrupt reason: %d\n", in wd719x_interrupt()
707 wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); in wd719x_interrupt()
708 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_interrupt()
715 struct wd719x *wd = eeprom->data; in wd719x_eeprom_reg_read() local
716 u8 reg = wd719x_readb(wd, WD719X_PCI_GPIO_DATA); in wd719x_eeprom_reg_read()
723 struct wd719x *wd = eeprom->data; in wd719x_eeprom_reg_write() local
733 wd719x_writeb(wd, WD719X_PCI_GPIO_DATA, reg); in wd719x_eeprom_reg_write()
737 static void wd719x_read_eeprom(struct wd719x *wd) in wd719x_read_eeprom() argument
743 eeprom.data = wd; in wd719x_read_eeprom()
749 wd719x_writeb(wd, WD719X_PCI_GPIO_DATA, 0); in wd719x_read_eeprom()
751 gpio = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); in wd719x_read_eeprom()
756 wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, gpio); in wd719x_read_eeprom()
763 (u8 *)wd->params, in wd719x_read_eeprom()
766 dev_warn(&wd->pdev->dev, "EEPROM signature is invalid (0x%02x 0x%02x), using default values\n", in wd719x_read_eeprom()
768 wd->params->ch_1_th = 0x10; /* 16 DWs = 64 B */ in wd719x_read_eeprom()
769 wd->params->scsi_conf = 0x4c; /* 48ma, spue, parity check */ in wd719x_read_eeprom()
770 wd->params->own_scsi_id = 0x07; /* ID 7, SCAM disabled */ in wd719x_read_eeprom()
771 wd->params->sel_timeout = 0x4d; /* 250 ms */ in wd719x_read_eeprom()
772 wd->params->sleep_timer = 0x01; in wd719x_read_eeprom()
773 wd->params->cdb_size = cpu_to_le16(0x5555); /* all 6 B */ in wd719x_read_eeprom()
774 wd->params->scsi_pad = 0x1b; in wd719x_read_eeprom()
775 if (wd->type == WD719X_TYPE_7193) /* narrow card - disable */ in wd719x_read_eeprom()
776 wd->params->wide = cpu_to_le32(0x00000000); in wd719x_read_eeprom()
778 wd->params->wide = cpu_to_le32(0xffffffff); in wd719x_read_eeprom()
779 wd->params->sync = cpu_to_le32(0xffffffff); in wd719x_read_eeprom()
780 wd->params->soft_mask = 0x00; /* all disabled */ in wd719x_read_eeprom()
781 wd->params->unsol_mask = 0x00; /* all disabled */ in wd719x_read_eeprom()
784 wd->params->tag_en = cpu_to_le16(0x0000); in wd719x_read_eeprom()
788 static enum wd719x_card_type wd719x_detect_type(struct wd719x *wd) in wd719x_detect_type() argument
790 u8 card = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); in wd719x_detect_type()
793 wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, card); in wd719x_detect_type()
794 card = wd719x_readb(wd, WD719X_PCI_GPIO_DATA) & WD719X_GPIO_ID_BITS; in wd719x_detect_type()
803 dev_warn(&wd->pdev->dev, "unknown card type 0x%x\n", card); in wd719x_detect_type()
810 struct wd719x *wd = shost_priv(sh); in wd719x_board_found() local
816 INIT_LIST_HEAD(&wd->active_scbs); in wd719x_board_found()
818 sh->base = pci_resource_start(wd->pdev, 0); in wd719x_board_found()
820 wd->type = wd719x_detect_type(wd); in wd719x_board_found()
822 wd->sh = sh; in wd719x_board_found()
823 sh->irq = wd->pdev->irq; in wd719x_board_found()
824 wd->fw_virt = NULL; in wd719x_board_found()
827 wd->params = dma_alloc_coherent(&wd->pdev->dev, in wd719x_board_found()
829 &wd->params_phys, GFP_KERNEL); in wd719x_board_found()
830 if (!wd->params) { in wd719x_board_found()
831 dev_warn(&wd->pdev->dev, "unable to allocate parameter buffer\n"); in wd719x_board_found()
836 wd->hash_virt = dma_alloc_coherent(&wd->pdev->dev, in wd719x_board_found()
838 &wd->hash_phys, GFP_KERNEL); in wd719x_board_found()
839 if (!wd->hash_virt) { in wd719x_board_found()
840 dev_warn(&wd->pdev->dev, "unable to allocate hash buffer\n"); in wd719x_board_found()
845 ret = request_irq(wd->pdev->irq, wd719x_interrupt, IRQF_SHARED, in wd719x_board_found()
846 "wd719x", wd); in wd719x_board_found()
848 dev_warn(&wd->pdev->dev, "unable to assign IRQ %d\n", in wd719x_board_found()
849 wd->pdev->irq); in wd719x_board_found()
854 wd719x_read_eeprom(wd); in wd719x_board_found()
856 ret = wd719x_chip_init(wd); in wd719x_board_found()
860 sh->this_id = wd->params->own_scsi_id & WD719X_EE_SCSI_ID_MASK; in wd719x_board_found()
862 dev_info(&wd->pdev->dev, "%s at I/O 0x%lx, IRQ %u, SCSI ID %d\n", in wd719x_board_found()
863 card_types[wd->type], sh->base, sh->irq, sh->this_id); in wd719x_board_found()
868 free_irq(wd->pdev->irq, wd); in wd719x_board_found()
870 dma_free_coherent(&wd->pdev->dev, WD719X_HASH_TABLE_SIZE, wd->hash_virt, in wd719x_board_found()
871 wd->hash_phys); in wd719x_board_found()
873 dma_free_coherent(&wd->pdev->dev, sizeof(struct wd719x_host_param), in wd719x_board_found()
874 wd->params, wd->params_phys); in wd719x_board_found()
899 struct wd719x *wd; in wd719x_pci_probe() local
924 wd = shost_priv(sh); in wd719x_pci_probe()
925 wd->base = pci_iomap(pdev, 0, 0); in wd719x_pci_probe()
926 if (!wd->base) in wd719x_pci_probe()
928 wd->pdev = pdev; in wd719x_pci_probe()
934 err = scsi_add_host(sh, &wd->pdev->dev); in wd719x_pci_probe()
944 wd719x_destroy(wd); in wd719x_pci_probe()
946 pci_iounmap(pdev, wd->base); in wd719x_pci_probe()
961 struct wd719x *wd = shost_priv(sh); in wd719x_pci_remove() local
964 wd719x_destroy(wd); in wd719x_pci_remove()
965 pci_iounmap(pdev, wd->base); in wd719x_pci_remove()