summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2003-08-11free code memory should change permissions failMichael Shalayeff
2003-08-11make sure Debugger() is called only inside _both_ DDB and OSIOP_DEBUGMichael Shalayeff
2003-08-09need to include bpfilter.h for bpf to work (noticed by weissmanndude). put ↵Michael Shalayeff
some non-fatal printfs into ifdef debug
2003-08-08remove unused code and a some cleanup; deraadt@ and krw@ ok.Federico G. Schwindt
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-08-05print dv_xname instead of the uninitialized variable card; ok ↵Markus Friedl
miod/henning/deraadt
2003-08-05Add support for Winbond 83627THF, ok grange@ henning@Damien Couderc
2003-08-03use bus_dmamap_load_raw() instead of bus_dmamap_load() where appropriate; ↵Michael Shalayeff
krw@ ok
2003-07-25cast and %lu for size_t variable printfJason Wright
2003-07-23Old Promise ATA controllers need some additional operationsAlexander Yurchenko
during DMA transfers to work correctly with LBA48 drives. Based on diff from Takeshi Nakayama <tn@catvmics.ne.jp> for NetBSD with some corrections from FreeBSD ATA driver.
2003-07-23VT1612A; matthew.gream@pobox.comTheo de Raadt
2003-07-15Add support for AD1985, deraadt@ okDamien Couderc
2003-07-15correct some debugging printfsJason Wright
2003-07-15move prototype for com_raisedtr() to comvar.h (just like pccom).Jason Wright
2003-07-14uptimes in secs and usecs seem to be swapped w/ each other; also confirmed ↵Michael Shalayeff
by millert
2003-07-09Eliminate creation/destruction of dmamap's for every xmit by reusingKenneth R Westerback
statically allocated maps. Significant performance boost on both sparc64 and macppc. Tested on macppc by drahn@. ok jason@ drahn@.
2003-07-08no need for an explicit machine/intr.h; tested on alpha, i386, sparcMichael Shalayeff
2003-07-06trailing spacesAlexander Yurchenko
2003-07-05better indentAlexander Yurchenko
2003-07-01Don't dma map the xs->cmd. Copy it to a safe buffer that is alreadyKenneth R Westerback
mapped and sync'ed appropriately, and is guaranteed to be in one memory page. Eliminate now unused dmamap_cmd and rs_cmd fields. Fix another error message (adding active command to reset list) so that it includes the adapter name. Add missing letoh32() calls to debug code. The evils of directly mapping *xs->cmd were pointed out by Mickey during osiop development. In particular, *xs->cmd may start on one memory page and run into the next. Since the dma logic in most cards/drivers (including siop) only allocates one address/size pair to map *xs->cmd, parts of a command could be lost or corrupted. The large number of 6 byte dma mappings noted long ago by someone (Henric?). This change reduces the dma mapping activity per i/o by 1/3 to 1/2 and may give a performance boost of some kind. Successfully tested on i386, sparc64 (ultra30 - thanks Jolan, blade100), macppc and alpha. Unfortunately these changes don't fix the Blade1000 siop problems. **NOTE** If scsi_generic is ever upped to 16 bytes the offsets in siop.ss must be updated!
2003-06-29- cast rfact to int64_t before multiplication to avoid sign overflowAlexander Yurchenko
- don't hardcode funrpm sensors number in wb_fanrpm(), instead pass it as a parameter since WB83697 actually has only 2 sensors, not 3 from Otto Moerbeek <otto@drijf.net>.
2003-06-29remove usage of xl_unitJason Wright
2003-06-28supply missing argument to a panic string; ok tedu, deraadtAnil Madhavapeddy
2003-06-28fix wrong format type; ok deraadt, tedu, mickeyAnil Madhavapeddy
2003-06-28Fix a bug which would promote a target from TARST_PROBING toKenneth R Westerback
TARST_ASYNC if a bus reset occurred while in TARST_PROBING. Improve DMA IRQ error message to always display the adapter name. Correct an indent botch. All of which doesn't help the Blade1000 boot, though it is now both less noisy and more informative.
2003-06-26align acb size to 256 bytes to avoid cache issues; krw@ okMichael Shalayeff
2003-06-25constify some readonly dataMichael Shalayeff
2003-06-25AN_RID_ACTUALCFG gets the same endianesslessness as AN_RID_GENCONFIGMichael Shalayeff
2003-06-25Restore the original wdcdebug_mask instead of clearing DEBUG_PROBE whenHenric Jungheim
done with it. This makes "wdcprobe()" consistent with "wdcattach()". ok grange@
2003-06-25Extend the sparc bus_space_tag_t to store access endianness in it, andMiod Vallat
adapt all bus_space functions to do proper endianness conversion whenever necessary, except for the raw ones. This allows us to remove the forced endianness conversions in if_wi. with help from and ok mickey@
2003-06-25#include <machine/intr.h> is not necessary here.Miod Vallat
2003-06-23no need for an explicit <machine/intr.h> inclusionMichael Shalayeff
2003-06-18we already set the rx descriptor length to accept vlan packets... justJason Wright
need to advertise the capability; tested by tsar at polarcap dot org
2003-06-17New driver and wsdisplay type for the Weitek Power9000 and Brooktree Bt445Miod Vallat
combination, found on the Tadpole SPARCbook 3 only (later model use the Power9100 and are already supported). Untested for lack of hardware and volunteers, but carefully crafted; if it does not work out of the box, this should be a good starting point. "worth having in the tree" millert@
2003-06-16be more sane w/ byte swapping and leave the le archs at the same behaviour ↵Michael Shalayeff
and give be archs a better chance at getting the correct mac address as tested on the mac and hppa where mac has an additional bug w/ the phy bit still remaining and hppa seems fine; jason@ ok
2003-06-09more 3/4 cleanup for pefoTheo de Raadt
2003-06-09Fix erroneous handling of i/o's during a reset.Kenneth R Westerback
a) Set xs->status rather than cmd_tables->status because there will be no interrupt processing to move it from cmd_tables->status to xs->status. b) Set cmd_c.status to correct value (CMDST_SENSE_DONE) when an active sense command is reset. c) Don't put a reset command from the ready queue into the free_list twice, once in siop_scsicmd_end() and once manually. Condition a) meant that the scsi layer was seeing successfully completed i/o's (xs->error == XS_NOERROR) when they were in fact reset and should have had xs->error == XS_TIMEOUT or xs->error == XS_RESET. This meant lost data on output, and random or zero'ed data on input. Condition b) meant that the wrong bus_dmamap_sync() was called, though the actual action was apparently identical. Condition c) meant that the free_list could become corrupt. The problem was discovered by pb@ on a heavily loaded server that experienced timeouts. This fix was tested by pb@ and henric@ to prove it did not affect normal processing. If nothing else it will provide better error messages if the problem is ever encountered again. Probably a good candidate for -stable if pb@ can successfully reproduce his timeout problems and not have his server crash.
2003-06-07print minor version as 02d; from Adam Montague via pr 3284; matches what ↵Michael Shalayeff
freebsd does as well
2003-06-053/4 knockout for peter galbavyTheo de Raadt
2003-06-03terms 3 & 4 cleanup based on "terms" fileTheo de Raadt
2003-06-03fix various 3/4 licenses according to "terms" fileTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02kill the caluses three and four on some of my codeMichael Shalayeff
2003-06-02nuke clause 3 & 4Jason Wright
2003-06-02do not play w/ interrupts too much and keep 'em enabled at all times, fixes ↵Michael Shalayeff
random lockups; tested by brad@ on all models
2003-05-31real register definitions for the brooktree 451/457/458 on the cgsix andJason Wright
cgthree. ok miod.
2003-05-28The statistics are wrong endian. "netstat -i" now gives sane results.Henric Jungheim
ok pb@
2003-05-24Disable off-screen font loading. We still need to use the pdc console routinesMiod Vallat
before we switch to wsdisplay, and this can clobber the font image in some cases, especially lower (<= 1024x768) resolutions.
2003-05-20AN983 endian issue; from FreeBSD via PR 3263 with minor style fixes by meHenning Brauer
ok jason@
2003-05-19Put required delays between reading DSTAT and SSTAT0 registers. Add new onesKenneth R Westerback
where required and modify existing ones to use a consistant delay(25). From NetBSD with minor mods. ok mickey@.