summaryrefslogtreecommitdiffstats
path: root/sys/dev/ct
Commit message (Collapse)AuthorAgeFilesLines
* Remove MAXBSIZE use from drivers where it has nothing to do.mav2015-03-221-3/+3
| | | | | | | In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead. MFC after: 1 month
* Lock the scsi_low code and the drivers which use it along with otherjhb2014-11-205-60/+49
| | | | | | | | | | | | | | | | | | | | related cleanups: - Require each driver to initalize a mutex in the scsi_low_softc that is shared with the scsi_low code. This mutex is used for CAM SIMs, timers, and interrupt handlers. - Replace the osdep function switch with direct calls to the relevant CAM functions and direct manipulation of timers via callout(9). - Collapse the CAM-specific scsi_low_osdep_interface substructure directly into scsi_low_softc. - Use bus_*() instead of bus_space_*(). - Return BUS_PROBE_DEFAULT from probe routines instead of 0. - No need to zero softcs. - Pass 0ul and ~0ul instead of 0 and ~0 to bus_alloc_resource(). - Spell "dettach" as "detach". - Remove unused 'dvname' variables. - De-spl(). Tested by: no one
* Use ANSI prototype to fix build with clang.nyan2012-11-104-136/+56
| | | | MFC after: 1 week
* Remove some more NetBSD compat shims and other unused bits from thesejhb2012-09-105-47/+24
| | | | | | | | | | | drivers: - Remove scsi_low_pisa.*, they were unused. - Remove <compat/netbsd/physio_proc.h> and calls to the stubs in that header. They were empty nops. - Retire sl_xname and use device_get_nameunit() and device_printf() with the underlying device_t instead. - Remove unused {ct,ncv,nsp,stg}print() functions. - Remove empty SOFT_INTR_REQUIRED() macro and the unused sl_irq member.
* Remove NetBSD compat shims for drivers originally shared with NetBSD/pc98.jhb2012-09-064-105/+15
| | | | | | | | | | | | | NetBSD/pc98 was never merged into the main NetBSD tree and is no longer developed. Adding locking to these drivers would have made the compat shims hard to impossible to maintain, so remove the shims to ease future changes. These changes were verified by md5. Some additional shims can be removed that do affect the compiled results that I will probably do in another round. Approved by: nyan (tentatively)
* Spell "Hz" correctly wherever it is user-visible.gavin2010-01-121-1/+1
| | | | | | | PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Approved by: ed (mentor) MFC after: 2 weeks
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Since DELAY() was moved, most <machine/clock.h> #includes have beenphk2006-05-161-1/+0
| | | | unnecessary.
* Change a directory layout for pc98.nyan2005-05-101-1/+1
| | | | | | | | | - Move MD files into <arch>/<arch>. - Move bus dependent files into <arch>/<bus>. Rename some files to more suitable names. Repo-copied by: peter Discussed with: imp
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-066-6/+6
|
* Update for the KDB framework:marcel2004-07-101-4/+2
| | | | | o Remove inclusion of opt_ddb.h o Make debugging code conditional upon KDB.
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-4/+4
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Move the non-MD machine/dvcfg.h and machine/physio_proc.h to a commonpeter2004-03-133-6/+6
| | | | MI area before they proliferate more.
* Use __FBSDID().obrien2003-08-243-3/+9
| | | | Also some minor style cleanups.
* We donot need `\n' for panic().non2003-08-071-1/+1
|
* Mega busdma API commit.scottl2003-07-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg. Lockfunc allows a driver to provide a function for managing its locking semantics while using busdma. At the moment, this is used for the asynchronous busdma_swi and callback mechanism. Two lockfunc implementations are provided: busdma_lock_mutex() performs standard mutex operations on the mutex that is specified from lockfuncarg. dftl_lock() is a panic implementation and is defaulted to when NULL, NULL are passed to bus_dma_tag_create(). The only time that NULL, NULL should ever be used is when the driver ensures that bus_dmamap_load() will not be deferred. Drivers that do not provide their own locking can pass busdma_lock_mutex,&Giant args in order to preserve the former behaviour. sparc64 and powerpc do not provide real busdma_swi functions, so this is largely a noop on those platforms. The busdma_swi on is64 is not properly locked yet, so warnings will be emitted on this platform when busdma callback deferrals happen. If anyone gets panics or warnings from dflt_lock() being called, please let me know right away. Reviewed by: tmm, gibbs
* Force PnP devices to set SMIT mode.nyan2003-05-031-0/+9
| | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* This file does not <sys/disklabel.h>phk2002-09-201-1/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Quick, low impact band-aide to unbreak the build. Added && 0 so weru2002-06-011-1/+1
| | | | | | | ifdef out what appears to be a bogus call to softintr using data elements that aren't in the softc. Forgotten by: imp
* Check for defined(__i386__) instead of just defined(i386) since the compileralfred2002-05-301-3/+3
| | | | will be updated to only define(__i386__) for ANSI cleanliness.
* Remove __P.alfred2002-03-206-65/+65
|
* Added Logitec LHA-301 pnp id.nyan2001-10-091-0/+1
|
* Catch up with NetBSD/pc98.non2001-07-146-509/+1061
| | | | | | | | | | | | | | | | | | | | | | | o Much cleanly separate NetBSD(XS) / FreeBSD(CAM) codes. o Improve tagged queing support (full QTAG). o Improve quirk support. o Improve parity error retry. o Impliment wide negotheation. o Cmd link support. o Add copyright of CAM part. o Change for CAM_NEW_TRAN_CODE. o Work around for buggy KME UJDCD450. o stg: add disconnet condition. o nsp: use suspend I/O. and more. I thank Honda-san. conf/options.pc98: add CT_USE_RELOCATE_OFFSET and CT_BUS_WEIGHT dev/{ct,ncv,nsp,stg}/*_{pccard,isa}.c: add splcam() before calling attach/detach functions. Tested by: bsd-nomads Obtained from: NetBSD/pc98
* Correct typo.nyan2001-06-141-1/+1
|
* Moved the wd33c93 specific file to sys/dev/ic.nyan2001-06-143-3/+3
|
* Added another wd33c93 based SCSI card driver which replaces the bs driver.nyan2001-02-276-0/+2417
Now, default is still bs. Submitted by: nyan and non. Obtained from: NetBSD/pc98
OpenPOWER on IntegriCloud