Displaying 2 results from an estimated 2 matches for "memory_count".
2009 Apr 10
2
[RESEND][PATCH] gpllib: dmi: set default memory speed to "Unknown"
...=======================================================
--- syslinux-3.74-20-g3b80c26.orig/com32/gpllib/dmi/dmi.c
+++ syslinux-3.74-20-g3b80c26/com32/gpllib/dmi/dmi.c
@@ -496,6 +496,7 @@ void dmi_decode(struct dmi_header *h, ui
if (h->length < 0x15) break;
dmi->memory_count++;
s_memory *mem = &dmi->memory[dmi->memory_count-1];
+ sprintf(mem->speed, "%s", "Unknown");
dmi->memory[dmi->memory_count-1].filled=true;
dmi_memory_array_error_handle(WORD(data + 0x06),mem->error);...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...tus);
- lua_settable(L,-3);
- lua_pushstring(L, "chassis.oem_information");
- lua_pushstring(L, dmi.chassis.oem_information);
- lua_settable(L,-3);
+static int get_memory_table(lua_State *L, s_dmi *dmi_ptr)
+{
+ s_memory *memory = dmi_ptr->memory;
+ int i, j, n_mem = dmi_ptr->memory_count;
- lua_pushstring(L, "chassis.height");
- lua_pushnumber(L, dmi.chassis.height);
- lua_settable(L,-3);
+ if (n_mem <= 0) /* no memory info */
+ return 0;
- lua_pushstring(L, "chassis.nb_power_cords");
- lua_pushnumber(L, dmi.chassis.nb_power_cords);
- lua_settab...