1 /* inteltool - dump all registers on an Intel CPU + chipset based system */
2 /* SPDX-License-Identifier: GPL-2.0-only */
9 #define MMIO_SIZE 0x100000
11 int print_gfx(struct pci_dev
*gfx
)
17 printf ("No IGD found\n");
20 printf("\n============= IGD ==============\n\n");
21 mmio_phys
= gfx
->base_addr
[0] & ~0x7ULL
;
22 printf("IGD MMIO = 0x%08llx (MEM)\n\n", (unsigned long long)mmio_phys
);
23 mmio
= map_physical(mmio_phys
, MMIO_SIZE
);
25 perror("Error mapping MMIO");
28 for (i
= 0; i
< MMIO_SIZE
; i
+= 4) {
30 printf("0x%06x: 0x%08x\n", i
, read32(mmio
+ i
));
32 unmap_physical((void *)mmio
, MMIO_SIZE
);