summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/dev/gbe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* change wsdisplay attribute type from long to uint32_tjsg2020-05-251-11/+11
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* rename wsdisplay alloc_attr() to pack_attr()jsg2020-05-251-4/+4
| | | | | | | | Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
* Add load_font and list_font accessops to all rasops-based wsdisplay drivers.miod2013-10-211-5/+18
| | | | | Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
* Use C99 named initializers for struct wsdisplay_accessops fields.miod2013-10-201-11/+7
| | | | No functional change.
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-6/+19
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* Correctly specify the visible part of the rightmost tile when the currentmiod2013-05-271-3/+3
| | | | | | | | | resolution is not a multiple of the tile size, in emulation (text) mode. The usual 1280x1024 resolution ended up with the correct value, by chance, but a width of 1600 would be wrong. (X11 was running fine) Tested on the 1600x1024 resolution of the 1600SW display. Thanks to Johan Sanchez for lending me a 1600SW monitor and an adapter board.
* Don't include <mips64/archtype.h> unless you really need it.miod2012-10-031-2/+1
|
* Make it possible to disable the Sync-on-Green signal by setting themikeb2012-05-291-1/+9
| | | | | | | | ARCBios environment variable OSLoadOptions to "nosog". Now everyone can enjoy running O2 without an SGI monitor and don't turn vegetarian afterwards. All the essential bits come from NetBSD's crmfb driver except they've chosen to use a "SyncOnGreen" variable not saved by the ARCS. Pointers and corrections from and ok miod, jsing
* Move OpenGL {logic,raster}ops defines to a separate file, to avoid duplicatingmiod2012-04-161-3/+3
| | | | these among frame buffer drivers. No functional change.
* uncached_base was introduced early in IP27 support, since these designs usemiod2012-03-151-9/+9
| | | | | | | | | | | subspaces in the CCA_NC uncached memory space. However, being coherent, there was never a need for bus_dma to use uncached addresses. This means that, on the only systems where uncached_base was not set to PHYS_TO_XKPHYS(0, CCA_NC), it was never used. Remove the variable, and replace PHYS_TO_UNCACHED() with PHYS_TO_XKPHYS(, CCA_NC). No functional change.
* Kill pmap_phys_address(), and force every driver's mmap() routine to returnmiod2010-12-261-2/+2
| | | | | | | a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
* Correctly initialize all members of struct wsemuldisplaydev_attach_argsmiod2010-03-081-1/+3
| | | | | | before attaching wsdisplay; it was turning out harmless but using more cpu time for nothing than necessary. ok deraadt@
* Allow iockbc(4) and odysseey(4) to act as console devices and attach early;miod2010-03-071-2/+2
| | | | | | this gives us working glass console on Fuel, as well as on Octane systems with Odyssey graphics. Joint work with jsing@
* Rename struct confargs to struct mainbus_attach_args for consistency and alsomiod2009-10-261-3/+3
| | | | to prevent further abuse of it.
* Better crime/mace interrupt handling; interrupt information is no longermiod2009-10-261-2/+2
| | | | | | | | specified in the kernel configuration file, but is provided by macebus(4) as part of the child device attachment args, and provide both crime and mace interrupt bitmasks; this allows us to only really enable interrupt sources we care about, and to avoid invoking interrupt handler we don't need to for the few mace interrupts multiplexed at the crime level.
* Change the wsdisplay_emulops return types from void to int; emulops will nowmiod2009-09-051-13/+25
| | | | | | return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
* Add support for hardware acceleration to gbe(4). This provides an acceleratedjsing2009-02-241-57/+498
| | | | | | | | | framebuffer for the console on SGI O2 workstations. X is still supported via wsfb(4) by switching back to the unaccelerated linear framebuffer mode. Some hardware details and magic numbers from NetBSD's crmfb(4) driver. ok miod@ jasper@ "Sure, go for it" deraadt@
* Since uncached virtual addresses will depend upon space identifiers on R1xkmiod2008-04-071-6/+6
| | | | | | systems, switch to the PHYS_TO_UNCACHED macro to compute proper addresses. Not really necessary for the O2 which does not implement spaces, but can't hurt either.
* Completely overhault attachment rules on sgi. No more indirect configurationmiod2008-02-201-5/+6
| | | | | | | | inherited from OpenBSD/arc machines with ISA bus; mainbus children match on device name and other hierarchies match on simplified locators. As a bonus, attachment lines in dmesg will now print their locators. ok jsing@
* Significantly improve the gbe(4) driver, including:jsing2007-12-311-201/+574
| | | | | | | | | | | | | | | | - Internal restructure to separate code paths. - Add support for early console. This allows for gbe(4) to takeover were the ARCBios leaves off (if we should do so). - Add support for 8bpp and 16bpp colour depths. As a result, we also have support for colourmaps. We now use 8bpp as the default. - Add mmap() support, enabling wsfb to operate correctly. - Correct initial origin problem that occurred occasionally. ok miod@. tested by jasper@.
* Have gbe(4) attach as the console if the graphical console is selected viajsing2007-12-141-14/+11
| | | | | | ARCBIOS. Tested by jasper@. ok miod@
* add rcs idjasper2007-11-271-0/+2
| | | | "feel free to do so" jsing@
* Initial support for the SGI Graphics Back End (GBE) frame buffer found injsing2007-11-271-0/+553
SGI O2 machines. We currently rely on the video hardware being initialised by the ARCS firmware and can only use the initial resolution with a colour depth of 32 bits. This driver is disabled by default. ok miod@