#ident "ide/IP30/cpu_diagcmds: $Revision 1.1$"
#
# cpu_diagcmds - IP30 CPU Diagnostic functions
#
# First column is the name
# Second column is the type:
#   STR for string
#   CMD for command
#   INT for integer constant
# Third column is value:
#   CMD value is the name of the function to call
#   STR value is the quoted string
#   INT value is the integer
# Fourth column is comments that appear in help display
# 
# Columns must be separated by exactly one TAB!
# 
# NOTE: this list starts with the minimum necessary;
#       the intention is to keep useless code *out*
#
# UTILITIES
#
help_mem	CMD	print_memory_diagram	Print memory diagram
resetcons	CMD	resetcons		Reset graphics console
emfail	CMD	emfail	Produces failure message
led	CMD	setled	Set led color
wait	CMD	wait	Wait for <CR> to continue (usage: wait [\"message\"])
ismp	CMD	ismp	Returns true on MP
slavecpu	CMD	slavecpu	Returns slave CPU valid if ismp is true
chg_volt	CMD	chg_volt	utility to do voltage margining
buffon	CMD	buffon	Turn on message buffering
buffoff	CMD	buffoff	Turn off message buffering
ttyprint	CMD	ttyprint
bootpon	CMD	bootpon
bootpoff	CMD	bootpoff
#

#
# PROCESSOR MODULE tests:
#
# cache tests: from IP30/cache.
dcache1	CMD	dcache_par	Data cache data parity test
icache1	CMD	icache_par	Instruction cache data parity test
icache2	CMD	icache		Instruction cache misc test
scache1	CMD	scache_ecc	Secondary cache misc test
scache2	CMD	scache		Secondary cache address and data test
# Cache Thrasher Tests (for MP bringup)
# ct	CMD	ct_bkend	Cache Thrasher Test
ct_bkend	CMD	cache_thrasher	Cache Thrasher back-end
fpu	CMD	fptest	Floating Point Unit test
lpackd	CMD	lpackd	LinPack tests
tlb	CMD	tlbtest	TLB
utlb	CMD	utlb_miss_exception	UTLB miss exception

#
# MEMORY TESTS: from IP30/mem and IP30/ecc
#
# this option is the original low dram test
ldram_bkend	CMD	low_memtest	Low DRAM test
lkh_bkend	CMD	khlow_drv	Knaizuk Hartmann Low DRAM test
memtest	CMD	memory_test	CPU memory test (arg is number between 0 and 9)
ecctest	CMD	ecc_test	ECC corner case memory testing
#
# HEART TESTS: from ../godzilla/heart
#
hr_regs	CMD	hr_regs	Heart register read-write test
#hr_rd	CMD	hr_read_reg	Heart read register utility (use spec address)
#hr_wr	CMD	hr_write_reg	Heart write register utility (use spec address)
hr_piuacc	CMD	hr_piu_acc	Heart PIU access test
hr_intr	CMD	hr_intr	Heart interrupt register test
hr_misc	CMD	hr_misc	Heart misc register test
hr_piowcr	CMD	hr_pio_wcr	Heart PIO widget access test
#hmem	CMD	heart_mem	Heart memory map test
#heart_byte	CMD	heart_byte	Heart uncached write to memory test
#
# XBOW TESTS: from ../godzilla/xbow
#
x_regs	CMD	x_regs	Xbow register read-write test
#x_reset	CMD	x_reset	Xbow status reset 
x_acc	CMD	x_acc	Xbow register access test
#hx_badllp	CMD	hx_badllp	Xbow/Heart bad LLP tests
#x_rd	CMD	x_read_reg	Xbow Read Register Utility (use spec address)
#x_wr	CMD	x_write_reg	Xbow Write Register Utility (use spec address)
fp1	CMD	dxb	Xtown card (frontplane) testing
#
# BRIDGE TESTS: from ../godzilla/bridge
#
br_regs	CMD	br_regs	Bridge register read-write test
br_ram	CMD	br_ram	Bridge internal/external RAM test
br_intr	CMD	br_intr	Bridge interrupt test (involving Heart)
#br_rd	CMD	br_read_reg	Bridge Read Register Utility (use spec address)
#br_wr	CMD	br_write_reg	Bridge Write Register Utility (use spec address)
br_err	CMD	br_err	Bridge error test 
#
# HEART/XBOW/BRIDGE TESTS: from ../godzilla/h_x_b
#
#hxb_savreg	CMD	hxb_save_regs	Heart/Xbow/Bridge save registers
#hxb_rstreg	CMD	hxb_rest_regs	Heart/Xbow/Bridge restore registers
#hxb_chkout	CMD	hxb_chkout	Heart/Xbow/Bridge Sanity Check Test
#hxb_reset	CMD	hxb_reset	Heart/Xbow/Bridge reset the ISR/cause
#hxb_status	CMD	hxb_status	Heart/Xbow/Bridge Status
#
# PCI Diags (Using IOC3 for now)
#
pci_cfgread	CMD	pci_cfg_read
pci_cfgwrite	CMD	pci_cfg_write
pci_mem	CMD	pci_mem
pci_sio	CMD	pci_sio
pci_intr	CMD	pci_intr
pci_par	CMD	pci_par
pci_par_lp	CMD	plp_external_loopback
pci_rtc	CMD	pci_rtc
#
# IOC3 TESTS (for IP30 bringup)
#
ioc3_regs	CMD	ioc3_regs	IOC3 register read-write test
ioc3_sram	CMD	ioc3_sram	IOC3 SSRAM test
# Ethernet
enet	CMD	enet_test	Enet registers tests
# duart Tests (for IP30 bringup)
duart_regs	CMD	duart_regs	IOC3 register read-write test
rtc_regs	CMD	rtc_regs	rtc_regs [-w]
#
scsi_test	CMD	ql_test		Qlogic SCSI chip test
scsi_regs	CMD	scsi_regs	register tests
#
# RAD TESTS:
rad_regs	CMD	RadCSpaceTest
rad_dma	CMD	RadStatusTest
rad_ram	CMD	RadRamTest
rad_all	CMD	RunAllRadTests
rad_all_cards	CMD	RunAllCardRadTests
is_lx	CMD	IsOctaneLx
#
#shoebox
shoebox_all	CMD	RunAllShoeboxTests
#
# GFX TESTS: impact (a.k.a Mardi-gras)
# all in mgras_field_diagcmds and mgras_diagcmds

# NIC commands
nic_check_basic	CMD	pon_nic
xtalk_nic_probe	CMD	xtalk_nic_probe
slave_dummy	CMD	slave_dummy
