diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-mips/floppy.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-mips/floppy.h')
-rw-r--r-- | include/asm-mips/floppy.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/asm-mips/floppy.h b/include/asm-mips/floppy.h new file mode 100644 index 000000000000..aa1ef8b352cc --- /dev/null +++ b/include/asm-mips/floppy.h | |||
@@ -0,0 +1,56 @@ | |||
1 | /* | ||
2 | * Architecture specific parts of the Floppy driver | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 1995 - 2000 Ralf Baechle | ||
9 | */ | ||
10 | #ifndef _ASM_FLOPPY_H | ||
11 | #define _ASM_FLOPPY_H | ||
12 | |||
13 | static inline void fd_cacheflush(char * addr, long size) | ||
14 | { | ||
15 | dma_cache_wback_inv((unsigned long)addr,size); | ||
16 | } | ||
17 | |||
18 | #define MAX_BUFFER_SECTORS 24 | ||
19 | |||
20 | |||
21 | /* | ||
22 | * And on Mips's the CMOS info fails also ... | ||
23 | * | ||
24 | * FIXME: This information should come from the ARC configuration tree | ||
25 | * or whereever a particular machine has stored this ... | ||
26 | */ | ||
27 | #define FLOPPY0_TYPE fd_drive_type(0) | ||
28 | #define FLOPPY1_TYPE fd_drive_type(1) | ||
29 | |||
30 | #define FDC1 fd_getfdaddr1(); | ||
31 | |||
32 | #define N_FDC 1 /* do you *really* want a second controller? */ | ||
33 | #define N_DRIVE 8 | ||
34 | |||
35 | #define FLOPPY_MOTOR_MASK 0xf0 | ||
36 | |||
37 | /* | ||
38 | * The DMA channel used by the floppy controller cannot access data at | ||
39 | * addresses >= 16MB | ||
40 | * | ||
41 | * Went back to the 1MB limit, as some people had problems with the floppy | ||
42 | * driver otherwise. It doesn't matter much for performance anyway, as most | ||
43 | * floppy accesses go through the track buffer. | ||
44 | * | ||
45 | * On MIPSes using vdma, this actually means that *all* transfers go thru | ||
46 | * the * track buffer since 0x1000000 is always smaller than KSEG0/1. | ||
47 | * Actually this needs to be a bit more complicated since the so much different | ||
48 | * hardware available with MIPS CPUs ... | ||
49 | */ | ||
50 | #define CROSS_64KB(a,s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64) | ||
51 | |||
52 | #define EXTRA_FLOPPY_PARAMS | ||
53 | |||
54 | #include <floppy.h> | ||
55 | |||
56 | #endif /* _ASM_FLOPPY_H */ | ||