Files
BrentHoltsclaw 63189c29ba Add ability to require pch configuriation file to be loaded
Add reqs_pch to configuration attributes within template.xml
Add reqs_pch as field for WHL as example
Update logic within chipset.py to check if reqs_pch attribute exists
Update logic within chipset.py to raise error if pch is required and driver needs to be loaded
Note can still work around with the -i flag

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-12-11 09:43:03 -08:00

66 lines
3.1 KiB
XML

<?xml version="1.0"?>
<configuration platform="[PLATFORM_CODE]" req_pch="BOOLEAN">
<!--
Template for XML configuration file
-->
<!-- #################################### -->
<!-- -->
<!-- Integrated devices -->
<!-- -->
<!-- #################################### -->
<pci>
<device name="[DEVICE NAME]" bus="[BUS#]" dev="[DEVICE#]" fun="[FUNCTION#]" vid="[VENDOR ID]" />
</pci>
<!-- #################################### -->
<!-- -->
<!-- Memory Mapped I/O spaces (MMIO BARs) -->
<!-- -->
<!-- #################################### -->
<mmio>
<!-- use this definition -->
<bar name="[BAR NAME]" register="[BAR REGISTER NAME]" base_field="[BAR BASE BIT FIELD]" enable_field="[BAR ENABLE BIT FIELD]" size="[BAR SIZE]" desc="[BAR DESCRIPTION]"/>
<!-- or (old definition) -->
<bar name="[BAR NAME]" bus="[BUS#]" dev="[DEVICE#]" fun="[FUNCTION#]" reg="[BAR REGISTER OFFSET]" width="[BAR REGISTER WIDTH]" mask="[BAR REGISTER MASK]" size="[BAR SIZE]" enable_bit="[BAR ENABLE BIT POSITION]" desc="[BAR DESCRIPTION]"/>
</mmio>
<!-- #################################### -->
<!-- -->
<!-- I/O spaces (I/O BARs) -->
<!-- -->
<!-- #################################### -->
<io>
<!-- use this definition -->
<bar name="[BAR NAME]" register="[BAR REGISTER NAME]" base_field="[BAR BASE BIT FIELD]" enable_field="[BAR ENABLE BIT FIELD]" size="[BAR SIZE]" desc="[BAR DESCRIPTION]"/>
<!-- or (old definition) -->
<bar name="[BAR NAME]" bus="[BUS#]" dev="[DEVICE#]" fun="[FUNCTION#]" reg="[BAR REGISTER OFFSET]" mask="[BAR REGISTER MASK]" size="[BAR SIZE]" desc="[BAR DESCRIPTION]"/>
</io>
<!-- #################################### -->
<!-- -->
<!-- Memory ranges -->
<!-- -->
<!-- #################################### -->
<memory>
<range name="[RANGE NAME]" access="dram|mmio" address="[PHYS ADDRESS]" size="[RANGE SIZE]"/>
</memory>
<!-- #################################### -->
<!-- -->
<!-- Configuration registers -->
<!-- -->
<!-- #################################### -->
<registers>
<register name="[UNIQUE REGISTER NAME]" type="msr|mmio|io|iobar|pcicfg|mmcfg|msgbus|memory" desc="[REGISTER DESCRIPTION]" />
</registers>
<!-- #################################### -->
<!-- -->
<!-- Controls -->
<!-- -->
<!-- #################################### -->
<controls>
<control name="[UNIQUE CONTROL NAME]" register="[REGISTER NAME WITH THIS CONTROL]" field="[CONTROL FIELD NAME WITHIN REGISTER]" desc="[CONTROL DESCRIPTION]" />
</controls>
</configuration>