dholland
cb63f3a3bd
Remove extra stray break missed by Christos when committing PR 50783.
2016-02-14 19:11:19 +00:00
christos
451f7eb546
PR/50783: David Binderman: Indent switch properly, add missing break.
2016-02-08 16:44:45 +00:00
macallan
e71a84eaff
no need to set RI_CLEAR - we do our own clearing and rasops assumes a linear
...
framebuffer anyway. Now we can get away with leaving ri_bits at NULL where it
belongs on this hardware.
2015-09-23 20:09:45 +00:00
kamil
f874bd0561
Improve spelling: regsiter -> register
...
This change is non-functional.
Approved by <riastradh>, <pgoyette>
2015-07-11 10:32:45 +00:00
macallan
c5ab7a0ed0
don't malloc a tiny, fixed size buffer to scribble into, then not use it
...
and never free it either
found by Brainy
2015-04-04 14:12:40 +00:00
macallan
eb488f671d
switch sgimips to common bus_dma and bus_space in arch/mips/
...
Tested on O2 and Indy.
Things that are compile-tested only for lack of hardware:
- GIO ethernet cards with PCI bridges
- IP2x hardware not found on Indy
- IP1x
2015-02-18 16:47:58 +00:00
macallan
a2db4fbd86
- remove scratch area, it's been unused since we're drawing characters by
...
hardware
- don't sync the rendering engine unless we have to, watch FIFO levels
instead
- support anti-aliased fonts and let the drawing engine do all the work
2015-01-20 12:13:04 +00:00
christos
b59f66e17c
use the inline bcdtobin and bintobcd directly instead through a macro.
2014-11-20 16:34:25 +00:00
macallan
71305eb6e6
support ioctl() WSDISPLAYIO_SVIDEO, _GVIDEO and _GET_EDID
...
now xf86-video-crime can actually turn the monitor off
2014-09-02 15:44:44 +00:00
dholland
f9228f4225
Add d_discard to all struct cdevsw instances I could find.
...
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
macallan
5dbd45e441
actually get rid of actually unused variables, still works on my Indy
...
thanks mrg
2014-06-03 12:15:00 +00:00
macallan
834a163f3d
sprinkle __unused()
2014-06-02 15:07:24 +00:00
mrg
25bb3b0e82
split crime_bus_reset() into crime_{cpu,mem}_reset() and only reset
...
the cpu or the memory upon either error, not both.
seems to make my O2 slightly less likely to hang, and matches what
the linux crime driver does.
2014-05-17 20:44:08 +00:00
christos
21af650c78
- use cpu_{g,s}etmodel
...
- fix unused
2014-03-24 19:10:34 +00:00
dholland
a68f9396b6
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
...
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
mrg
d07fd9689b
- remove unused variables
...
- use (void) when we don't care about the return value
2013-12-16 15:45:29 +00:00
chs
b8c34ff8df
fix device/softc split errors.
2012-10-29 12:51:38 +00:00
chs
cbab9cadce
split device_t/softc for all remaining drivers.
...
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
macallan
d6837d19e2
use rasops_init(0,0)
2012-01-11 16:18:30 +00:00
he
3036739309
The crmfb device does not depend on iic; i2cbus and i2c_bitbang is
...
sufficient, says jmcneill@
Fixes a build problem for (at least) the GENERIC32_IP3x kernel.
2011-10-06 12:25:42 +00:00
macallan
f0b7a070f3
device_t-ify
2011-08-18 02:56:21 +00:00
dyoung
cf10107d5d
#include <sys/bus.h> instead of <machine/bus.h>.
2011-07-01 18:51:52 +00:00
wiz
4cbd24b23f
dependant -> dependent
2011-06-30 20:09:15 +00:00
macallan
821ed8ac36
crmfb may run in more than 8 bit now so we need the other rasops* as well
2011-05-22 12:33:49 +00:00
macallan
fa88ee4233
add support for running the console in more than 8 bit
...
Now modes like 1680x1050 work. The hardware requires a stride of a multiple
of 32 bytes, with 1680 this requires 16bit colour.
2011-05-17 22:52:28 +00:00
macallan
9924280d80
add some constants, clarify some hw limitations
2011-05-17 22:26:33 +00:00
rmind
2626d57668
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
...
consistency. Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
plunky
7ed121adfb
use PRIx64 for printing 64-bit values
2011-04-13 16:22:09 +00:00
macallan
713b73c8c5
add mode setting support
...
If we find a monitor via DDC we switch to its preferred mode if it reports one,
otherwise stick with whatever the firmware set up.
2011-04-07 01:20:31 +00:00
macallan
0c7466a2ae
defflag CRMFB_DEBUG
2011-04-07 01:07:31 +00:00
macallan
4ac5047fdd
remove some old debug code
2011-04-04 22:50:36 +00:00
macallan
95c4a4389f
crmfb needs edid and friends now
2011-04-04 22:15:13 +00:00
macallan
9b94525a54
add DDC2 support. Not too useful yet.
2011-03-31 00:01:08 +00:00
macallan
e313f620d9
device_t-ify, use aprint_*_dev() where appropriate
2011-03-30 19:16:35 +00:00
macallan
5bcfbbb873
add a bunch of GBE registers, no functional change (yet)
2011-03-30 18:25:31 +00:00
tsutsui
7567d86ea5
Set correct struct clockframe .intr value for hardclock(9).
2011-03-10 17:22:51 +00:00
macallan
5bf2d32443
use hardware to draw characters, while there use vcons_replay_msgbuf()
2011-03-01 21:47:13 +00:00
matt
23347d39ed
Merge forward matt-nb5-mips64
...
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
2011-02-20 07:59:49 +00:00
tsutsui
23e6770b50
Split device_t/softc, some KNF.
2010-01-12 15:20:29 +00:00
tsutsui
59bb42b6d5
Switch to using todr_[gs]ettime_ymdhms() format
...
which doesn't require struct timeval details.
2010-01-12 15:01:48 +00:00
matt
290a34a065
Merge from matt-nb5-mips64
...
Merge mips-specific arch files.
2009-12-14 00:45:59 +00:00
tsutsui
471e528b58
Remove `volatile' qualifier from argument types of
...
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.
XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
rmind
891259c1af
Use lwp_getpcb() on mips, powerpc and sh3, clean from struct user usage.
2009-11-21 17:40:27 +00:00
macallan
31e90ebd10
add a few more register definitions, needed by the latest crime_drv.
2009-03-26 04:11:58 +00:00
cegger
df7f595ecd
Ansify function definitions w/o arguments. Generated with sed.
2009-03-18 10:22:21 +00:00
rumble
85716c44d5
Enable Personal IRIS 4D/20 and 4D/25 support:
...
- Adapt int(4) to handle the INT1 chip
- Move generic rtc clocks out of hpc/ and into dev/
- Handle the very strangely wired eeprom and other bits in arcemu
- Sprinkle MACH_SGI_IP6 as necessary
- Enable IP6/IP10 devices in GENERIC32_IP12. Yes, the naming is poor but
there's no winning with kernel/hw compatibility on sgimips...
Tested on my 4D/25. Doesn't (appear to) break macallan@'s IP22.
2009-02-12 06:33:56 +00:00
rumble
b610ccb0d6
Check in work in progress of Personal IRIS 4D/20 and 4D/25 support (IP6
...
and IP10, respectively).
2009-02-10 06:04:56 +00:00
he
0f2d00e5bc
Don't be lazy and let one directory's Makefile install an include
...
file from another directory, as that only causes problems with
mtree later on when encountering the /.. path component. Instead,
descend into dev/ and use the Makefile there to install dev/crmfbreg.h
in the appropriate directory.
2008-11-25 09:47:40 +00:00
macallan
9263b0c23b
add a couple more registers
2008-11-06 22:16:03 +00:00
tsutsui
342676093a
KNF and misc cosmetics.
2008-08-23 17:25:54 +00:00