From: Mikael Pettersson <mikpe@csd.uu.se>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.4 ftape virt_to_bus() fixes
Date: Tue, 12 Feb 2002 14:58:07 +0100 (MET) [thread overview]
Message-ID: <200202121358.OAA10937@harpo.it.uu.se> (raw)
This patch updates the ftape driver in 2.5.4 for the virt_to_bus() et
al changes. Since this is ISA-only code, I used the new isa_-prefixed
functions. Tested on a Seagate TST3200 TR-3 unit.
/Mikael
--- linux-2.5.4/drivers/char/ftape/lowlevel/fdc-io.c.~1~ Mon Feb 11 12:21:45 2002
+++ linux-2.5.4/drivers/char/ftape/lowlevel/fdc-io.c Mon Feb 11 16:55:18 2002
@@ -926,7 +926,7 @@
disable_dma(fdc.dma);
clear_dma_ff(fdc.dma);
set_dma_mode(fdc.dma, mode);
- set_dma_addr(fdc.dma, virt_to_bus((void*)addr));
+ set_dma_addr(fdc.dma, isa_virt_to_bus((void*)addr));
set_dma_count(fdc.dma, count);
enable_dma(fdc.dma);
}
@@ -945,7 +945,7 @@
/* Program the DMA controller.
*/
TRACE(ft_t_fdc_dma,
- "phys. addr. = %lx", virt_to_bus((void*) buff->ptr));
+ "phys. addr. = %lx", isa_virt_to_bus((void*) buff->ptr));
save_flags(flags);
cli(); /* could be called from ISR ! */
fdc_setup_dma(DMA_MODE_WRITE, buff->ptr, FT_SECTORS_PER_SEGMENT * 4);
@@ -997,7 +997,7 @@
TRACE_ABORT(-EIO,
ft_t_bug, "bug: illegal operation parameter");
}
- TRACE(ft_t_fdc_dma, "phys. addr. = %lx",virt_to_bus((void*)buff->ptr));
+ TRACE(ft_t_fdc_dma, "phys. addr. = %lx", isa_virt_to_bus((void*)buff->ptr));
save_flags(flags);
cli(); /* could be called from ISR ! */
if (operation != FDC_VERIFY) {
reply other threads:[~2002-02-12 13:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202121358.OAA10937@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®