ARPDAS_QNX6 1.0
Functions | Variables
cache.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "subbusd_int.h"
#include "oui.h"
#include "nortlib.h"
Include dependency graph for cache.c:

Go to the source code of this file.

Functions

int sb_cache_write (unsigned short addr, unsigned short data)
int sb_cache_read (unsigned short addr, unsigned short *data)
static void process_range (char *txt, unsigned short *min, unsigned short *max)
void sb_cache_init (void)

Variables

static unsigned short hw_min_addr
static unsigned short hw_max_addr
static unsigned short sw_min_addr
static unsigned short sw_max_addr
static unsigned short * hwcache
static unsigned short * swcache
char * cache_hw_range
char * cache_sw_range

Function Documentation

static void process_range ( char *  txt,
unsigned short *  min,
unsigned short *  max 
) [static]

Definition at line 72 of file cache.c.

References nl_error.

Referenced by sb_cache_init().

Here is the caller graph for this function:

void sb_cache_init ( void  )

Definition at line 101 of file cache.c.

References cache_hw_range, cache_sw_range, hw_max_addr, hw_min_addr, hwcache, new_memory(), nl_error, process_range(), sw_max_addr, sw_min_addr, and swcache.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int sb_cache_read ( unsigned short  addr,
unsigned short *  data 
)

Definition at line 51 of file cache.c.

References hw_max_addr, hw_min_addr, hwcache, nl_error, sw_max_addr, sw_min_addr, and swcache.

Referenced by incoming_sbreq().

Here is the caller graph for this function:

int sb_cache_write ( unsigned short  addr,
unsigned short  data 
)

Definition at line 25 of file cache.c.

References hw_max_addr, hw_min_addr, hwcache, nl_error, sw_max_addr, sw_min_addr, and swcache.

Referenced by incoming_sbreq().

Here is the caller graph for this function:


Variable Documentation

Definition at line 18 of file cache.c.

Referenced by sb_cache_init().

Definition at line 18 of file cache.c.

Referenced by sb_cache_init().

unsigned short hw_max_addr

Definition at line 13 of file cache.c.

Referenced by sb_cache_init(), sb_cache_read(), and sb_cache_write().

unsigned short hw_min_addr [static]

Definition at line 13 of file cache.c.

Referenced by sb_cache_init(), sb_cache_read(), and sb_cache_write().

unsigned short* hwcache [static]

Definition at line 16 of file cache.c.

Referenced by sb_cache_init(), sb_cache_read(), and sb_cache_write().

unsigned short sw_max_addr

Definition at line 14 of file cache.c.

Referenced by sb_cache_init(), sb_cache_read(), and sb_cache_write().

unsigned short sw_min_addr [static]

Definition at line 14 of file cache.c.

Referenced by sb_cache_init(), sb_cache_read(), and sb_cache_write().

unsigned short * swcache

Definition at line 16 of file cache.c.

Referenced by sb_cache_init(), sb_cache_read(), and sb_cache_write().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines