muen/mugenhwcfg.git
19 months agoAdd second TSC speed regular expression
Reto Buerki [Tue, 12 Sep 2017 19:35:08 +0000 (21:35 +0200)]
Add second TSC speed regular expression

Also look for the 'tsc: Detected <speed> processor' string if the
refined TSC clocksource regex search fails.

19 months agoUse regular expression to find TSC speed
Reto Buerki [Tue, 12 Sep 2017 19:17:53 +0000 (21:17 +0200)]
Use regular expression to find TSC speed

19 months agoDrop test_genDmesg test
Reto Buerki [Tue, 12 Sep 2017 18:57:34 +0000 (20:57 +0200)]
Drop test_genDmesg test

Running dmesg requires root on Debian stretch.

19 months agoAppend IOMMU group ID to PCI device element
Reto Buerki [Fri, 8 Sep 2017 13:43:28 +0000 (15:43 +0200)]
Append IOMMU group ID to PCI device element

Summary:
Closes T449. Linux partitions devices into IOMMU groups depending on
their isolation properties. Devices in the same IOMMU group cannot be
properly isolated from each other because they may perform inter-device
transactions directly, without going through the IOMMU.

NOTE: This is informative for now as Muen does not configure PCI access
      control services (ACS). Therefore the IOMMU groups provided by
      Linux cannot yet be used 1:1 in a Muen system.

Test Plan: Verified that IOMMU groups are properly appended on the Lenovo T440s.

Reviewers: ken

Reviewed By: ken

Maniphest Tasks: T449

Differential Revision: https://dev.codelabs.ch/D639

19 months agoAppend IOMMU group element in getPci function
Reto Buerki [Fri, 8 Sep 2017 13:43:28 +0000 (15:43 +0200)]
Append IOMMU group element in getPci function

19 months agoAdd iommugrp argument to getPci function
Reto Buerki [Fri, 8 Sep 2017 13:43:05 +0000 (15:43 +0200)]
Add iommugrp argument to getPci function

19 months agoAdd iommugrp argument to createDeviceFromPath
Reto Buerki [Fri, 8 Sep 2017 13:41:42 +0000 (15:41 +0200)]
Add iommugrp argument to createDeviceFromPath

19 months agoDisplay warning if IOMMU groups are not available
Reto Buerki [Fri, 8 Sep 2017 12:10:43 +0000 (14:10 +0200)]
Display warning if IOMMU groups are not available

19 months agoAdd iommugrpdir argument to PCI dev creator createElems
Reto Buerki [Fri, 8 Sep 2017 12:09:20 +0000 (14:09 +0200)]
Add iommugrpdir argument to PCI dev creator createElems

19 months agoUpdate hardware config schema
Reto Buerki [Fri, 8 Sep 2017 12:06:04 +0000 (14:06 +0200)]
Update hardware config schema

Besides minor changes, this update provides the IOMMU group ID child of
PCI device elements.

19 months agoDeclare PATH_IOMMUGRP in test/testpaths.py
Reto Buerki [Fri, 8 Sep 2017 12:04:30 +0000 (14:04 +0200)]
Declare PATH_IOMMUGRP in test/testpaths.py

19 months agoDeclare IOMMUGRPS constant in paths.py
Reto Buerki [Fri, 8 Sep 2017 12:03:13 +0000 (14:03 +0200)]
Declare IOMMUGRPS constant in paths.py

19 months agoFix pep8 warnings in src/creator.py
Reto Buerki [Fri, 8 Sep 2017 08:53:28 +0000 (10:53 +0200)]
Fix pep8 warnings in src/creator.py

19 months agoFix TSC clocksource error string
Reto Buerki [Fri, 8 Sep 2017 14:34:42 +0000 (16:34 +0200)]
Fix TSC clocksource error string

2 years agoREADME: Use acpica-tools instead of iasl package
Adrian-Ken Rueegsegger [Thu, 20 Apr 2017 08:45:28 +0000 (10:45 +0200)]
README: Use acpica-tools instead of iasl package

