summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
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@.
2003-05-17Replace suspect strncpy with strlcpy to ensure null termination.Kenneth R Westerback
ok tdeval@ deraadt@ miod@
2003-05-17fix up the media handling for the intel based MACs. Also hack around aJason Wright
bug in the Momenco firmware on the Leopard-V, which now has one port working.
2003-05-16Use 16bit alignment in addr_cmp() (not 32bit) so this has a chanceTodd C. Miller
of working on sparc64.
2003-05-14Nuke more commons: ac97_id2, tinfo_tJason Wright
2003-05-13remove annoying sputtering that no other ethernet driver does; ok jason@Todd T. Fries
2003-05-12Nuke a whole bunch of commons; ok tedu (still more to come *sigh*)Jason Wright
2003-05-06make sure we always zero out ds (and get no trash from stack) and always ↵Michael Shalayeff
warn about no acb where applicable; krw@ ok
2003-05-06count auto-sense reqs as well; krw@ okMichael Shalayeff
2003-05-06allow programming dma block bus transaction length on 710 and set to 8 words ↵Michael Shalayeff
for hppa/osiop; krw@ ok
2003-04-29grr... %s, not dc%sJason Wright
2003-04-29- remove last vestige of "old autoconf": dc_unit is dead, long live dv_xnameJason Wright
- remove a bunch of #if 0 stuff (most of which referred to dc_unit, grr) - delay a bzero until necessary
2003-04-29KNFJason Wright
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2003-04-26managment -> management;Jason McIntyre
ok mickey@
2003-04-25lm(4) driver from NetBSD adapted for sysctl interface.Alexander Yurchenko
The lm driver provides support for the National Semiconductor LM series hardware monitors and register compatible chips. It supports LM78, LM78-J, LM79, Winbond W83697HF, W83627HF, W83781D and W83782D chips. Tested and ok'ed by millert@ and henning@.
2003-04-23give 'em some const; mjacob@ okMichael Shalayeff
2003-04-12Fix index bounds checking in save data pointers logic.Kenneth R Westerback
Fix an indent problem and an extra blank space. ok mickey@
2003-04-11Delete a doubly redundant call to timeout_del() in osiop_timeout.Kenneth R Westerback
First, the only way to get there was if the timeout fired, in which case timeout_del() is a noop. Second, it will be called in osiop_scsidone() for every active command when osiop_reset() is called in osiop_timeout(). From mickey@
2003-04-09missing nl in the error msg and a return afterwardsMichael Shalayeff
2003-04-09a couple of sigmatel codec idsMichael Shalayeff
2003-04-09Cleanup/make more consistant the various DEBUG flags and uses thereof.Kenneth R Westerback
Eliminate a couple of unused debug defines and variables. ok mickey@
2003-04-09Reduce default OSIOP_DEBUG output to a useful volume.Kenneth R Westerback
From mickey@
2003-04-08Fix diagnostic output to display data buffer actually being used.Kenneth R Westerback
Fix setting of data buffer length when doing auto request sense. Add a little general paranoia about setting data buffer length. Eliminate $ifdef'ed field in acb structure, leaving diagnostic code using it #ifdef'ed. Mostly suggested by and ok mickey@.
2003-04-07a couple more codec ids from peopleMichael Shalayeff
2003-04-06Fix a lot of issues in osiop.Kenneth R Westerback
In particular fix dma memory handling and as a result request sense processing. Much input/advice/testing from Mickey. ok mickey@
2003-04-03adjust protection on the allocated memory through the uvm same as it was ↵Michael Shalayeff
allocated w/o cutting short onto the pmap layer
2003-03-30Fix probing of dual channel 7899 with some fixes from current FreeBSDKenneth R Westerback
code, plus an extra ahc_flush_device_writes(). ok deraadt@ tdeval@
2003-03-30Delete unused local version of strncat.Kenneth R Westerback
ok mjacob@.
2003-03-30As long as I am here pull in some useful changes from NetBSD.Kenneth R Westerback
1) Eliminate some magic numbers. 2) Eliminate some double semi-colons. 3) Rename iha_scsi_req_q to iha_scb.
2003-03-29A few final (I hope) tweaks to the dma fixes.Kenneth R Westerback
1) Return XS_DRIVER_STUFFUP if request sense cannot be loaded. 2) Try to avoid bus_dmamap_unload()'ing maps that have already been unloaded. 3) Try to avoid bus_dmamap_load()'ing maps that are loaded. 4) Be extra paranoid and ensure bus_dmamap_sync()'s are done before a bus_dmamap_unload().
2003-03-29Another chunk of bus_dma fixes. May actually approach correctness now.Kenneth R Westerback
1) Actually map and sync scatter gather list that is also DMA'd. 2) Actually map and sync request sense buffer. 3) Actually POSTREAD/WRITE sync data buffer after I/O, rather than skipping it because the I/O was successful and no chars were left to xfer. 4) Eliminate extra fields, clarify some names, reorder fields to clarify their use. 5) Put common scatter gather preparation logic into separate function. 6) If insertion of request sense command fails, complete active command with XS_SENSE, but zero'd sense data. 7) Eliminate physical address arithmetic as much as possible, centralizing remaining manipulations in code actually sending addresses to adapter.
2003-03-29Use sc_print_addr() where possible to improve messages.Kenneth R Westerback
Put debug messages in #ifdef sections. Eliminate a less than useful error message.
2003-03-28Fix REQUEST SENSE handling based on lessons learned struggling withKenneth R Westerback
osiop. 1) bus_dmamap_sync(POSTREAD) the request sense buffer *before* copying it to xs->sense. 2) Always terminate timeout on completion of command, starting new one for any REQUEST SENSE that is issued for non-polling commands. 3) Use pScb->SCB_Flags rather than xs->flags to ensure correct flags are used during REQUEST_SENSE processing. 4) bzero() sense buffer before reading data into it. This fixes a long standing problem where my Yamaha SCSI CD reported bogus errors during probe.
2003-03-24splimp() around xl_reset() during autoconf. something in xl_reset() wantsJason Wright
to generate an interrupt before the rings are setup correctly on some variants; ok deraadt.
2003-03-21Endian fixes for ahc driver. These are a no-op for i386. Now works on macppc.Dale Rahn
ok millert@ miod@ krw@
2003-03-15specifed -> specifiedTheo de Raadt
2003-03-13Initialize the timeout for the non-console case of PS2 keyboard. FixesDale Rahn
a panic on alpha with serial console. ok miod@
2003-03-10Fix AP scan on prism and add a /* FALLTHROUGH */ comment to makeTodd C. Miller
things obvious.
2003-03-06this is a fix for kernel panics and craches along w/ other stabilityMichael Shalayeff
improvements worked out over past few months w/ different people. the main bug was fixes w/ help of harding@motd.ca . 10x to all and enjoy the better driver (;
2003-03-06Remove double include of scsi_all.hmjacob
2003-03-05update media handling based on NetBSD: mainly fix setting up of the outputJason Wright
drivers also, force a preference of the external phy a little earlier: both ports on the netra T1/105 now work.
2003-03-03nuke extra semicolonmjacob
2003-03-03Argh. Put back mickey's change here and also follow Ted's suggestionmjacob
wrt bogus identity assignments.
2003-03-03Add some A64 defines.mjacob
Fix egregious botch where ICBXOPT_ZIO is suppose to be bit #5, not the value '5'.
2003-03-03Get rid of ISP_DMA_ADDR_T and uses ISP_DAC_SUPPORTED to define themjacob
width of a dma address type- this also allows us to define macros that set upper words of a dma address. Remove STRNCAT. Add (untested) 10160 support.
2003-03-03spelling fixesmjacob
2003-03-03In isp_putback_atio, propagate iid && rxid for FC ATIOs.mjacob
LINT fixes for printing out the lun for recevied messages. Spelling fix.
2003-03-03Remove STRNCAT define.mjacob