aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dpms
Commit message (Collapse)AuthorAgeFilesLines
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326022
* Attach dpms(4) to vgapm and make sure to restore DPMS state afterJung-uk Kim2009-12-151-3/+2
| | | | | | | | | VGA is resumed properly. Reviewed by: jhb Notes: svn path=/head/; revision=200584
* - Remove a redundant check for dpms(4).Jung-uk Kim2009-11-121-6/+2
| | | | | | | - Test a cheaper function first. Notes: svn path=/head/; revision=199230
* Remove a redundant option ROM check, which was never meant to be committed.Jung-uk Kim2009-10-191-3/+2
| | | | Notes: svn path=/head/; revision=198259
* Rewrite x86bios and update its dependent drivers.Jung-uk Kim2009-10-191-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not map entire real mode memory (1MB). Instead, we map IVT/BDA and ROM area separately. Most notably, ROM area is mapped as device memory (uncacheable) as it should be. User memory is dynamically allocated and free'ed with contigmalloc(9) and contigfree(9). Remove now redundant and potentially dangerous x86bios_alloc.c. If this emulator ever grows to support non-PC hardware, we may implement it with rman(9) later. - Move all host-specific initializations from x86emu_util.c to x86bios.c and remove now unnecessary x86emu_util.c. Currently, non-PC hardware is not supported. We may use bus_space(9) later when the KPI is fixed. - Replace all bzero() calls for emulated registers with more obviously named x86bios_init_regs(). This function also initializes DS and SS properly. - Add x86bios_get_intr(). This function checks if the interrupt vector is available for the platform. It is not necessary for PC-compatible hardware but it may be needed later. ;-) - Do not try turning off monitor if DPMS does not support the state. - Allocate stable memory for VESA OEM strings instead of just holding pointers to them. They may or may not be accessible always. Fix a memory leak of video mode table while I am here. - Add (experimental) BIOS POST call for vesa(4). This function calls VGA BIOS POST code from the current VGA option ROM. Some video controllers cannot save and restore the state properly even if it is claimed to be supported. Usually the symptom is blank display after resuming from suspend state. If the video mode does not match the previous mode after restoring, we try BIOS POST and force the known good initial state. Some magic was taken from NetBSD (and it was taken from vbetool, I believe.) - Add a loader tunable for vgapci(4) to give a hint to dpms(4) and vesa(4) to identify who owns the VESA BIOS. This is very useful for multi-display adapter setup. By default, the POST video controller is automatically probed and the tunable "hw.pci.default_vgapci_unit" is set to corresponding vgapci unit number. You may override it from loader but it is very unlikely to be necessary. Unfortunately only AGP/PCI/PCI-E controllers can be matched because ISA controller does not have necessary device IDs. - Fix a long standing bug in state save/restore function. The state buffer pointer should be ES:BX, not ES:DI according to VBE 3.0. If it ever worked, that's because BX was always zero. :-) - Clean up register initializations more clearer per VBE 3.0. - Fix a lot of style issues with vesa(4). Notes: svn path=/head/; revision=198251
* Initialize registers to zero before calling the interrupt handlers insideJung-uk Kim2009-09-241-0/+1
| | | | | | | | | emulator as we did in r197424 for vesa. Submitted by: paradox (ddkprog yahoo com) Notes: svn path=/head/; revision=197469
* - Use FreeBSD function naming convention.Jung-uk Kim2009-09-241-1/+1
| | | | | | | | | | - Change x86biosCall() to more appropriate x86bios_intr().[1] Discussed with: delphij, paradox (ddkprog yahoo com) Submitted by: paradox (ddkprog yahoo com)[1] Notes: svn path=/head/; revision=197466
* Move sys/dev/x86bios to sys/compat/x86bios.Jung-uk Kim2009-09-231-1/+1
| | | | | | | | | It may not be optimal but it is clearly better than the old place. OK'ed by: delphij, paradox (ddkprog yahoo com) Notes: svn path=/head/; revision=197444
* Collapase interrupt supporting functions to a new module, and switch fromXin LI2009-09-211-88/+13
| | | | | | | | | | | | | x86emu to this new module. This changeset also brings a fix for bugs introduced with the initial x86emu commit, which prevents the user from using some display mode or cause instant reboots during mode switch. Submitted by: paradox <ddkprog yahoo com> Notes: svn path=/head/; revision=197383
* - Teach vesa(4) and dpms(4) about x86emu. [1]Xin LI2009-09-091-15/+91
| | | | | | | | | | | | | - Add vesa kernel options for amd64. - Connect libvgl library and splash kernel modules to amd64 build. - Connect manual page dpms(4) to amd64 build. - Remove old vesa/dpms files. Submitted by: paradox <ddkprog yahoo com> [1], swell k at gmail.com (with some minor tweaks) Notes: svn path=/head/; revision=197025
* Copy the following files to new places, a subsequent commit would removeXin LI2009-09-091-0/+230
them from the old place. This commit necessary so that the tree would not enter a broken state. sys/i386/isa/vesa.c -> dev/fb/vesa.c sys/i386/include/pc/vesa.h -> dev/fb/vesa.h sys/i386/isa/dpms.c -> dev/dpms/dpms.c Notes: svn path=/head/; revision=197022