CVS commit: src/sys/arch/sparc64/dev

2015-08-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Aug 10 04:52:19 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: schizoreg.h

Log Message:
add some tomatillo specific information to schizo_pbm_regs.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/schizoreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-08-14 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri Aug 14 10:59:27 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: pckbc_ebus.c

Log Message:
pckbc@ebus: match "kb_ps2" device to make keyboard and mouse work
on qemu-sparc64.

XXX OpenBIOS doesn't provide interrupts for pckbc currently, so use
the interrupt numbers described in QEMU's hw/sparc64/sun4u.c::isa_irq_handler.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/pckbc_ebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-08-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Aug 24 23:32:07 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: auxio.c

Log Message:
convert auxio(4) to use a mutex for exclusion (this existing code didn't
really work for MP systems, anyway -- it only went to splhigh.)

various cleanups:
- remove unused AUXIO_SBUS
- make most functions static
- introduce auxio_{read,write}_led() frontends
- avoid a potential NULL deref in auxio_fd_control()

the text is 32 bytes smaller.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sparc64/dev/auxio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-09-03 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Thu Sep  3 19:43:35 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: iommu.c iommuvar.h vpci.c

Log Message:
sun4v: iommu setup seems to work now - device detection is now possible - parts 
from OpenBSD - ok mrg@, martin@


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/arch/sparc64/dev/iommu.c
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sparc64/dev/iommuvar.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/vpci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-09-06 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sun Sep  6 23:47:09 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: iommu.c

Log Message:
Fix build w/o options SUN4V.


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/arch/sparc64/dev/iommu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-09-07 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Tue Sep  8 04:04:33 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: vpci.c

Log Message:
Improve printout duing autoconfiguration


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc64/dev/vpci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-09-08 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Wed Sep  9 03:47:58 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: vpci.c

Log Message:
Fixed console logging when booting with -q


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sparc64/dev/vpci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-09-11 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Sep 11 22:27:18 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
- initialize sc_bg_cache and FFB_FBC_BG along with everything else so things
  get redrawn properly when exiting X
- fix off by one in ffb_ras_erasecols(), no more artifacts when the screen
  is redrawn


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-10-30 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Fri Oct 30 16:21:46 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: zs.c

Log Message:
Add a missing newline in zs at sbus attach message.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/arch/sparc64/dev/zs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-11-23 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Mon Nov 23 21:40:14 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: schizo.c schizoreg.h schizovar.h

Log Message:
Set the target JPID for all interrupts on Tomatillo.
If the "ino-bitmap" property is available, use it to route error interrupts.
Minor cosmetic changes.
Add register printing when DEBUG is defined.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc64/dev/schizoreg.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sparc64/dev/schizovar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-11-26 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 26 23:44:57 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: psycho.c

Log Message:
adjust a bunch of debugging messages to use __func__ and to normalise
newline usage (some sequences ended up printing blank lines.)


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/arch/sparc64/dev/psycho.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-11-26 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 27 00:36:59 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: psycho.c

Log Message:
s/pa/busaddr/ in a debug message, we print the actual paddr next.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/arch/sparc64/dev/psycho.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-11-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Nov 27 09:34:36 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: schizo.c

Log Message:
Use __BIT() for some masks to fix the sparc build.
No binary changes.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/sparc64/dev/schizo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2015-11-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Nov 27 13:51:57 UTC 2015

Modified Files:
src/sys/arch/sparc64/dev: vpci.c

Log Message:
Shuffle a bit to avoid empty loop body.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc64/dev/vpci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-03-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  7 00:11:34 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: iommu.c

Log Message:
Don't throw us in the debugger!


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/sparc64/dev/iommu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-03-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  7 00:16:48 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: iommu.c

Log Message:
Return instead of crashing. This is wrong, and should be fixed properly.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/sparc64/dev/iommu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-03-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  7 00:28:36 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: iommu.c

Log Message:
Better to panic! Otherwise we end in an endless loop.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/arch/sparc64/dev/iommu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-06-17 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Fri Jun 17 21:59:06 UTC 2016

Added Files:
src/sys/arch/sparc64/dev: vbus.c vbusvar.h vrtc.c

