Lines Matching defs:entry

279 static void print_cftable_entry(cistpl_cftable_entry_t *entry)
283 printf("%scftable_entry 0x%2.2x%s\n", indent, entry->index,
284 (entry->flags & CISTPL_CFTABLE_DEFAULT) ? " [default]" : "");
286 if (entry->flags & ~CISTPL_CFTABLE_DEFAULT) {
288 if (entry->flags & CISTPL_CFTABLE_BVDS)
290 if (entry->flags & CISTPL_CFTABLE_WP)
292 if (entry->flags & CISTPL_CFTABLE_RDYBSY)
294 if (entry->flags & CISTPL_CFTABLE_MWAIT)
296 if (entry->flags & CISTPL_CFTABLE_AUDIO)
298 if (entry->flags & CISTPL_CFTABLE_READONLY)
300 if (entry->flags & CISTPL_CFTABLE_PWRDOWN)
305 if (entry->vcc.present)
306 print_power("Vcc", &entry->vcc);
307 if (entry->vpp1.present)
308 print_power("Vpp1", &entry->vpp1);
309 if (entry->vpp2.present)
310 print_power("Vpp2", &entry->vpp2);
312 if ((entry->timing.wait != 0) || (entry->timing.ready != 0) ||
313 (entry->timing.reserved != 0)) {
315 if (entry->timing.wait != 0) {
317 print_time(entry->timing.wait, entry->timing.waitscale);
319 if (entry->timing.ready != 0) {
321 print_time(entry->timing.ready, entry->timing.rdyscale);
323 if (entry->timing.reserved != 0) {
325 print_time(entry->timing.reserved, entry->timing.rsvscale);
330 if (entry->io.nwin) {
331 cistpl_io_t *io = &entry->io;
345 if (entry->irq.IRQInfo1) {
347 if (entry->irq.IRQInfo1 & IRQ_INFO2_VALID)
348 printf("mask 0x%04x", entry->irq.IRQInfo2);
350 printf("%u", entry->irq.IRQInfo1 & IRQ_MASK);
351 if (entry->irq.IRQInfo1 & IRQ_LEVEL_ID) printf(" [level]");
352 if (entry->irq.IRQInfo1 & IRQ_PULSE_ID) printf(" [pulse]");
353 if (entry->irq.IRQInfo1 & IRQ_SHARE_ID) printf(" [shared]");
357 if (entry->mem.nwin) {
358 cistpl_mem_t *mem = &entry->mem;
369 if (verbose && entry->subtuples)
370 printf("%s %d bytes in subtuples\n", indent, entry->subtuples);
376 static void print_cftable_entry_cb(cistpl_cftable_entry_cb_t *entry)
380 printf("%scftable_entry_cb 0x%2.2x%s\n", indent, entry->index,
381 (entry->flags & CISTPL_CFTABLE_DEFAULT) ? " [default]" : "");
383 if (entry->flags & ~CISTPL_CFTABLE_DEFAULT) {
385 if (entry->flags & CISTPL_CFTABLE_MASTER)
387 if (entry->flags & CISTPL_CFTABLE_INVALIDATE)
389 if (entry->flags & CISTPL_CFTABLE_VGA_PALETTE)
391 if (entry->flags & CISTPL_CFTABLE_PARITY)
393 if (entry->flags & CISTPL_CFTABLE_WAIT)
395 if (entry->flags & CISTPL_CFTABLE_SERR)
397 if (entry->flags & CISTPL_CFTABLE_FAST_BACK)
399 if (entry->flags & CISTPL_CFTABLE_BINARY_AUDIO)
401 if (entry->flags & CISTPL_CFTABLE_PWM_AUDIO)
406 if (entry->vcc.present)
407 print_power("Vcc", &entry->vcc);
408 if (entry->vpp1.present)
409 print_power("Vpp1", &entry->vpp1);
410 if (entry->vpp2.present)
411 print_power("Vpp2", &entry->vpp2);
413 if (entry->io) {
416 if (entry->io & (1<<i)) printf(" %d", i);
420 if (entry->irq.IRQInfo1) {
422 if (entry->irq.IRQInfo1 & IRQ_INFO2_VALID)
423 printf("mask 0x%4.4x", entry->irq.IRQInfo2);
425 printf("%u", entry->irq.IRQInfo1 & IRQ_MASK);
426 if (entry->irq.IRQInfo1 & IRQ_LEVEL_ID) printf(" [level]");
427 if (entry->irq.IRQInfo1 & IRQ_PULSE_ID) printf(" [pulse]");
428 if (entry->irq.IRQInfo1 & IRQ_SHARE_ID) printf(" [shared]");
432 if (entry->mem) {
435 if (entry->mem & (1<<i)) printf(" %d", i);
439 if (verbose && entry->subtuples)
440 printf("%s %d bytes in subtuples\n", indent, entry->subtuples);