search for: s_bios

Displaying 2 results from an estimated 2 matches for "s_bios".

Did you mean: i_bios
2006 Aug 14
0
First attempt to use DMI in a com32 module
...with the elements founds in the table. And.... that's all ;) So the following code is enough : s_dmi dmi; if (dmi_iterate()) parse_dmitable(&dmi); Simple isn't it ? Then, if you like to access to the elements, you just have to print them. The s_dmi structure contains some s_system, s_bios, s_chassis, s_base_board, s_processor structures. They represent the content of the DMI HANDLES number 0,1,2,3,4. I was too lazy to continue to the remaining items. Maybe later if they are really needed in pxelinux. So if you like to know the form factor of the running system, dmi.chassis.type wil...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
..."bios.address"); - lua_pushnumber(L, dmi.bios.address); - lua_settable(L,-3); +/* +** {====================================================== +** DMI subtables +** ======================================================= +*/ +static int get_bios_table(lua_State *L, s_dmi *dmi_ptr) +{ + s_bios *bios = &dmi_ptr->bios; - lua_pushstring(L, "bios.runtime_size"); - lua_pushnumber(L, dmi.bios.runtime_size); + if (!bios->filled) + return 0; + /* bios */ + lua_newtable(L); + LUA_ADD_STR_P(L, bios, vendor) + LUA_ADD_STR_P(L, bios, version) + LUA_ADD_STR_P(L, bios,...