Lines Matching refs:adh
87 void get_acpi_description_header(uint8_t * q, s_acpi_description_header * adh)
89 cp_str_struct(adh->signature);
90 cp_struct(&adh->length);
91 cp_struct(&adh->revision);
92 cp_struct(&adh->checksum);
93 cp_str_struct(adh->oem_id);
94 cp_str_struct(adh->oem_table_id);
95 cp_struct(&adh->oem_revision);
96 cp_str_struct(adh->creator_id);
97 cp_struct(&adh->creator_revision);
98 DEBUG_PRINT(("acpi_header at %p = %s | %s | %s\n", q, adh->signature,adh->oem_id, adh->creator_id ));
102 s_acpi_description_header adh;
103 memset(&adh, 0, sizeof(adh));
105 get_acpi_description_header((uint8_t *)address, &adh);
109 if (memcmp(adh.signature, FACP, sizeof(FACP) - 1) == 0) {
117 memcpy(&f->header, &adh, sizeof(adh));
159 else if (memcmp(adh.signature, APIC, sizeof(APIC) - 1) == 0) {
165 memcpy(&m->header, &adh, sizeof(adh));
167 } else if (memcmp(adh.signature, DSDT, sizeof(DSDT) - 1) == 0) {
173 memcpy(&d->header, &adh, sizeof(adh));
176 } else if ((memcmp(adh.signature, SSDT, sizeof(SSDT) - 1) == 0)
177 || (memcmp(adh.signature, PSDT, sizeof(PSDT) - 1) == 0)) {
179 DEBUG_PRINT(("SSDT table found with %s \n",adh.signature));
193 memcpy(&s->header, &adh, sizeof(adh));
196 uint32_t definition_block_size = adh.length - ACPI_HEADER_SIZE;
205 } else if (memcmp(adh.signature, SBST, sizeof(SBST) - 1) == 0) {
211 memcpy(&s->header, &adh, sizeof(adh));
213 } else if (memcmp(adh.signature, ECDT, sizeof(ECDT) - 1) == 0) {
219 memcpy(&e->header, &adh, sizeof(adh));
221 } else if (memcmp(adh.signature, HPET, sizeof(HPET) - 1) == 0) {
227 memcpy(&h->header, &adh, sizeof(adh));
228 } else if (memcmp(adh.signature, TCPA, sizeof(TCPA) - 1) == 0) {
234 memcpy(&t->header, &adh, sizeof(adh));
235 } else if (memcmp(adh.signature, MCFG, sizeof(MCFG) - 1) == 0) {
241 memcpy(&m->header, &adh, sizeof(adh));
242 } else if (memcmp(adh.signature, SLIC, sizeof(SLIC) - 1) == 0) {
248 memcpy(&s->header, &adh, sizeof(adh));
249 } else if (memcmp(adh.signature, BOOT, sizeof(BOOT) - 1) == 0) {
255 memcpy(&b->header, &adh, sizeof(adh));