Commit Graph

200 Commits

Author SHA1 Message Date
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
tsutsui
4578c8e434 Misc cosmetics:
- some KNF and ANSIfy
- use uintNN_t types
- remove a redundant declaration
- use __func__ to print a function name
- use PRIu64 to print uint64_t
- wrap long lines
2008-08-08 16:05:47 +00:00
tsutsui
a311d7b2e9 In crime_attach(), call crime_watchdog_disable() rather than
writing zero to the CRIME registers implicitly.
2008-08-07 14:44:29 +00:00
tsutsui
e1beb9f83b Fix a typo so that the crimedog is actually shut up. 2008-08-07 14:36:49 +00:00
tsutsui
8485799843 - replace some mysterious magic numbers in CPU clock measurement code
with some more meaningful expressions
- compare counter values in 100ms rather than 2ms
- check CPU_MIPS_DOUBLE_COUNT in mips_cpu_flags explicitly
2008-08-03 00:20:18 +00:00
tsutsui
a8858674e9 Add a BUS_DMASYNC_PREWRITE call against tile's DMA address descriptors.
Fixes mangled screen on recent kernels.
Tested on my R5K IP32 and on R10K IP32 by Jorge Acereda Macia on port-sgimips.
2008-07-30 17:24:27 +00:00
cegger
17db90159e use device_lookup_private to get softc 2008-06-13 12:25:37 +00:00
tsutsui
40f5425d58 Remove all initialization of obsolete ci_divisor_recip in
mips struct cpu_info and related macroes.
The member was prepared for a hack in MD microtime(9) implementation
but it has been superseded by MI timecounter(9).
2008-05-26 15:59:29 +00:00
jmcneill
34fba0e3ad Use 2-clause license. 2008-05-08 02:10:59 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
02cb47cab2 Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
jmcneill
6a2a315184 Remove debug printf: ``so we need 10 x 8 tiles -> 00500000'' 2008-03-18 02:41:38 +00:00
jmcneill
5f170d1cdb Swap red and blue for 8bpp paletted mode. 2008-03-15 16:13:39 +00:00
macallan
b14b0caf09 allow userland to map all video memory, not just the visible part 2008-03-02 00:54:25 +00:00
macallan
4750dcc2e0 allocate a linear buffer, don't smoke crack when setting up the engine's TLBs 2008-03-01 16:56:39 +00:00
macallan
864b6f1c3f correct accidentially committed garbage (what the hell... ) 2008-02-18 19:43:02 +00:00
macallan
104b3395f2 correct typo 2008-02-18 19:04:49 +00:00