diff options
author | Laurent Vivier <laurent@lvivier.info> | 2008-11-15 16:10:10 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-03-26 21:15:27 +0100 |
commit | 8852ecd97488249ca7fe2c0d3eb44cae95886881 (patch) | |
tree | bc23ec6db412733952809ebc5307535ed043c4a0 /arch/m68k/mac/via.c | |
parent | m68k: mac - Add a new entry in mac_model to identify the floppy controller type. (diff) | |
download | linux-8852ecd97488249ca7fe2c0d3eb44cae95886881.tar.xz linux-8852ecd97488249ca7fe2c0d3eb44cae95886881.zip |
m68k: mac - Add SWIM floppy support
It allows to read data from a floppy, but not to write to, and to eject the
floppy (useful on our Mac without eject button).
Signed-off-by: Laurent Vivier <Laurent@lvivier.info>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mac/via.c')
-rw-r--r-- | arch/m68k/mac/via.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/m68k/mac/via.c b/arch/m68k/mac/via.c index 7d97ba54536e..11bce3cb6482 100644 --- a/arch/m68k/mac/via.c +++ b/arch/m68k/mac/via.c @@ -645,3 +645,12 @@ int via_irq_pending(int irq) } return 0; } + +void via1_set_head(int head) +{ + if (head == 0) + via1[vBufA] &= ~VIA1A_vHeadSel; + else + via1[vBufA] |= VIA1A_vHeadSel; +} +EXPORT_SYMBOL(via1_set_head); |