Lines Matching +full:0 +full:x1234

21 #define VBE_DISPI_IOPORT_INDEX           0x01CE
22 #define VBE_DISPI_IOPORT_DATA 0x01CF
24 #define VBE_DISPI_INDEX_ID 0x0
25 #define VBE_DISPI_INDEX_XRES 0x1
26 #define VBE_DISPI_INDEX_YRES 0x2
27 #define VBE_DISPI_INDEX_BPP 0x3
28 #define VBE_DISPI_INDEX_ENABLE 0x4
29 #define VBE_DISPI_INDEX_BANK 0x5
30 #define VBE_DISPI_INDEX_VIRT_WIDTH 0x6
31 #define VBE_DISPI_INDEX_VIRT_HEIGHT 0x7
32 #define VBE_DISPI_INDEX_X_OFFSET 0x8
33 #define VBE_DISPI_INDEX_Y_OFFSET 0x9
34 #define VBE_DISPI_INDEX_VIDEO_MEMORY_64K 0xa
36 #define VBE_DISPI_ID0 0xB0C0
37 #define VBE_DISPI_ID1 0xB0C1
38 #define VBE_DISPI_ID2 0xB0C2
39 #define VBE_DISPI_ID3 0xB0C3
40 #define VBE_DISPI_ID4 0xB0C4
41 #define VBE_DISPI_ID5 0xB0C5
43 #define VBE_DISPI_DISABLED 0x00
44 #define VBE_DISPI_ENABLED 0x01
45 #define VBE_DISPI_GETCAPS 0x02
46 #define VBE_DISPI_8BIT_DAC 0x20
47 #define VBE_DISPI_LFB_ENABLED 0x40
48 #define VBE_DISPI_NOCLEARMEM 0x80
96 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df)) in bochs_vga_writeb()
100 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_writeb()
110 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df)) in bochs_vga_readb()
111 return 0xff; in bochs_vga_readb()
114 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_readb()
124 u16 ret = 0; in bochs_dispi_read()
127 int offset = 0x500 + (reg << 1); in bochs_dispi_read()
140 int offset = 0x500 + (reg << 1); in bochs_dispi_write()
154 writel(0xbebebebe, bochs->mmio + 0x604); in bochs_hw_set_big_endian()
162 writel(0x1e1e1e1e, bochs->mmio + 0x604); in bochs_hw_set_little_endian()
177 if (start + len > 0x400 /* vga register offset */) in bochs_get_edid_block()
180 for (i = 0; i < len; i++) in bochs_get_edid_block()
183 return 0; in bochs_get_edid_block()
194 bochs_get_edid_block(bochs, header, 0, ARRAY_SIZE(header)); in bochs_hw_load_edid()
204 return 0; in bochs_hw_load_edid()
216 if (pci_request_region(pdev, 2, "bochs-drm") != 0) { in bochs_hw_init()
240 if ((id & 0xfff0) != VBE_DISPI_ID0) { in bochs_hw_init()
245 if ((pdev->resource[0].flags & IORESOURCE_MEM) == 0) in bochs_hw_init()
247 addr = pci_resource_start(pdev, 0); in bochs_hw_init()
248 size = pci_resource_len(pdev, 0); in bochs_hw_init()
249 if (addr == 0) in bochs_hw_init()
257 if (pci_request_region(pdev, 0, "bochs-drm") != 0) in bochs_hw_init()
268 DRM_INFO("Found bochs VGA, ID 0x%x.\n", id); in bochs_hw_init()
269 DRM_INFO("Framebuffer size %ld kB @ 0x%lx, %s @ 0x%lx.\n", in bochs_hw_init()
275 bochs->qext_size = readl(bochs->mmio + 0x600); in bochs_hw_init()
277 bochs->qext_size = 0; in bochs_hw_init()
286 return 0; in bochs_hw_init()
310 /* blank or unblank; we need only update index and set 0x20 */ in bochs_hw_blank()
311 bochs_vga_writeb(bochs, VGA_ATT_W, blank ? 0 : 0x20); in bochs_hw_blank()
333 bochs_dispi_write(bochs, VBE_DISPI_INDEX_ENABLE, 0); in bochs_hw_setmode()
337 bochs_dispi_write(bochs, VBE_DISPI_INDEX_BANK, 0); in bochs_hw_setmode()
341 bochs_dispi_write(bochs, VBE_DISPI_INDEX_X_OFFSET, 0); in bochs_hw_setmode()
342 bochs_dispi_write(bochs, VBE_DISPI_INDEX_Y_OFFSET, 0); in bochs_hw_setmode()
358 (format->format >> 0) & 0xff, in bochs_hw_setformat()
359 (format->format >> 8) & 0xff, in bochs_hw_setformat()
360 (format->format >> 16) & 0xff, in bochs_hw_setformat()
361 (format->format >> 24) & 0xff); in bochs_hw_setformat()
372 DRM_ERROR("%s: Huh? Got framebuffer format 0x%x", in bochs_hw_setformat()
420 gbo = drm_gem_vram_of_gem(state->fb->obj[0]); in bochs_plane_update()
422 if (WARN_ON_ONCE(gpu_addr < 0)) in bochs_plane_update()
428 state->fb->pitches[0], in bochs_plane_update()
429 state->fb->offsets[0] + gpu_addr); in bochs_plane_update()
470 int count = 0; in bochs_connector_get_modes()
542 bochs->dev->mode_config.prefer_shadow = 0; in bochs_kms_init()
559 return 0; in bochs_kms_init()
588 return 0; in bochs_load()
600 .minor = 0,
637 fbsize = pci_resource_len(pdev, 0); in bochs_pci_probe()
661 ret = drm_dev_register(dev, 0); in bochs_pci_probe()
685 .vendor = 0x1234,
686 .device = 0x1111,
692 .vendor = 0x1234,
693 .device = 0x1111,
717 if (bochs_modeset == 0) in bochs_init()