#include <linux/module.h>
#include <linux/slab.h>
#include <linux/fd.h>
#include <linux/hdreg.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/amifdreg.h>
#include <linux/amifd.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <asm/setup.h>
#include <asm/uaccess.h>
#include <asm/amigahw.h>
#include <asm/amigaints.h>
#include <asm/irq.h>
Go to the source code of this file.
#define DESELECT |
( |
|
mask | ) |
(ciab.prb |= mask) |
#define FD_DD_3 0xffffffff /* double-density 3.5" (880K) drive */ |
#define FD_DD_5 0xaaaaaaaa /* double-density 5.25" (440K) drive */ |
#define FD_HD_3 0x55555555 /* high-density 3.5" (1760K) drive */ |
#define FD_NODRIVE 0x00000000 /* response when no unit is present */ |
#define FD_NOTREADY 4 /* unit is not ready (motor not on/no disk) */ |
#define FD_NOUNIT 1 /* unit does not exist */ |
#define IOCTL_RAW_TRACK 0x5254524B /* 'RTRK' */ |
#define MOTOR_OFF (ciab.prb |= DSKMOTOR) |
#define MOTOR_ON (ciab.prb &= ~DSKMOTOR) |
#define SELECT |
( |
|
mask | ) |
(ciab.prb &= ~mask) |
#define SELMASK |
( |
|
drive | ) |
(1 << (3 + (drive & 3))) |
static int dos_read |
( |
int |
drive | ) |
|
MODULE_ALIAS |
( |
"platform:amiga-floppy" |
| ) |
|
module_init |
( |
amiga_floppy_init |
| ) |
|
module_param |
( |
fd_def_df0 |
, |
|
|
ulong |
, |
|
|
0 |
|
|
) |
| |