Lines Matching refs:dmi
2 * Dump DMI information in a way hopefully compatible with dmidecode
30 struct dmi_header dmi;
46 const struct dmi_header *dmi = (void *)dptr;
48 return !memcmp(dmi->signature, "_DMI_", 5) &&
49 !checksum(dmi, 0x0f);
68 snprintf(filename, sizeof filename, "dmi/%05x.%08x",
69 dptr, smb->dmi.tbladdr);
70 cpio_hdr(be, MODE_FILE, smb->dmi.tbllen + 32, filename);
75 * since it includes the checksum on the dmi table.
77 smx.dmi.tbladdr = sizeof smx;
78 smx.dmi.csum -= checksum(&smx.dmi, 0x0f);
81 write_data(be, (const void *)smb->dmi.tbladdr, smb->dmi.tbllen);
86 const struct dmi_header *dmi = (void *)dptr;
88 struct dmi_header dmi;
93 snprintf(filename, sizeof filename, "dmi/%05x.%08x",
94 dptr, dmi->tbladdr);
95 cpio_hdr(be, MODE_FILE, dmi->tbllen + 32, filename);
101 fake.dmi = *dmi;
103 fake.dmi.tbladdr = sizeof fake;
104 fake.dmi.csum -= checksum(&fake.dmi, 0x0f);
107 write_data(be, (const void *)dmi->tbladdr, dmi->tbllen);
114 cpio_mkdir(be, "dmi");
120 dptr += 16; /* Skip the subsequent DMI header */