/*-------------------------------------*/
|
/*-------------------------------------*/
|
/* cntrltbl.c */
|
/* cntrltbl.c */
|
/* Last change : 7.10.94 */
|
/* Last change : 7.10.94 */
|
/*-------------------------------------*/
|
/*-------------------------------------*/
|
/*
|
/*
|
* $Id: cntrltbl.c,v 1.2 2001-09-27 11:59:59 chris Exp $
|
* $Id: cntrltbl.c,v 1.2 2001-09-27 11:59:59 chris Exp $
|
*/
|
*/
|
|
|
#include "i960RP.h"
|
#include "i960RP.h"
|
#include "cntrltbl.h"
|
#include "cntrltbl.h"
|
/*-------------------------------------*/
|
/*-------------------------------------*/
|
/* Control Table.
|
/* Control Table.
|
*/
|
*/
|
/* Interrupt Map Registers Initial.
|
/* Interrupt Map Registers Initial.
|
*/
|
*/
|
#define IMAP0 0x4321
|
#define IMAP0 0x4321
|
#define IMAP1 0x8765
|
#define IMAP1 0x8765
|
#define IMAP2 0xA90000
|
#define IMAP2 0xA90000
|
#define ICON (VECTOR_CACHE | MSK_UNCHNG | I_ENABLE)
|
#define ICON (VECTOR_CACHE | MSK_UNCHNG | I_ENABLE)
|
|
|
|
|
/* Bus configuration */
|
/* Bus configuration */
|
#define RP_CONFIG_REGS I960RP_BUS_WIDTH_32
|
#define RP_CONFIG_REGS I960RP_BUS_WIDTH_32
|
#define FLASH I960RP_BUS_WIDTH_8
|
#define FLASH I960RP_BUS_WIDTH_8
|
#define DRAM I960RP_BUS_WIDTH_32
|
#define DRAM I960RP_BUS_WIDTH_32
|
#define UART_LED I960RP_BUS_WIDTH_8
|
#define UART_LED I960RP_BUS_WIDTH_8
|
#define DEFAULT I960RP_BUS_WIDTH_32
|
#define DEFAULT I960RP_BUS_WIDTH_32
|
|
|
/* Region Configuration */
|
/* Region Configuration */
|
#define REGION_0_CONFIG RP_CONFIG_REGS
|
#define REGION_0_CONFIG RP_CONFIG_REGS
|
#define REGION_2_CONFIG DEFAULT
|
#define REGION_2_CONFIG DEFAULT
|
#define REGION_4_CONFIG DEFAULT
|
#define REGION_4_CONFIG DEFAULT
|
#define REGION_6_CONFIG DEFAULT
|
#define REGION_6_CONFIG DEFAULT
|
#define REGION_8_CONFIG DEFAULT
|
#define REGION_8_CONFIG DEFAULT
|
#define REGION_A_CONFIG DRAM
|
#define REGION_A_CONFIG DRAM
|
#define REGION_C_CONFIG UART_LED
|
#define REGION_C_CONFIG UART_LED
|
|
|
#define REGION_E_CONFIG DEFAULT
|
#define REGION_E_CONFIG DEFAULT
|
#define REGION_BOOT_CONFIG DRAM
|
#define REGION_BOOT_CONFIG DRAM
|
|
|
/* Trace Control Initial. */
|
/* Trace Control Initial. */
|
#define TC 0
|
#define TC 0
|
|
|
/*Bus Control Initial value */
|
/*Bus Control Initial value */
|
#define BCON CONF_TBL_VALID
|
#define BCON CONF_TBL_VALID
|
|
|
|
|
|
|
ControlTblEntry controlTbl[] = {
|
ControlTblEntry controlTbl[] = {
|
/* --group 0 -- */
|
/* --group 0 -- */
|
0,
|
0,
|
0,
|
0,
|
0,
|
0,
|
0,
|
0,
|
/* --group 1 -- */
|
/* --group 1 -- */
|
IMAP0,
|
IMAP0,
|
IMAP1,
|
IMAP1,
|
IMAP2,
|
IMAP2,
|
ICON,
|
ICON,
|
/* --group 2 -- */
|
/* --group 2 -- */
|
REGION_0_CONFIG,
|
REGION_0_CONFIG,
|
0,
|
0,
|
REGION_2_CONFIG,
|
REGION_2_CONFIG,
|
0,
|
0,
|
/* --group 3 -- */
|
/* --group 3 -- */
|
REGION_4_CONFIG,
|
REGION_4_CONFIG,
|
0,
|
0,
|
REGION_6_CONFIG,
|
REGION_6_CONFIG,
|
0,
|
0,
|
/* --group 4 -- */
|
/* --group 4 -- */
|
REGION_8_CONFIG,
|
REGION_8_CONFIG,
|
0,
|
0,
|
REGION_A_CONFIG,
|
REGION_A_CONFIG,
|
0,
|
0,
|
/* --group 5 -- */
|
/* --group 5 -- */
|
REGION_C_CONFIG,
|
REGION_C_CONFIG,
|
0,
|
0,
|
REGION_BOOT_CONFIG,
|
REGION_BOOT_CONFIG,
|
0,
|
0,
|
/* --group 6 -- */
|
/* --group 6 -- */
|
0, /* Reserved */
|
0, /* Reserved */
|
0,
|
0,
|
TC,
|
TC,
|
BCON
|
BCON
|
};
|
};
|
/*-------------*/
|
/*-------------*/
|
/* End of file */
|
/* End of file */
|
/*-------------*/
|
/*-------------*/
|
|
|
|
|