mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] isa_virt_to_bus and co on Alpha
@ 2003-01-26 19:33 Marc Zyngier
  2003-01-27  9:30 ` Ivan Kokshaysky
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Zyngier @ 2003-01-26 19:33 UTC (permalink / raw)
  To: Richard Henderson; +Cc: torvalds, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

Richard, Linus, lklm,

The following trivial patchlet (against 2.5.59) adds the missing
isa_virt_to_bus/isa_bus_to_virt API to the Alpha architecture.

This is at least needed by the aha1740 driver. With this patch, the
ol' good Jensen is back running 2.5 ;-).

        M.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: isa_vtb patch --]
[-- Type: text/x-patch, Size: 1142 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.879.82.8 -> 1.879.82.9
#	include/asm-alpha/io.h	1.9     -> 1.9.1.1
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/01/26	maz@hina.wild-wind.fr.eu.org	1.879.82.9
# Add isa_virt_to_bus/isa_bus_to_virt API.
# aha1740 driver wants it, so we can run 2.5 on the Jensen... :-)
# --------------------------------------------
#
diff -Nru a/include/asm-alpha/io.h b/include/asm-alpha/io.h
--- a/include/asm-alpha/io.h	Sun Jan 26 20:30:26 2003
+++ b/include/asm-alpha/io.h	Sun Jan 26 20:30:26 2003
@@ -84,6 +84,8 @@
 	return phys <= __direct_map_size ? bus : 0;
 }
 
+#define isa_virt_to_bus(a) virt_to_bus(a)
+
 static inline void *bus_to_virt(unsigned long address)
 {
 	void *virt;
@@ -95,6 +97,8 @@
 	virt = phys_to_virt(address);
 	return (long)address <= 0 ? NULL : virt;
 }
+
+#define isa_bus_to_virt(a) bus_to_virt(a)
 
 #else /* !__KERNEL__ */
 

[-- Attachment #3: Type: text/plain, Size: 59 bytes --]


-- 
Places change, faces change. Life is so very strange.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] isa_virt_to_bus and co on Alpha
  2003-01-26 19:33 [PATCH] isa_virt_to_bus and co on Alpha Marc Zyngier
@ 2003-01-27  9:30 ` Ivan Kokshaysky
  0 siblings, 0 replies; 2+ messages in thread
From: Ivan Kokshaysky @ 2003-01-27  9:30 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: Richard Henderson, torvalds, linux-kernel

On Sun, Jan 26, 2003 at 08:33:27PM +0100, Marc Zyngier wrote:
> The following trivial patchlet (against 2.5.59) adds the missing
> isa_virt_to_bus/isa_bus_to_virt API to the Alpha architecture.

Please don't do that. virt_to_bus/bus_to_virt are deprecated since 2.2,
drivers are supposed to use DMA mapping API instead.

> This is at least needed by the aha1740 driver. With this patch, the
> ol' good Jensen is back running 2.5 ;-).

And it won't work on anything but Jensen. All other alphas have
direct map window at 1 or 2 Gb, which cannot be reached by ISA
busmaster because of 24 address wires limitation.

Ivan.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-27  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-26 19:33 [PATCH] isa_virt_to_bus and co on Alpha Marc Zyngier
2003-01-27  9:30 ` Ivan Kokshaysky

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®