Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / include / asm-cris / arch-v32 / mach-fs / arbiter.h
bloba2e0ec8faa7d616ec3c2f964a95ff05d093727eb
1 #ifndef _ASM_CRIS_ARCH_ARBITER_H
2 #define _ASM_CRIS_ARCH_ARBITER_H
4 #define EXT_REGION 0
5 #define INT_REGION 1
7 typedef void (watch_callback)(void);
9 enum {
10 arbiter_all_dmas = 0x3ff,
11 arbiter_cpu = 0xc00,
12 arbiter_all_clients = 0x3fff
15 enum {
16 arbiter_all_read = 0x55,
17 arbiter_all_write = 0xaa,
18 arbiter_all_accesses = 0xff
21 int crisv32_arbiter_allocate_bandwidth(int client, int region,
22 unsigned long bandwidth);
23 int crisv32_arbiter_watch(unsigned long start, unsigned long size,
24 unsigned long clients, unsigned long accesses,
25 watch_callback * cb);
26 int crisv32_arbiter_unwatch(int id);
28 #endif