License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[sfrench/cifs-2.6.git] / arch / cris / include / arch-v32 / mach-fs / mach / arbiter.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_CRIS_ARCH_ARBITER_H
3 #define _ASM_CRIS_ARCH_ARBITER_H
4
5 #define EXT_REGION 0
6 #define INT_REGION 1
7
8 typedef void (watch_callback)(void);
9
10 enum {
11         arbiter_all_dmas = 0x3ff,
12         arbiter_cpu = 0xc00,
13         arbiter_all_clients = 0x3fff
14 };
15
16 enum {
17         arbiter_all_read = 0x55,
18         arbiter_all_write = 0xaa,
19         arbiter_all_accesses = 0xff
20 };
21
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);
28
29 #endif