Lines Matching full: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, scb->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 scb->dma_handle = dma_map_single(&wd->pdev->dev, cmd->sense_buffer, in wd719x_queuecommand()
234 if (dma_mapping_error(&wd->pdev->dev, scb->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, scb->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
469 struct device *dev = &wd->pdev->dev; in wd719x_abort()
475 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_abort()
476 result = wd719x_direct_cmd(wd, action, cmd->device->id, in wd719x_abort()
480 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_abort()
491 struct wd719x *wd = shost_priv(cmd->device->host); in wd719x_reset() local
494 dev_info(&wd->pdev->dev, "%s reset requested\n", in wd719x_reset()
497 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_reset()
498 result = wd719x_direct_cmd(wd, opcode, device, 0, 0, 0, in wd719x_reset()
501 list_for_each_entry_safe(scb, tmp, &wd->active_scbs, list) { in wd719x_reset()
506 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_reset()
525 struct wd719x *wd = shost_priv(cmd->device->host); in wd719x_host_reset() local
529 dev_info(&wd->pdev->dev, "host reset requested\n"); in wd719x_host_reset()
530 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_host_reset()
532 if (wd719x_direct_cmd(wd, WD719X_CMD_SLEEP, 0, 0, 0, 0, in wd719x_host_reset()
534 dev_warn(&wd->pdev->dev, "RISC sleep command failed\n"); in wd719x_host_reset()
536 wd719x_writeb(wd, WD719X_PCI_MODE_SELECT, 0); in wd719x_host_reset()
539 list_for_each_entry_safe(scb, tmp, &wd->active_scbs, list) in wd719x_host_reset()
541 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_host_reset()
544 return wd719x_chip_init(wd) == 0 ? SUCCESS : FAILED; in wd719x_host_reset()
563 static inline void wd719x_interrupt_SCB(struct wd719x *wd, in wd719x_interrupt_SCB() argument
575 dev_err(&wd->pdev->dev, "command rejected\n"); in wd719x_interrupt_SCB()
579 dev_err(&wd->pdev->dev, "SCB queue is full\n"); in wd719x_interrupt_SCB()
583 dev_dbg(&wd->pdev->dev, "SCB terminated by direct command\n"); in wd719x_interrupt_SCB()
589 dev_err(&wd->pdev->dev, "DMA abort\n"); in wd719x_interrupt_SCB()
594 dev_err(&wd->pdev->dev, "DMA parity error\n"); in wd719x_interrupt_SCB()
598 dev_dbg(&wd->pdev->dev, "selection timeout\n"); in wd719x_interrupt_SCB()
601 dev_dbg(&wd->pdev->dev, "bus reset occurred\n"); in wd719x_interrupt_SCB()
605 dev_dbg(&wd->pdev->dev, "SCSI bus error\n"); in wd719x_interrupt_SCB()
609 dev_err(&wd->pdev->dev, "wrong data transfer direction\n"); in wd719x_interrupt_SCB()
613 dev_err(&wd->pdev->dev, "invalid SCSI phase\n"); in wd719x_interrupt_SCB()
617 dev_err(&wd->pdev->dev, "record too long\n"); in wd719x_interrupt_SCB()
621 dev_err(&wd->pdev->dev, "unexpected bus free\n"); in wd719x_interrupt_SCB()
625 dev_dbg(&wd->pdev->dev, "auto request sense\n"); in wd719x_interrupt_SCB()
632 dev_err(&wd->pdev->dev, "target id %d ignored command\n", in wd719x_interrupt_SCB()
637 dev_err(&wd->pdev->dev, "reversed tags\n"); in wd719x_interrupt_SCB()
641 dev_err(&wd->pdev->dev, "tag type not supported by target\n"); in wd719x_interrupt_SCB()
645 dev_err(&wd->pdev->dev, "no SCAM soft ID available\n"); in wd719x_interrupt_SCB()
649 dev_warn(&wd->pdev->dev, "unknown SUE error code: 0x%x\n", in wd719x_interrupt_SCB()
660 struct wd719x *wd = dev_id; in wd719x_interrupt() local
665 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_interrupt()
667 SCB_out = wd719x_readl(wd, WD719X_AMR_SCB_OUT); in wd719x_interrupt()
669 regs.all = cpu_to_le32(wd719x_readl(wd, WD719X_AMR_OP_CODE)); in wd719x_interrupt()
673 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_interrupt()
676 dev_err(&wd->pdev->dev, "linked command completed with no status\n"); in wd719x_interrupt()
679 dev_err(&wd->pdev->dev, "unsolicited interrupt\n"); in wd719x_interrupt()
688 list_for_each_entry(scb, &wd->active_scbs, list) in wd719x_interrupt()
692 wd719x_interrupt_SCB(wd, regs, scb); in wd719x_interrupt()
694 dev_err(&wd->pdev->dev, "card returned invalid SCB pointer\n"); in wd719x_interrupt()
696 dev_dbg(&wd->pdev->dev, "direct command 0x%x completed\n", in wd719x_interrupt()
700 dev_err(&wd->pdev->dev, "card indicates PIO data ready but we never use PIO\n"); in wd719x_interrupt()
704 dev_err(&wd->pdev->dev, "unknown interrupt reason: %d\n", in wd719x_interrupt()
709 wd719x_writeb(wd, WD719X_AMR_INT_STATUS, WD719X_INT_NONE); in wd719x_interrupt()
710 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_interrupt()
717 struct wd719x *wd = eeprom->data; in wd719x_eeprom_reg_read() local
718 u8 reg = wd719x_readb(wd, WD719X_PCI_GPIO_DATA); in wd719x_eeprom_reg_read()
725 struct wd719x *wd = eeprom->data; in wd719x_eeprom_reg_write() local
735 wd719x_writeb(wd, WD719X_PCI_GPIO_DATA, reg); in wd719x_eeprom_reg_write()
739 static void wd719x_read_eeprom(struct wd719x *wd) in wd719x_read_eeprom() argument
745 eeprom.data = wd; in wd719x_read_eeprom()
751 wd719x_writeb(wd, WD719X_PCI_GPIO_DATA, 0); in wd719x_read_eeprom()
753 gpio = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); in wd719x_read_eeprom()
758 wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, gpio); in wd719x_read_eeprom()
765 (u8 *)wd->params, in wd719x_read_eeprom()
768 dev_warn(&wd->pdev->dev, "EEPROM signature is invalid (0x%02x 0x%02x), using default values\n", in wd719x_read_eeprom()
770 wd->params->ch_1_th = 0x10; /* 16 DWs = 64 B */ in wd719x_read_eeprom()
771 wd->params->scsi_conf = 0x4c; /* 48ma, spue, parity check */ in wd719x_read_eeprom()
772 wd->params->own_scsi_id = 0x07; /* ID 7, SCAM disabled */ in wd719x_read_eeprom()
773 wd->params->sel_timeout = 0x4d; /* 250 ms */ in wd719x_read_eeprom()
774 wd->params->sleep_timer = 0x01; in wd719x_read_eeprom()
775 wd->params->cdb_size = cpu_to_le16(0x5555); /* all 6 B */ in wd719x_read_eeprom()
776 wd->params->scsi_pad = 0x1b; in wd719x_read_eeprom()
777 if (wd->type == WD719X_TYPE_7193) /* narrow card - disable */ in wd719x_read_eeprom()
778 wd->params->wide = cpu_to_le32(0x00000000); in wd719x_read_eeprom()
780 wd->params->wide = cpu_to_le32(0xffffffff); in wd719x_read_eeprom()
781 wd->params->sync = cpu_to_le32(0xffffffff); in wd719x_read_eeprom()
782 wd->params->soft_mask = 0x00; /* all disabled */ in wd719x_read_eeprom()
783 wd->params->unsol_mask = 0x00; /* all disabled */ in wd719x_read_eeprom()
786 wd->params->tag_en = cpu_to_le16(0x0000); in wd719x_read_eeprom()
790 static enum wd719x_card_type wd719x_detect_type(struct wd719x *wd) in wd719x_detect_type() argument
792 u8 card = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); in wd719x_detect_type()
795 wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, card); in wd719x_detect_type()
796 card = wd719x_readb(wd, WD719X_PCI_GPIO_DATA) & WD719X_GPIO_ID_BITS; in wd719x_detect_type()
805 dev_warn(&wd->pdev->dev, "unknown card type 0x%x\n", card); in wd719x_detect_type()
812 struct wd719x *wd = shost_priv(sh); in wd719x_board_found() local
818 INIT_LIST_HEAD(&wd->active_scbs); in wd719x_board_found()
820 sh->base = pci_resource_start(wd->pdev, 0); in wd719x_board_found()
822 wd->type = wd719x_detect_type(wd); in wd719x_board_found()
824 wd->sh = sh; in wd719x_board_found()
825 sh->irq = wd->pdev->irq; in wd719x_board_found()
826 wd->fw_virt = NULL; in wd719x_board_found()
829 wd->params = dma_alloc_coherent(&wd->pdev->dev, in wd719x_board_found()
831 &wd->params_phys, GFP_KERNEL); in wd719x_board_found()
832 if (!wd->params) { in wd719x_board_found()
833 dev_warn(&wd->pdev->dev, "unable to allocate parameter buffer\n"); in wd719x_board_found()
838 wd->hash_virt = dma_alloc_coherent(&wd->pdev->dev, in wd719x_board_found()
840 &wd->hash_phys, GFP_KERNEL); in wd719x_board_found()
841 if (!wd->hash_virt) { in wd719x_board_found()
842 dev_warn(&wd->pdev->dev, "unable to allocate hash buffer\n"); in wd719x_board_found()
847 ret = request_irq(wd->pdev->irq, wd719x_interrupt, IRQF_SHARED, in wd719x_board_found()
848 "wd719x", wd); in wd719x_board_found()
850 dev_warn(&wd->pdev->dev, "unable to assign IRQ %d\n", in wd719x_board_found()
851 wd->pdev->irq); in wd719x_board_found()
856 wd719x_read_eeprom(wd); in wd719x_board_found()
858 ret = wd719x_chip_init(wd); in wd719x_board_found()
862 sh->this_id = wd->params->own_scsi_id & WD719X_EE_SCSI_ID_MASK; in wd719x_board_found()
864 dev_info(&wd->pdev->dev, "%s at I/O 0x%lx, IRQ %u, SCSI ID %d\n", in wd719x_board_found()
865 card_types[wd->type], sh->base, sh->irq, sh->this_id); in wd719x_board_found()
870 free_irq(wd->pdev->irq, wd); in wd719x_board_found()
872 dma_free_coherent(&wd->pdev->dev, WD719X_HASH_TABLE_SIZE, wd->hash_virt, in wd719x_board_found()
873 wd->hash_phys); in wd719x_board_found()
875 dma_free_coherent(&wd->pdev->dev, sizeof(struct wd719x_host_param), in wd719x_board_found()
876 wd->params, wd->params_phys); in wd719x_board_found()
901 struct wd719x *wd; in wd719x_pci_probe() local
927 wd = shost_priv(sh); in wd719x_pci_probe()
928 wd->base = pci_iomap(pdev, 0, 0); in wd719x_pci_probe()
929 if (!wd->base) in wd719x_pci_probe()
931 wd->pdev = pdev; in wd719x_pci_probe()
937 err = scsi_add_host(sh, &wd->pdev->dev); in wd719x_pci_probe()
947 wd719x_destroy(wd); in wd719x_pci_probe()
949 pci_iounmap(pdev, wd->base); in wd719x_pci_probe()
964 struct wd719x *wd = shost_priv(sh); in wd719x_pci_remove() local
967 wd719x_destroy(wd); in wd719x_pci_remove()
968 pci_iounmap(pdev, wd->base); in wd719x_pci_remove()