9 #ifndef __ASM_SUN3X_FLOPPY_H
10 #define __ASM_SUN3X_FLOPPY_H
13 #include <asm/pgtable.h>
18 #define SUN3X_FDC_IRQ 0x40
25 #define FCR_DSEL0 0x10
30 #define release_region(X, Y) do { } while(0)
31 #define request_region(X, Y, Z) (1)
42 #undef HAVE_DISABLE_HLT
45 static unsigned char sun3x_82072_fd_inb(
int port)
51 printk(
"floppy: Asked to read unknown port %d\n", port);
52 panic(
"floppy: Port bolixed.");
65 panic(
"sun_82072_fd_inb: How did I get here?");
68 static void sun3x_82072_fd_outb(
unsigned char value,
int port)
73 printk(
"floppy: Asked to write to unknown port %d\n", port);
74 panic(
"floppy: Port bolixed.");
115 register unsigned char st;
117 #undef TRACE_FLPY_INT
118 #define NO_FLOPPY_ASSEMBLER
120 #ifdef TRACE_FLPY_INT
123 static int dma_wait=0;
132 #ifdef TRACE_FLPY_INT
134 bytes = virtual_dma_count;
141 for(lcount=virtual_dma_count, lptr=virtual_dma_addr;
142 lcount; lcount--, lptr++) {
148 if((st & 0x80) == 0) {
149 virtual_dma_count = lcount;
150 virtual_dma_addr = lptr;
165 virtual_dma_count = lcount;
166 virtual_dma_addr = lptr;
171 #ifdef TRACE_FLPY_INT
178 virtual_dma_residue += virtual_dma_count;
182 #ifdef TRACE_FLPY_INT
183 printk(
"count=%x, residue=%x calls=%d bytes=%x dma_wait=%d\n",
184 virtual_dma_count, virtual_dma_residue, calls, bytes,
195 #ifdef TRACE_FLPY_INT
196 if(!virtual_dma_count)
202 static int sun3xflop_request_irq(
void)
211 return ((error == 0) ? 0 : -1);
215 static void __init floppy_set_flags(
int *ints,
int param,
int param2);
217 static int sun3xflop_init(
void)
219 if(FLOPPY_IRQ < 0x40)
241 allowed_drive_mask = 0x01;
246 static int sun3x_eject(
void)
260 #define fd_eject(drive) sun3x_eject()