Commit Graph

302 Commits

Author SHA1 Message Date
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
mrg f259d9d73e this file is no longer used. 2002-03-16 14:03:00 +00:00
mrg 0eed6807d4 convert to using <dev/ebus/ebusvar.h> and it's struct member names. 2002-03-16 14:00:00 +00:00
eeh 2db5a5e82f Get PCI working with the new bus_space*. 2002-03-15 07:06:23 +00:00
eeh 01fb3f72f5 sbus_bus_map() no longer has a preferred vaddr parameter. 2002-03-14 20:54:18 +00:00
eeh ce92edb48a bus_space_map2() no longer exists. 2002-03-14 20:51:35 +00:00
eeh 98d13341c0 bus_space_map2 no longer exists. 2002-03-14 20:50:13 +00:00
uwe a05702eaac Rework the driver to add EBus DMA support and improve APC DMA support.
Audio-related stuff is left almost intact.

* support audiocs at ebus playback and capture
    tested on krups and u5 (thanks, martin)
* make first attempt at supporting audiocs at sbus capture
* nb: full-duplex is not tested
* while here, fix CSAUDIO_MONITOR_MUTE to be of CSAUDIO_MONITOR_CLASS
    i.e. outputs.monitor.mute -> monitor.monitor.mute

Ok by pk, eeh.
2002-03-12 04:48:28 +00:00
chs 759dc33636 make this compile without DDB. 2002-03-08 06:03:50 +00:00
tsutsui 98c71d1fdd Fix calculation of dma segment length
when the DVMA range is crossing the boundary.
Approved by eeh, and fixes port-sparc64/15200.
2002-03-06 17:12:51 +00:00
martin f801cd463b Rename EBUS_PADDR_FROM_REG uses to EBUS_ADDR_FROM_REG. 2002-03-01 11:51:00 +00:00
eeh 93ead6c5e0 Fix pr sparc64/15633: datafault at tlp_start causes panic
Also clean up some additional 32-bit kernel printf issues.
2002-02-21 02:42:27 +00:00
martin 1b4393c5db Cast/format fix to make this build on 32bit kernels. 2002-02-12 20:50:47 +00:00
eeh 424177d21b Provide more info in psycho_ue. 2002-02-08 20:04:14 +00:00
eeh bfba946595 Handle the case where a DMA operation wraps from the end of a page to the
beginning of the same page properly by double-mapping that page.
2002-02-08 20:03:45 +00:00
eeh 4daea20c93 Move a brace so this will compile w/o DEBUG. 2002-02-08 00:47:04 +00:00
eeh 92ef550481 Overhaul iommu_dvmamap_load_raw(). 2002-02-07 21:35:26 +00:00
jdolecek ff8305bbac Switch to MI dev/md_root.c for archs which don't have any special
memory disk hooks (i.e. everything except atari).
2002-01-21 21:56:57 +00:00
eeh 79cc3b0d73 Set the interrupt retry timer to 0xff. 2002-01-14 16:30:31 +00:00
pooka bbee62e254 declare variable used only with BLINK inside #ifdef BLINK to avoid
unused variable warning
2001-10-23 20:59:42 +00:00
mrg da8425b96f clean up ebus:
- kill dead dma code
	- remove icky self->dv_parent casts

