mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 06:29:19 +00:00
config-tools: generate MAX_IOAPIC_NUM and MAX_IOAPIC_LINES based on board.xml
Generate MAX_IOAPIC_NUM and MAX_IOAPIC_LINE based on board.xml automatically. Tracked-On: #6986 Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
90c2df4a7e
commit
1aa10680f8
@ -7,6 +7,8 @@
|
|||||||
version="1.0"
|
version="1.0"
|
||||||
xmlns:xi="http://www.w3.org/2003/XInclude"
|
xmlns:xi="http://www.w3.org/2003/XInclude"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:math="http://exslt.org/math"
|
||||||
|
xmlns:exslt="http://exslt.org/common"
|
||||||
xmlns:acrn="http://projectacrn.org">
|
xmlns:acrn="http://projectacrn.org">
|
||||||
<xsl:include href="lib.xsl" />
|
<xsl:include href="lib.xsl" />
|
||||||
<xsl:output method="text" />
|
<xsl:output method="text" />
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
version="1.0"
|
version="1.0"
|
||||||
xmlns:xi="http://www.w3.org/2003/XInclude"
|
xmlns:xi="http://www.w3.org/2003/XInclude"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:math="http://exslt.org/math"
|
||||||
|
xmlns:exslt="http://exslt.org/common"
|
||||||
xmlns:acrn="http://projectacrn.org">
|
xmlns:acrn="http://projectacrn.org">
|
||||||
<xsl:include href="lib.xsl" />
|
<xsl:include href="lib.xsl" />
|
||||||
<xsl:output method="text" />
|
<xsl:output method="text" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<xsl:with-param name="key" select="'BOARD'" />
|
<xsl:with-param name="key" select="'BOARD'" />
|
||||||
<xsl:with-param name="value" select="@board" />
|
<xsl:with-param name="value" select="@board" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
<xsl:call-template name="integer-by-key-value">
|
||||||
|
<xsl:with-param name="key" select="'MAX_IOAPIC_NUM'" />
|
||||||
|
<xsl:with-param name="value" select="count(//ioapic)" />
|
||||||
|
</xsl:call-template>
|
||||||
|
<xsl:call-template name="integer-by-key-value">
|
||||||
|
<xsl:with-param name="key" select="'MAX_IOAPIC_LINES'" />
|
||||||
|
<xsl:with-param name="value" select="math:max(//gsi_number/text() | exslt:node-set(0))" />
|
||||||
|
</xsl:call-template>
|
||||||
<xsl:call-template name="msi-msix-max" />
|
<xsl:call-template name="msi-msix-max" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
@ -157,18 +165,10 @@
|
|||||||
<xsl:with-param name="value" select="//allocation-data/acrn-config/platform/MAX_PCI_BUS_NUM" />
|
<xsl:with-param name="value" select="//allocation-data/acrn-config/platform/MAX_PCI_BUS_NUM" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="integer-by-key">
|
|
||||||
<xsl:with-param name="key" select="'MAX_IOAPIC_NUM'" />
|
|
||||||
</xsl:call-template>
|
|
||||||
|
|
||||||
<xsl:call-template name="integer-by-key">
|
<xsl:call-template name="integer-by-key">
|
||||||
<xsl:with-param name="key" select="'MAX_PCI_DEV_NUM'" />
|
<xsl:with-param name="key" select="'MAX_PCI_DEV_NUM'" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="integer-by-key">
|
|
||||||
<xsl:with-param name="key" select="'MAX_IOAPIC_LINES'" />
|
|
||||||
</xsl:call-template>
|
|
||||||
|
|
||||||
<xsl:call-template name="integer-by-key">
|
<xsl:call-template name="integer-by-key">
|
||||||
<xsl:with-param name="key" select="'MAX_PT_IRQ_ENTRIES'" />
|
<xsl:with-param name="key" select="'MAX_PT_IRQ_ENTRIES'" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
Loading…
Reference in New Issue
Block a user