ARPDAS_QNX6 1.0
|
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "subbusd_int.h"
#include "oui.h"
#include "nortlib.h"
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 |
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().
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().
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().
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().
char* cache_hw_range |
Definition at line 18 of file cache.c.
Referenced by sb_cache_init().
char * cache_sw_range |
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().