Commit Graph

545 Commits

Author SHA1 Message Date
uebayasi a7e80793d8 Fix DEBUG build. 2010-12-09 04:31:57 +00:00
uebayasi 15158cd1c7 This doesn't use uvm(9) API. 2010-11-15 05:59:57 +00:00
uebayasi 19b39d64b4 Include uvm/uvm_extern.h to access uvmexp. gtmpsc.c doesn't need
uvm(9) API at all.
2010-11-14 03:49:52 +00:00
uebayasi 8184d5dc03 Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
macallan 4fbc897fbb finish device_t-ification 2010-10-07 07:53:53 +00:00
macallan dab970d65a always make sure we can access the framebuffer - having more than one wsdisplay
is perfectly reasonable these days
2010-09-14 18:28:18 +00:00
macallan 59c2899703 - add support for running the console in 8 bit colour
- make shadow fb optional
- use VCONS_DONT_READ if there's no shadow fb
2010-08-18 21:11:50 +00:00
macallan 1c134541af use box drawing font if needed 2010-05-04 05:10:25 +00:00
macallan e8eb2869bf add the missing bits to allow X to run in 24bit with the wsfb driver
still no hardware acceleration though
2010-04-14 04:37:11 +00:00
macallan b7af30216a use a shadow framebuffer 2010-04-08 16:49:34 +00:00
joerg 58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
mjacob 06aa1abd00 Synchronize with other platforms:
Strongly architect handles so we can more easily detect bogus
	handles. This switches us to a full 32 bits for all handles.

	Handle the case of FC disks disappearing and then reappearing-
	at least at the FC transport level.

	Some better and finer control of debug and non-debug printouts.
