Lines Matching +full:0 +full:x4321

29 #define VBE_DISPI_IOPORT_INDEX           0x01CE
30 #define VBE_DISPI_IOPORT_DATA 0x01CF
32 #define VBE_DISPI_INDEX_ID 0x0
33 #define VBE_DISPI_INDEX_XRES 0x1
34 #define VBE_DISPI_INDEX_YRES 0x2
35 #define VBE_DISPI_INDEX_BPP 0x3
36 #define VBE_DISPI_INDEX_ENABLE 0x4
37 #define VBE_DISPI_INDEX_BANK 0x5
38 #define VBE_DISPI_INDEX_VIRT_WIDTH 0x6
39 #define VBE_DISPI_INDEX_VIRT_HEIGHT 0x7
40 #define VBE_DISPI_INDEX_X_OFFSET 0x8
41 #define VBE_DISPI_INDEX_Y_OFFSET 0x9
42 #define VBE_DISPI_INDEX_VIDEO_MEMORY_64K 0xa
44 #define VBE_DISPI_ID0 0xB0C0
45 #define VBE_DISPI_ID1 0xB0C1
46 #define VBE_DISPI_ID2 0xB0C2
47 #define VBE_DISPI_ID3 0xB0C3
48 #define VBE_DISPI_ID4 0xB0C4
49 #define VBE_DISPI_ID5 0xB0C5
51 #define VBE_DISPI_DISABLED 0x00
52 #define VBE_DISPI_ENABLED 0x01
53 #define VBE_DISPI_GETCAPS 0x02
54 #define VBE_DISPI_8BIT_DAC 0x20
55 #define VBE_DISPI_LFB_ENABLED 0x40
56 #define VBE_DISPI_NOCLEARMEM 0x80
117 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df)) in bochs_vga_writeb()
121 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_writeb()
131 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df)) in bochs_vga_readb()
132 return 0xff; in bochs_vga_readb()
135 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_readb()
145 u16 ret = 0; in bochs_dispi_read()
148 int offset = 0x500 + (reg << 1); in bochs_dispi_read()
161 int offset = 0x500 + (reg << 1); in bochs_dispi_write()
175 writel(0xbebebebe, bochs->mmio + 0x604); in bochs_hw_set_big_endian()
183 writel(0x1e1e1e1e, bochs->mmio + 0x604); in bochs_hw_set_little_endian()
200 if (start + len > 0x400 /* vga register offset */) in bochs_get_edid_block()
203 for (i = 0; i < len; i++) in bochs_get_edid_block()
206 return 0; in bochs_get_edid_block()
216 bochs_get_edid_block(bochs, header, 0, ARRAY_SIZE(header)); in bochs_hw_read_edid()
261 if ((id & 0xfff0) != VBE_DISPI_ID0) { in bochs_hw_init()
266 if ((pdev->resource[0].flags & IORESOURCE_MEM) == 0) in bochs_hw_init()
268 addr = pci_resource_start(pdev, 0); in bochs_hw_init()
269 size = pci_resource_len(pdev, 0); in bochs_hw_init()
270 if (addr == 0) in bochs_hw_init()
289 DRM_INFO("Found bochs VGA, ID 0x%x.\n", id); in bochs_hw_init()
290 DRM_INFO("Framebuffer size %ld kB @ 0x%lx, %s @ 0x%lx.\n", in bochs_hw_init()
296 bochs->qext_size = readl(bochs->mmio + 0x600); in bochs_hw_init()
298 bochs->qext_size = 0; in bochs_hw_init()
307 return 0; in bochs_hw_init()
317 /* blank or unblank; we need only update index and set 0x20 */ in bochs_hw_blank()
318 bochs_vga_writeb(bochs, VGA_ATT_W, blank ? 0 : 0x20); in bochs_hw_blank()
338 bochs_dispi_write(bochs, VBE_DISPI_INDEX_ENABLE, 0); in bochs_hw_setmode()
342 bochs_dispi_write(bochs, VBE_DISPI_INDEX_BANK, 0); in bochs_hw_setmode()
346 bochs_dispi_write(bochs, VBE_DISPI_INDEX_X_OFFSET, 0); in bochs_hw_setmode()
347 bochs_dispi_write(bochs, VBE_DISPI_INDEX_Y_OFFSET, 0); in bochs_hw_setmode()
363 (format->format >> 0) & 0xff, in bochs_hw_setformat()
364 (format->format >> 8) & 0xff, in bochs_hw_setformat()
365 (format->format >> 16) & 0xff, in bochs_hw_setformat()
366 (format->format >> 24) & 0xff); in bochs_hw_setformat()
377 DRM_ERROR("%s: Huh? Got framebuffer format 0x%x", in bochs_hw_setformat()
435 return 0; in bochs_primary_plane_helper_atomic_check()
437 return 0; in bochs_primary_plane_helper_atomic_check()
459 iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, &damage)); in bochs_primary_plane_helper_atomic_update()
463 /* Always scanout image at VRAM offset 0 */ in bochs_primary_plane_helper_atomic_update()
467 fb->pitches[0], in bochs_primary_plane_helper_atomic_update()
468 0); in bochs_primary_plane_helper_atomic_update()
499 return 0; in bochs_crtc_helper_atomic_check()
582 pitch = drm_format_info_min_pitch(format, 0, mode->hdisplay); in bochs_mode_config_mode_valid()
620 ret = drm_universal_plane_init(dev, primary_plane, 0, in bochs_kms_init()
656 return 0; in bochs_kms_init()
674 return 0; in bochs_load()
685 .minor = 0,
742 ret = drm_dev_register(dev, 0); in bochs_pci_probe()
770 .vendor = 0x1234,
771 .device = 0x1111,
777 .vendor = 0x1234,
778 .device = 0x1111,
784 .vendor = 0x4321,
785 .device = 0x1111,