~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/cris/include/arch-v32/mach-a3/mach/arbiter.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
        arbiter_all_dmas = 0x7fe,
 
11
        arbiter_cpu = 0x1800,
 
12
        arbiter_all_clients = 0x7fff
 
13
};
 
14
 
 
15
enum {
 
16
        arbiter_bar_all_clients = 0x1ff
 
17
};
 
18
 
 
19
enum {
 
20
        arbiter_all_read = 0x55,
 
21
        arbiter_all_write = 0xaa,
 
22
        arbiter_all_accesses = 0xff
 
23
};
 
24
 
 
25
#define MARB_CLIENTS(foo_cli, bar_cli) (((bar_cli) << 16) | (foo_cli))
 
26
 
 
27
int crisv32_arbiter_allocate_bandwidth(int client, int region,
 
28
                unsigned long bandwidth);
 
29
int crisv32_arbiter_watch(unsigned long start, unsigned long size,
 
30
                unsigned long clients, unsigned long accesses,
 
31
                watch_callback * cb);
 
32
int crisv32_arbiter_unwatch(int id);
 
33
 
 
34
#endif