summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/vgafb.c
AgeCommit message (Collapse)Author
2009-06-02When about to run X11 in 32 bpp mode, advertize correctly that we areMark Kettenis
really using 24 bpp pixels on 32 bit boundaries. ok miod@
2009-03-01Don't let an mmio area replace the frame buffer if they are the same size.Mark Kettenis
Seen on a Tech Source Raptor. ok miod@
2008-12-29Move ifb identification to its own routine. We can not simply have the ifbMiod Vallat
probe win over vgafb, since one may configure a kernel with vgafb but without ifb (especially slackers who forget to rerun config).
2008-12-27Sync the sparc64 fb* api with the recent changes done on sparc.Miod Vallat
2008-10-01Revert last commit. It didn't really help and we fixed X11 instead.Mark Kettenis
ok miod@
2008-08-11Allow mapping mmio regions that are not page aligned.Mark Kettenis
ok miod@
2008-03-23Use new defines from pcidevs to match Expert3D.Miod Vallat
2008-03-21Do not attach vgafb if not the console device, since the PROM will not haveMiod Vallat
initialized the device in this case.
2007-03-06Three more Expert3D-like frame buffers we shouldn't attach to yet.Miod Vallat
2007-01-13Do not match on Expert3D and Expert3D-Lite cards, these will require aMiod Vallat
different driver.
2006-12-17Remove unnecessary <dev/wscons/wscons_raster.h> inclusion.Miod Vallat
2006-08-29XXX when we find vgapci devices on a USIII machine, fail to matchTheo de Raadt
(for now, until the bugs are found. USIII machines remain serial-only for now); ok miod
2006-08-11For non-console vgafb, force rasops to initialize it as a monochrome resource,Miod Vallat
since we can't program the colormap anyway.
2006-05-30Sync region detection algorithm with macppc, helps some recent cards, suchMiod Vallat
as 3DLabs Permedia and Intergraph Expert3D. Also, if no mmio region is found, attach anyway, this only prevents accelerated X11 from starting.
2006-04-16Remove code from an old (broken) diff of mine, which crept in in last commit.Miod Vallat
2006-04-09On macppc and sparc64, if allowaperture=0 only allow mmap()-ing ofMatthieu Herrb
the framebuffer memory in WSDISPLAYIO_MODE_DUMBFB mode.
2005-07-17Make sure we don't reprogram the colormap upon leaving mapped mode,Miod Vallat
if we are not the console display; prevents a stupid panic.
2005-03-15Only warn if pci_{io,mem}_find fails if the returned value is not ENOENT - emptyMiod Vallat
ranges are skipped and considered harmless.
2005-03-15Take care of updating the PROMs view of the cursor position in the common fbMiod Vallat
code, rather than doing this in only a subset of the fb drivers.
2005-03-07Do not bother passing the blanking routine to fbwscons_console_init(),Miod Vallat
as fbwscons_attach() can find it on its own.
2005-01-05Let wsdisplay drivers return zero for WSDISPLAYIO_[GS]VIDEO ioctls - mostMiod Vallat
of the work is done in the upper layer, but they get to see the ioctl, so don't always return an error.
2004-12-02Add pci_decompose_tag() for sparc64.Brad Smith
From NetBSD ok deraadt@
2004-11-30Move the struct wsscreen_descr from a per-driver global to a per-instanceMiod Vallat
field of the sunfb structure. This allows multiple instances of the same driver, but with different resolutions (such as a couple of vigra or a TGX cgsix and a TGX+ cgsix) to use distinct wsscreen_descr structures featuring different resolution information. Doing this allows more wsscreen_descr fiddling inside the sparc* fb api, and results in some code shrinkage (about 4KB on sparc GENERIC). [file excluded in previous commit by mistake. spotted by claudio@]
2004-08-10Print the newline after vgafb_mapregs(), not before since vgafb_mapregs()Todd C. Miller
may print diagostic messgaes on error. OK henning@.
2003-06-16Nuke a few more data and code superseded by the fb api.Miod Vallat
2003-06-16Adapt to the fbxxx() API.Miod Vallat
tested by matthieu@, krw@ and I on various hardware.
2003-06-02nuke terms 3 & 4Jason Wright
2002-12-25Initialize color palette from rasops settings (from sparc) rather thanMiod Vallat
from incorrect values, and restore it after X11 use (from macppc).
2002-12-10Register as the "std" wscons device, not "sun". This is consistent with otherMiod Vallat
frame buffers, and produces less confusing dmesg output.
2002-11-09Instead of relying on uvm_useracc(), get a false sense of security, andMiod Vallat
do not check copyin() result, take care and properly handle copyin() failure. This was not harmful, but a bit more correctness never harms.
2002-09-15Fix color choices to match wsemul_sun requirements.Miod Vallat
Tested by and ok matthieu@
2002-09-10Register more wsscreen properties to take advantage of wsemul_sun changes.Jason Wright
2002-08-19Take advantage of rasops.updatecursor to keep the prom cursor up to dateJason Wright
2002-08-02Do correct bounds checking in get/set/put cmap routines. A few ofTodd C. Miller
these check were already OK but have been modified for consistency. Problem found by Silvio Cesare.
2002-07-30simplify vgafb_mmap()Jason Wright
2002-07-25There's no need to override the default mapping to big endian now that ↵Jason Wright
rasops8 handles byte swapping itself.
2002-07-24- don't need mmio or io registers mapped for console useJason Wright
- can't map expansion rom this way, remove it until we find a safe way - use less magic constants
2002-06-11Fix (include sys/pciio.h)Jason Wright
2002-06-11s/pcitag/sc_pcitag so it compiles (sorry matthieu)Jason Wright
2002-06-11add a new ioctl to wscons (currently implemented only on sparc64)Matthieu Herrb
`that returns the bus:dev:func PCI id of the device. ok jason@.
2002-06-04Convert vgafb from rcons to rasopsJason Wright
If depth is 24, select rasops32 (and make sure the stride is right)
2002-04-15Since XFree doesn't try to remap things behind our backs anymore, simplifyJason Wright
the driver a bit (mainly don't reprobe the pci address for every call to vgafb_mmap()).
2002-04-08Credit DARPA/USAF appropriately.Jason Wright
2002-04-01Remove all traces of VGAFB_ALLOW_NATIVE.Jason Wright
2002-03-31add a new mode to wsdisplay, WSDISPLAYIO_MODE_DUMBFB. This mode isJason Wright
functionally equivalent what used to be WSDISPLAYIO_MODE_MAPPED, which now means a "native" mapping. vgafb_mmap() returns pci relative mappings in WSDISPLAYIO_MODE_MAPPED and linear framebuffer mappings in WSDISPLAYIO_MODE_DUMBFB
2002-03-30Don't honor native accesses unless VGAFB_ALLOW_NATIVE is defined (this isJason Wright
a temporary workaround that will be backed out when more work is done elsewhere)
2002-03-28- recheck the PCI BAR's during mmap: XFree86 doesn't like the prom mappingsJason Wright
so rather than deal with it, it remaps things. - turn off access to the rom... this may need rethinking (both accelerated X and dumb framebuffer X work because the offsets will not overlap).
2002-03-27Avoid using bus_space_map2() on the rom (was too lazy to deal with endian =),Jason Wright
instead use bus_space_map() and bus_space_read_1() to gaurantee correct endian; speed isn't an issue here (well, as long as some joker doesn't ship a 16MB vga rom...)
2002-03-27Make a shadow copy of the bios rom (if available) and make it available via mmapJason Wright
Also, don't hardcode the length of the pixel memory in vgafb_mmap(), use the size provided by pci_mem_find.
2002-03-27bus_space_mmap wants the paddr not the handleJason Wright