Adding a com32 module to handle DMI
authorErwan Velu <erwan@seanodes.com>
Mon, 14 Aug 2006 20:10:33 +0000 (22:10 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 15 Aug 2006 05:25:26 +0000 (22:25 -0700)
commit1442feb3e09f6752a58191b4630a76e3051bca60
tree5eb98c7a2012479ac12562998459c427ea14fb46
parent104dd7b80670b7180cd1ea84f5f9832e92bbcf54
Adding a com32 module to handle DMI

 From : Erwan Velu <erwan.velu@free.fr>

This patch add a new com32 module named dmi.
It can parse DMI Hanldes number 0,1,2,3,4.
Using a very simple API, you can read the values of the following "Handles"
- BIOS
- CHASSIS
- SYSTEM
- BASE_BOARD
- PROCESSOR

It's possible and easy to extend to many other Handles.

A sample code program called dmitest shows how you can use and display
this structures.

The codes is mainly taken from the Linux Kernel and the smartmontool
projects.
Both are GPL, my code too.

Testing and feedback are welcomed.

Signed-off-by:Erwan Velu <erwan.velu@free.fr>
com32/include/dmi/dmi.h [new file with mode: 0644]
com32/include/dmi/dmi_base_board.h [new file with mode: 0644]
com32/include/dmi/dmi_bios.h [new file with mode: 0644]
com32/include/dmi/dmi_chassis.h [new file with mode: 0644]
com32/include/dmi/dmi_processor.h [new file with mode: 0644]
com32/include/dmi/dmi_system.h [new file with mode: 0644]
com32/modules/Makefile
com32/modules/dmi.c [new file with mode: 0644]
com32/modules/dmi_utils.c [new file with mode: 0644]
com32/modules/dmitest.c [new file with mode: 0644]