c++ - SMBIOS Enum Values. Documentation error? -
i'm trying write simple parser smbios on windows.
while reading documentation 2.6.1 version (2.6 smbios version on laptop), came across system information entry (type 1 - section 3.3.2).
in docs says byte value represents wake-up type enum (i.e. bit field in each bit represents if wake-up type present or not, 1 or 0).
now, in following subsection 3.3.2.2, enum defined bit offsets 00h through 08h making total of 9 bit values. byte holds 8 bits. documentation wrong or missing something?
i want take byte out of structure , bit-wise , find out wake-up type following masks :
#define sm_si_other 0x00000001 #define sm_si_unknown 0x00000010 #define sm_si_apm_timer 0x00000100 #define sm_si_modern_ring 0x00001000 #define sm_si_lan_remote 0x00010000 #define sm_si_power_switch 0x00100000 #define sm_si_pci_pme 0x01000000 #define sm_si_ac_power_restored 0x10000000 here i'm missing reserved value. how should this?
here link documentation used : http://www.dmtf.org/sites/default/files/standards/documents/dsp0134_2.6.1.pdf
thank you, in advance, answers.
i looked @ document , says field enum, not bit mask.
Comments
Post a Comment