diff options
author | Mikael Starvik <mikael.starvik@axis.com> | 2005-07-27 14:44:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:01 -0400 |
commit | 51533b615e605d86154ec1b4e585c8ca1b0b15b7 (patch) | |
tree | 4a6d7d8494d2017632d83624fb71b36031e0e7e5 /include/asm-cris/arch-v32/arbiter.h | |
parent | 5d01e6ce785884a5db5792cd2e5bb36fa82fe23c (diff) |
[PATCH] CRIS update: new subarchitecture v32
New CRIS sub architecture named v32.
From: Dave Jones <davej@redhat.com>
Fix swapped kmalloc args
Signed-off-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/arch-v32/arbiter.h')
-rw-r--r-- | include/asm-cris/arch-v32/arbiter.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/arbiter.h b/include/asm-cris/arch-v32/arbiter.h new file mode 100644 index 000000000000..dba3c285cacd --- /dev/null +++ b/include/asm-cris/arch-v32/arbiter.h | |||
@@ -0,0 +1,30 @@ | |||
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 | |||
7 | typedef void (watch_callback)(void); | ||
8 | |||
9 | enum | ||
10 | { | ||
11 | arbiter_all_dmas = 0x3ff, | ||
12 | arbiter_cpu = 0xc00, | ||
13 | arbiter_all_clients = 0x3fff | ||
14 | }; | ||
15 | |||
16 | enum | ||
17 | { | ||
18 | arbiter_all_read = 0x55, | ||
19 | arbiter_all_write = 0xaa, | ||
20 | arbiter_all_accesses = 0xff | ||
21 | }; | ||
22 | |||
23 | int crisv32_arbiter_allocate_bandwith(int client, int region, | ||
24 | unsigned long bandwidth); | ||
25 | int crisv32_arbiter_watch(unsigned long start, unsigned long size, | ||
26 | unsigned long clients, unsigned long accesses, | ||
27 | watch_callback* cb); | ||
28 | int crisv32_arbiter_unwatch(int id); | ||
29 | |||
30 | #endif | ||