Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
mn10300
kernel
io.c
Go to the documentation of this file.
1
/* MN10300 Misaligned multibyte-word I/O
2
*
3
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4
* Written by David Howells (
[email protected]
)
5
*
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.
10
*/
11
#include <linux/module.h>
12
#include <linux/string.h>
13
#include <linux/kernel.h>
14
#include <asm/io.h>
15
16
/*
17
* output data from a potentially misaligned buffer
18
*/
19
void
__outsl
(
unsigned
long
addr
,
const
void
*
buffer
,
int
count
)
20
{
21
const
unsigned
char
*
buf
=
buffer
;
22
unsigned
long
val
;
23
24
while
(count--) {
25
memcpy
(&val, buf, 4);
26
outl
(val, addr);
27
buf += 4;
28
}
29
}
30
EXPORT_SYMBOL
(__outsl);
Generated on Thu Jan 10 2013 12:51:16 for Linux Kernel by
1.8.2