search for: s_base_board

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

Did you mean: base_board
2006 Aug 14
0
First attempt to use DMI in a com32 module
...ounds 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 will return one of theses de...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...ua_pushstring(L, "system.sku_number"); - lua_pushstring(L, dmi.system.sku_number); - lua_settable(L,-3); - lua_pushstring(L, "system.family"); - lua_pushstring(L, dmi.system.family); - lua_settable(L,-3); +static int get_base_board_table(lua_State *L, s_dmi *dmi_ptr) +{ + s_base_board *base_board = &dmi_ptr->base_board; + int n_dev = sizeof(base_board->devices_information) / + sizeof(base_board->devices_information[0]); + int i, j, has_dev; + if (!base_board->filled) + return 0; /* base_board */ - lua_pushstring(L, "base_board.manufac...