summaryrefslogtreecommitdiffstats
path: root/sys/dev/microcode/siop/siop.ss
AgeCommit message (Collapse)AuthorFilesLines
2010-07-23Manuel Bouyer rescinded clauses 3 and 4 of his license text.jsg1-6/+1
2007-04-13scsi_generic is now 16 bytes. Adjust offsets into structure beingkrw1-8/+8
passed to controller so they point where expected. Fixes martin@'s alpha and sparc machines.
2005-11-20Add patch from Martin Bouyer to fix NetBSD PR #31990. Will generatekrw1-4/+8
microcode that (in concert with fixes to ic/siop*) fixes problems found by miod@, martin@, otto@, on some drives.
2005-10-10Script fix for resid calculation/save data pointer function.krw1-5/+3
Preparation for larger diff for IGNORE WIDE RESIDUE messages and real resid calculation. From bouyer via NetBSD. Note we are now sync'd to latest (r1.19) code from NetBSD.
2005-10-08More trailing whitespace removal (perry via NetBSD).krw1-6/+6
2003-07-01Don't dma map the xs->cmd. Copy it to a safe buffer that is alreadykrw1-8/+8
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!
2002-09-16Resync siop with NetBSD. Make strong effort to minimizekrw1-5/+25
differences, undoing whitespace, spelling, etc. changes and adopting the NetBSD code instead of equivalent home grown code for PPR negotiation, etc. siop.c 1.21 -> 1.64 siop_common.c 1.12 -> 1.30 siopreg.h 1.7 -> 1.13 siopvar.h 1.13 -> 1.18 siopvar_common.h 1.10 -> 1.21 ncr53cxxx.c 1.5 -> 1.10 siop.ss 1.12 -> 1.17 siop_pci.c 1.8 -> 1.11 siop_pci_common.c 1.6 -> 1.17 siop_pci_common.h 1.2 -> 1.4 Many fixes, add 1010-66 support, restructure things to prepare for addition of esiop, osiop and oosiop drivers. tested on various archs by art@, millert@, wilfried@, jason@, Dan Weeks. ok deraadt@.
2001-04-15Support U160 on 53c1010 chips.krw1-9/+10
Add support for PPR negotiations and DT transfers, and the preservation and restoration of the SCNTL4 register which controls Ultra3 transfers. Redo sync lookup, since the same period factor can mean two things depending on whether you are using DT or ST. Keep a minimum allowed ST period factor, and a minimum allowd DT period factor for each adapter. Currently NO support for QAS or IUS or AIP.
2001-03-01Typo police: various misspelling, capitalizations, etc.krw1-3/+3
2001-02-15Import siop, a replacement for the ncr SCSI driver, from NetBSD.krw1-0/+409
Written for NetBSD by Manuel Bouyer. Tested with various cards on i386 and alpha. Outstanding issue: doesn't work with PowerPC yet.