Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / cris / include / arch-v32 / mach-fs / mach / arbiter.h
blobf9401a3de83c81bfe77ddb1ca9ae978619da2316
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_CRIS_ARCH_ARBITER_H
3 #define _ASM_CRIS_ARCH_ARBITER_H
5 #define EXT_REGION 0
6 #define INT_REGION 1
8 typedef void (watch_callback)(void);
10 enum {
11 arbiter_all_dmas = 0x3ff,
12 arbiter_cpu = 0xc00,
13 arbiter_all_clients = 0x3fff
16 enum {
17 arbiter_all_read = 0x55,
18 arbiter_all_write = 0xaa,
19 arbiter_all_accesses = 0xff
22 int crisv32_arbiter_allocate_bandwidth(int client, int region,
23 unsigned long bandwidth);
24 int crisv32_arbiter_watch(unsigned long start, unsigned long size,
25 unsigned long clients, unsigned long accesses,
26 watch_callback * cb);
27 int crisv32_arbiter_unwatch(int id);
29 #endif