Auditors: reet

2 years agoFilter out memory blocks with zero size
Reto Buerki [Thu, 30 Mar 2017 13:35:59 +0000 (15:35 +0200)]
Filter out memory blocks with zero size

Summary:
This happens if the BIOS reports a memory block size below one page. It
is then rounded down to zero in the generateMemoryBlock function.

Extend the filterMemoryBlocks function to remove those blocks from the
generated memory block list.

Reviewers: ken

Reviewed By: ken

Differential Revision: https://dev.codelabs.ch/D577

2 years agoFilter out memory blocks with zero size
Reto Buerki [Thu, 30 Mar 2017 13:35:59 +0000 (15:35 +0200)]
Filter out memory blocks with zero size

This happens if the BIOS reports a memory block size below one page.
Extend the filter function to remove those blocks from the generated
memory block list.

2 years agoAdd new memory block to memorycreator test data
Reto Buerki [Thu, 30 Mar 2017 13:35:10 +0000 (15:35 +0200)]
Add new memory block to memorycreator test data

2 years agoAssert len of block list in memmapextraction test
Reto Buerki [Thu, 30 Mar 2017 13:34:01 +0000 (15:34 +0200)]
Assert len of block list in memmapextraction test

2 years agoUpdate pci.ids to version 2017.01.28
Adrian-Ken Rueegsegger [Mon, 6 Feb 2017 14:53:00 +0000 (15:53 +0100)]
Update pci.ids to version 2017.01.28

Reviewers: reet

Reviewed By: reet

Differential Revision: https://dev.codelabs.ch/D547

2 years agoUpdate pci.ids to version 2017.01.28
Adrian-Ken Rueegsegger [Mon, 6 Feb 2017 14:53:00 +0000 (15:53 +0100)]
Update pci.ids to version 2017.01.28

2 years agoAdd system board device to generated config
Reto Buerki [Wed, 11 Jan 2017 15:47:20 +0000 (16:47 +0100)]
Add system board device to generated config