Log Message:
sun4v: vbus and vrtc drivers - from OpenBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/sparc64/dev/vbus.c \
src/sys/arch/sparc64/dev/vbusvar.h src/sys/arch/sparc64/dev/vrtc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-06-21 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Tue Jun 21 20:36:02 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: vbus.c

Log Message:
sun4v: vbus_attach() bugfix - use device_private()


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/vbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-06-22 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Wed Jun 22 20:13:51 UTC 2016

Added Files:
src/sys/arch/sparc64/dev: cbus.c cbusvar.h

Log Message:
sun4v: add cbus driver - from OpenBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/sparc64/dev/cbus.c \
src/sys/arch/sparc64/dev/cbusvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2016-07-18 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Mon Jul 18 19:32:44 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: cbus.c

Log Message:
sun4v: reset cbus debug back to zero


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/cbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2010-06-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jun 17 06:48:46 UTC 2010

Modified Files:
src/sys/arch/sparc64/dev: iommu.c

Log Message:
in iommu_remove() don't invalidate the IOMMU mapping.  for reasons not
yet determined, some PCI devices (at least fxp(4) and re(4)) sometimes
appear to perform DMA operations while this is happening, and we get
uncorrectable DMA errors.  ideally, this "shouldn't happen", but none
of the investigation so far has reveal the problem, and my source
investigation of both opensolaris and linux show that their perform
the invaliation when unmapping.

"handles" PR#43274 as well as other issues...

XXX: candidate for netbsd-5


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/sparc64/dev/iommu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2010-07-10 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Jul 10 10:07:40 UTC 2010

Modified Files:
src/sys/arch/sparc64/dev: psycho.c

Log Message:
psycho_sabre_dmamap_sync: do nothing if len == 0 like iommu_dvmamap_sync.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/arch/sparc64/dev/psycho.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2010-08-30 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Aug 31 03:08:23 UTC 2010

Modified Files:
src/sys/arch/sparc64/dev: gfb.c

Log Message:
remove shadow framebuffer support, use VCONS_DONT_READ instead


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sparc64/dev/gfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2010-09-20 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Sep 21 03:31:04 UTC 2010

Modified Files:
src/sys/arch/sparc64/dev: ffb.c ffb_mainbus.c ffbvar.h

Log Message:
* implement hw acceleration for putchar()
* use VCONS for copycols()
* don't map the framebuffer now that we don't access it anymore
* make a bunch of drawing engine syncs optional


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/ffb_mainbus.c \
src/sys/arch/sparc64/dev/ffbvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2010-12-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Dec 18 05:14:13 UTC 2010

Modified Files:
src/sys/arch/sparc64/dev: pci_machdep.c

Log Message:
allow sparc64 spc_find_ino() to be NULL; schizo doesn't need it.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/sparc64/dev/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-01-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jan  2 10:43:19 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: schizo.c schizoreg.h

Log Message:
now that it's optional, kill schizo_pci_find_ino().
prepare to enable the tomatillo iocache.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sparc64/dev/schizoreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-02-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sun Feb 13 11:54:24 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: psycho.c

Log Message:
Don't enable the powerfail interrupt on Netra X1 since it may hang.

Discussed on port-sparc64.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/sparc64/dev/psycho.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-02-28 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Mon Feb 28 14:29:29 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: lom.c

Log Message:
lom_refresh():
Update only the sensor status specified by the edata as noted in
sysmon_envsys(9).

lom_sysctl_alarm():
Update alarm status before reading via sysctl to make it usable at
a boot time.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sparc64/dev/lom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Mar 10 08:46:12 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: psychoreg.h

Log Message:
fix a typo


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/sparc64/dev/psychoreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-11 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri Mar 11 18:55:26 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus.c

Log Message:
Remove unnecessary headers.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/sparc64/dev/ebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 11:21:04 UTC 2011

Update of /cvsroot/src/sys/arch/sparc64/dev
In directory ivanova.netbsd.org:/tmp/cvs-serv14776

Log Message:
import the openbsd pyro and ebus_mainbus drivers for base reference.

Status:

Vendor Tag: openbsd
Release Tags:   openbsd-20110312