2010-03-26 20:52:00 +00:00
macallan da6c0e814c first stab at a driver for the cg12 / matrox cg3
for now it uses the same monochrome overlay as OBP, otherwise it's got the
usual wsdisplay / vcons goodies
TODO:
- fill in mmap and ioctl methods so we can at least run X in monochrome
- figure out where the 24bit buffer is ( and maybe if there's an 8 bit buffer )
- see if we can do any acceleration
- find the DAC registers
2010-03-24 00:33:06 +00:00
macallan 3bc5d8b535 make latching optional.
The SPARCbook docs claim it's necessary but my 3GX happily works without.
2010-03-01 05:42:08 +00:00
macallan 539b768657 fix ancient typo, noticed by mouse@ 2010-03-01 05:26:53 +00:00
dyoung c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
macallan 490ba2f1c7 Abort setup when we find no audio codec to avoid crashing later on with
ISDN-only cards.
Should fix PR41055
2010-02-18 02:21:38 +00:00
macallan 565f3dd6cd avoid using PAGE_SIZE directly so sparc/GENERIC builds again 2010-01-29 23:50:01 +00:00
macallan 31d6295bdf round the space we bus_space_map() up to PAGE_SIZE alignment 2010-01-27 21:02:22 +00:00
macallan 5f203032ca tcx doesn't use bt_dac 2010-01-27 21:01:33 +00:00
pooka 10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
macallan 351d4f5ebb set a delta value for the master channel so volume control via PMF works 2010-01-14 02:20:07 +00:00
dyoung cd6e1fbf91 Expand PMF_FN_* macros. 2010-01-08 19:53:10 +00:00
macallan 7190e17c0e fix off by one in zx_copyrect() 2010-01-05 05:04:38 +00:00
macallan 647d0c5994 fix off by one error in zx_fillrect()
while there, use vcons_replay_msgbuf()
2010-01-05 04:17:49 +00:00
tsutsui 7a44913b3f Fix botches in mechanical changes to make this compile:
dbri.c:165: warning: 'dbri_sus' declared 'static' but never defined
dbri.c: In function 'dbri_resume':
dbri.c:2188: error: 'sc' undeclared
dbri.c:2189: error: break statement not within loop or switch
2010-01-02 04:12:07 +00:00
christos 641f5484f1 convert to pmf 2010-01-02 01:42:49 +00:00
tsutsui 33999cc30c Remove some more unnecessary casts. 2009-09-22 13:13:46 +00:00
tsutsui 6e067fe997 u_intNN_t -> uintNN_t 2009-09-20 08:24:04 +00:00
tsutsui 579b9cbd30 u_intNN_t -> uintNN_t 2009-09-19 11:53:42 +00:00
tsutsui a616b75df3 Split device_t/softc.
Tested on TME emulating SS2.

XXX: bwtwo at obmem on TME emulating sun2 didn't match and cannot test
2009-09-19 04:52:44 +00:00
tsutsui 6d160c7919 Split device_t/softc.
Tested on:
---
qec0 at sbus0 slot 3 offset 0x20000: 128K memory
be0 at qec0 slot 0 offset 0x0 level 4 (ipl 7): rev 1, address 00:80:17:xx:xx:xx
2009-09-19 04:48:18 +00:00
tsutsui 1f6e50b57e Make bwtwo(4) match prior to genfb(4).
Required by bwtwo(4) on TME emulating SS2.
2009-09-19 03:49:22 +00:00
tsutsui 853e246fe1 Split device_t/softc. Tested on SS1+.
XXX: sparc/dev/cgthree.c in Attic had an attachment for cgthree* at obio?
XXX: and sparc/conf/files.sparc still has an entry of nonexistent (or not yet)
XXX: sparc/dev/cgthree_obio.c. Is there any sun4m machine which requires it?
2009-09-18 16:43:19 +00:00
tsutsui 6dce7b7053 Use the common ether_crc32_le() function for multicast hash. 2009-09-18 14:40:49 +00:00
tsutsui df6a834f16 Misc KNF. 2009-09-18 14:35:11 +00:00
tsutsui 51d56bbc55 Make local functions static. 2009-09-18 14:14:06 +00:00
tsutsui 01a44458f7 Use uint8_t pointers for TX/RX buffers to avoid extra pointer casts. 2009-09-18 14:09:42 +00:00
tsutsui d7e3eba588 Adjust attach messages. 2009-09-18 14:00:44 +00:00
tsutsui d01ef0d1d1 Split device_t/softc. 2009-09-18 13:48:54 +00:00
tsutsui 0ab05b4a42 Make be(4) is properly initialized at the first ifconfig(8) command:
- make beinit() and bestop() match struct ifnet
- if ether_ioctl() returns ENETRESET always call init function
2009-09-18 13:45:20 +00:00
tsutsui c349dcd7cd - wrap a long line
- ANSIfy
2009-09-18 12:59:47 +00:00
tsutsui f3504c80ad - use device_private(), proper types and variables for device_t/softc
- remove unnecessary casts against void pointer

XXX: many inconsistent use of aprint_*(9) and printf(9)
2009-09-18 12:23:16 +00:00
tsutsui 9c13754d44 Fix a message format in error path. 2009-09-17 17:53:35 +00:00
tsutsui 73d3aaa327 Split device_t/softc.
Tested on:
> lebuffer0 at sbus0 slot 3 offset 0x40000: 128K memory
2009-09-17 17:51:52 +00:00
tsutsui 08c902218f Include "ioconf.h" instead of extern struct cfdriver foo_cd decls. 2009-09-17 16:39:48 +00:00
tsutsui 12ad76b18c Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
2009-09-17 16:28:12 +00:00
tsutsui 62b836f249 Make cgthree(4) match prior to genfb(4). Required by cgthree(4) on SS1+. 2009-09-16 13:05:07 +00:00
tsutsui a93b3edd3f Rewrite code which looks for an unallocated lebuffer and pairs it
with possible orphaned this le at sbus one on old PROMs not using
homegrown struct sbusdev but common cfdriver_t and device_t structures.
Now nothing refers struct sbusdev registered by sbus_establish().

Tested an SBus le/esp combo card on SS1+.
2009-09-16 11:17:19 +00:00
tsutsui 32fba42272 sbus_establish() should take device_t self for the device itself,
not device_t parent even if sbus is grandparent of the device,
otherwise (*sd_reset)() callbacks will be called with an wrong device_t.
Even in such case, sbus_establish() looks for an sbus though device tree.
XXX: (*sd_reset)() isn't called anyway, and these stuff seems really bogus.
2009-09-08 18:31:36 +00:00