Summary:
The system board device specifies resources provided by the
motherboard/chipset. It declares the 32-bit wide Configuration Space
Address (16#0cf8#) and Configuration Space Data (16#0cfc#) I/O ports.
The 8-bit wide 16#0cf9# port in the same range specifies the Reset
Control Register of the I/O controller hub (ICH). It furthermore
declares the 8-bit wide ACPI poweroff I/O port extracted from the ACPI
FADT table using the new FADT table parser.

Only the 16#0cf9# and the poweroff ports are actually used by the SK but
for supporting the Genode base-hw scenario, the complete 16#0cf8# ..
16#0cff# range must be specified in order to avoid overlapping ports
with multiple devices.

Note: 16#0cf8# and 16#0cfc# will be removed from the system board device
as soon as the Genode base-hw kernel supports the Enhanced Configuration
Access Mechanism (ECAM) for PCI bus enumeration.

Reviewers: ken

Reviewed By: ken

Tags: #mugenhwcfg

Differential Revision: https://dev.codelabs.ch/D534

2 years agoAdd pm1a_cnt_slp_typ capability to system board
Reto Buerki [Wed, 11 Jan 2017 11:08:56 +0000 (12:08 +0100)]
Add pm1a_cnt_slp_typ capability to system board

The cap specifies the value which must be written to the PM1A control
block address in order to put the system into S5 soft-off state. The
value is identical for all currently supported hardware and is therefore
specified as a constant value instead of extracted from the ACPI DSDT
_S5 object.

2 years agoRename poweroff port to 'pma1_cnt'
Reto Buerki [Wed, 11 Jan 2017 11:05:17 +0000 (12:05 +0100)]
Rename poweroff port to 'pma1_cnt'

2 years agoAppend ACPI poweroff port to system board device
Reto Buerki [Tue, 10 Jan 2017 16:45:54 +0000 (17:45 +0100)]
Append ACPI poweroff port to system board device

2 years agoDeclare path to FADT in paths.py
Reto Buerki [Tue, 10 Jan 2017 16:33:14 +0000 (17:33 +0100)]
Declare path to FADT in paths.py

2 years agoImplement ACPI FADT parser
Reto Buerki [Tue, 10 Jan 2017 16:30:46 +0000 (17:30 +0100)]
Implement ACPI FADT parser

The ACPI FADT parser reads an ACPI FADT table from a file in binary
format and decompiles it using acpi.decompile_table. For now, it only
provides a getter for the system shutdown port (PM1A Control Block
Address).

2 years agoDrop unneeded DMAR_TEMP path from paths.py
Reto Buerki [Mon, 9 Jan 2017 16:15:07 +0000 (17:15 +0100)]
Drop unneeded DMAR_TEMP path from paths.py

2 years agoAdd system board device to generated config
Reto Buerki [Mon, 9 Jan 2017 14:51:55 +0000 (15:51 +0100)]
Add system board device to generated config

The system board device specifies resources provided by the
motherboard/chipset. For now, it declares the 32-bit wide Configuration
Space Address (16#0cf8#) and Configuration Space Data (16#0cfc#) I/O
ports. The 8-bit wide 16#0cf9# port in the same range specifies the
Reset Control Register of the I/O controller hub (ICH).

Only the 16#0cf9# port is actually used by the SK but for supporting the
Genode base-hw scenario the complete range must be specified in order to
avoid overlapping ports with multiple devices.

Note: 16#0cf8# and 16#0cfc# will be removed from the system board device
as soon as the Genode base-hw kernel supports the Enhanced Configuration
Access Mechanism (ECAM) for PCI bus enumeration.

2 years agoFactor out ACPI decompile_table function to acpi.py
Reto Buerki [Mon, 9 Jan 2017 10:57:05 +0000 (11:57 +0100)]
Factor out ACPI decompile_table function to acpi.py

2 years agoMinor: Remove whitespace in README.md
Reto Buerki [Mon, 9 Jan 2017 11:09:12 +0000 (12:09 +0100)]
Minor: Remove whitespace in README.md

2 years agoCleanup: Drop obsolete custom exceptions
Reto Buerki [Mon, 9 Jan 2017 11:08:51 +0000 (12:08 +0100)]
Cleanup: Drop obsolete custom exceptions

2 years agoSort result of os.listdir
Adrian-Ken Rueegsegger [Mon, 9 Jan 2017 09:57:13 +0000 (10:57 +0100)]
Sort result of os.listdir

The list returned by os.listdir is in arbitrary order. Sort the list
prior to processing to get reproducible results.

Auditors: reet

2 years agoRework legacy serial device generation
Adrian-Ken Rueegsegger [Fri, 16 Dec 2016 16:10:52 +0000 (17:10 +0100)]
Rework legacy serial device generation

Summary:
Parse serial device information provided by Linux sysfs instead of
/proc/ioports. This enables the inclusion of serial device IRQs.

Drop obsolete code and test files.

Test Plan:
Generated a platform config on Kontron hardware and checked that the IRQs of
serial devices have been correctly added.

Reviewers: reet

Reviewed By: reet

Differential Revision: https://dev.codelabs.ch/D529

2 years agoDrop unneeded ioport test files
Adrian-Ken Rueegsegger [Fri, 16 Dec 2016 11:44:29 +0000 (12:44 +0100)]
Drop unneeded ioport test files

2 years agoDrop unneded IOPORTS path
Adrian-Ken Rueegsegger [Fri, 16 Dec 2016 11:43:38 +0000 (12:43 +0100)]
Drop unneded IOPORTS path

2 years agoDrop obsolete serial device creator code
Adrian-Ken Rueegsegger [Fri, 16 Dec 2016 11:43:02 +0000 (12:43 +0100)]
Drop obsolete serial device creator code

2 years agoSwitch to new serial devices extraction method
Adrian-Ken Rueegsegger [Fri, 16 Dec 2016 11:40:12 +0000 (12:40 +0100)]
Switch to new serial devices extraction method

Use Linux sysfs serial information to determine serial devices of the
system.

2 years agoAdd getSerialDevices function
Adrian-Ken Rueegsegger [Thu, 15 Dec 2016 17:56:37 +0000 (18:56 +0100)]
Add getSerialDevices function

The function returns a list of serial devices found at the specified path.

2 years agoAdd parseSerialDeviceResources function
Adrian-Ken Rueegsegger [Thu, 15 Dec 2016 17:55:56 +0000 (18:55 +0100)]
Add parseSerialDeviceResources function

The function parses a serial device resource description string and returns
the extracted information. If the data cannot be parsed None is returned.

2 years agoAdd Linux sysfs path for serial devices
Adrian-Ken Rueegsegger [Thu, 15 Dec 2016 15:26:09 +0000 (16:26 +0100)]
Add Linux sysfs path for serial devices

2 years agoAdjust extraction of CPU count
Reto Buerki [Mon, 16 May 2016 21:47:14 +0000 (23:47 +0200)]
Adjust extraction of CPU count

Summary:
Ref T318. Update hardware schema to latest version and adjust extraction
of processor core count.

In the latest schema, the logicalCpus attribute of the processor element
has been replaced by cpuCores, which designates the physical CPU count.
Therefore extract the number of physical cores from the cpuinfo 'cpu
cores' line instead of counting the processor entries.

Reviewers: ken

Reviewed By: ken

Maniphest Tasks: T318

Differential Revision: https://dev.codelabs.ch/D451

2 years agoAdjust extraction of processor CPU count
Reto Buerki [Fri, 13 May 2016 21:29:08 +0000 (23:29 +0200)]
Adjust extraction of processor CPU count

The logicalCpus attribute of the processor element has been replaced by
cpuCores, which designates the physical CPU count. Therefore extract the
number of physical CPUs present from the cpuinfo 'cpu cores' line.

2 years agoUpdate hardware schema to latest version
Reto Buerki [Fri, 13 May 2016 16:07:50 +0000 (18:07 +0200)]
Update hardware schema to latest version

3 years agoREADME: Adjust filename of generated schema binding v0.5
Adrian-Ken Rueegsegger [Thu, 18 Feb 2016 14:13:38 +0000 (15:13 +0100)]
README: Adjust filename of generated schema binding

Auditors: reet

3 years agoDrop TODO file
Adrian-Ken Rueegsegger [Thu, 18 Feb 2016 14:07:38 +0000 (15:07 +0100)]
Drop TODO file

Auditors: reet

3 years agoRename mugenplcfg tool to mugenhwcfg
Reto Buerki [Tue, 16 Feb 2016 07:35:45 +0000 (08:35 +0100)]
Rename mugenplcfg tool to mugenhwcfg

Summary:
Ref T311. The tool has been renamed to mugenhwcfg since it
generates the hardware configuration of a target system, not the
platform configuration.

Reviewers: ken

Reviewed By: ken

Maniphest Tasks: T311

Differential Revision: https://dev.codelabs.ch/D428

3 years agoAdjust tool name in python source files
Reto Buerki [Mon, 15 Feb 2016 09:44:52 +0000 (10:44 +0100)]
Adjust tool name in python source files

3 years agoAdjust tool name in mugenhwcfg.py
Reto Buerki [Mon, 15 Feb 2016 09:44:27 +0000 (10:44 +0100)]
Adjust tool name in mugenhwcfg.py

3 years agoRename mugenplcfg.py to mugenhwcfg.py
Reto Buerki [Mon, 15 Feb 2016 09:39:53 +0000 (10:39 +0100)]
Rename mugenplcfg.py to mugenhwcfg.py

3 years agoAdjust project description in arcconfig file
Reto Buerki [Mon, 15 Feb 2016 09:38:58 +0000 (10:38 +0100)]
Adjust project description in arcconfig file

3 years agoAdjust project name in README.md file
Reto Buerki [Mon, 15 Feb 2016 09:37:15 +0000 (10:37 +0100)]
Adjust project name in README.md file

3 years agoStreamline naming of com device I/O port resource
Adrian-Ken Rueegsegger [Thu, 4 Feb 2016 14:31:47 +0000 (15:31 +0100)]
Streamline naming of com device I/O port resource

Summary:
Adjust name of com_[1-4] I/O port device resource to match naming scheme
of other devices.

Reviewers: reet

Reviewed By: reet

Differential Revision: https://dev.codelabs.ch/D425

3 years agoAdd .cache to gitignore
Adrian-Ken Rueegsegger [Thu, 4 Feb 2016 10:21:33 +0000 (11:21 +0100)]
Add .cache to gitignore

3 years agoStreamline naming of com device I/O port resource
Adrian-Ken Rueegsegger [Thu, 4 Feb 2016 10:15:11 +0000 (11:15 +0100)]
Streamline naming of com device I/O port resource

3 years agoGet rid of Element class in schemadata module
Reto Buerki [Wed, 27 Jan 2016 17:05:07 +0000 (18:05 +0100)]
Get rid of Element class in schemadata module

Summary:
Instead of using schemadata.Element() to wrap pyxb-generated binding
types, use pyxb functionality directly. It makes no sense to wrap a
versatile code-base with a much more restricted self-designed class.
This also solves the problem of creating Elements which use base types
like xs:string.

Furthermore fix getPciConfigAddress and init_DevicecapManager tests and
implement a test for creator.createElements.

Besides minor cleanups also extend the README with information about how
to produce a coverage report.

Reviewers: ken

Reviewed By: ken

Differential Revision: https://dev.codelabs.ch/D421

3 years agoAdd coverage report information to README
Reto Buerki [Fri, 22 Jan 2016 07:47:58 +0000 (08:47 +0100)]
Add coverage report information to README

3 years agoFix test_init_DevicecapManager test
Reto Buerki [Thu, 21 Jan 2016 14:13:48 +0000 (15:13 +0100)]
Fix test_init_DevicecapManager test

Also assert the positive case.

3 years agoImprove getVmxTimerRate error message
Reto Buerki [Thu, 21 Jan 2016 13:38:57 +0000 (14:38 +0100)]
Improve getVmxTimerRate error message

3 years agoRemove unneeded whitespace from log output
Reto Buerki [Fri, 22 Jan 2016 12:16:48 +0000 (13:16 +0100)]
Remove unneeded whitespace from log output

3 years agoImplement test for creator.createElements
Reto Buerki [Thu, 21 Jan 2016 13:28:14 +0000 (14:28 +0100)]
Implement test for creator.createElements

3 years agoFix test_getPciConfigAddress
Reto Buerki [Thu, 21 Jan 2016 13:11:51 +0000 (14:11 +0100)]
Fix test_getPciConfigAddress

Add missing asserts and adjust iomem file for one negative test.

3 years agoSimplify device creator tests
Reto Buerki [Thu, 21 Jan 2016 13:02:30 +0000 (14:02 +0100)]
Simplify device creator tests

3 years agoDrop Element class and associated tests
Reto Buerki [Thu, 21 Jan 2016 09:32:10 +0000 (10:32 +0100)]
Drop Element class and associated tests

3 years agoDrop Element import in creator module and tests
Reto Buerki [Thu, 21 Jan 2016 09:31:15 +0000 (10:31 +0100)]
Drop Element import in creator module and tests

3 years agoUse pyxb toxml function in output.genXML
Reto Buerki [Thu, 21 Jan 2016 09:37:42 +0000 (10:37 +0100)]
Use pyxb toxml function in output.genXML

Adjust associated test_genXML accordingly.

3 years agoDrop obsolete mock functions in IOMMU test_createElems
Reto Buerki [Thu, 21 Jan 2016 09:24:35 +0000 (10:24 +0100)]
Drop obsolete mock functions in IOMMU test_createElems

3 years agoRemove Element class from creator.createElements
Reto Buerki [Thu, 21 Jan 2016 09:24:05 +0000 (10:24 +0100)]
Remove Element class from creator.createElements

3 years agoRemove Element class from ProcessorCreator.createElem
Reto Buerki [Thu, 21 Jan 2016 09:17:42 +0000 (10:17 +0100)]
Remove Element class from ProcessorCreator.createElem

3 years agoRemove Element class from DevicesCreator.createElem
Reto Buerki [Thu, 21 Jan 2016 09:12:39 +0000 (10:12 +0100)]
Remove Element class from DevicesCreator.createElem

3 years agoDrop Element class usage in MemoryCreator class
Reto Buerki [Thu, 21 Jan 2016 08:40:35 +0000 (09:40 +0100)]
Drop Element class usage in MemoryCreator class

3 years agoRemove Element class from createSerialDevices
Reto Buerki [Thu, 21 Jan 2016 08:04:01 +0000 (09:04 +0100)]
Remove Element class from createSerialDevices

3 years agoRemove Element class from createComDevices
Reto Buerki [Thu, 21 Jan 2016 07:53:06 +0000 (08:53 +0100)]
Remove Element class from createComDevices

3 years agoRemove Element class from test_createDeviceFromAddr
Reto Buerki [Thu, 21 Jan 2016 05:24:26 +0000 (06:24 +0100)]
Remove Element class from test_createDeviceFromAddr

3 years agoRemove Element class from createDeviceFromAddr
Reto Buerki [Thu, 21 Jan 2016 05:06:47 +0000 (06:06 +0100)]
Remove Element class from createDeviceFromAddr

3 years agoRemove Element class from test_createDeviceFromPath
Reto Buerki [Thu, 21 Jan 2016 04:20:11 +0000 (05:20 +0100)]
Remove Element class from test_createDeviceFromPath

3 years agoCreate reservedMemRegionRefType using schema module
Reto Buerki [Thu, 21 Jan 2016 04:08:18 +0000 (05:08 +0100)]
Create reservedMemRegionRefType using schema module

Drop explicit test as this simple functionality is tested in
test_createDeviceFromPath

3 years agoRemove Element class usage from getIoports
Reto Buerki [Thu, 21 Jan 2016 04:01:37 +0000 (05:01 +0100)]
Remove Element class usage from getIoports

3 years agoRename getDeviceMemoryBlocks to getDeviceMemory
Reto Buerki [Thu, 21 Jan 2016 04:02:49 +0000 (05:02 +0100)]
Rename getDeviceMemoryBlocks to getDeviceMemory

3 years agoRemove Element class usage from getDeviceMemoryBlocks
Reto Buerki [Thu, 21 Jan 2016 03:40:33 +0000 (04:40 +0100)]
Remove Element class usage from getDeviceMemoryBlocks

3 years agoAdd assert_xb, assert_xbl test utility functions
Reto Buerki [Thu, 21 Jan 2016 03:25:38 +0000 (04:25 +0100)]
Add assert_xb, assert_xbl test utility functions

These convenience functions can be used to assert that two pyxb elements
or two lists of pyxb elements are equal on XML level.

3 years agoRemove Element class from getIrq getters
Reto Buerki [Thu, 21 Jan 2016 03:04:48 +0000 (04:04 +0100)]
Remove Element class from getIrq getters

3 years agoRemove Element class from creator.getPci
Reto Buerki [Thu, 21 Jan 2016 02:23:05 +0000 (03:23 +0100)]
Remove Element class from creator.getPci

3 years agoSimplify createDeviceFromPath function
Reto Buerki [Wed, 20 Jan 2016 11:55:20 +0000 (12:55 +0100)]
Simplify createDeviceFromPath function

Instead of using schemadata.Element() to wrap the creation of a
deviceType class and all its sub-elements, use pyxb functionality
directly. It makes no sense to wrap a versatile code-base with a much
more restricted self-designed class. The simplification also solves the
problem of creating Elements which use base types like xs:string.

3 years agoCollect PCI device identification data
Reto Buerki [Wed, 27 Jan 2016 16:10:49 +0000 (17:10 +0100)]
Collect PCI device identification data

Summary:
Ref T272. The updated hardware schema adds a description element to
device elements and an identification element to pci elements.  The
additional elements simplify the identification of collected PCI
devices.

Export classcode/vendorId/deviceId and revisionId values in the new
identification element and a vendor/device string as description.

Reviewers: ken

Reviewed By: ken

Maniphest Tasks: T272

Differential Revision: https://dev.codelabs.ch/D420

3 years agoAlso export revision ID in device identification
Reto Buerki [Wed, 27 Jan 2016 13:18:50 +0000 (14:18 +0100)]
Also export revision ID in device identification

3 years agoDo not append device description element if unknown
Reto Buerki [Wed, 20 Jan 2016 14:01:38 +0000 (15:01 +0100)]
Do not append device description element if unknown

Do not append the optional description element if either the vendorId
or the deviceId can not be resolved to a human-readable string.

3 years agoStrip 0x from classcode in getDeviceSpecs function
Reto Buerki [Wed, 20 Jan 2016 13:27:42 +0000 (14:27 +0100)]
Strip 0x from classcode in getDeviceSpecs function

3 years agoRename devices_testshortnames dir to devices_testspecs
Reto Buerki [Wed, 20 Jan 2016 12:06:36 +0000 (13:06 +0100)]
Rename devices_testshortnames dir to devices_testspecs

3 years agoAdd identification child element to pci element
Reto Buerki [Tue, 19 Jan 2016 16:55:25 +0000 (17:55 +0100)]
Add identification child element to pci element

The identification child element stores the classcode, vendorId,
deviceId and revisionId of a PCI device.

3 years agoAppend device description in createDeviceFromPath
Reto Buerki [Tue, 19 Jan 2016 16:37:54 +0000 (17:37 +0100)]
Append device description in createDeviceFromPath

Introduce XML schema simpleType 'devDescrType' to work around the
problem that the schemadata.Element class is unable to handle elements
which are based on built-in types like xs:string etc.

3 years agoStore device description in PCI device tuple
Reto Buerki [Tue, 19 Jan 2016 16:00:24 +0000 (17:00 +0100)]
Store device description in PCI device tuple

The 'descr' field stores the human-readable vendor/device string.

3 years agoUse data/pci.ids file in tests
Reto Buerki [Tue, 19 Jan 2016 15:59:15 +0000 (16:59 +0100)]
Use data/pci.ids file in tests

Drop obsolete data/testpciids file

3 years agoStore device ID in PCI device tuple
Reto Buerki [Tue, 19 Jan 2016 15:43:43 +0000 (16:43 +0100)]
Store device ID in PCI device tuple

3 years agoStore vendor ID in PCI device tuple
Reto Buerki [Tue, 19 Jan 2016 15:35:09 +0000 (16:35 +0100)]
Store vendor ID in PCI device tuple

3 years agoStore classcode in PCI device tuple
Reto Buerki [Tue, 19 Jan 2016 15:23:38 +0000 (16:23 +0100)]
Store classcode in PCI device tuple

3 years agoAdjust name of PciDevicesCreator.getClassName
Reto Buerki [Tue, 19 Jan 2016 14:53:42 +0000 (15:53 +0100)]
Adjust name of PciDevicesCreator.getClassName

Rename the function to toClassName and change argument from device path
to class code string.

3 years agoRename getDeviceShortNames function to getDeviceSpecs
Reto Buerki [Tue, 19 Jan 2016 14:16:23 +0000 (15:16 +0100)]
Rename getDeviceShortNames function to getDeviceSpecs

Return PciDevice named tuples instead of a plain string.

3 years agoPass device name to createDeviceFromPath
Reto Buerki [Tue, 19 Jan 2016 13:47:14 +0000 (14:47 +0100)]
Pass device name to createDeviceFromPath

Instead of passing all the device short names, resolve the device name
before calling the createDeviceFromPath function.

3 years agoUpdate hardware schema to latest version
Reto Buerki [Tue, 19 Jan 2016 13:15:37 +0000 (14:15 +0100)]
Update hardware schema to latest version