Lines Matching defs:dword
47 dword = INREG(reg); \
48 printf("%-18s 0x%08x %s\n", # reg, dword, desc); \
188 uint32_t dword;
198 dword |= SDVO_ENABLE;
199 dword |= SDVO_BORDER_ENABLE;
200 dword |= SDVO_AUDIO_ENABLE;
201 dword |= SDVO_NULL_PACKETS_DURING_VSYNC;
202 OUTREG(SDVOB, dword);
205 OUTREG(PORT_HOTPLUG_EN, dword | AUDIO_HOTPLUG_EN);
208 dword &= ~( VIDEO_DIP_ENABLE_AVI |
211 OUTREG(VIDEO_DIP_CTL, dword);
212 dword |= VIDEO_DIP_ENABLE;
213 OUTREG(VIDEO_DIP_CTL, dword);
218 dword &= ~SDVO_AUDIO_ENABLE;
219 dword &= ~SDVO_NULL_PACKETS_DURING_VSYNC;
220 OUTREG(SDVOB, dword);
261 dword = INREG(AUD_VID_DID);
262 printf("AUD_VID_DID vendor id\t\t\t0x%x\n", dword >> 16);
263 printf("AUD_VID_DID device id\t\t\t0x%x\n", dword & 0xffff);
265 dword = INREG(AUD_RID);
266 printf("AUD_RID major revision\t\t\t0x%lx\n", BITS(dword, 23, 20));
267 printf("AUD_RID minor revision\t\t\t0x%lx\n", BITS(dword, 19, 16));
268 printf("AUD_RID revision id\t\t\t0x%lx\n", BITS(dword, 15, 8));
269 printf("AUD_RID stepping id\t\t\t0x%lx\n", BITS(dword, 7, 0));
271 dword = INREG(SDVOB);
272 printf("SDVOB enable\t\t\t\t%u\n", !!(dword & SDVO_ENABLE));
273 printf("SDVOB HDMI encoding\t\t\t%u\n", !!(dword & SDVO_ENCODING_HDMI));
274 printf("SDVOB SDVO encoding\t\t\t%u\n", !!(dword & SDVO_ENCODING_SDVO));
275 printf("SDVOB null packets\t\t\t%u\n", !!(dword & SDVO_NULL_PACKETS_DURING_VSYNC));
276 printf("SDVOB audio enabled\t\t\t%u\n", !!(dword & SDVO_AUDIO_ENABLE));
278 dword = INREG(SDVOC);
279 printf("SDVOC enable\t\t\t\t%u\n", !!(dword & SDVO_ENABLE));
280 printf("SDVOC HDMI encoding\t\t\t%u\n", !!(dword & SDVO_ENCODING_HDMI));
281 printf("SDVOC SDVO encoding\t\t\t%u\n", !!(dword & SDVO_ENCODING_SDVO));
282 printf("SDVOC null packets\t\t\t%u\n", !!(dword & SDVO_NULL_PACKETS_DURING_VSYNC));
283 printf("SDVOC audio enabled\t\t\t%u\n", !!(dword & SDVO_AUDIO_ENABLE));
285 dword = INREG(PORT_HOTPLUG_EN);
286 printf("PORT_HOTPLUG_EN DisplayPort/HDMI port B\t%ld\n", BIT(dword, 29)),
287 printf("PORT_HOTPLUG_EN DisplayPort/HDMI port C\t%ld\n", BIT(dword, 28)),
288 printf("PORT_HOTPLUG_EN DisplayPort port D\t%ld\n", BIT(dword, 27)),
289 printf("PORT_HOTPLUG_EN SDVOB\t\t\t%ld\n", BIT(dword, 26)),
290 printf("PORT_HOTPLUG_EN SDVOC\t\t\t%ld\n", BIT(dword, 25)),
291 printf("PORT_HOTPLUG_EN audio\t\t\t%ld\n", BIT(dword, 24)),
292 printf("PORT_HOTPLUG_EN TV\t\t\t%ld\n", BIT(dword, 23)),
293 printf("PORT_HOTPLUG_EN CRT\t\t\t%ld\n", BIT(dword, 9)),
295 dword = INREG(VIDEO_DIP_CTL);
296 printf("VIDEO_DIP_CTL enable graphics DIP\t%ld\n", BIT(dword, 31)),
298 BITS(dword, 30, 29), dip_port[BITS(dword, 30, 29)]);
299 printf("VIDEO_DIP_CTL DIP buffer trans active\t%lu\n", BIT(dword, 28));
300 printf("VIDEO_DIP_CTL AVI DIP enabled\t\t%lu\n", BIT(dword, 21));
301 printf("VIDEO_DIP_CTL vendor DIP enabled\t%lu\n", BIT(dword, 22));
302 printf("VIDEO_DIP_CTL SPD DIP enabled\t\t%lu\n", BIT(dword, 24));
304 BITS(dword, 20, 19), video_dip_index[BITS(dword, 20, 19)]);
306 BITS(dword, 17, 16), video_dip_trans[BITS(dword, 17, 16)]);
307 printf("VIDEO_DIP_CTL DIP buffer size\t\t%lu\n", BITS(dword, 11, 8));
308 printf("VIDEO_DIP_CTL DIP address\t\t%lu\n", BITS(dword, 3, 0));
310 dword = INREG(AUD_CONFIG);
311 printf("AUD_CONFIG pixel clock\t\t\t[0x%lx] %s\n", BITS(dword, 19, 16),
312 OPNAME(pixel_clock, BITS(dword, 19, 16)));
313 printf("AUD_CONFIG fabrication enabled\t\t%lu\n", BITS(dword, 2, 2));
314 printf("AUD_CONFIG professional use allowed\t%lu\n", BIT(dword, 1));
315 printf("AUD_CONFIG fuse enabled\t\t\t%lu\n", BIT(dword, 0));
317 dword = INREG(AUD_DEBUG);
318 printf("AUD_DEBUG function reset\t\t%lu\n", BIT(dword, 0));
320 dword = INREG(AUD_SUBN_CNT);
321 printf("AUD_SUBN_CNT starting node number\t0x%lx\n", BITS(dword, 23, 16));
322 printf("AUD_SUBN_CNT total number of nodes\t0x%lx\n", BITS(dword, 7, 0));
324 dword = INREG(AUD_SUBN_CNT2);
325 printf("AUD_SUBN_CNT2 starting node number\t0x%lx\n", BITS(dword, 24, 16));
326 printf("AUD_SUBN_CNT2 total number of nodes\t0x%lx\n", BITS(dword, 7, 0));
328 dword = INREG(AUD_FUNC_GRP);
329 printf("AUD_FUNC_GRP unsol capable\t\t%lu\n", BIT(dword, 8));
330 printf("AUD_FUNC_GRP node type\t\t\t0x%lx\n", BITS(dword, 7, 0));
332 dword = INREG(AUD_GRP_CAP);
333 printf("AUD_GRP_CAP beep 0\t\t\t%lu\n", BIT(dword, 16));
334 printf("AUD_GRP_CAP input delay\t\t\t%lu\n", BITS(dword, 11, 8));
335 printf("AUD_GRP_CAP output delay\t\t%lu\n", BITS(dword, 3, 0));
337 dword = INREG(AUD_PWRST);
339 power_state[BITS(dword, 5, 4)]);
341 power_state[BITS(dword, 1, 0)]);
343 dword = INREG(AUD_SUPPWR);
344 printf("AUD_SUPPWR support D0\t\t\t%lu\n", BIT(dword, 0));
345 printf("AUD_SUPPWR support D1\t\t\t%lu\n", BIT(dword, 1));
346 printf("AUD_SUPPWR support D2\t\t\t%lu\n", BIT(dword, 2));
347 printf("AUD_SUPPWR support D3\t\t\t%lu\n", BIT(dword, 3));
349 dword = INREG(AUD_OUT_CWCAP);
350 printf("AUD_OUT_CWCAP widget type\t\t0x%lx\n", BITS(dword, 23, 20));
351 printf("AUD_OUT_CWCAP sample delay\t\t0x%lx\n", BITS(dword, 19, 16));
353 BITS(dword, 15, 13) * 2 + BIT(dword, 0) + 1);
354 printf("AUD_OUT_CWCAP L-R swap\t\t\t%lu\n", BIT(dword, 11));
355 printf("AUD_OUT_CWCAP power control\t\t%lu\n", BIT(dword, 10));
356 printf("AUD_OUT_CWCAP digital\t\t\t%lu\n", BIT(dword, 9));
357 printf("AUD_OUT_CWCAP conn list\t\t\t%lu\n", BIT(dword, 8));
358 printf("AUD_OUT_CWCAP unsol\t\t\t%lu\n", BIT(dword, 7));
359 printf("AUD_OUT_CWCAP mute\t\t\t%lu\n", BIT(dword, 5));
360 printf("AUD_OUT_CWCAP format override\t\t%lu\n", BIT(dword, 4));
361 printf("AUD_OUT_CWCAP amp param override\t%lu\n", BIT(dword, 3));
362 printf("AUD_OUT_CWCAP out amp present\t\t%lu\n", BIT(dword, 2));
363 printf("AUD_OUT_CWCAP in amp present\t\t%lu\n", BIT(dword, 1));
365 dword = INREG(AUD_OUT_DIG_CNVT);
366 printf("AUD_OUT_DIG_CNVT SPDIF category\t\t0x%lx\n", BITS(dword, 14, 8));
367 printf("AUD_OUT_DIG_CNVT SPDIF level\t\t%lu\n", BIT(dword, 7));
368 printf("AUD_OUT_DIG_CNVT professional\t\t%lu\n", BIT(dword, 6));
369 printf("AUD_OUT_DIG_CNVT non PCM\t\t%lu\n", BIT(dword, 5));
370 printf("AUD_OUT_DIG_CNVT copyright asserted\t%lu\n", BIT(dword, 4));
371 printf("AUD_OUT_DIG_CNVT filter preemphasis\t%lu\n", BIT(dword, 3));
372 printf("AUD_OUT_DIG_CNVT validity config\t%lu\n", BIT(dword, 2));
373 printf("AUD_OUT_DIG_CNVT validity flag\t\t%lu\n", BIT(dword, 1));
374 printf("AUD_OUT_DIG_CNVT digital enable\t\t%lu\n", BIT(dword, 0));
376 dword = INREG(AUD_OUT_CH_STR);
377 printf("AUD_OUT_CH_STR stream id\t\t0x%lx\n", BITS(dword, 7, 4));
378 printf("AUD_OUT_CH_STR lowest channel\t\t0x%lx\n", BITS(dword, 3, 0));
380 dword = INREG(AUD_OUT_STR_DESC);
381 printf("AUD_OUT_STR_DESC stream channels\t0x%lx\n", BITS(dword, 3, 0));
383 dword = INREG(AUD_PINW_CAP);
384 printf("AUD_PINW_CAP widget type\t\t0x%lx\n", BITS(dword, 23, 20));
385 printf("AUD_PINW_CAP sample delay\t\t0x%lx\n", BITS(dword, 19, 16));
387 BITS(dword, 15, 13) * 2 + BIT(dword, 0));
388 printf("AUD_PINW_CAP HDCP\t\t\t%lu\n", BIT(dword, 12));
389 printf("AUD_PINW_CAP L-R swap\t\t\t%lu\n", BIT(dword, 11));
390 printf("AUD_PINW_CAP power control\t\t%lu\n", BIT(dword, 10));
391 printf("AUD_PINW_CAP digital\t\t\t%lu\n", BIT(dword, 9));
392 printf("AUD_PINW_CAP conn list\t\t\t%lu\n", BIT(dword, 8));
393 printf("AUD_PINW_CAP unsol\t\t\t%lu\n", BIT(dword, 7));
394 printf("AUD_PINW_CAP mute\t\t\t%lu\n", BIT(dword, 5));
395 printf("AUD_PINW_CAP format override\t\t%lu\n", BIT(dword, 4));
396 printf("AUD_PINW_CAP amp param override\t\t%lu\n", BIT(dword, 3));
397 printf("AUD_PINW_CAP out amp present\t\t%lu\n", BIT(dword, 2));
398 printf("AUD_PINW_CAP in amp present\t\t%lu\n", BIT(dword, 1));
401 dword = INREG(AUD_PIN_CAP);
402 printf("AUD_PIN_CAP EAPD\t\t\t%lu\n", BIT(dword, 16));
403 printf("AUD_PIN_CAP HDMI\t\t\t%lu\n", BIT(dword, 7));
404 printf("AUD_PIN_CAP output\t\t\t%lu\n", BIT(dword, 4));
405 printf("AUD_PIN_CAP presence detect\t\t%lu\n", BIT(dword, 2));
407 dword = INREG(AUD_PINW_CNTR);
408 printf("AUD_PINW_CNTR mute status\t\t%lu\n", BIT(dword, 8));
409 printf("AUD_PINW_CNTR out enable\t\t%lu\n", BIT(dword, 6));
410 printf("AUD_PINW_CNTR amp mute status\t\t%lu\n", BIT(dword, 8));
411 printf("AUD_PINW_CNTR amp mute status\t\t%lu\n", BIT(dword, 8));
413 BITS(dword, 2, 0),
414 OPNAME(stream_type, BITS(dword, 2, 0)));
416 dword = INREG(AUD_PINW_UNSOLRESP);
417 printf("AUD_PINW_UNSOLRESP enable unsol resp\t%lu\n", BIT(dword, 31));
419 dword = INREG(AUD_CNTL_ST);
420 printf("AUD_CNTL_ST DIP audio enabled\t\t%lu\n", BIT(dword, 21));
421 printf("AUD_CNTL_ST DIP ACP enabled\t\t%lu\n", BIT(dword, 22));
422 printf("AUD_CNTL_ST DIP ISRCx enabled\t\t%lu\n", BIT(dword, 23));
424 BITS(dword, 30, 29), dip_port[BITS(dword, 30, 29)]);
426 BITS(dword, 20, 18), OPNAME(dip_index, BITS(dword, 20, 18)));
428 BITS(dword, 17, 16), dip_trans[BITS(dword, 17, 16)]);
429 printf("AUD_CNTL_ST DIP address\t\t\t%lu\n", BITS(dword, 3, 0));
430 printf("AUD_CNTL_ST CP ready\t\t\t%lu\n", BIT(dword, 15));
431 printf("AUD_CNTL_ST ELD valid\t\t\t%lu\n", BIT(dword, 14));
432 printf("AUD_CNTL_ST ELD ack\t\t\t%lu\n", BIT(dword, 4));
433 printf("AUD_CNTL_ST ELD bufsize\t\t\t%lu\n", BITS(dword, 13, 9));
434 printf("AUD_CNTL_ST ELD address\t\t\t%lu\n", BITS(dword, 8, 5));
436 dword = INREG(AUD_HDMIW_STATUS);
437 printf("AUD_HDMIW_STATUS CDCLK/DOTCLK underrun\t%lu\n", BIT(dword, 31));
438 printf("AUD_HDMIW_STATUS CDCLK/DOTCLK overrun\t%lu\n", BIT(dword, 30));
439 printf("AUD_HDMIW_STATUS BCLK/CDCLK underrun\t%lu\n", BIT(dword, 29));
440 printf("AUD_HDMIW_STATUS BCLK/CDCLK overrun\t%lu\n", BIT(dword, 28));
442 dword = INREG(AUD_CONV_CHCNT);
443 printf("AUD_CONV_CHCNT HDMI HBR enabled\t\t%lu\n", BITS(dword, 15, 14));
444 printf("AUD_CONV_CHCNT HDMI channel count\t%lu\n", BITS(dword, 11, 8) + 1);
449 dword = INREG(AUD_CONV_CHCNT);
450 printf("\t\t\t\t\t[0x%x] %u => %lu \n", dword, i, BITS(dword, 7, 4));