aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-cris/arch-v32/mach-fs/arbiter.h
diff options
context:
space:
mode:
authorJesper Nilsson <jespern@stork.se.axis.com>2007-11-29 11:21:59 -0500
committerJesper Nilsson <jesper.nilsson@axis.com>2008-02-08 05:06:23 -0500
commit58d083192825c5fbd46fa0b1ff4d1ecc9118b692 (patch)
tree3bd39bf385afe376272d4769c0af321d6e8ed992 /include/asm-cris/arch-v32/mach-fs/arbiter.h
parent035e111f9a9b29843bc899f03d56f19d94bebb53 (diff)
CRIS v32: Add hardware dependent include files and defconfigs for ETRAX FS and ARTPEC-3 chips.
The header files describe the hardware registers available in both these chips, note that most of this documentation is automatically generated from the hardware implementation.
Diffstat (limited to 'include/asm-cris/arch-v32/mach-fs/arbiter.h')
-rw-r--r--include/asm-cris/arch-v32/mach-fs/arbiter.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/mach-fs/arbiter.h b/include/asm-cris/arch-v32/mach-fs/arbiter.h
new file mode 100644
index 000000000000..a2e0ec8faa7d
--- /dev/null
+++ b/include/asm-cris/arch-v32/mach-fs/arbiter.h
@@ -0,0 +1,28 @@
1#ifndef _ASM_CRIS_ARCH_ARBITER_H
2#define _ASM_CRIS_ARCH_ARBITER_H
3
4#define EXT_REGION 0
5#define INT_REGION 1
6
7typedef void (watch_callback)(void);
8
9enum {
10 arbiter_all_dmas = 0x3ff,
11 arbiter_cpu = 0xc00,
12 arbiter_all_clients = 0x3fff
13};
14
15enum {
16 arbiter_all_read = 0x55,
17 arbiter_all_write = 0xaa,
18 arbiter_all_accesses = 0xff
19};
20
21int crisv32_arbiter_allocate_bandwidth(int client, int region,
22 unsigned long bandwidth);
23int crisv32_arbiter_watch(unsigned long start, unsigned long size,
24 unsigned long clients, unsigned long accesses,
25 watch_callback * cb);
26int crisv32_arbiter_unwatch(int id);
27
28#endif