Lines Matching refs:sun_fdc
45 static struct sun_flpy_controller *sun_fdc = (struct sun_flpy_controller *)-1; variable
93 #define FDC1 ((unsigned long)sun_fdc)
109 return sbus_readb(&sun_fdc->status_82077) & ~STATUS_DMA; in sun_82077_fd_inb()
111 return sbus_readb(&sun_fdc->data_82077); in sun_82077_fd_inb()
114 return sbus_readb(&sun_fdc->dir_82077); in sun_82077_fd_inb()
129 sbus_writeb(value, &sun_fdc->dor_82077); in sun_82077_fd_outb()
132 sbus_writeb(value, &sun_fdc->data_82077); in sun_82077_fd_outb()
135 sbus_writeb(value, &sun_fdc->dcr_82077); in sun_82077_fd_outb()
138 sbus_writeb(value, &sun_fdc->status_82077); in sun_82077_fd_outb()
625 sun_fdc = (struct sun_flpy_controller *) op->resource[0].start; in sun_floppy_init()
643 fdc_status = (unsigned long) &sun_fdc->status_82077; in sun_floppy_init()
654 if (sun_pci_fd_test_drive((unsigned long)sun_fdc, 0)) in sun_floppy_init()
656 if (sun_pci_fd_test_drive((unsigned long)sun_fdc, 1)) in sun_floppy_init()
730 sun_fdc = (struct sun_flpy_controller *) in sun_floppy_init()
735 if (sbus_readb(&sun_fdc->status1_82077) == 0xff) { in sun_floppy_init()
736 sun_fdc = (struct sun_flpy_controller *)-1; in sun_floppy_init()
756 fdc_status = (unsigned long) &sun_fdc->status_82077; in sun_floppy_init()