lkml.org 
[lkml]   [2003]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] isa_virt_to_bus and co on Alpha
From
Date
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.

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

--
Places change, faces change. Life is so very strange.
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.036 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site