Commit Graph

27 Commits

Author SHA1 Message Date
dogcow d515e7b784 Some delicious copypasta from sys/dev/ic/vga.c, so that unichromefb will
compile (and possibly work) when option VGA_RASTERCONSOLE is present.
2007-03-15 16:58:36 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
christos 00c11ed953 add missing initializers 2006-09-03 21:42:09 +00:00
rpaulo 6805a4a424 In vga_cnattach(), intialize typestr to NULL. 2006-04-26 16:09:22 +00:00
jmmv 7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
christos d014803b83 more proc->lwp changes. 2005-12-12 01:14:22 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
dbj 37e4b2f6aa decrement nscreens in vga_free_screen
this cleans up a crash on failed allocation, although
vga_free_screen may still be leaking resources
2005-10-21 14:44:08 +00:00
christos 66e17a310f add a missing const. 2005-07-07 12:57:03 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
mycroft 27b5b1440c Remove a really gratuitous 1s delay. 2004-08-13 04:36:08 +00:00
jmmv 9a0019380f Implement the replaceattr emulop. 2004-07-30 22:36:39 +00:00
jmmv 1dea55cc2e Fix the eraserows operation, which was using an incorrect value to paint
the background.  The problem was exposed when setting a non-black color
as the background, as the shift did not produce the expected fill value
(for black it worked because 0 is black).
2004-07-30 21:46:01 +00:00
lukem 365cbd9428 add missing __KERNEL_RCSID() 2003-07-14 15:47:00 +00:00
junyoung 247328b16a As beginning of merging uwscons to -current:
- Add a (temporary) printf to vga_raster_load_font() for tracking font
  loading process. If you encountered "vga_raster_load_font: called"
  kernel message, please let me know.
- While here, some KNF.
2003-04-07 05:48:54 +00:00
tsutsui ef47e3f676 Changes to allow machines which don't use text mode at the boot time
to use generic VGA driver(s):
- Allow VGA drivers to use wsfont instead of builtin font.
- Add vga_reset() function, which will be called from MD consinit(),
  to put VGA into text mode. This function is enabled by options VGA_RESET.
2003-01-31 21:57:23 +00:00
tsutsui 934e3c5a47 Set a value for MISCOUT register correctly in vga_setup_regs(). 2003-01-27 15:27:44 +00:00
tsutsui 289b9289f3 const'ify. 2003-01-27 15:22:47 +00:00
tsutsui 89b4d6221e - Replace some magic numbers with proper macro.
- Use vga_6845_{read,write}() defined in pcdisplayvar.h and
  remove vga_crtc_{read,write}() macros in vgareg.h.
2003-01-27 15:16:10 +00:00
tsutsui a8c7515f5f KNF and space/TAB cleanup. 2003-01-27 14:46:10 +00:00
junyoung 3bfa71c0c3 Fix compile error. 2002-11-28 07:02:20 +00:00
junyoung 0c51bd608e Missing '.' 2002-11-04 08:05:52 +00:00
junyoung c6326ab133 Now VGA_CONSOLE_SCREENTYPE can be specified with VGA_RASTERCONSOLE.
Currently only 80x25 and 80x30 modes are supported.
2002-10-31 13:06:50 +00:00
junyoung 78e97058d5 Simplify vga_raster_setscreentype() and clean up code. 2002-10-31 11:05:25 +00:00
junyoung 1ce9af548e Add VGA raster graphics console driver. It is written as an extension
to char-cell based vga(4) driver, and fully compatible with existing
apps like XFree86. Currently it supports 80x25, 80x30, 80x40 and 80x50
text modes using emulation. You can enable it by specifying `options
VGA_RASTERCONSOLE' in your kernel config file.

Note that displaying multilingual text doesn't work yet. Necessary
code is already there, but userland stuff and some functionality isn't
ready for prime time yet. I'm working on them.
2002-10-15 18:14:41 +00:00