Lines Matching refs:sun_fdc
53 static struct sun_flpy_controller *sun_fdc = NULL; variable
106 sun_fdc->dor_82077 = value; in sun_set_dor()
111 return sun_fdc->dir_82077; in sun_read_dir()
122 return sun_fdc->status_82072 & ~STATUS_DMA; in sun_82072_fd_inb()
124 return sun_fdc->data_82072; in sun_82072_fd_inb()
142 sun_fdc->data_82072 = value; in sun_82072_fd_outb()
145 sun_fdc->dcr_82072 = value; in sun_82072_fd_outb()
148 sun_fdc->status_82072 = value; in sun_82072_fd_outb()
162 return sun_fdc->status1_82077; in sun_82077_fd_inb()
164 return sun_fdc->status2_82077; in sun_82077_fd_inb()
166 return sun_fdc->dor_82077; in sun_82077_fd_inb()
168 return sun_fdc->tapectl_82077; in sun_82077_fd_inb()
170 return sun_fdc->status_82077 & ~STATUS_DMA; in sun_82077_fd_inb()
172 return sun_fdc->data_82077; in sun_82077_fd_inb()
190 sun_fdc->data_82077 = value; in sun_82077_fd_outb()
193 sun_fdc->dcr_82077 = value; in sun_82077_fd_outb()
196 sun_fdc->status_82077 = value; in sun_82077_fd_outb()
199 sun_fdc->tapectl_82077 = value; in sun_82077_fd_outb()
319 sun_fdc = of_ioremap(&r, 0, fd_regs[0].reg_size, "floppy"); in sun_floppy_init()
343 if (sun_fdc->status_82072 == 0xff) { in sun_floppy_init()
344 sun_fdc = NULL; in sun_floppy_init()
350 fdc_status = &sun_fdc->status_82077; in sun_floppy_init()
352 if (sun_fdc->dor_82077 == 0x80) { in sun_floppy_init()
353 sun_fdc->dor_82077 = 0x02; in sun_floppy_init()
354 if (sun_fdc->dor_82077 == 0x80) { in sun_floppy_init()
357 fdc_status = &sun_fdc->status_82072; in sun_floppy_init()
363 return (int) sun_fdc; in sun_floppy_init()