
# format of platform specific mapping file:
#
# LIBRARY <Libname> 
# -- load library <libname> from SYMONHOME/platform/cfg/arch
#
# TABLE <tablename>
# <SunMC Prop>		<Picl Prop>	<formatting function>
# END
#
# CLASS <classname>
# <SunMC Prop>		<Picl Prop>	<formatting function>
# END
#
# for SunMC table or picl class <tablename> or <classname>, create
# a mapping from <SunMC Prop> to <Picl Prop>, optionally calling
# function <formatting function>, which must be located in the base
# library, or one of the libraries loaded using LIBRARY
#
# Either <Picl Prop> or <formatting function> may be NULL.  If
# <Picl Prop> is NULL, <formatting function> will be called with
# <SunMC Prop> as the argument.  If <formatting function> is NULL,
# no formatting function is called.

LIBRARY lib880fmt.so.1

TABLE system
OS			OS-Name		fmt_os_name
OS_version 		OS-Version	NULL
System_clock_frequency	clock-frequency	fmt_mhz
architecture		smArchitecture	NULL
hostname		HostName	NULL
machine			PlatformGroup	NULL
platform		PlatformName	fmt_platform_name
timestamp		NULL		fmt_ts
timestamp_raw		NULL		fmt_ts_raw
END

TABLE cpu-mem-module
num_cpus		smNumCpus	NULL
num_dimms		smNumDimms	NULL
status			smStatus	NULL
slot-name		smSlot		NULL
UNIX_Timestamp32	NULL		dak_fmt_map2
Fru_Description		NULL		dak_fmt_map2
Manufacture_Loc		NULL		dak_fmt_map2
Sun_Part_No		NULL		dak_fmt_map2
Sun_Serial_No		NULL		dak_fmt_map2
Vendor_Name		NULL		dak_fmt_map2
Initial_HW_Dash_Level	NULL		dak_fmt_map2
Initial_HW_Rev_Level	NULL 		dak_fmt_map2 
Fru_Shortname		NULL 		dak_fmt_map2
END

TABLE system
total_disks		NULL		fmt_count_disks
total_tape_devices 	NULL 		fmt_count_tapes
total_memory		NULL		fmt_count_mem
total_processors	NULL		fmt_count_cpus
END

TABLE dimm
fru			NULL		fmt_yes
module-size		Size		fmt_mb
socket-name		_location_Label	NULL
status			_i2c_State	NULL
UNIX_Timestamp32	NULL		dak_fmt_map1
Fru_Description		NULL		dak_fmt_map1
Manufacture_Loc		NULL		dak_fmt_map1
Sun_Part_No		NULL		dak_fmt_map1
Sun_Serial_No		NULL		dak_fmt_map1
Vendor_Name		NULL		dak_fmt_map1
Initial_HW_Dash_Level	NULL		dak_fmt_map1
Initial_HW_Rev_Level	NULL 		dak_fmt_map1 
Fru_Shortname		NULL 		dak_fmt_map1
END

TABLE generic-device
pathname_element	devfs-path	NULL
END

TABLE cpu-fans
status			State		NULL
speed			Fan-speed	NULL
END

TABLE power-supply 
fru			NULL		fmt_yes
state			_picl_State	NULL
UNIX_Timestamp32	NULL		dak_fmt_map3
Fru_Description		NULL		dak_fmt_map3
Manufacture_Loc		NULL		dak_fmt_map3
Sun_Part_No		NULL		dak_fmt_map3
Sun_Serial_No		NULL		dak_fmt_map3
Vendor_Name		NULL		dak_fmt_map3
Initial_HW_Dash_Level	NULL		dak_fmt_map3
Initial_HW_Rev_Level	NULL 		dak_fmt_map3 
Fru_Shortname		NULL 		dak_fmt_map3
END

TABLE io_device
disk_count		NULL		fmt_count_disks
network_count		NULL		fmt_count_networks
tape_count		NULL		fmt_count_tapes
instance		instance	fmt_instance
END

TABLE io_controller
clock-frequency		clock-frequency	fmt_mhz
upa-portid		portid		NULL
instance		instance	fmt_instance
END

TABLE disk
name			NULL		fmt_disk_name
fru		 	NULL		fmt_yes
instance		lun		NULL
device_type		_class	 	fmt_disk_type
END
 
TABLE network
ether			smEthAddr	NULL
inet			smInetAddr	NULL
symbol			smHostName	NULL
name			driver-name	fmt_netdev_name
END

TABLE keyswitch
position		State		NULL
END

TABLE rsc
fru			NULL		fmt_yes
UNIX_Timestamp32	NULL		dak_fmt_map3
Fru_Description		NULL		dak_fmt_map3
Manufacture_Loc		NULL		dak_fmt_map3
Sun_Part_No		NULL		dak_fmt_map3
Sun_Serial_No		NULL		dak_fmt_map3
Vendor_Name		NULL		dak_fmt_map3
Initial_HW_Dash_Level	NULL		dak_fmt_map3
Initial_HW_Rev_Level	NULL 		dak_fmt_map3 
Fru_Shortname		NULL 		dak_fmt_map3
END

TABLE fru-device
UNIX_Timestamp32	NULL		dak_fmt_map3
Fru_Description		NULL		dak_fmt_map3
Manufacture_Loc		NULL		dak_fmt_map3
Sun_Part_No		NULL		dak_fmt_map3
Sun_Serial_No		NULL		dak_fmt_map3
Vendor_Name		NULL		dak_fmt_map3
Initial_HW_Dash_Level	NULL		dak_fmt_map3
Initial_HW_Rev_Level	NULL 		dak_fmt_map3 
Fru_Shortname		NULL 		dak_fmt_map3
END

TABLE temperature-sensor
temp			Temperature		NULL
highwarn		HighWarningThreshold	NULL
lowwarn			LowWarningThreshold	NULL
highfail		HighShutdownThreshold	NULL
lowfail			LowShutdownThreshold	NULL
END

CLASS cpu
cpu-type		ProcessorType		NULL
model			binding-name		NULL
processor-id		ID			NULL
unit			UnitAddress		NULL
status			State			NULL
clock-frequency		clock-frequency		fmt_mhz
dcache-size		dcache-size		fmt_kb
ecache-size		ecache-size		fmt_kb
icache-size		icache-size		fmt_kb
fru			NULL			fmt_yes
temperature		_picl_Temperature0	NULL
temperature		_picl_Temperature1	NULL
END

CLASS led
state			State			NULL
led-num			NULL			fmt_lednum
END

CLASS gpio
state			Gpio-value		fmt_gpio
led-num			NULL			fmt_lednum
END
