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/linux/amifd.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/linux/amifd.h')
-rw-r--r-- | include/linux/amifd.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/include/linux/amifd.h b/include/linux/amifd.h new file mode 100644 index 000000000000..346993268b45 --- /dev/null +++ b/include/linux/amifd.h | |||
@@ -0,0 +1,62 @@ | |||
1 | #ifndef _AMIFD_H | ||
2 | #define _AMIFD_H | ||
3 | |||
4 | /* Definitions for the Amiga floppy driver */ | ||
5 | |||
6 | #include <linux/fd.h> | ||
7 | |||
8 | #define FD_MAX_UNITS 4 /* Max. Number of drives */ | ||
9 | #define FLOPPY_MAX_SECTORS 22 /* Max. Number of sectors per track */ | ||
10 | |||
11 | #ifndef ASSEMBLER | ||
12 | |||
13 | struct fd_data_type { | ||
14 | char *name; /* description of data type */ | ||
15 | int sects; /* sectors per track */ | ||
16 | #ifdef __STDC__ | ||
17 | int (*read_fkt)(int); | ||
18 | void (*write_fkt)(int); | ||
19 | #else | ||
20 | int (*read_fkt)(); /* read whole track */ | ||
21 | void (*write_fkt)(); /* write whole track */ | ||
22 | #endif | ||
23 | }; | ||
24 | |||
25 | /* | ||
26 | ** Floppy type descriptions | ||
27 | */ | ||
28 | |||
29 | struct fd_drive_type { | ||
30 | unsigned long code; /* code returned from drive */ | ||
31 | char *name; /* description of drive */ | ||
32 | unsigned int tracks; /* number of tracks */ | ||
33 | unsigned int heads; /* number of heads */ | ||
34 | unsigned int read_size; /* raw read size for one track */ | ||
35 | unsigned int write_size; /* raw write size for one track */ | ||
36 | unsigned int sect_mult; /* sectors and gap multiplier (HD = 2) */ | ||
37 | unsigned int precomp1; /* start track for precomp 1 */ | ||
38 | unsigned int precomp2; /* start track for precomp 2 */ | ||
39 | unsigned int step_delay; /* time (in ms) for delay after step */ | ||
40 | unsigned int settle_time; /* time to settle after dir change */ | ||
41 | unsigned int side_time; /* time needed to change sides */ | ||
42 | }; | ||
43 | |||
44 | struct amiga_floppy_struct { | ||
45 | struct fd_drive_type *type; /* type of floppy for this unit */ | ||
46 | struct fd_data_type *dtype; /* type of floppy for this unit */ | ||
47 | int track; /* current track (-1 == unknown) */ | ||
48 | unsigned char *trackbuf; /* current track (kmaloc()'d */ | ||
49 | |||
50 | int blocks; /* total # blocks on disk */ | ||
51 | |||
52 | int changed; /* true when not known */ | ||
53 | int disk; /* disk in drive (-1 == unknown) */ | ||
54 | int motor; /* true when motor is at speed */ | ||
55 | int busy; /* true when drive is active */ | ||
56 | int dirty; /* true when trackbuf is not on disk */ | ||
57 | int status; /* current error code for unit */ | ||
58 | struct gendisk *gendisk; | ||
59 | }; | ||
60 | #endif | ||
61 | |||
62 | #endif | ||