diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/mrwCecChips.xsl | 73 | ||||
-rw-r--r-- | xslt/mrwCentVRDs.xsl | 67 | ||||
-rw-r--r-- | xslt/mrwChipIDs.xsl | 69 | ||||
-rw-r--r-- | xslt/mrwDMIBusses.xsl | 79 | ||||
-rw-r--r-- | xslt/mrwFSIBusses.xsl | 92 | ||||
-rw-r--r-- | xslt/mrwI2CBusses.xsl | 335 | ||||
-rw-r--r-- | xslt/mrwMemoryBusses.xsl | 100 | ||||
-rw-r--r-- | xslt/mrwMruIds.xsl | 105 | ||||
-rw-r--r-- | xslt/mrwPCIEBusses.xsl | 328 | ||||
-rw-r--r-- | xslt/mrwPowerBusses.xsl | 191 | ||||
-rw-r--r-- | xslt/mrwTargets.xsl | 83 |
11 files changed, 1522 insertions, 0 deletions
diff --git a/xslt/mrwCecChips.xsl b/xslt/mrwCecChips.xsl new file mode 100644 index 0000000..68a07fe --- /dev/null +++ b/xslt/mrwCecChips.xsl @@ -0,0 +1,73 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwCecChips.xsl $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwpaths="http://w3.ibm.com/stg/power-firmware/schema/mrwpaths" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwpaths" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>CEC Chip Information</title> + </head> + <body> + <h1>CEC Chip Information</h1> + <br/> + <br/> + <table border="3" cellpadding ="5"> + <tr> + <th>Target</th> + <th>Instance Path</th> + <th>Scom Path</th> + <th>Scan Path</th> + <th>Mailbox Path</th> + </tr> + + <xsl:for-each select="mrwpaths:chips/mrwpaths:chip"> + <tr> + <td><xsl:value-of select="mrwpaths:target/mrwpaths:name"/>:n<xsl:value-of select="mrwpaths:target/mrwpaths:node"/>:p<xsl:value-of select="mrwpaths:target/mrwpaths:position"/></td> + <td><xsl:value-of select="mrwpaths:instance-path"/></td> + <td><xsl:value-of select="mrwpaths:scom-path"/></td> + <td><xsl:value-of select="mrwpaths:scan-path"/></td> + <td><xsl:value-of select="mrwpaths:mailbox-path"/></td> + </tr> + </xsl:for-each> + </table> + + <br/><br/> + </body> + + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwCentVRDs.xsl b/xslt/mrwCentVRDs.xsl new file mode 100644 index 0000000..621d27b --- /dev/null +++ b/xslt/mrwCentVRDs.xsl @@ -0,0 +1,67 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwCentVRDs.xml $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwcvc="http://w3.ibm.com/stg/power-firmware/schema/mrwcvc" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwcvc" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>Centaur VMEM Regulators</title> + </head> + <body> + <h1>Centaur VMEM Regulators</h1> + <br/> + <br/> + + <table border="3" cellpadding="5"> + <tr> + <th>Target</th> + <th>Centaur</th> + <th>Regulator</th> + </tr> + <xsl:for-each select="mrwcvc:centaur-vrd-connections/mrwcvc:centaur-vrd-connection"> + <tr> + <td>n<xsl:value-of select="mrwcvc:centaur/mrwcvc:target/mrwcvc:node"/>:p<xsl:value-of select="mrwcvc:centaur/mrwcvc:target/mrwcvc:position"/></td> + <td><xsl:value-of select="mrwcvc:centaur/mrwcvc:instance-path"/></td> + <td><xsl:value-of select="mrwcvc:vrd/mrwcvc:instance-path"/></td> + </tr> + </xsl:for-each> + </table> + <br/><br/> + </body> + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwChipIDs.xsl b/xslt/mrwChipIDs.xsl new file mode 100644 index 0000000..0eb17ed --- /dev/null +++ b/xslt/mrwChipIDs.xsl @@ -0,0 +1,69 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwChipIDs.xsl $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwid="http://w3.ibm.com/stg/power-firmware/schema/mrwid" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwid" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>Processor Logical Chip IDs</title> + </head> + <body> + <h1>Processor Logical Chip IDs</h1> + <br/> + <br/> + <table border="3" cellpadding="5"> + <tr> + <th>Logical Node</th> + <th>Logical Position</th> + <th>Target</th> + <th>Instance Path</th> + </tr> + <xsl:for-each select="mrwid:chip-ids/mrwid:chip-id"> + <tr> + <td><xsl:value-of select="mrwid:node"/></td> + <td><xsl:value-of select="mrwid:position"/></td> + <td>n<xsl:value-of select="mrwid:target/mrwid:node"/>:p<xsl:value-of select="mrwid:target/mrwid:position"/></td> + <td><xsl:value-of select="mrwid:instance-path"/></td> + </tr> + </xsl:for-each> + </table> + <br/><br/> + </body> + + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwDMIBusses.xsl b/xslt/mrwDMIBusses.xsl new file mode 100644 index 0000000..c2fddda --- /dev/null +++ b/xslt/mrwDMIBusses.xsl @@ -0,0 +1,79 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwDMIBusses.xml $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwdmi="http://w3.ibm.com/stg/power-firmware/schema/mrwdmi" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwdmi" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>DMI Bus Swap Information</title> + </head> + <body> + <h1>DMI Bus Swap Information</h1> + <br/> + <br/> + + <table border="3" cellpadding="5"> + <tr> + <th>MCS</th> + <th>Target</th> + <th>Centaur</th> + <th>Target</th> + <th>Master Chip TX_MSBSWAP (Downstream Dir)</th> + <th>Slave Chip TX_MSBSWAP (Upstream Dir)</th> + <th>Master Chip TX_LANE_INVERT (Downstream Dir)</th> + <th>Slave Chip TX_LANE_INVERT (Upstream Dir)</th> + <th>MCS Refclock Enable Mapping (DMI_REFCLOCK_SWIZZLE)</th> + </tr> + <xsl:for-each select="mrwdmi:dmi-busses/mrwdmi:dmi-bus"> + <tr> + <td><xsl:value-of select="mrwdmi:mcs/mrwdmi:instance-path"/></td> + <td>n<xsl:value-of select="mrwdmi:mcs/mrwdmi:target/mrwdmi:node"/>:p<xsl:value-of select="mrwdmi:mcs/mrwdmi:target/mrwdmi:position"/>:mcs<xsl:value-of select="mrwdmi:mcs/mrwdmi:target/mrwdmi:chipUnit"/></td> + <td><xsl:value-of select="mrwdmi:centaur/mrwdmi:instance-path"/></td> + <td>n<xsl:value-of select="mrwdmi:centaur/mrwdmi:target/mrwdmi:node"/>:p<xsl:value-of select="mrwdmi:centaur/mrwdmi:target/mrwdmi:position"/></td> + <td><xsl:value-of select="mrwdmi:tx-msb-lsb-swap"/></td> + <td><xsl:value-of select="mrwdmi:rx-msb-lsb-swap"/></td> + <td><xsl:value-of select="mrwdmi:downstream-n-p-lane-swap-mask"/></td> + <td><xsl:value-of select="mrwdmi:upstream-n-p-lane-swap-mask"/></td> + <td><xsl:value-of select="mrwdmi:mcs-refclock-enable-mapping"/></td> + </tr> + </xsl:for-each> + </table> + <br/><br/> + </body> + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwFSIBusses.xsl b/xslt/mrwFSIBusses.xsl new file mode 100644 index 0000000..b322ad0 --- /dev/null +++ b/xslt/mrwFSIBusses.xsl @@ -0,0 +1,92 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwFSIBusses.xsl $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwfsi="http://w3.ibm.com/stg/power-firmware/schema/mrwfsi" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwfsi" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>FSI Connections</title> + </head> + <body> + <h1>FSI Connections</h1> + <br/> + <br/> + <table border="3" cellpadding="5"> + <tr> + <th>Master</th> + <th>Target</th> + <th>Type</th> + <th>Engine</th> + <th>Link</th> + <th>Slave</th> + <th>Port</th> + <th>Target</th> + </tr> + <xsl:for-each select="mrwfsi:fsi-busses/mrwfsi:fsi-bus"> + <tr> + <td><xsl:value-of select="mrwfsi:master/mrwfsi:instance-path"/></td> + + <xsl:choose> <!-- master may not have a target if an FSP --> + <xsl:when test="mrwfsi:master/mrwfsi:target"> + <td>n<xsl:value-of select="mrwfsi:master/mrwfsi:target/mrwfsi:node"/>:p<xsl:value-of select="mrwfsi:master/mrwfsi:target/mrwfsi:position"/></td> + </xsl:when> + <xsl:otherwise> + <td>na</td> + </xsl:otherwise> + </xsl:choose> + <td><xsl:value-of select="mrwfsi:master/mrwfsi:type"/></td> + <td><xsl:value-of select="mrwfsi:master/mrwfsi:engine"/></td> + <td><xsl:value-of select="mrwfsi:master/mrwfsi:link"/></td> + <td><xsl:value-of select="mrwfsi:slave/mrwfsi:instance-path"/></td> + <td><xsl:value-of select="mrwfsi:slave/mrwfsi:port"/></td> + <xsl:choose> <!-- slave may not have a target if a DPSS --> + <xsl:when test="mrwfsi:slave/mrwfsi:target"> + <td>n<xsl:value-of select="mrwfsi:slave/mrwfsi:target/mrwfsi:node"/>:p<xsl:value-of select="mrwfsi:slave/mrwfsi:target/mrwfsi:position"/></td> + </xsl:when> + <xsl:otherwise> + <td>na</td> + </xsl:otherwise> + </xsl:choose> + </tr> + </xsl:for-each> + </table> + <br/><br/> + </body> + + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwI2CBusses.xsl b/xslt/mrwI2CBusses.xsl new file mode 100644 index 0000000..95f0db9 --- /dev/null +++ b/xslt/mrwI2CBusses.xsl @@ -0,0 +1,335 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwI2CBusses.xml $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwi2c="http://w3.ibm.com/stg/power-firmware/schema/mrwi2c" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwi2c" + xmlns:ex="http://exslt.org/dates-and-times" extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>I2C Devices</title> + </head> + <body> + <h1>I2C Devices</h1> + <br/> + <br/> + + + <!-- //////////////////////////////////////////////////////////////////// --> + <!-- The summary table, which will point to individual places down below --> + + + <table border="3" cellpadding="5"> + <tr> + <th>I2C Slave</th> + <th>I2C Master</th> + <th>Engine</th> + <th>Port</th> + <th>Address</th> + <th>Details</th> + </tr> + <xsl:for-each select="mrwi2c:i2c-devices/mrwi2c:i2c-device"> + <xsl:variable name="label" select="0"></xsl:variable> + <tr> + <td><xsl:value-of select="mrwi2c:instance-path"/> + <xsl:if test="mrwi2c:restrict-to-variation-id and mrwi2c:restrict-to-variation-id != ''"> + <br/>Restrict-to: <xsl:value-of select="mrwi2c:restrict-to-variation-id"/> + </xsl:if> + </td> + <td><xsl:value-of select="mrwi2c:i2c-master/mrwi2c:instance-path"/></td> + <td><xsl:value-of select="mrwi2c:i2c-master/mrwi2c:i2c-engine"/></td> + <td><xsl:value-of select="mrwi2c:i2c-master/mrwi2c:i2c-port"/></td> + <td><xsl:value-of select="mrwi2c:address"/></td> + <!-- Use the entry-num element to link to the detailed table below --> + <td><xsl:text disable-output-escaping="yes"><a href="#i2c</xsl:text><xsl:value-of select="mrwi2c:entry-num"></xsl:value-of><xsl:text disable-output-escaping="yes">"></xsl:text>Details<xsl:text disable-output-escaping="yes"></a></xsl:text></td> + </tr> + </xsl:for-each> + </table> + <br/><br/><br/><br/> + + <!-- //////////////////////////////////////////////////////////////////// --> + <!-- The detailed tables --> + + <xsl:for-each select="mrwi2c:i2c-devices/mrwi2c:i2c-device"> + <xsl:text disable-output-escaping="yes"><a name="i2c</xsl:text><xsl:value-of select="mrwi2c:entry-num"/><xsl:text disable-output-escaping="yes">"></a></xsl:text> + <table border="3" cellpadding="5" width="1000"> + <tr> + <td colspan="2"> + <b> + <center>I2C Device</center> + </b> + </td> + </tr> + <tr> + <td> + <b>Device</b> + </td> + <td> + <xsl:value-of select="mrwi2c:part-id"/> + </td> + </tr> + <tr> + <td> + <b>Part Type</b> + </td> + <td> + <xsl:value-of select="mrwi2c:part-type"/> + </td> + </tr> + <tr> + <td> + <b>Card</b> + </td> + <td> + <xsl:value-of select="mrwi2c:card-id"/> (<xsl:value-of select="mrwi2c:card-location-code"/>) + </td> + </tr> + <tr> + <td> + <b>Instance Path</b> + </td> + <td> + <xsl:value-of select="mrwi2c:instance-path"/> + </td> + </tr> + <tr> + <td> + <b>Address</b> + </td> + <td> + <xsl:value-of select="mrwi2c:address"/> + </td> + </tr> + <tr> + <td> + <b>Speed</b> + </td> + <td> + <xsl:value-of select="mrwi2c:speed"/> + </td> + </tr> + + <xsl:choose> + <xsl:when test="mrwi2c:content-type"> + <tr> + <td><b>Content</b></td> + <td><xsl:value-of select="mrwi2c:content-type"/></td> + </tr> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when test="mrwi2c:size"> + <tr> + <td><b>Device Size</b></td> + <td><xsl:value-of select="mrwi2c:size"/></td> + </tr> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates select="mrwi2c:target"/> <!-- may not be present --> + <tr> + <td colspan="2"> + <center> + <b>I2C Master</b> + </center> + </td> + </tr> + <tr> + <td> + <b>Device</b> + </td> + <td> + <xsl:value-of select="mrwi2c:i2c-master/mrwi2c:part-id"/> + </td> + </tr> + <tr> + <td><b>I2C Engine</b></td> + <td><xsl:value-of select="mrwi2c:i2c-master/mrwi2c:i2c-engine"/></td> + </tr> + <tr> + <td><b>I2C Port</b></td> + <td><xsl:value-of select="mrwi2c:i2c-master/mrwi2c:i2c-port"/></td> + </tr> + <tr> + <td> + <b>Part Type</b> + </td> + <td> + <xsl:value-of select="mrwi2c:i2c-master/mrwi2c:part-type"/> + </td> + </tr> + <tr> + <td> + <b>Card</b> + </td> + <td> + <xsl:value-of select="mrwi2c:i2c-master/mrwi2c:card-id"/> (<xsl:value-of select="mrwi2c:i2c-master/mrwi2c:card-location-code"/>) + </td> + </tr> + <tr> + <td> + <b>Instance Path</b> + </td> + <td> + <xsl:value-of select="mrwi2c:i2c-master/mrwi2c:instance-path"/> + </td> + <xsl:apply-templates select="mrwi2c:i2c-master/mrwi2c:target"/> <!-- may not be present --> + </tr> + <xsl:choose> + <xsl:when test="mrwi2c:system-paths/mrwi2c:system-path/mrwi2c:fsi-path-segment"> + + <tr> + <th colspan="2">FSP Path Information</th> + </tr> + <xsl:for-each select="mrwi2c:system-paths/mrwi2c:system-path"> + <tr> + <td colspan="2"> + <center> + <table border="1" cellpadding="2" width="800px"> + <tr><th>FSI Path</th></tr> + <tr><td>Firmware Device Path: <xsl:value-of select="mrwi2c:fsp-device-path"/></td></tr> + + <xsl:for-each select="mrwi2c:fsi-path-segment"> + <tr> + <td> + <table> + <tr><th colspan="2">FSI Path Segment</th></tr> + <tr> + <td>Master:</td> + <td><xsl:value-of select="mrwi2c:fsi-master/mrwi2c:instance-path"/> (Link <xsl:value-of select="mrwi2c:fsi-master/mrwi2c:link"/>)</td> + </tr> + + <xsl:for-each select="mrwi2c:cards/mrwi2c:card"> + <tr> + <td>Card:</td> + <td><xsl:value-of select="mrwi2c:instance-path"/> (<xsl:value-of select="mrwi2c:location-code"/>)</td> + </tr> + </xsl:for-each> + + <tr> + <td>Slave:</td> + <td><xsl:value-of select="mrwi2c:fsi-slave/mrwi2c:instance-path"/> (port <xsl:value-of select="mrwi2c:fsi-slave/mrwi2c:port"/>)</td> + </tr> + </table> + </td> + + </tr> + </xsl:for-each> + + </table> + </center> + </td> + </tr> + <!-- print the I2C path --> + <xsl:apply-templates select="mrwi2c:i2c-path"/> + </xsl:for-each> + + + </xsl:when> + <xsl:otherwise> <!-- no FSI in path, probably direct connect to FSP --> + <tr> + <th colspan="2">FSP Path Information</th> + </tr> + <tr> + <td colspan="2">Firmware Device Path: <xsl:value-of select="mrwi2c:system-paths/mrwi2c:system-path/mrwi2c:fsp-device-path"/></td> + </tr> + <xsl:apply-templates select="mrwi2c:system-paths/mrwi2c:system-path/mrwi2c:i2c-path"/> <!-- print I2C path information --> + </xsl:otherwise> + + </xsl:choose> + + </table> + <br/> + <br/> + </xsl:for-each> + <br/><br/> + </body> + </html> + </xsl:template> + + <xsl:template match="mrwi2c:target"> + <tr> + <td> + <b>Target</b> + </td> + <td> + <xsl:value-of select="mrwi2c:name"/>:n<xsl:value-of select="mrwi2c:node"/>:p<xsl:value-of select="mrwi2c:position"/> + </td> + </tr> + </xsl:template> + + <xsl:template match="mrwi2c:i2c-path"> + <tr> + <td colspan="2"> + <center> + <table border="1" cellpadding="2" width="800px"> + <tr> + <td> + <table> + <tr> + <th colspan="2">I2C Path</th> + </tr> + <tr> + <td> Master:</td> + <td> + <xsl:value-of select="mrwi2c:i2c-master"/> + </td> + </tr> + + <xsl:for-each select="mrwi2c:cards/mrwi2c:card"> + <tr> + <td>Card:</td> + <td> + <xsl:value-of select="mrwi2c:instance-path"/> (<xsl:value-of select="mrwi2c:location-code"/>) + </td> + </tr> + </xsl:for-each> + + <tr> + <td>Slave:</td> + <td> + <xsl:value-of select="mrwi2c:i2c-slave"/> + </td> + </tr> + </table> + </td> + + </tr> + </table> + </center> + </td> + </tr> + </xsl:template> + + +</xsl:stylesheet> diff --git a/xslt/mrwMemoryBusses.xsl b/xslt/mrwMemoryBusses.xsl new file mode 100644 index 0000000..cd81b28 --- /dev/null +++ b/xslt/mrwMemoryBusses.xsl @@ -0,0 +1,100 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwMemoryBusses.xsl $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwmem="http://w3.ibm.com/stg/power-firmware/schema/mrwmem" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwmem" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>Memory Bus Connections</title> + </head> + <body> + <h1>Memory Bus Connections</h1> + <br/><br/> + <table border="3" cellpadding="5"> + <tr> + <th>Processor MCS Target</th> + <xsl:choose> <!-- Only print MBA info when not on Centaur DIMMs --> + <xsl:when test="//mrwmem:memory-bus/mrwmem:mba/mrwmem:mba-port"> + <th>Centaur MBA Target</th> + <th>MBA Port</th> + <th>MBA Slot</th> + </xsl:when> + <xsl:otherwise> <!-- on Centaur DIMMS, just print Centaur target --> + <th>Centaur Target</th> + </xsl:otherwise> + </xsl:choose> + <th>DIMM Target</th> + <th>DIMM Instance Path</th> + <th>Proc->Centaur FSI Link</th> + + </tr> + <xsl:for-each select="mrwmem:memory-busses/mrwmem:memory-bus"> + <tr> + <td> + n<xsl:value-of select="mrwmem:mcs/mrwmem:target/mrwmem:node"/>:p<xsl:value-of select="mrwmem:mcs/mrwmem:target/mrwmem:position"/>:mcs<xsl:value-of select="mrwmem:mcs/mrwmem:target/mrwmem:chipUnit"/> + </td> + + <xsl:choose> + <xsl:when test="mrwmem:mba/mrwmem:mba-port"> + <td> + n<xsl:value-of select="mrwmem:mba/mrwmem:target/mrwmem:node"/>:p<xsl:value-of select="mrwmem:mba/mrwmem:target/mrwmem:position"/>:mba<xsl:value-of select="mrwmem:mba/mrwmem:target/mrwmem:chipUnit"/> + </td> + + <td><xsl:value-of select="mrwmem:mba/mrwmem:mba-port"/></td> + <td><xsl:value-of select="mrwmem:mba/mrwmem:mba-slot"/></td> + </xsl:when> + <xsl:otherwise> + <!-- The centaur target, which is part of the MBA target --> + <td> + n<xsl:value-of select="mrwmem:mba/mrwmem:target/mrwmem:node"/>:p<xsl:value-of select="mrwmem:mba/mrwmem:target/mrwmem:position"/> + </td> + </xsl:otherwise> + </xsl:choose> + <td> + n<xsl:value-of select="mrwmem:dimm/mrwmem:target/mrwmem:node"/>:p<xsl:value-of select="mrwmem:dimm/mrwmem:target/mrwmem:position"/> + </td> + <td><xsl:value-of select="mrwmem:dimm/mrwmem:instance-path"/></td> + <td><xsl:value-of select="mrwmem:fsi-link"/></td> + </tr> + </xsl:for-each> + </table> + <br/><br/> + </body> + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwMruIds.xsl b/xslt/mrwMruIds.xsl new file mode 100644 index 0000000..c27d77f --- /dev/null +++ b/xslt/mrwMruIds.xsl @@ -0,0 +1,105 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwMruIds.xml $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwmruid="http://w3.ibm.com/stg/power-firmware/schema/mrwmruid" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwmruid" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex" + > + +<!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> +<xsl:param name="system"/> + +<xsl:output method="html" indent="yes"/> + +<xsl:template match="/"> + <html> + <head> + <style type="text/css"> + #lh {line-height:0.75;} + </style> + <title>MRU IDs</title> + </head> + <body> + <h1>MRU IDs</h1> + + <table border="3"> + <tr> + <th id="lh">MRU ID</th> + <th>MRU ID Value</th> + <th>Instance Path</th> + <th>Location Code</th> + <th>HW ID</th> + <th>HW Type</th> + <th>MRU Type</th> + <th>MRU Instance#</th> + <th>Parent MRU</th> + <th>ecmd Target</th> + </tr> + <xsl:for-each select="mru-ids/mru-id"> + + <xsl:choose> + <xsl:when test="not (@skiphtml = 'true')"> + + <tr> + <td><xsl:value-of select="mrid"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="mrid-value"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="instance-path"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="location-code"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="hardware-id"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td> + <xsl:if test="part-type != ''"> + Part: <xsl:value-of select="part-type"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp; + </xsl:if> + <xsl:if test="card-type != ''"> + Card: <xsl:value-of select="card-type"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp; + </xsl:if> + <xsl:if test="unit-type != ''"> + Unit: <xsl:value-of select="unit-type"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp; + </xsl:if> + <xsl:if test="chiplet-type != ''"> + Chiplet: <xsl:value-of select="chiplet-type"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp; + </xsl:if> + </td> + <td><xsl:value-of select="mru-type"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="mru-instance-num"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="parent-mru"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="ecmd-target"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + </tr> + + </xsl:when> + </xsl:choose> + + </xsl:for-each> + </table> + <br/><br/> + + </body> + </html> +</xsl:template> +</xsl:stylesheet> + diff --git a/xslt/mrwPCIEBusses.xsl b/xslt/mrwPCIEBusses.xsl new file mode 100644 index 0000000..4d2b55e --- /dev/null +++ b/xslt/mrwPCIEBusses.xsl @@ -0,0 +1,328 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwPCIEBusses.xsl $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwpcie="http://w3.ibm.com/stg/power-firmware/schema/mrwpcie" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwpcie" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>PCIE Connections</title> + </head> + <body> + <h1>PCIE Connections</h1> + <br/> + <br/> + + <!-- The summary table, which will point to individual places down below --> + <table border="3" cellpadding="9"> + <tr> + <th>Source</th> + <th>IOP</th> + <th>Width</th> + <th>Switch</th> + <th>Endpoint</th> + <th>Details</th> + </tr> + <xsl:for-each select="mrwpcie:pcie-busses/mrwpcie:pcie-bus"> + <xsl:variable name="label" select="0"></xsl:variable> + <tr> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:instance-path"/></td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:iop"/></td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:width"/></td> + <xsl:choose> + <xsl:when test="mrwpcie:switch"> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:instance-path"/> (Station: <xsl:value-of select="mrwpcie:switch/mrwpcie:station"/> Port: <xsl:value-of select="mrwpcie:switch/mrwpcie:port"/>)</td> + </xsl:when> + <xsl:otherwise> + <td>None</td> + </xsl:otherwise> + </xsl:choose> + + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:instance-path"/></td> + <!-- Use the entry-num element to link to the detailed table below --> + <td><xsl:text disable-output-escaping="yes"><a href="#dev</xsl:text><xsl:value-of select="mrwpcie:entry-num"></xsl:value-of><xsl:text disable-output-escaping="yes">"></xsl:text>Details<xsl:text disable-output-escaping="yes"></a></xsl:text></td> + </tr> + </xsl:for-each> + </table> + <br/><br/><br/><br/> + + + <!-- The detailed tables --> + + <xsl:for-each select="mrwpcie:pcie-busses/mrwpcie:pcie-bus"> + <xsl:text disable-output-escaping="yes"><a name="dev</xsl:text><xsl:value-of select="mrwpcie:entry-num"/><xsl:text disable-output-escaping="yes">"></a></xsl:text> + <table border="3" cellpadding="5" width="1000"> + <tr> + <td colspan="2"><b><center>Source</center></b></td> + </tr> + <tr> + <td> + <b>Processor</b> + </td> + <td>n<xsl:value-of select="mrwpcie:source/mrwpcie:target/mrwpcie:node"/>:p<xsl:value-of select="mrwpcie:source/mrwpcie:target/mrwpcie:position"/></td> + </tr> + <tr> + <td> + <b>Instance Path</b> + </td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:instance-path"/></td> + </tr> + <tr> + <td> + <b>IOP</b> + </td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:iop"/></td> + </tr> + + <xsl:choose> <!-- Might not be there --> + <xsl:when test="mrwpcie:source/mrwpcie:lane-mask"> + <tr> + <td> + <b>Lane Mask</b> + </td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:lane-mask"/></td> + </tr> + </xsl:when> + </xsl:choose> + + <xsl:choose> <!-- Might not be there --> + <xsl:when test="mrwpcie:source/mrwpcie:dsmp-capable"> + <tr> + <td> + <b>DSMP Capable</b> + </td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:dsmp-capable"/></td> + </tr> + </xsl:when> + </xsl:choose> + + <xsl:choose> <!-- Might not be there --> + <xsl:when test="mrwpcie:source/mrwpcie:lane-swap-bits"> + <tr> + <td> + <b>Lane Swap Bits</b> + </td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:lane-swap-bits"/></td> + </tr> + </xsl:when> + </xsl:choose> + + <xsl:choose> <!-- Might not be there --> + <xsl:when test="mrwpcie:source/mrwpcie:lane-reversal-bits"> + <tr> + <td> + <b>Lane Reversal Bits</b> + </td> + <td><xsl:value-of select="mrwpcie:source/mrwpcie:lane-reversal-bits"/></td> + </tr> + </xsl:when> + </xsl:choose> + + <!-- if a x16 link, then also print the bifurcation settings --> + <xsl:choose> + <xsl:when test="mrwpcie:source/mrwpcie:bifurcation-settings"> + <tr> + <td> + <b>Lane Swap Bits if Bifurcated</b> + </td> + <td> + Lanes <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[1]/mrwpcie:lane-mask"/> = + <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[1]/mrwpcie:lane-swap-bits"/>, + Lanes <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[2]/mrwpcie:lane-mask"/> = + <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[2]/mrwpcie:lane-swap-bits"/> + </td> + </tr> + <tr> + <td> + <b>Lane Reversal Bits if Bifurcated</b> + </td> + <td> + Lanes <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[1]/mrwpcie:lane-mask"/> = + <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[1]/mrwpcie:lane-reversal-bits"/>, + Lanes <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[2]/mrwpcie:lane-mask"/> = + <xsl:value-of select="mrwpcie:source/mrwpcie:bifurcation-settings/mrwpcie:bifurcation-setting[2]/mrwpcie:lane-reversal-bits"/> + </td> + </tr> + + </xsl:when> + </xsl:choose> + + + + <xsl:choose> <!-- Only print Switch section if present in the XML --> + <xsl:when test="mrwpcie:switch"> + <tr> + <td colspan="2"><b><center>Switch</center></b></td> + </tr> + <tr> + <td> + <b>Part </b> + </td> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:part-id"/></td> + </tr> + <tr> + <td> + <b>Station </b> + </td> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:station"/></td> + </tr> + <tr> + <td> + <b>Port </b> + </td> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:port"/></td> + </tr> + <tr> + <td> + <b>Upstream Station </b> + </td> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:upstream-station"/></td> + </tr> + <tr> + <td> + <b>Upstream Port </b> + </td> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:upstream-port"/></td> + </tr> + <tr> + <td> + <b>Instance Path</b> + </td> + <td><xsl:value-of select="mrwpcie:switch/mrwpcie:instance-path"/></td> + </tr> + </xsl:when> + </xsl:choose> + <tr> + <td colspan="2"><b><center>Endpoint</center></b></td> + </tr> + <tr> + <td> + <b>Card</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:card-id"/></td> + </tr> + <tr> + <td> + <b>Part </b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:part-id"/></td> + </tr> + <tr> + <td> + <b>Instance Path</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:instance-path"/></td> + </tr> + <tr> + <td> + <b>Width</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:width"/></td> + </tr> + <tr> + <td> + <b>Slot Index</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:slot-index"/></td> + </tr> + <tr> + <td> + <b>Card Size</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:card-size"/></td> + </tr> + <tr> + <td> + <b>Gen</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:gen"/></td> + </tr> + <tr> + <td> + <b>Hot Plug</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:hot-plug"/></td> + </tr> + <tr> + <td> + <b>Is Slot</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:is-slot"/></td> + </tr> + <tr> + <td> + <b>CAPI</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:capi"/></td> + </tr> + <tr> + <td> + <b>LSI</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:lsi"/></td> + </tr> + + <xsl:choose> <!-- Might not be there --> + <xsl:when test="mrwpcie:endpoint/mrwpcie:default-pcie-cooling-type"> + <tr> + <td> + <b>Default Cooling Type</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:default-pcie-cooling-type"/></td> + </tr> + </xsl:when> + </xsl:choose> + + <xsl:choose> <!-- Might not be there --> + <xsl:when test="mrwpcie:endpoint/mrwpcie:default-power-consumption"> + <tr> + <td> + <b>Default Power Consumption</b> + </td> + <td><xsl:value-of select="mrwpcie:endpoint/mrwpcie:default-power-consumption"/> Watts</td> + </tr> + </xsl:when> + </xsl:choose> + </table> + <br/> + <br/> + </xsl:for-each> + <br/><br/> + </body> + + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwPowerBusses.xsl b/xslt/mrwPowerBusses.xsl new file mode 100644 index 0000000..39aeecf --- /dev/null +++ b/xslt/mrwPowerBusses.xsl @@ -0,0 +1,191 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwPowerBusses.xml $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwpb="http://w3.ibm.com/stg/power-firmware/schema/mrwpb" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwpb" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex"> + + <!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> + <xsl:param name="system"/> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="/"> + <html> + <head> + <title>PowerBus Connections</title> + </head> + <body> + <h1>PowerBus Connections</h1> + <br/> + <br/> + <xsl:for-each select="mrwpb:power-busses/mrwpb:power-bus"> + + <xsl:choose> + <xsl:when test="not (@skiphtml = 'true')"> + + <table border="3" cellpadding="5"> + <tr> + <th></th> + <th>Endpoint</th> + <th>Endpoint</th> + </tr> + <tr> + <td> + <b>Port</b> + </td> + <xsl:for-each select="mrwpb:endpoint/mrwpb:port"> + <td> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Chip Target</b> + </td> + <xsl:for-each select="mrwpb:endpoint/mrwpb:target"> + <td>n<xsl:value-of select="mrwpb:node"/>p<xsl:value-of select="mrwpb:position"/></td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Location Code</b> + </td> + <xsl:for-each select="mrwpb:endpoint/mrwpb:location-code"> + <td> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Instance Path</b> + </td> + <xsl:for-each select="mrwpb:endpoint/mrwpb:instance-path"> + <td> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>RX Upstream MSB Swap</b> + </td> + <xsl:for-each select="mrwpb:rx-msb-lsb-swap"> + <td colspan = "2"> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>TX Downstream MSB Swap</b> + </td> + <xsl:for-each select="mrwpb:tx-msb-lsb-swap"> + <td colspan = "2"> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Downstream TX_LANE_INVERT</b> + </td> + <xsl:for-each select="mrwpb:downstream-n-p-lane-swap-mask"> + <td colspan = "2"> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Upstream TX_LANE_INVERT</b> + </td> + <xsl:for-each select="mrwpb:upstream-n-p-lane-swap-mask"> + <td colspan = "2"> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Bus Width</b> + </td> + <xsl:for-each select="mrwpb:bus-width"> + <td colspan = "2"> + <xsl:value-of select="."/>B + </td> + </xsl:for-each> + </tr> + <tr> + <td> + <b>Node Config</b> + </td> + <xsl:for-each select="mrwpb:node-config"> + <td colspan = "2"> + <xsl:value-of select="."/> + </td> + </xsl:for-each> + </tr> + + <!-- leave out for now + <tr> + <td> + </td> + <td colspan="2"> + <center> + <table> + <tr> + <th><b><center>Bus Path</center></b></th> + </tr> + <xsl:for-each select="mrwpb:bus-path/mrwpb:path-segment"> + <tr> + <td> + <xsl:value-of select="."/> + </td> + </tr> + </xsl:for-each> + </table> + </center> + </td> + </tr> + --> + </table> + <br/> + <br/> + + </xsl:when> + </xsl:choose> + </xsl:for-each> + <br/><br/> + </body> + </html> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/mrwTargets.xsl b/xslt/mrwTargets.xsl new file mode 100644 index 0000000..5700b1d --- /dev/null +++ b/xslt/mrwTargets.xsl @@ -0,0 +1,83 @@ +<!-- IBM_PROLOG_BEGIN_TAG --> +<!-- This is an automatically generated prolog. --> +<!-- --> +<!-- $Source: mrwTargets.xsl $ --> +<!-- --> +<!-- OpenPOWER HostBoot Project --> +<!-- --> +<!-- Contributors Listed Below - COPYRIGHT 2014 --> +<!-- [+] International Business Machines Corp. --> +<!-- --> +<!-- --> +<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> +<!-- you may not use this file except in compliance with the License. --> +<!-- You may obtain a copy of the License at --> +<!-- --> +<!-- http://www.apache.org/licenses/LICENSE-2.0 --> +<!-- --> +<!-- Unless required by applicable law or agreed to in writing, software --> +<!-- distributed under the License is distributed on an "AS IS" BASIS, --> +<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> +<!-- implied. See the License for the specific language governing --> +<!-- permissions and limitations under the License. --> +<!-- --> +<!-- IBM_PROLOG_END_TAG --> +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mrwtarg="http://w3.ibm.com/stg/power-firmware/schema/mrwtarg" + xmlns="http://w3.ibm.com/stg/power-firmware/schema/mrwtarg" + xmlns:ex="http://exslt.org/dates-and-times" + extension-element-prefixes="ex" + > + +<!-- Pass in the system name with: xsltproc \-\-stringparam system <the systemName> --> +<xsl:param name="system"/> + +<xsl:output method="html" indent="yes"/> + +<xsl:template match="/"> + <html> + <head> + <style type="text/css"> + #lh {line-height:0.75;} + </style> + <title>ecmd Targets</title> + </head> + <body> + <h1>ecmd Targets</h1> + + <table border="3"> + <tr> + <th id="lh">ecmd<br />Common<br />Name</th> + <th>Node</th> + <th>Position</th> + <th>Unit</th> + <th>Instance Path</th> + <th>Description</th> + </tr> + <xsl:for-each select="targets/target"> + + <xsl:choose> + <xsl:when test="not (@skiphtml = 'true')"> + + <tr> + <td><xsl:value-of select="ecmd-common-name"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="node"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="position"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="chip-unit"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="instance-path"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + <td><xsl:value-of select="description"/><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</td> + </tr> + + </xsl:when> + </xsl:choose> + + </xsl:for-each> + </table> + <br/><br/> + + </body> + </html> +</xsl:template> +</xsl:stylesheet> |