summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-05-19 12:53:34 +0200
committerDavid Sommerseth <davids@redhat.com>2009-05-20 14:19:57 +0200
commit52f936c82d9098b2a64986228ebc1e9109828ac9 (patch)
tree05d0d4a786ceaed346950dcb1cd138ecc1aa4923 /src
parent9f34b97089fe7fb14c6877cc426658c06f04cb9e (diff)
downloadpython-dmidecode-52f936c82d9098b2a64986228ebc1e9109828ac9.tar.gz
python-dmidecode-52f936c82d9098b2a64986228ebc1e9109828ac9.tar.xz
python-dmidecode-52f936c82d9098b2a64986228ebc1e9109828ac9.zip
Added field python dict mapping for CacheInfo
Diffstat (limited to 'src')
-rw-r--r--src/pythonmap.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/pythonmap.xml b/src/pythonmap.xml
index d8add41..4dc2eb4 100644
--- a/src/pythonmap.xml
+++ b/src/pythonmap.xml
@@ -163,4 +163,40 @@
</Map>
</Map>
</Mapping>
+
+ <!-- -->
+ <!-- Mapping setup for cache info -->
+ <!-- -->
+ <Mapping name="cache">
+ <Map rootpath="/dmidecode/CacheInfo" keytype="string" key="@handle" valuetype="dict">
+ <Map keytype="constant" key="dmi_type" valuetype="integer" value="@type"/>
+ <Map keytype="constant" key="dmi_handle" valuetype="string" value="@handle"/>
+ <Map keytype="constant" key="dmi_size" valuetype="integer" value="@size"/>
+ <Map keytype="constant" key="data" valuetype="dict">
+ <!-- Map keytype="constant" key="dmi_on_board_devices" valuetype="list:dict">
+ *** SHOULD THIS BE IMPLEMENTED HERE??
+ </Map -->
+ <Map keytype="constant" key="System Type" valuetype="string" value="SystemType"/>
+ <Map keytype="constant" key="Socket Designation" valuetype="string" value="SocketDesignation"/>
+ <Map keytype="constant" key="Installed SRAM Type"
+ valuetype="list:string" value="InstalledSRAMtypes/CacheType" fixedsize="7" index_attr="index"/>
+ <Map keytype="constant" key="Supported SRAM Type"
+ valuetype="list:string" value="SupportedSRAMtypes/CacheType" fixedsize="7" index_attr="index"/>
+ <Map keytype="constant" key="Associativity" valuetype="string" value="Associativity"/>
+ <Map keytype="constant" key="Maximum Size" valuetype="string"
+ value="concat(MaximumSize,' ',MaximumSize/@unit)"/>
+ <Map keytype="constant" key="Installed Size" valuetype="string"
+ value="concat(InstalledSize,' ',InstalledSize/@unit)"/>
+ <Map keytype="constant" key="Location" valuetype="string" value="CacheLocation"/>
+ <Map keytype="constant" key="Error Correction Type" valuetype="string" value="ErrorCorrectionType"/>
+ <Map keytype="constant" key="Speed" valuetype="string" value="Speed" emptyValue="Unknown"/>
+ <Map keytype="constant" key="Operational Mode" valuetype="string" value="OperationalMode"/>
+ <Map keytype="constant" key="Configuration" valuetype="dict">
+ <Map keytype="constant" key="Socketed" valuetype="boolean" value="@Socketed"/>
+ <Map keytype="constant" key="Enabled" valuetype="boolean" value="@Enabled"/>
+ <Map keytype="constant" key="Level" valuetype="integer" value="@Level"/>
+ </Map>
+ </Map>
+ </Map>
+ </Mapping>
</dmidecode_fieldmap>