N src/sys/arch/sparc64/dev/pyrovar.h
N src/sys/arch/sparc64/dev/pyro.c
N src/sys/arch/sparc64/dev/ebus_mainbus.c

No conflicts created by this import



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 11:22:18 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: com_ebus.c

Log Message:
also attach for su16552 compatible devices.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/sparc64/dev/com_ebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 11:42:03 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus_mainbus.c pyro.c pyrovar.h

Log Message:
initial port of these drivers to netbsd.  both pyro(4) and ebus(4) at
mainbus depend upon other as-yet uncommited changes.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/arch/sparc64/dev/ebus_mainbus.c \
src/sys/arch/sparc64/dev/pyro.c src/sys/arch/sparc64/dev/pyrovar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 02:41:19 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: iommu.c iommureg.h iommuvar.h

Log Message:
various changes to adapt for Fire controller support, based upon the
openbsd code to do the same:

- add the tsb size into the ptsb bits
- avoid setting tsbsize in the CR
- disable IDB_INFO for now; it crashes
- add new macros for reading/writing IOMMU registers (need to use
  these more regularly across the whole file)
- add a missing membar #lookaside
- add support for flushing the pyro(4) caches
- extend struct iommureg to include everything pyro


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/arch/sparc64/dev/iommu.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sparc64/dev/iommureg.h
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/iommuvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 03:49:53 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: iommureg.h

Log Message:
add back the old iommureg definition, as iommureg_old.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/sparc64/dev/iommureg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 03:51:29 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: psycho.c psychoreg.h sbus.c sbusreg.h

Log Message:
use struct iommureg_old.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/arch/sparc64/dev/psycho.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sparc64/dev/psychoreg.h
cvs rdiff -u -r1.85 -r1.86 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/sbusreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 03:54:51 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pci_machdep.c

Log Message:
don't try to turn on parity or set the latency timer, or dump pci config
space for the pci bridge in sparc64_pci_enumerate_bus().  it doesn't work
on PCIe adapters.  #if 0'ed for now, should move this into psycho/schizo.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/sparc64/dev/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 04:00:43 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus_mainbus.c

Log Message:
minor clean up.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sparc64/dev/ebus_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 05:49:44 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: iommu.c iommureg.h iommuvar.h psycho.c
psychoreg.h sbus.c sbusreg.h

Log Message:
revert the iommu changes for now.  my U60 doesn't like them.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/sparc64/dev/iommu.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/iommureg.h
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sparc64/dev/iommuvar.h
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/sparc64/dev/psycho.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/sparc64/dev/psychoreg.h
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/sbusreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-18 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Mar 18 09:52:54 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus.c
Added Files:
src/sys/arch/sparc64/dev: ebusvar.h

Log Message:
re-add local ebusvar.h, and use it to share between ebus.c and ebus_mainbus.c


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/sparc64/dev/ebus.c
cvs rdiff -u -r0 -r1.9 src/sys/arch/sparc64/dev/ebusvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 20 20:40:22 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pci_machdep.c

Log Message:
remove unnecessary iommuvar.h and psycho{reg,var}.h includes.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sparc64/dev/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 20 20:42:06 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: iommureg.h

Log Message:
define 'struct iommureg2', that includes the full set of regs for the
schizo and pyro iommu's.  use these in IOMMUREG().

add back IOMMUREG_READ() and IOMMUREG_WRITE() macros.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sparc64/dev/iommureg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 20 20:43:34 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: schizo.c schizoreg.h

Log Message:
enable the tomatillo iocache.
garbage collect struct iommureg_schizo and use struct iommureg2.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/schizoreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 20 20:47:10 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: iommuvar.h

Log Message:
add a new is_flags member to strut iommu_state.  add two flags:
IOMMU_FLUSH_CACHE - extra flushes needed for some pyro
IOMMU_TSBSIZE_IN_PTSB - different ptsb assignment for pyro

partly from openbsd.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/sparc64/dev/iommuvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 20 20:48:36 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pyro.c

