GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / mn10300 / kernel / io.c
blobe96fdf6bb5423f5d3a8d8d92ce94d273543c88c6
1 /* MN10300 Misaligned multibyte-word I/O
3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
11 #include <linux/module.h>
12 #include <linux/string.h>
13 #include <linux/kernel.h>
14 #include <asm/io.h>
17 * output data from a potentially misaligned buffer
19 void __outsl(unsigned long addr, const void *buffer, int count)
21 const unsigned char *buf = buffer;
22 unsigned long val;
24 while (count--) {
25 memcpy(&val, buf, 4);
26 outl(val, addr);
27 buf += 4;
30 EXPORT_SYMBOL(__outsl);