Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
arbiter.c File Reference
#include <hwregs/reg_map.h>
#include <hwregs/reg_rdwr.h>
#include <hwregs/marb_defs.h>
#include <arbiter.h>
#include <hwregs/intr_vect.h>
#include <linux/interrupt.h>
#include <linux/signal.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <asm/irq_regs.h>

Go to the source code of this file.

Data Structures

struct  crisv32_watch_entry
 

Macros

#define NUMBER_OF_BP   4
 
#define NBR_OF_CLIENTS   14
 
#define NBR_OF_SLOTS   64
 
#define SDRAM_BANDWIDTH   100000000 /* Some kind of expected value */
 
#define INTMEM_BANDWIDTH   400000000
 
#define NBR_OF_REGIONS   2
 

Functions

 DEFINE_SPINLOCK (arbiter_lock)
 
int crisv32_arbiter_allocate_bandwidth (int client, int region, unsigned long bandwidth)
 
void crisv32_arbiter_deallocate_bandwidth (int client, int region)
 
int crisv32_arbiter_watch (unsigned long start, unsigned long size, unsigned long clients, unsigned long accesses, watch_callback *cb)
 
int crisv32_arbiter_unwatch (int id)
 
void show_registers (struct pt_regs *regs)
 

Variables

char _stext
 
char _etext
 

Macro Definition Documentation

#define INTMEM_BANDWIDTH   400000000

Definition at line 36 of file arbiter.c.

#define NBR_OF_CLIENTS   14

Definition at line 33 of file arbiter.c.

#define NBR_OF_REGIONS   2

Definition at line 37 of file arbiter.c.

#define NBR_OF_SLOTS   64

Definition at line 34 of file arbiter.c.

#define NUMBER_OF_BP   4

Definition at line 32 of file arbiter.c.

#define SDRAM_BANDWIDTH   100000000 /* Some kind of expected value */

Definition at line 35 of file arbiter.c.

Function Documentation

int crisv32_arbiter_allocate_bandwidth ( int  client,
int  region,
unsigned long  bandwidth 
)

Definition at line 200 of file arbiter.c.

void crisv32_arbiter_deallocate_bandwidth ( int  client,
int  region 
)

Definition at line 249 of file arbiter.c.

int crisv32_arbiter_unwatch ( int  id)

Definition at line 317 of file arbiter.c.

int crisv32_arbiter_watch ( unsigned long  start,
unsigned long  size,
unsigned long  clients,
unsigned long  accesses,
watch_callback cb 
)

Definition at line 263 of file arbiter.c.

DEFINE_SPINLOCK ( arbiter_lock  )
void show_registers ( struct pt_regs regs)

Definition at line 17 of file traps.c.

Variable Documentation

char _etext
char _stext