clean
[linux-2.4.21-pre4.git] / include / asm-ppc / floppy.h
1 /*
2  * BK Id: SCCS/s.floppy.h 1.9 08/13/02 20:27:43 paulus
3  */
4 /*
5  * Architecture specific parts of the Floppy driver
6  *
7  * This file is subject to the terms and conditions of the GNU General Public
8  * License.  See the file "COPYING" in the main directory of this archive
9  * for more details.
10  *
11  * Copyright (C) 1995
12  */
13 #ifdef __KERNEL__
14 #ifndef __ASM_PPC_FLOPPY_H
15 #define __ASM_PPC_FLOPPY_H
16
17 #define fd_inb(port)                    inb_p(port)
18 #define fd_outb(port,value)             outb_p(port,value)
19
20 #define fd_enable_dma()         enable_dma(FLOPPY_DMA)
21 #define fd_disable_dma()        disable_dma(FLOPPY_DMA)
22 #define fd_request_dma()        request_dma(FLOPPY_DMA,"floppy")
23 #define fd_free_dma()           free_dma(FLOPPY_DMA)
24 #define fd_clear_dma_ff()       clear_dma_ff(FLOPPY_DMA)
25 #define fd_set_dma_mode(mode)   set_dma_mode(FLOPPY_DMA,mode)
26 #define fd_set_dma_addr(addr)   set_dma_addr(FLOPPY_DMA,(unsigned int)virt_to_bus(addr))
27 #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA,count)
28 #define fd_enable_irq()         enable_irq(FLOPPY_IRQ)
29 #define fd_disable_irq()        disable_irq(FLOPPY_IRQ)
30 #define fd_cacheflush(addr,size) /* nothing */
31 #define fd_request_irq()        request_irq(FLOPPY_IRQ, floppy_interrupt, \
32                                             SA_INTERRUPT|SA_SAMPLE_RANDOM, \
33                                             "floppy", NULL)
34 #define fd_free_irq()           free_irq(FLOPPY_IRQ, NULL);
35
36 static int FDC1 = 0x3f0;
37 static int FDC2 = -1;
38
39 /*
40  * Again, the CMOS information not available
41  */
42 #define FLOPPY0_TYPE 6
43 #define FLOPPY1_TYPE 0
44
45 #define N_FDC 2                 /* Don't change this! */
46 #define N_DRIVE 8
47
48 #define FLOPPY_MOTOR_MASK 0xf0
49
50 /*
51  * The PowerPC has no problems with floppy DMA crossing 64k borders.
52  */
53 #define CROSS_64KB(a,s) (0)
54
55 #endif /* __ASM_PPC_FLOPPY_H */
56
57 #define EXTRA_FLOPPY_PARAMS
58
59 #endif /* __KERNEL__ */