Lines Matching refs:sun3x_fdc
40 } sun3x_fdc; variable
55 return (*sun3x_fdc.status_r) & ~STATUS_DMA; in sun3x_82072_fd_inb()
57 return (*sun3x_fdc.data_r); in sun3x_82072_fd_inb()
86 unsigned char fcr = sun3x_fdc.fcr; in sun3x_82072_fd_outb()
94 if(fcr != sun3x_fdc.fcr) { in sun3x_82072_fd_outb()
95 *(sun3x_fdc.fcr_r) = fcr; in sun3x_82072_fd_outb()
96 sun3x_fdc.fcr = fcr; in sun3x_82072_fd_outb()
101 *(sun3x_fdc.data_r) = value; in sun3x_82072_fd_outb()
104 *(sun3x_fdc.status_r) = value; in sun3x_82072_fd_outb()
107 *(sun3x_fdc.status_r) = value; in sun3x_82072_fd_outb()
145 st = *(sun3x_fdc.status_r); in sun3xflop_hardint()
160 *(sun3x_fdc.data_r) = *lptr; in sun3xflop_hardint()
163 *lptr = *(sun3x_fdc.data_r); in sun3xflop_hardint()
169 st = *(sun3x_fdc.status_r); in sun3xflop_hardint()
223 sun3x_fdc.status_r = (volatile unsigned char *)SUN3X_FDC; in sun3xflop_init()
224 sun3x_fdc.data_r = (volatile unsigned char *)(SUN3X_FDC+1); in sun3xflop_init()
225 sun3x_fdc.fcr_r = (volatile unsigned char *)SUN3X_FDC_FCR; in sun3xflop_init()
226 sun3x_fdc.fvr_r = (volatile unsigned char *)SUN3X_FDC_FVR; in sun3xflop_init()
227 sun3x_fdc.fcr = 0; in sun3xflop_init()
230 if(*sun3x_fdc.status_r == 0xff) { in sun3xflop_init()
234 *sun3x_fdc.fvr_r = FLOPPY_IRQ; in sun3xflop_init()
236 *sun3x_fdc.fcr_r = FCR_TC; in sun3xflop_init()
238 *sun3x_fdc.fcr_r = 0; in sun3xflop_init()
251 sun3x_fdc.fcr |= (FCR_DSEL0 | FCR_EJECT); in sun3x_eject()
252 *(sun3x_fdc.fcr_r) = sun3x_fdc.fcr; in sun3x_eject()
254 sun3x_fdc.fcr &= ~(FCR_DSEL0 | FCR_EJECT); in sun3x_eject()
255 *(sun3x_fdc.fcr_r) = sun3x_fdc.fcr; in sun3x_eject()