summaryrefslogtreecommitdiffstats
path: root/src/hardware/dmidecode.h
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-05-30 17:28:13 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-05-30 17:28:13 +0200
commitde4bd288b2c1eec5e3133df916ab5aa225d8ed96 (patch)
tree849bb285557fda63a16a5bb8c9adf5d1fd40a9a2 /src/hardware/dmidecode.h
parentdec0ce45beeb80fd125dd2500c28a0a5d4535625 (diff)
downloadopenlmi-providers-de4bd288b2c1eec5e3133df916ab5aa225d8ed96.tar.gz
openlmi-providers-de4bd288b2c1eec5e3133df916ab5aa225d8ed96.tar.xz
openlmi-providers-de4bd288b2c1eec5e3133df916ab5aa225d8ed96.zip
Hardware: Connect processor(s) and memory with chassis
New providers: * LMI_ProcessorChipContainer * LMI_MemorySlot * LMI_MemorySlotContainer * LMI_MemoryPhysicalPackage * LMI_MemoryPhysicalPackageInConnector * LMI_PhysicalMemoryContainer This commmit brings also provider for memory slot, and memory physical package, which is plugged in memory slot.
Diffstat (limited to 'src/hardware/dmidecode.h')
-rw-r--r--src/hardware/dmidecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hardware/dmidecode.h b/src/hardware/dmidecode.h
index 140f492..d3f8bd4 100644
--- a/src/hardware/dmidecode.h
+++ b/src/hardware/dmidecode.h
@@ -81,6 +81,12 @@ typedef struct _DmiMemoryModule {
unsigned total_width; /* Memory Module Total Width in bits */
} DmiMemoryModule;
+/* Memory slot from dmidecode. */
+typedef struct _DmiMemorySlot {
+ int slot_number; /* Slot number */
+ char *name; /* Slot name */
+} DmiMemorySlot;
+
/* Memory from dmidecode. */
typedef struct _DmiMemory {
unsigned long physical_size; /* Physical Memory Size in Bytes */
@@ -89,6 +95,8 @@ typedef struct _DmiMemory {
unsigned long end_addr; /* Ending Address of Memory Array in KB */
DmiMemoryModule *modules; /* Memory Modules */
unsigned modules_nb; /* Number of Memory Modules */
+ DmiMemorySlot *slots; /* Memory slots, including empty ones */
+ unsigned slots_nb; /* Number of all memory slots */
} DmiMemory;
/* Chassis from dmidecode. */