Log Message:
remove pyro_xir().  we don't have the MD support for it (yet?).
clean up some debug code.  clean up the DPRINTF() code, and expand
the interrupt mapping debug code to match schizo and psycho.
set IOMMU_TSBSIZE_IN_PTSB, and if oberon, IOMMU_FLUSH_CACHE.
disable the STC explicitly.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sparc64/dev/pyro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 20 21:26:36 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: iommu.c

Log Message:
re-add most of the pryo-supporting code, and some general clean up:
- handle setting tsb size in the ptsb via IOMMU_TSBSIZE_IN_PTSB (partly from
  openbsd)
- fix IDB_INFO for systems without a STC that fault on accesses to the
  flush register (like pyro)
- move iommu_reset() to the end of iommu_init()
- use IOMMUREG_WRITE() in a few places
- add a missing membar_lookaside() (from openbsd)
- if pmap_extract() on the flush buffer fails, disable flushing (from openbsd)
- flush the pyro-style iommu when IOMMU_FLUSH_CACHE is set (partly from openbsd)
- clear up a bit of debugging code so it spew a little less (sometimes you will
  get kernel lock spinouts due to long scrolling printfs)
- use __func__ in several places


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/arch/sparc64/dev/iommu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-04-02 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sun Apr  3 06:22:02 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pcf8591_envctrl.c

Log Message:
Remove ENVSYS_FMONNOTSUPP, so that we can monitor this sensor.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc64/dev/pcf8591_envctrl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-04-02 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sun Apr  3 06:25:11 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: tda.c

Log Message:
Return early if we are called from indirect attach (i.e., not the normal
case).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc64/dev/tda.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-04-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Apr 20 09:57:59 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
Remove some leftovers


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-05-09 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Mon May  9 08:44:22 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffbreg.h

Log Message:
Correc the "enable pedestal" register definition.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/ffbreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-05-09 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Mon May  9 09:06:28 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
Alter the sync-on-green and composite-sync settings:

  if the monitor doesn't support composite sync, enable sync-on-green

  then, if the monitor supports separate sync, disable composite vsync

(Prompted by macallan@.)


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-05-11 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Wed May 11 22:26:46 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pci_machdep.c

Log Message:
when looking for a device's node we want to start with the child nodes of the
root bus, not its peers


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/sparc64/dev/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-05-18 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu May 19 04:43:45 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
remove obsolete comment - putchar() does in fact use the blitter now


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-05-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue May 24 01:17:36 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: sab.c

Log Message:
also match the fujitsu sab: "FJSV,se" (from openbsd, pointed out by jdc)


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/sparc64/dev/sab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jun  2 00:16:22 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: com_ebus.c

Log Message:
also look for "FJSV,su" as found on PRIMEPOWER machines.
while here, copy some code from openbsd that should allow this to work
on the Fujitsu SPARC Enterprise Mx000 systems.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/sparc64/dev/com_ebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jun  2 00:24:24 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: auxio.c ebus.c ebus_mainbus.c ebusvar.h
psycho.c psychovar.h sab.c

Log Message:
split auxio, ebus, psycho, sab.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sparc64/dev/auxio.c
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/sparc64/dev/ebus.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc64/dev/ebus_mainbus.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/ebusvar.h
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/sparc64/dev/psycho.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/psychovar.h
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/sparc64/dev/sab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 02:48:33 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: fdc.c

Log Message:
CFATTACH_DECL_NEW


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/sparc64/dev/fdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 02:58:07 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: schizo.c schizovar.h

Log Message:
CFATTACH_DECL_NEW


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sparc64/dev/schizovar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:01:23 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pyro.c

Log Message:
CFATTACH_DECL_NEW


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc64/dev/pyro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:02:12 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: schizo.c

Log Message:
forgot the _NEW part


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sparc64/dev/schizo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:02:36 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pyro.c

Log Message:
forgot _NEW


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sparc64/dev/pyro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:05:21 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pyrovar.h upa.c

Log Message:
CFATTACH_DECL_NEW


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sparc64/dev/pyrovar.h
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sparc64/dev/upa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:09:02 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: psm.c

Log Message:
CFATTACH_DECL_NEW


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/psm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:20:39 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: cons.h ffb.c ffb_mainbus.c ffbvar.h pcons.c
pld_wdog.c power.c