audiocs @ ebus doesn't crash anymore, but it doesn't appear to work
yet either...
2001-10-22 08:09:46 +00:00
mrg 8243634795 this has moved to dev/ebus 2001-10-22 08:04:56 +00:00
mrg bf444e34ac kill a dead driver. the floppy driver will be shared with sparc anyway... 2001-10-22 08:03:01 +00:00
mrg abcb6203a8 implement `options BLINK' for sparc64 for ebus & sbus. tested on a U2
(sbus) and a U5 (ebus).
2001-10-22 07:31:41 +00:00
mrg f9358dee8b use <dev/ebus/ebusreg.h> 2001-10-22 07:06:20 +00:00
thorpej 397a84f51a Fix the semantics of __PCI_DEV_FUNCORDER so that they're actually useful:
If __PCI_DEV_FUNCORDER is defined, don't do the song-and-dance to check if
a device is multi-function; machdep code is going to tell us exactly which
functions to probe.

Note this required changing how pci_func_devorder() works in the
sparc64 PCI machdep code; now the "curnode" is assumed to point
to the bus, rather than some function (typically 0) on the device,
just as pci_bus_devorder() makes that assumption.

All this should allow the PCI code to actually locate the second
HME device on a Sun Netra t1, which is at 3,1 -- previously, the
PCI code would have missed it because there is no device at 3,0.

(Sun deserves a brick to the head for this one -- this seems clearly
out of line with the PCI spec.)
2001-10-17 22:16:41 +00:00
thorpej b8c7d53f1c Fix a typo in a DIAGNOSTIC check. 2001-10-17 18:43:04 +00:00
eeh 0bda325da0 Clear the dmamap inside splhigh() protection. 2001-10-08 19:24:20 +00:00
eeh bb99dc52c7 Manage both streaming caches on psycho/psycho+. 2001-10-07 20:30:40 +00:00
eeh 0e60a3377b Remove bsd_openprom.h, which is only for compatibility with the sparc port. 2001-10-05 21:53:56 +00:00
thorpej 34dbd19c49 Delete this file; nothing includes it, and it is simply an (incomplete)
copy of <dev/pci/ppbreg.h> anyway.
2001-10-05 17:53:36 +00:00
eeh cd58dffb9d Handle the situation where console input and console output go to different
devices.  (N.B. The com driver does not handle different instances as input
and output devices, so this only works for two different drivers.)
2001-10-02 20:19:33 +00:00
chs 80373b7e54 don't depend on other headers to include sys/proc.h for us. 2001-09-28 11:59:51 +00:00
eeh 98ecb5b215 getprop* -> PROM_getprop* 2001-09-26 20:53:05 +00:00
eeh 766a9b8c9c Change bus_space_mmap() signature to the official one. 2001-09-24 23:49:31 +00:00
eeh 6138deb0d4 Handle DMA boundaries a bit better. 2001-09-21 03:04:09 +00:00
thorpej e38a2e561a machine/fbio.h -> dev/sun/fbio.h 2001-09-19 18:10:32 +00:00
mrg 002ddf2283 in pci_conf_read() and pci_conf_write(), convert all printf()'s to only
occur if SPDB_CONF (and hence DEBUG).  also convert the panic in
pci_conf_write() to a SPDB_CONF warning and a return.

this cleans up pcictl(8) support.
2001-09-15 19:32:14 +00:00
eeh a7283de29c Be a bit more elaborate with UE DMA errors. 2001-09-15 07:10:04 +00:00
eeh 388726b340 Added iommu_extract() for debug purposes.
Anyone caught using it for anything other than debug will be shot.
2001-09-15 06:55:50 +00:00
chris 0e7661f023 Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
2001-09-10 21:19:08 +00:00
eeh 574892a487 Get rid of spurious OF_getprop(). 2001-09-10 16:27:53 +00:00
eeh 9d636228e1 Sun Blade 100 support (and some psycho fixes from Jason Wright). 2001-09-10 16:17:06 +00:00
eeh 5783dd5873 instance-to-path works on instances not nodes. 2001-08-31 17:10:54 +00:00
eeh b14bf2ceef Fix incorrect parentheses. 2001-08-28 14:51:28 +00:00
eeh 1007ef1595 Fix backwards compare. (From Jason Wright) 2001-08-23 16:14:12 +00:00
eeh 4b569fc269 Fix bug involving small, non-contiguous dma segments.
From Manuel Bouyer.
2001-08-06 22:02:58 +00:00
eeh 7950c7dffd Don't match ebus nodes not called "ebus" like the ones on hme cards. 2001-07-25 03:49:54 +00:00
eeh 64a9c222c0 Use OF_getprop instead of getprop. 2001-07-24 19:27:10 +00:00
eeh cc6781a464 Get rid of a bunch of obsolete files. 2001-07-23 18:21:26 +00:00