[PATCH] isa_virt_to_bus and co on Alpha

Marc Zyngier (mzyngier@freesurf.fr)
26 Jan 2003 20:33:27 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-21077-1043609702-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

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.

--=_courier-21077-1043609702-0001-2
Content-Type: text/x-patch; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=io.h-patch
Content-Description: isa_vtb patch

# 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__ */

--=_courier-21077-1043609702-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

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

--=_courier-21077-1043609702-0001-2--