macallan
da28d6ec38
support WSDISPLAYIO_GET_FBINFO
2013-10-09 17:18:23 +00:00
jdc
1a35157c53
Work around invalid root PCI bus bus-range (0x00-0xff) by checking the
...
bus-range of any child buses, and altering the root bus bus-range to
suit. Required for cardbus bridge attach on SPARCle.
2013-09-24 18:23:07 +00:00
martin
4b0e962db8
Remove unused variable
2013-09-15 13:45:31 +00:00
martin
bf0ed17b34
Remove an unused variable
2013-09-15 09:25:22 +00:00
martin
880e9bcab0
Remove unused variable
2013-09-12 19:54:51 +00:00
martin
8fc5f922fd
#if 0 a variable just like their only use
2013-09-12 19:51:09 +00:00
martin
77cc2c9e6f
Remove an unused variable, avoid unused variable warning.
2013-09-12 12:57:48 +00:00
nakayama
680052c744
Handle US-IIe's STICK counter as 64-bit explicitly to fix a hang at
...
boot after about 6.5 minutes on 32-bit kernel.
2013-08-22 09:57:30 +00:00
macallan
975e4c65ca
support UltraSPARC-IIe STICK counter as time base
2013-08-20 19:19:23 +00:00
macallan
73af4c39e5
add US-IIe specific STICK and ESTAR registers
2013-08-20 10:33:03 +00:00
mrg
cc564476de
thanks to mhitch, we got all the interrupt issues sorted out for now,
...
so turn off PDB_INTR in the debug kernel.
2013-08-10 00:48:04 +00:00
macallan
4453737ff6
avoid uninitialized use of defattr
2013-07-30 19:16:50 +00:00
nakayama
a27e3fe5b7
Fix copy and paste.
2013-06-24 11:32:21 +00:00
nakayama
cd7b58e068
Avoid data_access_error trap panic when reading unused PCI
...
configuration space.
This method is described in UltraSPARC IIi User's Manual "16.2.1
Probing PCI during boot using deferred errors", and refer to the
implementation of OpenBSD.
2013-06-21 20:09:58 +00:00
martin
cf7199d040
Make it compile again
2013-05-30 16:01:25 +00:00
christos
7b845fa9dc
phase 1 of disk geometry cleanup:
...
- centralize the geometry -> plist code so that we don't have
n useless copies of it.
2013-05-29 00:47:48 +00:00
jdc
2621eee72e
Output "iic mux present" if this device has multiple IIC buses (0 and 1).
...
The device has multiple buses if the second (bus select) register is present.
2013-02-03 17:46:28 +00:00
jdc
dd24a5a7cc
Add a detach function and use this when shutting down:
...
halt the fan speed callout
set the speed of both fans to maximum
Also avoids occasional panics in shutdown because the callout is not stopped.
2013-02-03 10:58:28 +00:00
jdc
674d0e262c
Add sysmon support to display the fan-speed related values for the CPU and
...
system fans.
Fix a bug where the system fan was always set to full speed (63), which was
noticed when viewing the values reported by `envstat`.
2013-02-02 21:54:51 +00:00
nakayama
02f3b0bac4
Fix typo in KASSERT, pointed out by riastradh@ and martin@.
2013-01-24 11:06:20 +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
jdc
8803ac043c
Driver for pckbc at ebus, as found on Tadpole SPARCle.
...
Largely based on sparc's pckbc_js.c.
2012-10-09 20:55:04 +00:00
mlelstv
ff64c602d8
Only initialize when we are the first opener.
2012-10-03 07:16:49 +00:00
jdc
f5f7a747ec
Use the PROM mapping for the clock, if it exists.
...
Allows the clock on the Tadpole SPARCle to attach.
Idea from r1.43 of OpenBSD sys/arch/sparc64/sparc64/clock.c
2012-09-19 20:34:57 +00:00
jdc
7d8c465d7e
Match the Altera ebus bridge, as found on the Tadpole SPARCle.
2012-09-19 06:55:25 +00:00
mrg
2171cc30fb
add an XXXSMP comment.
2012-08-11 21:48:30 +00:00
macallan
b1dfce1816
split ffb_putchar() into a version for mono fonts and one for anti-aliased
...
ones. While there use the blitter to draw the cursor and remove some waits
that are unnecessary now that characters are drawn by hardware.
2012-08-09 00:48:06 +00:00
martin
edc3152ccf
Set up cn_tab in bootstrap() instead of initializing it statically.
...
Fixes -Wno-common fallout, idea from tsutsui.
2012-07-31 13:35:48 +00:00
dsl
e21a34c25e
Add some pre-processor magic to verify that the type of the data item
...
passed to sysctl_createv() actually matches the declared type for
the item itself.
In the places where the caller specifies a function and a structure
address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
macallan
7111124bac
- don't mess with more than 256 colour map entries
...
- don't assume that wscons assumes BGR
- while there enable alpha
2012-04-12 19:11:49 +00:00
macallan
c6ba58b388
don't assume that wscons assumes BGR ordering and request it explicitly
2012-04-12 19:09:18 +00:00
mrg
61c995fb7c
replace splhigh() usage with an IPL_HIGH mutex.
2012-03-25 03:51:33 +00:00
mrg
529bbcf93d
- save the "version#" in the softc, we will want it later
...
- enable some more things in the schizo CSR:
- tomatillo: DMA arbitration enable:
- tomatillo: prefetch read multiple / one / line
- schizo: enable parking unless "no-bus-parking" is set
- schizo: enable streaming buffer interrupts
- schizo: enable bus arbitration for schizo, not these reseved
bits for tomatillo
partly from and entirely inspired by freebsd schizo_attach().
2012-03-25 03:13:08 +00:00
mrg
f72d1cda54
add missing __KERNEL_RCSID().
2012-03-18 05:26:58 +00:00
elad
0c9d8d15c9
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
...
something meaningful. All relevant documentation has been updated or
written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
2012-03-13 18:40:26 +00:00
mrg
4f67d478db
avoid writing 1 byte beyond the end of the string promlib.c has given us.
...
instead of forcing a nul byte afterwards, KASSERT() that the final byte
already is a nul. if there are broken proms... well, we can fix them.
this, plus one more change, allows my SS20 to boot multiuser.
2012-01-30 04:25:14 +00:00
para
89c9828deb
converting extent(9) from malloc(9) to kmem(9)
...
preceding kmem-vmem-pool-uvm patch
releng@ acknowledged
2012-01-27 18:52:47 +00:00
macallan
1fa79ac882
use rasops_init(0, 0)
2012-01-11 15:53:32 +00:00
macallan
fa70cee0f2
support anti-aliased fonts and let the hardware do the alpha blending
2011-12-22 05:08:05 +00:00
jdc
d436f96ffc
Add support for the WSDISPLAYIO_GET_EDID ioctl (requires passing a device_t
...
to ffb_attach).
2011-10-31 08:28:46 +00:00
jdc
d5f801e0ef
Correct the VSYNC-related register definitions and rework how they are used
...
(only when the monitor supports composite sync). OK macallan@.
2011-10-23 06:06:24 +00:00
nakayama
b36dfd62f8
Fix namespace confilicts membar_ops(3) vs. macros for SPARC V9
...
membar instructions.
2011-10-08 08:49:07 +00:00
nakayama
b68a419a7b
ih_pil is an interrupt level, not an interrupt mask.
2011-09-04 12:17:13 +00:00
macallan
eb42293275
shut up some debug output accidentially left in
2011-08-18 12:53:25 +00:00
macallan
3bdd0f0323
use appropriate WID and FBC for high resolution mode
...
Tested with a 1680x1050 TFT on an ffb2+
2011-08-16 12:59:01 +00:00
mrg
ab82fc7e5a
initialise ih_ivec.
2011-08-14 08:14:00 +00:00
jdc
1a41a28bff
Use aprint_normal(). From apb@.
2011-08-12 08:47:05 +00:00
jdc
4e9cb6cc2b
Set the destination UPAID when establishing the interrupt mapping.
...
From eeh@.
2011-08-12 08:24:01 +00:00
jdc
e5b24af9a0
Add missing new line to zs_attach_fhc()
2011-08-12 08:22:39 +00:00
mrg
ed7e2948e6
initailise ih_pending and ih_ivec.
2011-08-12 06:41:50 +00:00