summaryrefslogtreecommitdiff
path: root/src/arch/ppc
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2003-12-17 17:27:20 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2003-12-17 17:27:20 +0000
commit4b949c340ac98de451a71a8464bb61c6bc6380bf (patch)
treef9cce448c634b1b10f05be0ee67f6cd164228776 /src/arch/ppc
parent139ef8aa682059b11793639bc49cc76d28916713 (diff)
added _outsw_ns
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1313 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/ppc')
-rw-r--r--src/arch/ppc/include/arch/io.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/arch/ppc/include/arch/io.h b/src/arch/ppc/include/arch/io.h
index 271482b9bc..5e28734390 100644
--- a/src/arch/ppc/include/arch/io.h
+++ b/src/arch/ppc/include/arch/io.h
@@ -64,16 +64,6 @@
#define inl_p(port) inl((port))
#define outl_p(val, port) outl((val), (port))
-extern void _insb(volatile uint8_t *port, void *buf, int ns);
-extern void _outsb(volatile uint8_t *port, const void *buf, int ns);
-extern void _insw(volatile uint16_t *port, void *buf, int ns);
-extern void _outsw(volatile uint16_t *port, const void *buf, int ns);
-extern void _insl(volatile uint32_t *port, void *buf, int nl);
-extern void _outsl(volatile uint32_t *port, const void *buf, int nl);
-extern void _outsw_ns(volatile uint16_t *port, const void *buf, int ns);
-extern void _insl_ns(volatile uint32_t *port, void *buf, int nl);
-extern void _outsl_ns(volatile uint32_t *port, const void *buf, int nl);
-
/*
* The *_ns versions below don't do byte-swapping.
* Neither do the standard versions now, these are just here
@@ -189,4 +179,14 @@ static inline void _insw_ns(volatile uint16_t *port, void *buf, int ns)
ns--;
}
}
+
+static inline void _outsw_ns(volatile uint16_t *port, const void *buf, int ns)
+{
+ uint16_t * b = (uint16_t *)buf;
+
+ while (ns > 0) {
+ out_le16(port, *b++);
+ ns--;
+ }
+}
#endif