Log Message:
CFATTACH_DECL_NEW


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/cons.h
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/ffb_mainbus.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc64/dev/ffbvar.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/sparc64/dev/pcons.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/pld_wdog.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sparc64/dev/power.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun  3 03:21:12 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pld_wdog.c

Log Message:
forgot _NEW again.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/pld_wdog.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-19 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sun Jun 19 21:37:10 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: lom.c

Log Message:
Limit reading from registers at most once every second with using
ratecheck(9).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/lom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-06-20 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jun 20 17:01:45 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: lom.c pcf8591_envctrl.c

Log Message:
Initialize sensor states before registering.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/lom.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sparc64/dev/pcf8591_envctrl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-07-01 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jul  1 18:48:37 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: com_ebus.c ebus.c ebus_mainbus.c ebusvar.h
ffb.c ffb_mainbus.c gfb.c iommu.c lpt_ebus.c mkclock.c
pcfiic_ebus.c pci_machdep.c psm.c psycho.c pyro.c rtc.c sbus.c
sbusvar.h schizo.c upa.c

Log Message:
#include  instead of .


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/sparc64/dev/com_ebus.c
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/sparc64/dev/ebus.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sparc64/dev/ebus_mainbus.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc64/dev/ebusvar.h \
src/sys/arch/sparc64/dev/ffb_mainbus.c
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc64/dev/gfb.c
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/sparc64/dev/iommu.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/sparc64/dev/lpt_ebus.c \
src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/mkclock.c \
src/sys/arch/sparc64/dev/pyro.c src/sys/arch/sparc64/dev/rtc.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/pcfiic_ebus.c
cvs rdiff -u -r1.72 -r1.73 src/sys/arch/sparc64/dev/pci_machdep.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/psm.c
cvs rdiff -u -r1.107 -r1.108 src/sys/arch/sparc64/dev/psycho.c
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/sbusvar.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/sparc64/dev/upa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-07-20 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Wed Jul 20 10:39:43 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: schizo.c

Log Message:
some malloc() -> kmem_alloc()


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sparc64/dev/schizo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Aug  1 08:36:39 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: central.c fhc_central.c fhc_mainbus.c

Log Message:
use device_private().  thanks to jmcneill for pointing this out.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/central.c \
src/sys/arch/sparc64/dev/fhc_central.c \
src/sys/arch/sparc64/dev/fhc_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-08 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Mon Aug  8 14:49:06 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: fdc.c

Log Message:
inline -> static inline
For successful gcc 4.5 builds.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/sparc64/dev/fdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 01:22:37 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pyro.c

Log Message:
print the ihandle passed in, not NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/pyro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 05:00:29 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus_mainbus.c

Log Message:
use device_private() to find the matching pyro leaf, now that pyro
has been device_t-ified.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc64/dev/ebus_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 06:04:41 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pci_machdep.c

Log Message:
convert some open-coded SPDB_PROBE printf calls to use DPRINTF() macro.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/sparc64/dev/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 06:38:19 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus_mainbus.c

Log Message:
- make a bunch of functions static
- set nmapmask to 1 before prom_getprop(), so we don't trigger an ENOMEM
- initialise ih_pending


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sparc64/dev/ebus_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 06:38:35 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: psycho.c

Log Message:
initialise ih_pending.


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/arch/sparc64/dev/psycho.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 06:41:16 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: sbus.c schizo.c

Log Message:
initialise ih_pending


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sparc64/dev/schizo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug 12 06:41:50 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: pyro.c

Log Message:
initailise ih_pending and ih_ivec.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/pyro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-12 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Aug 12 08:22:39 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: zs.c

Log Message:
Add missing new line to zs_attach_fhc()


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/sparc64/dev/zs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-12 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Aug 12 08:24:01 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: fhc.c

Log Message:
Set the destination UPAID when establishing the interrupt mapping.
>From eeh@.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/fhc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-12 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Aug 12 08:47:05 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: zs.c

Log Message:
Use aprint_normal().  From apb@.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/arch/sparc64/dev/zs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Aug 14 08:14:00 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ebus_mainbus.c

