index
:
litmus-rt.git
archive/unc-master-3.0
archived-2013.1
archived-private-master
archived-semi-part
demo
ecrts-pgm-final
ecrts14-pgm-final
gpusync-rtss12
gpusync/staging
linux-tip
litmus2008-patch-series
master
pgm
prop/litmus-signals
prop/robust-tie-break
staging
test
tracing-devel
v2.6.34-with-arm-patches
v2015.1
wip-2011.2-bbb
wip-2011.2-bbb-trace
wip-2012.3-gpu
wip-2012.3-gpu-preport
wip-2012.3-gpu-rtss13
wip-2012.3-gpu-sobliv-budget-w-kshark
wip-aedzl-final
wip-aedzl-revised
wip-arbit-deadline
wip-aux-tasks
wip-bbb
wip-bbb-prio-don
wip-better-break
wip-binary-heap
wip-budget
wip-color
wip-color-jlh
wip-d10-hz1000
wip-default-clustering
wip-dissipation-jerickso
wip-dissipation2-jerickso
wip-ecrts14-pgm
wip-edf-hsb
wip-edf-os
wip-edf-tie-break
wip-edzl-critique
wip-edzl-final
wip-edzl-revised
wip-events
wip-extra-debug
wip-fix-switch-jerickso
wip-fix3
wip-fmlp-dequeue
wip-ft-irq-flag
wip-gpu-cleanup
wip-gpu-interrupts
wip-gpu-rtas12
wip-gpu-rtss12
wip-gpu-rtss12-srp
wip-gpusync-merge
wip-ikglp
wip-k-fmlp
wip-kernel-coloring
wip-kernthreads
wip-klmirqd-to-aux
wip-kshark
wip-litmus-3.2
wip-litmus2011.2
wip-litmus3.0-2011.2
wip-master-2.6.33-rt
wip-mc
wip-mc-bipasa
wip-mc-jerickso
wip-mc2-cache-slack
wip-mcrit-mac
wip-merge-3.0
wip-merge-v3.0
wip-migration-affinity
wip-mmap-uncache
wip-modechange
wip-nested-locking
wip-omlp-gedf
wip-pai
wip-percore-lib
wip-performance
wip-pgm
wip-pgm-split
wip-pm-ovd
wip-prio-inh
wip-prioq-dgl
wip-refactored-gedf
wip-release-master-fix
wip-robust-tie-break
wip-rt-kshark
wip-rtas12-pgm
wip-semi-part
wip-semi-part-edfos-jerickso
wip-shared-lib
wip-shared-lib2
wip-shared-mem
wip-splitting-jerickso/*
* Copyright 2006 PathScale, Inc. All Rights Reserved.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef _LINUX_IO_H
#define _LINUX_IO_H
#include <linux/types.h>
#include <asm/io.h>
#include <asm/page.h>
struct
device
;
void
__iowrite32_copy
(
void
__iomem
*
to
,
const void
*
from
,
size_t
count
);
void
__iowrite64_copy
(
void
__iomem
*
to
,
const void
*
from
,
size_t
count
);
#ifdef CONFIG_MMU
int
ioremap_page_range
(
unsigned long
addr
,
unsigned long
end
,
phys_addr_t phys_addr
,
pgprot_t prot
);
#else
static
inline
int
ioremap_page_range
(
unsigned long
addr
,
unsigned long
end
,
phys_addr_t phys_addr
,
pgprot_t prot
)
{
return
0
;
}
#endif
/*
* Managed iomap interface
*/
#ifdef CONFIG_HAS_IOPORT
void
__iomem
*
devm_ioport_map
(
struct
device
*
dev
,
unsigned long
port
,
unsigned int
nr
);
void
devm_ioport_unmap
(
struct
device
*
dev
,
void
__iomem
*
addr
);
#else
static
inline
void
__iomem
*
devm_ioport_map
(
struct
device
*
dev
,
unsigned long
port
,
unsigned int
nr
)
{
return
NULL
;
}
static
inline
void
devm_ioport_unmap
(
struct
device
*
dev
,
void
__iomem
*
addr
)
{
}
#endif
void
__iomem
*
devm_ioremap
(
struct
device
*
dev
,
resource_size_t offset
,
unsigned long
size
);
void
__iomem
*
devm_ioremap_nocache
(
struct
device
*
dev
,
resource_size_t offset
,
unsigned long
size
);
void
devm_iounmap
(
struct
device
*
dev
,
void
__iomem
*
addr
);
int
check_signature
(
const
volatile
void
__iomem
*
io_addr
,
const unsigned char
*
signature
,
int
length
);
void
devm_ioremap_release
(
struct
device
*
dev
,
void
*
res
);
/*
* Some systems do not have legacy ISA devices.
* /dev/port is not a valid interface on these systems.
* So for those archs, <asm/io.h> should define the following symbol.
*/
#ifndef arch_has_dev_port
#define arch_has_dev_port() (1)
#endif
#endif
/* _LINUX_IO_H */