⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 voyager.h

📁 linux 内核源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* Copyright (C) 1999,2001 * * Author: J.E.J.Bottomley@HansenPartnership.com * * Standard include definitions for the NCR Voyager system */#undef	VOYAGER_DEBUG#undef	VOYAGER_CAT_DEBUG#ifdef VOYAGER_DEBUG#define VDEBUG(x)	printk x#else#define VDEBUG(x)#endif/* There are three levels of voyager machine: 3,4 and 5. The rule is * if it's less than 3435 it's a Level 3 except for a 3360 which is * a level 4.  A 3435 or above is a Level 5 */#define VOYAGER_LEVEL5_AND_ABOVE	0x3435#define VOYAGER_LEVEL4			0x3360/* The L4 DINO ASIC */#define VOYAGER_DINO			0x43/* voyager ports in standard I/O space */#define VOYAGER_MC_SETUP	0x96#define	VOYAGER_CAT_CONFIG_PORT			0x97#	define VOYAGER_CAT_DESELECT		0xff#define VOYAGER_SSPB_RELOCATION_PORT		0x98/* Valid CAT controller commands *//* start instruction register cycle */#define VOYAGER_CAT_IRCYC			0x01/* start data register cycle */#define VOYAGER_CAT_DRCYC			0x02/* move to execute state */#define VOYAGER_CAT_RUN				0x0F/* end operation */#define VOYAGER_CAT_END				0x80/* hold in idle state */#define VOYAGER_CAT_HOLD			0x90/* single step an "intest" vector */#define VOYAGER_CAT_STEP			0xE0/* return cat controller to CLEMSON mode */#define VOYAGER_CAT_CLEMSON			0xFF/* the default cat command header */#define VOYAGER_CAT_HEADER			0x7F/* the range of possible CAT module ids in the system */#define VOYAGER_MIN_MODULE			0x10#define VOYAGER_MAX_MODULE			0x1f/* The voyager registers per asic */#define VOYAGER_ASIC_ID_REG			0x00#define VOYAGER_ASIC_TYPE_REG			0x01/* the sub address registers can be made auto incrementing on reads */#define VOYAGER_AUTO_INC_REG			0x02#	define VOYAGER_AUTO_INC			0x04#	define VOYAGER_NO_AUTO_INC		0xfb#define VOYAGER_SUBADDRDATA			0x03#define VOYAGER_SCANPATH			0x05#	define VOYAGER_CONNECT_ASIC		0x01#	define VOYAGER_DISCONNECT_ASIC		0xfe#define VOYAGER_SUBADDRLO			0x06#define VOYAGER_SUBADDRHI			0x07#define VOYAGER_SUBMODSELECT			0x08#define VOYAGER_SUBMODPRESENT			0x09#define VOYAGER_SUBADDR_LO			0xff#define VOYAGER_SUBADDR_HI			0xffff/* the maximum size of a scan path -- used to form instructions */#define VOYAGER_MAX_SCAN_PATH			0x100/* the biggest possible register size (in bytes) */#define VOYAGER_MAX_REG_SIZE			4/* Total number of possible modules (including submodules) */#define VOYAGER_MAX_MODULES			16/* Largest number of asics per module */#define VOYAGER_MAX_ASICS_PER_MODULE		7/* the CAT asic of each module is always the first one */#define VOYAGER_CAT_ID				0#define VOYAGER_PSI				0x1a/* voyager instruction operations and registers */#define VOYAGER_READ_CONFIG			0x1#define VOYAGER_WRITE_CONFIG			0x2#define VOYAGER_BYPASS				0xfftypedef struct voyager_asic {	__u8	asic_addr;	/* ASIC address; Level 4 */	__u8	asic_type;      /* ASIC type */	__u8	asic_id;	/* ASIC id */	__u8	jtag_id[4];	/* JTAG id */	__u8	asic_location;	/* Location within scan path; start w/ 0 */	__u8	bit_location;	/* Location within bit stream; start w/ 0 */	__u8	ireg_length;	/* Instruction register length */	__u16	subaddr;	/* Amount of sub address space */	struct voyager_asic *next;	/* Next asic in linked list */} voyager_asic_t;typedef struct voyager_module {	__u8	module_addr;		/* Module address */	__u8	scan_path_connected;	/* Scan path connected */	__u16   ee_size;		/* Size of the EEPROM */	__u16   num_asics;		/* Number of Asics */	__u16   inst_bits;		/* Instruction bits in the scan path */	__u16   largest_reg;		/* Largest register in the scan path */	__u16   smallest_reg;		/* Smallest register in the scan path */	voyager_asic_t   *asic;		/* First ASIC in scan path (CAT_I) */	struct   voyager_module *submodule;	/* Submodule pointer */ 	struct   voyager_module *next;		/* Next module in linked list */} voyager_module_t;typedef struct voyager_eeprom_hdr {	 __u8  module_id[4];	 __u8  version_id;	 __u8  config_id;	 __u16 boundry_id;	/* boundary scan id */	 __u16 ee_size;		/* size of EEPROM */	 __u8  assembly[11];	/* assembly # */	 __u8  assembly_rev;	/* assembly rev */	 __u8  tracer[4];	/* tracer number */	 __u16 assembly_cksum;	/* asm checksum */	 __u16 power_consump;	/* pwr requirements */	 __u16 num_asics;	/* number of asics */	 __u16 bist_time;	/* min. bist time */	 __u16 err_log_offset;	/* error log offset */	 __u16 scan_path_offset;/* scan path offset */	 __u16 cct_offset;	 __u16 log_length;	/* length of err log */	 __u16 xsum_end;	/* offset to end of							   checksum */	 __u8  reserved[4];	 __u8  sflag;		/* starting sentinal */	 __u8  part_number[13];	/* prom part number */	 __u8  version[10];	/* version number */	 __u8  signature[8];	 __u16 eeprom_chksum;	 __u32  data_stamp_offset;	 __u8  eflag ;		 /* ending sentinal */} __attribute__((packed)) voyager_eprom_hdr_t;#define VOYAGER_EPROM_SIZE_OFFSET   ((__u16)(&(((voyager_eprom_hdr_t *)0)->ee_size)))#define VOYAGER_XSUM_END_OFFSET		0x2a/* the following three definitions are for internal table layouts * in the module EPROMs.  We really only care about the IDs and * offsets */typedef struct voyager_sp_table {	__u8 asic_id;	__u8 bypass_flag;	__u16 asic_data_offset;	__u16 config_data_offset;} __attribute__((packed)) voyager_sp_table_t;typedef struct voyager_jtag_table {	__u8 icode[4];	__u8 runbist[4];	__u8 intest[4];	__u8 samp_preld[4];	__u8 ireg_len;} __attribute__((packed)) voyager_jtt_t;typedef struct voyager_asic_data_table {	__u8 jtag_id[4];	__u16 length_bsr;	__u16 length_bist_reg;	__u32 bist_clk;	__u16 subaddr_bits;	__u16 seed_bits;	__u16 sig_bits;	__u16 jtag_offset;} __attribute__((packed)) voyager_at_t;/* Voyager Interrupt Controller (VIC) registers *//* Base to add to Cross Processor Interrupts (CPIs) when triggering * the CPU IRQ line *//* register defines for the WCBICs (one per processor) */#define VOYAGER_WCBIC0	0x41		/* bus A node P1 processor 0 */#define VOYAGER_WCBIC1	0x49		/* bus A node P1 processor 1 */#define VOYAGER_WCBIC2	0x51		/* bus A node P2 processor 0 */#define VOYAGER_WCBIC3	0x59		/* bus A node P2 processor 1 */#define VOYAGER_WCBIC4	0x61		/* bus B node P1 processor 0 */#define VOYAGER_WCBIC5	0x69		/* bus B node P1 processor 1 */#define VOYAGER_WCBIC6	0x71		/* bus B node P2 processor 0 */#define VOYAGER_WCBIC7	0x79		/* bus B node P2 processor 1 *//* top of memory registers */#define VOYAGER_WCBIC_TOM_L	0x4#define VOYAGER_WCBIC_TOM_H	0x5/* register defines for Voyager Memory Contol (VMC)  * these are present on L4 machines only */#define	VOYAGER_VMC1		0x81#define VOYAGER_VMC2		0x91#define VOYAGER_VMC3		0xa1#define VOYAGER_VMC4		0xb1/* VMC Ports */#define VOYAGER_VMC_MEMORY_SETUP	0x9#	define VMC_Interleaving		0x01#	define VMC_4Way			0x02#	define VMC_EvenCacheLines	0x04#	define VMC_HighLine		0x08#	define VMC_Start0_Enable	0x20#	define VMC_Start1_Enable	0x40#	define VMC_Vremap		0x80#define VOYAGER_VMC_BANK_DENSITY	0xa#	define	VMC_BANK_EMPTY		0#	define	VMC_BANK_4MB		1#	define	VMC_BANK_16MB		2#	define	VMC_BANK_64MB		3#	define	VMC_BANK0_MASK		0x03#	define	VMC_BANK1_MASK		0x0C#	define	VMC_BANK2_MASK		0x30#	define	VMC_BANK3_MASK		0xC0/* Magellan Memory Controller (MMC) defines - present on L5 */#define VOYAGER_MMC_ASIC_ID		1/* the two memory modules corresponding to memory cards in the system */#define VOYAGER_MMC_MEMORY0_MODULE	0x14#define VOYAGER_MMC_MEMORY1_MODULE	0x15/* the Magellan Memory Address (MMA) defines */#define VOYAGER_MMA_ASIC_ID		2/* Submodule number for the Quad Baseboard */#define VOYAGER_QUAD_BASEBOARD		1/* ASIC defines for the Quad Baseboard */#define VOYAGER_QUAD_QDATA0		1#define VOYAGER_QUAD_QDATA1		2#define VOYAGER_QUAD_QABC		3/* Useful areas in extended CMOS */#define VOYAGER_PROCESSOR_PRESENT_MASK	0x88a#define VOYAGER_MEMORY_CLICKMAP		0xa23#define VOYAGER_DUMP_LOCATION		0xb1a/* SUS In Control bit - used to tell SUS that we don't need to be * babysat anymore */#define VOYAGER_SUS_IN_CONTROL_PORT	0x3ff#	define VOYAGER_IN_CONTROL_FLAG	0x80/* Voyager PSI defines */#define VOYAGER_PSI_STATUS_REG		0x08#	define PSI_DC_FAIL		0x01#	define PSI_MON			0x02#	define PSI_FAULT		0x04#	define PSI_ALARM		0x08

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -