From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Linux/PPC Development <linuxppc-dev@lists.linuxppc.org>
Subject: ISA memory space
Date: Sat, 6 May 2000 14:44:36 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.10.10005061442360.406-100000@cassiopeia.home> (raw)
2.3.x lacks the macros to access ISA memory space (untested):
--- include/asm-ppc/io.h.orig Wed May 3 14:33:53 2000
+++ include/asm-ppc/io.h Sat May 6 14:41:08 2000
@@ -54,6 +54,16 @@
#define writel(b,addr) out_le32((volatile u32 *)(addr),(b))
#endif
+#define isa_readb(a) readb(_ISA_MEM_BASE+(a))
+#define isa_readw(a) readw(_ISA_MEM_BASE+(a))
+#define isa_readl(a) readl(_ISA_MEM_BASE+(a))
+#define isa_writeb(b,a) writeb(b,_ISA_MEM_BASE+(a))
+#define isa_writew(w,a) writew(w,_ISA_MEM_BASE+(a))
+#define isa_writel(l,a) writel(l,_ISA_MEM_BASE+(a))
+#define isa_memset_io(a,b,c) memset_io(_ISA_MEM_BASE+(a),(b),(c))
+#define isa_memcpy_fromio(a,b,c) memcpy_fromio((a),_ISA_MEM_BASE+(b),(c))
+#define isa_memcpy_toio(a,b,c) memcpy_toio(_ISA_MEM_BASE+(a),(b),(c))
+
/*
* The insw/outsw/insl/outsl macros don't do byte-swapping.
* They are only used in practice for transferring buffers which
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
reply other threads:[~2000-05-06 12:44 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=Pine.LNX.4.10.10005061442360.406-100000@cassiopeia.home \
--to=geert@linux-m68k.org \
--cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).