Log Message:
initialise ih_ivec.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sparc64/dev/ebus_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-16 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Aug 16 12:59:01 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
use appropriate WID and FBC for high resolution mode
Tested with a 1680x1050 TFT on an ffb2+


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-08-18 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Aug 18 12:53:26 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
shut up some debug output accidentially left in


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-10-22 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sun Oct 23 06:06:24 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c ffbreg.h

Log Message:
Correct the VSYNC-related register definitions and rework how they are used
(only when the monitor supports composite sync).  OK macallan@.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/ffbreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-10-31 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Mon Oct 31 08:28:46 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c ffb_mainbus.c ffbvar.h

Log Message:
Add support for the WSDISPLAYIO_GET_EDID ioctl (requires passing a device_t
to ffb_attach).


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sparc64/dev/ffb_mainbus.c \
src/sys/arch/sparc64/dev/ffbvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2011-12-21 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Dec 22 05:08:05 UTC 2011

Modified Files:
src/sys/arch/sparc64/dev: ffb.c ffb_mainbus.c ffbreg.h ffbvar.h

Log Message:
support anti-aliased fonts and let the hardware do the alpha blending


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/sparc64/dev/ffb_mainbus.c \
src/sys/arch/sparc64/dev/ffbvar.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/ffbreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-01-11 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Wed Jan 11 15:53:32 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: ffb.c gfb.c

Log Message:
use rasops_init(0, 0)


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sparc64/dev/gfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-03-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 18 05:26:58 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: central.c ebus_mainbus.c fhc.c fhc_central.c
fhc_mainbus.c pcf8591_envctrl.c pcfiic_ebus.c pld_wdog.c pyro.c
schizo.c tda.c upa.c

Log Message:
add missing __KERNEL_RCSID().


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sparc64/dev/central.c \
src/sys/arch/sparc64/dev/fhc.c src/sys/arch/sparc64/dev/fhc_central.c \
src/sys/arch/sparc64/dev/fhc_mainbus.c \
src/sys/arch/sparc64/dev/pcfiic_ebus.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/ebus_mainbus.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc64/dev/pcf8591_envctrl.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/pld_wdog.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc64/dev/pyro.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sparc64/dev/tda.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc64/dev/upa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-03-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 25 03:13:08 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: schizo.c schizoreg.h schizovar.h

Log Message:
- 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().


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc64/dev/schizoreg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc64/dev/schizovar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-03-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 25 03:51:33 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: iommu.c iommuvar.h

Log Message:
replace splhigh() usage with an IPL_HIGH mutex.


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/sparc64/dev/iommu.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/sparc64/dev/iommuvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-04-12 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Apr 12 19:09:18 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: ffb.c

Log Message:
don't assume that wscons assumes BGR ordering and request it explicitly


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/sparc64/dev/ffb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-04-12 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Apr 12 19:11:49 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: gfb.c

Log Message:
- don't mess with more than 256 colour map entries
- don't assume that wscons assumes BGR
- while there enable alpha


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sparc64/dev/gfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2010-03-22 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Mon Mar 22 18:38:43 UTC 2010

Modified Files:
src/sys/arch/sparc64/dev: lom.c

Log Message:
Fix off-by-one in LOMlite hostname code.  From rev 1.21 of OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc64/dev/lom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-08-08 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Aug  9 00:48:07 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: ffb.c ffbreg.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc64/dev/ffbreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-08-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Aug 11 21:48:30 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: mkclock.c

Log Message:
add an XXXSMP comment.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/mkclock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-09-18 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Wed Sep 19 06:55:25 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: ebus.c

Log Message:
Match the Altera ebus bridge, as found on the Tadpole SPARCle.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/sparc64/dev/ebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/dev

2012-09-19 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Wed Sep 19 20:34:58 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: mkclock.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc64/dev/mkclock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




CVS commit: src/sys/arch/sparc64/dev

2012-10-03 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Wed Oct  3 07:16:49 UTC 2012

Modified Files:
src/sys/arch/sparc64/dev: sab.c

Log Message:
Only initialize when we are the first opener.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/sparc64/dev/sab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   >