Lines Matching refs:pcipcwd_private
127 } pcipcwd_private; variable
162 spin_lock(&pcipcwd_private.io_lock); in send_command()
169 outb_p(*lsb, pcipcwd_private.io_addr + 4); in send_command()
170 outb_p(*msb, pcipcwd_private.io_addr + 5); in send_command()
171 outb_p(cmd, pcipcwd_private.io_addr + 6); in send_command()
176 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command()
180 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command()
194 *lsb = inb_p(pcipcwd_private.io_addr + 4); in send_command()
195 *msb = inb_p(pcipcwd_private.io_addr + 5); in send_command()
198 inb_p(pcipcwd_private.io_addr + 6); in send_command()
205 spin_unlock(&pcipcwd_private.io_lock); in send_command()
212 if (inb_p(pcipcwd_private.io_addr) != 0xF0) in pcipcwd_check_temperature_support()
213 pcipcwd_private.supports_temp = 1; in pcipcwd_check_temperature_support()
220 option_switches = inb_p(pcipcwd_private.io_addr + 3); in pcipcwd_get_option_switches()
241 (int) pcipcwd_private.io_addr, fw_ver_str, in pcipcwd_show_card_info()
242 (pcipcwd_private.supports_temp ? "with" : "without")); in pcipcwd_show_card_info()
249 if (pcipcwd_private.boot_status & WDIOF_CARDRESET) in pcipcwd_show_card_info()
252 if (pcipcwd_private.boot_status & WDIOF_OVERHEAT) in pcipcwd_show_card_info()
255 if (pcipcwd_private.boot_status == 0) in pcipcwd_show_card_info()
263 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_start()
264 outb_p(0x00, pcipcwd_private.io_addr + 3); in pcipcwd_start()
267 stat_reg = inb_p(pcipcwd_private.io_addr + 2); in pcipcwd_start()
268 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_start()
285 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_stop()
286 outb_p(0xA5, pcipcwd_private.io_addr + 3); in pcipcwd_stop()
289 outb_p(0xA5, pcipcwd_private.io_addr + 3); in pcipcwd_stop()
292 stat_reg = inb_p(pcipcwd_private.io_addr + 2); in pcipcwd_stop()
293 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_stop()
309 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_keepalive()
310 outb_p(0x42, pcipcwd_private.io_addr); /* send out any data */ in pcipcwd_keepalive()
311 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_keepalive()
342 control_status = inb_p(pcipcwd_private.io_addr + 1); in pcipcwd_get_status()
366 control_status = inb_p(pcipcwd_private.io_addr + 1); in pcipcwd_clear_status()
376 pcipcwd_private.io_addr + 1); in pcipcwd_clear_status()
393 if (!pcipcwd_private.supports_temp) in pcipcwd_get_temperature()
396 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_get_temperature()
397 *temperature = inb_p(pcipcwd_private.io_addr); in pcipcwd_get_temperature()
398 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_get_temperature()
490 return put_user(pcipcwd_private.boot_status, p); in pcipcwd_ioctl()
616 if (!pcipcwd_private.supports_temp) in pcipcwd_temp_open()
707 spin_lock_init(&pcipcwd_private.io_lock); in pcipcwd_card_init()
708 pcipcwd_private.pdev = pdev; in pcipcwd_card_init()
709 pcipcwd_private.io_addr = pci_resource_start(pdev, 0); in pcipcwd_card_init()
713 (int) pcipcwd_private.io_addr); in pcipcwd_card_init()
719 pcipcwd_get_status(&pcipcwd_private.boot_status); in pcipcwd_card_init()
752 if (pcipcwd_private.supports_temp) { in pcipcwd_card_init()
774 if (pcipcwd_private.supports_temp) in pcipcwd_card_init()
793 if (pcipcwd_private.supports_temp) in pcipcwd_card_exit()