Home
last modified time | relevance | path

Searched full:vga (Results 1 – 25 of 840) sorted by relevance

12345678910>>...34

/openbmc/qemu/hw/display/
H A Dcirrus_vga.c2 * QEMU Cirrus CLGD 54xx VGA Emulator.
189 #define TYPE_PCI_CIRRUS_VGA "cirrus-vga"
220 if (min < -1 || addr >= s->vga.vram_size) { in blit_region_is_unsafe()
227 if (max > s->vga.vram_size) { in blit_region_is_unsafe()
279 return s->vga.vram_ptr[srcaddr & s->cirrus_addr_mask]; in cirrus_src()
292 src = (void *)&s->vga.vram_ptr[srcaddr & s->cirrus_addr_mask & ~1]; in cirrus_src16()
306 src = (void *)&s->vga.vram_ptr[srcaddr & s->cirrus_addr_mask & ~3]; in cirrus_src32()
592 color = s->cirrus_shadow_gr1 | (s->vga.gr[0x11] << 8); in cirrus_bitblt_fgcol()
597 (s->vga.gr[0x11] << 8) | (s->vga.gr[0x13] << 16); in cirrus_bitblt_fgcol()
601 color = s->cirrus_shadow_gr1 | (s->vga.gr[0x11] << 8) | in cirrus_bitblt_fgcol()
[all …]
H A Dvga-helpers.h2 * QEMU VGA Emulator templates
101 static void *vga_draw_line2(VGACommonState *vga, uint8_t *d, in vga_draw_line2() argument
107 palette = vga->last_palette; in vga_draw_line2()
108 plane_mask = mask16[vga->ar[VGA_ATC_PLANE_ENABLE] & 0xf]; in vga_draw_line2()
112 d = vga->panning_buf; in vga_draw_line2()
116 data = vga_read_dword_le(vga, addr & (VGA_VRAM_SIZE - 1)); in vga_draw_line2()
134 return hpel ? vga->panning_buf + 4 * hpel : NULL; in vga_draw_line2()
143 static void *vga_draw_line2d2(VGACommonState *vga, uint8_t *d, in vga_draw_line2d2() argument
149 palette = vga->last_palette; in vga_draw_line2d2()
150 plane_mask = mask16[vga->ar[VGA_ATC_PLANE_ENABLE] & 0xf]; in vga_draw_line2d2()
[all …]
H A Dvga-mmio.c2 * QEMU MMIO VGA Emulator.
28 #include "hw/display/vga.h"
35 * + sysbus MMIO region 0: VGA I/O registers
36 * + sysbus MMIO region 1: VGA MMIO registers
37 * + sysbus MMIO region 2: VGA memory
47 VGACommonState vga; member
58 return vga_ioport_read(&s->vga, addr >> s->it_shift) & in vga_mm_read()
67 vga_ioport_write(&s->vga, addr >> s->it_shift, in vga_mm_write()
85 vga_common_reset(&s->vga); in vga_mmio_reset()
94 "vga-mmio", 0x100000); in vga_mmio_realizefn()
[all …]
H A Dati.c22 #include "vga-access.h"
60 /* FIXME Should these be the same as VGA CRTC regs? */ in ati_vga_switch_mode()
98 vbe_ioport_write_index(&s->vga, 0, VBE_DISPI_INDEX_ENABLE); in ati_vga_switch_mode()
99 vbe_ioport_write_data(&s->vga, 0, VBE_DISPI_DISABLED); in ati_vga_switch_mode()
100 s->vga.big_endian_fb = (s->regs.config_cntl & APER_0_ENDIAN || in ati_vga_switch_mode()
104 s->vga.vbe_regs[VBE_DISPI_INDEX_XRES] = h; in ati_vga_switch_mode()
105 s->vga.vbe_regs[VBE_DISPI_INDEX_YRES] = v; in ati_vga_switch_mode()
106 s->vga.vbe_regs[VBE_DISPI_INDEX_BPP] = bpp; in ati_vga_switch_mode()
107 /* enable mode via ioport so it updates vga regs */ in ati_vga_switch_mode()
108 vbe_ioport_write_index(&s->vga, 0, VBE_DISPI_INDEX_ENABLE); in ati_vga_switch_mode()
[all …]
H A Dvirtio-vga.c7 #include "virtio-vga.h"
18 vvga->vga.hw_ops->invalidate(&vvga->vga); in virtio_vga_base_invalidate_display()
30 vvga->vga.hw_ops->gfx_update(&vvga->vga); in virtio_vga_base_update_display()
44 if (vvga->vga.hw_ops->text_update) { in virtio_vga_base_text_update()
45 vvga->vga.hw_ops->text_update(&vvga->vga, chardata); in virtio_vga_base_text_update()
88 .name = "virtio-vga",
93 VMSTATE_STRUCT(vga, VirtIOVGABase, 0,
99 /* VGA device wrapper around PCI device around virtio GPU */
104 VGACommonState *vga = &vvga->vga; in virtio_vga_base_realize() local
108 /* init vga compat bits */ in virtio_vga_base_realize()
[all …]
H A Dvga-access.h2 * QEMU VGA Emulator templates
25 static inline uint8_t vga_read_byte(VGACommonState *vga, uint32_t addr) in vga_read_byte() argument
27 return vga->vram_ptr[addr & vga->vbe_size_mask]; in vga_read_byte()
30 static inline uint16_t vga_read_word_le(VGACommonState *vga, uint32_t addr) in vga_read_word_le() argument
32 uint32_t offset = addr & vga->vbe_size_mask & ~1; in vga_read_word_le()
33 uint16_t *ptr = (uint16_t *)(vga->vram_ptr + offset); in vga_read_word_le()
37 static inline uint16_t vga_read_word_be(VGACommonState *vga, uint32_t addr) in vga_read_word_be() argument
39 uint32_t offset = addr & vga->vbe_size_mask & ~1; in vga_read_word_be()
40 uint16_t *ptr = (uint16_t *)(vga->vram_ptr + offset); in vga_read_word_be()
44 static inline uint32_t vga_read_dword_le(VGACommonState *vga, uint32_t addr) in vga_read_dword_le() argument
[all …]
H A Dati_2d.c52 DisplaySurface *ds = qemu_console_surface(s->vga.con); in ati_2d_blt()
53 DPRINTF("%p %u ds: %p %d %d rop: %x\n", s->vga.vram_ptr, in ati_2d_blt()
54 s->vga.vbe_start_addr, surface_data(ds), surface_stride(ds), in ati_2d_blt()
71 uint8_t *dst_bits = s->vga.vram_ptr + (DEFAULT_CNTL ? in ati_2d_blt()
78 uint8_t *end = s->vga.vram_ptr + s->vga.vram_size; in ati_2d_blt()
106 uint8_t *src_bits = s->vga.vram_ptr + (DEFAULT_CNTL ? in ati_2d_blt()
174 if (dst_bits >= s->vga.vram_ptr + s->vga.vbe_start_addr && in ati_2d_blt()
175 dst_bits < s->vga.vram_ptr + s->vga.vbe_start_addr + in ati_2d_blt()
176 s->vga.vbe_regs[VBE_DISPI_INDEX_YRES] * s->vga.vbe_line_offset) { in ati_2d_blt()
177 memory_region_set_dirty(&s->vga.vram, s->vga.vbe_start_addr + in ati_2d_blt()
[all …]
H A Dmeson.build19 system_ss.add(when: 'CONFIG_VGA_PCI', if_true: files('vga-pci.c'))
20 system_ss.add(when: 'CONFIG_VGA_ISA', if_true: files('vga-isa.c'))
21 system_ss.add(when: 'CONFIG_VGA_MMIO', if_true: files('vga-mmio.c'))
35 system_ss.add(when: 'CONFIG_VGA', if_true: files('vga.c'))
44 system_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
45 if_false: files('acpi-vga-stub.c'))
52 qxl_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
53 if_false: files('acpi-vga-stub.c'))
117 if_true: [files('virtio-vga.c'), pixman])
119 if_true: files('vhost-user-vga.c'))
[all …]
H A DKconfig16 select VGA
44 select VGA
50 select VGA
54 select VGA
60 select VGA
66 select VGA
89 config VGA config
95 select VGA
107 select VGA
127 select VGA
H A Dvga-pci.c2 * QEMU PCI VGA Emulator.
4 * see docs/specs/standard-vga.rst for virtual hardware specs.
49 VGACommonState vga; member
57 #define TYPE_PCI_VGA "pci-vga"
61 .name = "vga",
66 VMSTATE_STRUCT(vga, PCIVGAState, 0, vmstate_vga_common, VGACommonState),
186 return d->vga.big_endian_fb; in vga_get_big_endian_fb()
193 d->vga.big_endian_fb = value; in vga_set_big_endian_fb()
210 PCIVGAState *d = container_of(s, PCIVGAState, vga); in pci_std_vga_mmio_region_init()
213 "vga ioports remapped", PCI_VGA_IOPORT_SIZE); in pci_std_vga_mmio_region_init()
[all …]
H A Dvga_regs.h2 * linux/include/video/vga.h -- standard VGA chipset interaction
8 * Based on VGA info at http://www.osdever.net/FreeVGA/home.htm
31 /* VGA data register ports */
50 /* VGA index register ports */
59 /* standard VGA indexes max counts */
66 /* VGA misc register bit masks */
73 /* VGA CRT controller register indices */
101 /* VGA CRT controller bit masks */
107 /* VGA attribute controller register indices */
132 /* VGA sequencer register indices */
[all …]
H A Dcirrus_vga_rop.h2 * QEMU Cirrus CLGD 54xx VGA Emulator.
28 uint8_t *dst = &s->vga.vram_ptr[dstaddr & s->cirrus_addr_mask]; in glue()
36 uint8_t *dst = &s->vga.vram_ptr[dstaddr & s->cirrus_addr_mask]; in glue()
47 (&s->vga.vram_ptr[dstaddr & s->cirrus_addr_mask & ~1]); in glue()
56 (&s->vga.vram_ptr[dstaddr & s->cirrus_addr_mask & ~1]); in glue()
67 (&s->vga.vram_ptr[dstaddr & s->cirrus_addr_mask & ~3]); in glue()
135 uint8_t transp = s->vga.gr[0x34]; in glue()
164 uint8_t transp = s->vga.gr[0x34]; in glue()
188 uint16_t transp = s->vga.gr[0x34] | (uint16_t)s->vga.gr[0x35] << 8; in glue()
217 uint16_t transp = s->vga.gr[0x34] | (uint16_t)s->vga.gr[0x35] << 8; in glue()
/openbmc/qemu/tests/qtest/
H A Ddisplay-vga-test.c2 * QTest testcase for vga cards
17 qts = qtest_init("-vga none -device VGA -device secondary-vga"); in pci_multihead()
25 qts = qtest_initf("-vga none -device %s", (const char *)data); in test_vga()
32 "cirrus-vga", in main()
33 "VGA", in main()
34 "secondary-vga", in main()
36 "virtio-vga" in main()
49 if (qtest_has_device("secondary-vga")) { in main()
/openbmc/linux/include/video/
H A Dvga.h2 * linux/include/video/vga.h -- standard VGA chipset interaction
8 * Based on VGA info at http://www.osdever.net/FreeVGA/home.htm
22 #include <asm/vga.h>
25 #define VGA_FB_PHYS_BASE 0xA0000 /* VGA framebuffer I/O base */
26 #define VGA_FB_PHYS_SIZE 65536 /* VGA framebuffer I/O size */
39 /* VGA data register ports */
58 /* VGA index register ports */
67 /* standard VGA indexes max counts */
74 /* VGA misc register bit masks */
81 /* VGA CRT controller register indices */
[all …]
/openbmc/linux/include/linux/
H A Dvgaarb.h4 * The VGA aribiter manages VGA space routing and VGA resource decode to
5 * allow multiple VGA devices to be used in a system in a safe way.
15 #include <video/vga.h>
19 /* Legacy VGA regions */
70 * @pdev: pci device of the VGA card or NULL for the system default
75 * On success, release the VGA resource again with vga_put().
85 * @pdev: pci device of the VGA card or NULL for the system default
90 * On success, release the VGA resource again with vga_put().
/openbmc/linux/Documentation/gpu/
H A Dvgaarbiter.rst2 VGA Arbiter
6 modern devices allow relocation of such ranges, some "Legacy" VGA devices
13 the legacy VGA arbitration task (besides other bus management tasks) when more
20 the operation of the VGA arbiter implemented for the Linux kernel.
26 scans all PCI devices and adds the VGA ones inside the arbitration. The
27 arbiter then enables/disables the decoding on different devices of the VGA
36 default VGA device of the system.
109 To use the vga arbiter char device it was implemented an API inside the
126 These functions below acquire VGA resources for the given card and mark those
130 legacy resource lock. The arbiter will first look for all VGA cards that
[all …]
H A Dvga-switcheroo.rst4 VGA Switcheroo
7 .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c
16 .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c
22 .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c
31 .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c
58 .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c
61 .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c
/openbmc/linux/drivers/pci/
H A Dvgaarb.c3 * vgaarb.c: Implements VGA arbitration. For details refer to
39 * We keep a list of all VGA devices in the system to speed
117 * vga_default_device - return the default VGA device, for vgacon
120 * rather dumb and will probably only work properly on single VGA card
123 * If your VGA default device is not PCI, you'll have to return NULL here.
126 * the VGA default device if that is possible. This may be a problem with
127 * real _ISA_ VGA cards, in addition to a PCI one. I don't know at this
148 * vga_remove_vgacon - deactivate VGA console
150 * Unbind and unregister vgacon in case pdev is the default VGA device.
151 * Can be called by GPU drivers on initialization to make sure VGA register
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_vga.c9 #include <video/vga.h>
28 /* Disable the VGA plane that we never use */
56 "Something enabled VGA plane, disabling it\n"); in intel_vga_redisable_power_on()
69 * paranoid "someone might have enabled VGA while we were not looking" in intel_vga_redisable()
88 * After we re-enable the power well, if we touch VGA register 0x3d5 in intel_vga_reset_io_mem()
90 * anything to the VGA MSR register. The vgacon module uses this in intel_vga_reset_io_mem()
93 * console_unlock(). So make here we touch the VGA MSR register, making in intel_vga_reset_io_mem()
123 * If we have > 1 VGA cards, then we need to arbitrate access to the in intel_vga_register()
124 * common VGA resources. in intel_vga_register()
127 * then we do not take part in VGA arbitration and the in intel_vga_register()
/openbmc/linux/Documentation/admin-guide/
H A Dsvga.rst20 Short intro for the impatient: Just use vga=ask for the first time,
23 set the vga parameter to this number (converted to decimal first).
26 specified in the kernel Makefile (the SVGA_MODE=... line) or by the "vga=..."
33 EXTENDED_VGA - Standard 8-pixel font mode: 80x43 on EGA, 80x50 on VGA.
69 -- it's either a generic adapter name (MDA, CGA, HGC, EGA, VGA, VESA VGA [a VGA
87 on the VGA BIOS).
134 0x0f01 standard with 8-point font: 80x43 on EGA, 80x50 on VGA
135 0x0f02 VGA 80x43 (VGA switched to 350 scanlines with a 8-point font)
136 0x0f03 VGA 80x28 (standard VGA scans, but 14-point font)
138 0x0f05 VGA 80x30 (480 scans, 16-point font)
[all …]
/openbmc/linux/Documentation/devicetree/bindings/display/connector/
H A Dvga-connector.yaml4 $id: http://devicetree.org/schemas/display/connector/vga-connector.yaml#
7 title: VGA Connector
14 const: vga-connector
24 description: Connection to controller providing VGA signals
35 compatible = "vga-connector";
36 label = "vga";
/openbmc/linux/Documentation/fb/
H A Dfbcon.rst7 any standard text console driver, such as the VGA console, with the added
30 systems, they almost universally have VGA cards, so vga16fb and vesafb will
46 will still get a VGA console.
57 vga= boot option parameter.
119 NOTE: For x86 machines, the standard console is the VGA console which
121 are controlled by the VGA console will be garbled.
181 the hardware. Thus, in a VGA console::
183 console ---> VGA driver ---> hardware.
185 Assuming the VGA driver can be unloaded, one must first unbind the VGA driver
186 from the console layer before unloading the driver. The VGA driver cannot be
[all …]
/openbmc/qemu/docs/system/devices/
H A Dvirtio-gpu.rst21 * ``virtio-vga[-BACKEND]``
23 * ``vhost-user-vga``
33 into VGA and non-VGA variants. The VGA ones are prefixed with virtio-vga
34 or vhost-user-vga while the non-VGA ones are prefixed with virtio-gpu or
37 The VGA ones always use the PCI interface, but for the non-VGA ones, the
/openbmc/qemu/docs/specs/
H A Dstandard-vga.rst2 QEMU Standard VGA
9 ``-vga std``
11 ``-device VGA``
13 ``-device isa-vga``
15 ``-device secondary-vga``
51 standard vga ports
78 vga ioports (``0x3c0`` to ``0x3df``), remapped 1:1. Word access
/openbmc/qemu/docs/
H A Dqdev-device-use.txt280 The old way to define the guest graphics device is -vga VGA. Not all
281 machines support all -vga options.
283 The new way is -device. The mapping from -vga argument to -device
286 std -device VGA
287 cirrus -device cirrus-vga
289 qxl -device qxl-vga
291 disables more than just VGA, see "Default Devices"
296 -device VGA supports properties bios-offset and bios-size, but they
301 std -device isa-vga
304 disables more than just VGA, see "Default Devices"
[all …]

12345678910>>...34