10 #ifndef __ASM_ALPHA_FLOPPY_H
11 #define __ASM_ALPHA_FLOPPY_H
14 #define fd_inb(port) inb_p(port)
15 #define fd_outb(value,port) outb_p(value,port)
17 #define fd_enable_dma() enable_dma(FLOPPY_DMA)
18 #define fd_disable_dma() disable_dma(FLOPPY_DMA)
19 #define fd_request_dma() request_dma(FLOPPY_DMA,"floppy")
20 #define fd_free_dma() free_dma(FLOPPY_DMA)
21 #define fd_clear_dma_ff() clear_dma_ff(FLOPPY_DMA)
22 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA,mode)
23 #define fd_set_dma_addr(addr) set_dma_addr(FLOPPY_DMA,virt_to_bus(addr))
24 #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA,count)
25 #define fd_enable_irq() enable_irq(FLOPPY_IRQ)
26 #define fd_disable_irq() disable_irq(FLOPPY_IRQ)
27 #define fd_cacheflush(addr,size)
28 #define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt,\
29 IRQF_DISABLED, "floppy", NULL)
30 #define fd_free_irq() free_irq(FLOPPY_IRQ, NULL)
34 #include <linux/pci.h>
36 #define fd_dma_setup(addr,size,mode,io) alpha_fd_dma_setup(addr,size,mode,io)
39 alpha_fd_dma_setup(
char *
addr,
unsigned long size,
int mode,
int io)
41 static unsigned long prev_size;
43 static char *prev_addr;
50 && (addr != prev_addr || size != prev_size || dir != prev_dir)) {
52 pci_unmap_single(
isa_bridge, bus_addr, prev_size, prev_dir);
57 bus_addr = pci_map_single(
isa_bridge, addr, size, dir);
67 set_dma_addr(FLOPPY_DMA, bus_addr);
69 virtual_dma_port =
io;
82 static int FDC1 = 0x3f0;
88 #define FLOPPY0_TYPE 6
89 #define FLOPPY1_TYPE 0
107 static inline unsigned long CROSS_64KB(
void *
a,
unsigned long s)
109 unsigned long p = (
unsigned long)a;
110 return ((p + s - 1) ^
p) & ~0xffffUL;
113 #define EXTRA_FLOPPY_PARAMS