summaryrefslogtreecommitdiff
path: root/src/vgahooks.c
Commit message (Collapse)AuthorAgeFilesLines
* pci: Split low-level pci code from higher-level 'struct pci_device' codeKevin O'Connor2016-02-031-1/+2
| | | | | | | | | Split pci.c into pci.c and pcidevice.c. The low-level code that interacts directly with the PCI devices remains in pci.c, while functions dealing with the higher level pci_device cache move to pcidevice.c. Only pci.c is needed in 16bit mode. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Fix typos found by codespellStefan Weil2015-10-091-1/+1
| | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* vgahooks: add SM720 VGA BIOS hooks for WIN Enterprises MB-60470Jonathan A. Kollasch2013-10-261-1/+65
| | | | | | | | | | | | | Add vgahooks to support the SMI SM720 VGA BIOS used on the WIN Enterprises MB-60470. The response from smi_157f14() is necessary for the CRT output to turn on. The response from smi_157f02() is used to configure which connector(s) output is routed to. As I lack hardware to test LCD panel output, I've selected CRT-only output on the MB-60470 as this prevents the CRT output from being scaled to the resolution of the LCD panel. Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
* Move function definitions for output.c from util.h to new file output.h.Kevin O'Connor2013-09-181-4/+5
| | | | | | Also, sort the order of include files in the c files. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Rename util.c to string.c and introduce string.h.Kevin O'Connor2013-09-181-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Move code centered around specific hardware devices to src/hw/Kevin O'Connor2013-09-021-3/+3
| | | | | | Move many C files from the src/ directory to the new src/hw/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Convert VAR16VISIBLE, VAR16EXPORT, and VAR32VISIBLE to VARFSEG.Kevin O'Connor2013-02-181-3/+3
| | | | | | | | | | | Convert all users of the alternative variable exports to VARFSEG. There isn't a significant distinction between the existing types of exports, so it's simpler to just use one type going forward. The new VARFSEG declaration is only emitting when in 32bit mode, so update and move some variables as needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Xen: Use VGA Hooks to make VGA passthrough work on certain devicesJulian Pidancet2012-02-051-1/+21
| | | | | | | | | | | The Intel gfx VGA option ROM on certain platforms requires the 155f50 BIOS function to be implemented (even if it does nothing), to work properly. v2: Ignore the case where Option ROMs are pre-deployed. Make vgahook_setup independent of wether the CB* variables are set. VGA hooks can be enabled on non-coreboot and non-Xen configurations. Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
* Convert pci_find_device/class to use 'struct pci_device'.Kevin O'Connor2011-07-021-14/+16
|
* Calculate vgahook responses during setup instead of in 16bit code.Kevin O'Connor2011-07-021-150/+100
| | | | | | Do vga type and parameter detection during setup and store the necessary info in global variables for the 16bit code. This simplifies the "vgahook" 16bit code.
* Cleanup - it's no longer necessary to manually reset global variables.Kevin O'Connor2010-09-251-3/+2
| | | | | Now that a soft-reboot forces a hard-reboot, it is no longer necessary to manually reset global variables.
* SeaBIOS VGA hooksStefan Reinauer2010-06-101-10/+134
| | | | | | | | | Add VGA hooks to operate the following mainboards with coreboot + SeaBIOS: - Kontron 986LCD-M - Getac P470 (Laptop) - Roda RK886EX (Laptop) Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
* Fix vgahook sign issue; add warning to build to catch future cases.Kevin O'Connor2010-01-031-1/+1
|
* Be sure to add "void" to all function prototypes that take no args.Kevin O'Connor2010-01-031-1/+1
| | | | Omitting "void" leads to a K&R style declaration which was not intended.
* Distinguish between debug reports for unimplemented vs invalid calls.Kevin O'Connor2009-12-131-4/+4
| | | | | | | | Don't use "fail" in the debug output - as this confuses users. When reporting on an invalid parameter - use the word "invalid". When reporting on an unimplemented call - state it is unimplemented. Add separate debug levels for unimplemented vs invalid calls. Also, increase the debug level of several entry points.
* Rename VAR16_32 to VAR16VISIBLE.Kevin O'Connor2009-09-091-2/+2
| | | | | Sometimes VAR16_32 is used to export a definition to assembler, so clarify its naming.
* Expand int155f "vgahook" detection.Kevin O'Connor2009-07-191-36/+97
| | | | | | Verify VGA card vendor is via before supporting via 155f calls. Add support for future code depending on coreboot board id. Add code for via VX855 memory size and speed detection.
* Change license from GPLv3 to LGPLv3.Kevin O'Connor2009-01-151-1/+1
| | | | | | | | Change license of contributions from Kevin O'Connor from GPLv3 to LGPLv3 (or later). Since the work as a whole is based on Kevin's contributions and the "bochs bios" which has a license of LGPL (v2 or later), this effectively makes the work as a whole available under LGPLv3 (or later).
* Add more linker protections around variables accessed from 16bit mode.Kevin O'Connor2008-12-291-1/+1
| | | | | | | Rename VAR16 to VAR16_32 -- that macro supports accesses from both 16bit and 32bit mode. Introduce a new macro VAR16 that must be present on all global variables accessed from 16bit mode.
* Enhance via vga hooks (based on patch from Rudolf Marek)Kevin O'Connor2008-12-261-2/+69
| | | | | | The VIA Unichrome and OpenChrome drivers need the memory size of framebuffer and also the memory speed. Attept to autodetect those values in int 0x15/5f18 handler.
* Add stubs for VIA vga bios callbacks to system bios.Kevin O'Connor2008-08-171-0/+65
The VIA vga bios likes wants to call int 15/5f of main bios. So, add stubs to make it happy.