linux/arch/cris/include/arch-v32/mach-a3/mach/arbiter.h
<<
>>
Prefs
   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
   8typedef void (watch_callback)(void);
   9
  10enum {
  11        arbiter_all_dmas = 0x7fe,
  12        arbiter_cpu = 0x1800,
  13        arbiter_all_clients = 0x7fff
  14};
  15
  16enum {
  17        arbiter_bar_all_clients = 0x1ff
  18};
  19
  20enum {
  21        arbiter_all_read = 0x55,
  22        arbiter_all_write = 0xaa,
  23        arbiter_all_accesses = 0xff
  24};
  25
  26#define MARB_CLIENTS(foo_cli, bar_cli) (((bar_cli) << 16) | (foo_cli))
  27
  28int crisv32_arbiter_allocate_bandwidth(int client, int region,
  29                unsigned long bandwidth);
  30int crisv32_arbiter_watch(unsigned long start, unsigned long size,
  31                unsigned long clients, unsigned long accesses,
  32                watch_callback * cb);
  33int crisv32_arbiter_unwatch(int id);
  34
  35#endif
  36