summaryrefslogtreecommitdiff
path: root/sys/dev/ct
AgeCommit message (Collapse)Author
2017-01-28Remove pc98 support completely.Yoshihiro Takahashi
I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
2016-02-27Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Justin Hibbits
Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count. Migrate these to use the new bus_alloc_resource_anywhere() API. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370 Notes: svn path=/head/; revision=296137
2015-03-22Remove MAXBSIZE use from drivers where it has nothing to do.Alexander Motin
In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead. MFC after: 1 month Notes: svn path=/head/; revision=280347
2014-11-20Lock the scsi_low code and the drivers which use it along with otherJohn Baldwin
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 Notes: svn path=/head/; revision=274760
2012-11-10Use ANSI prototype to fix build with clang.Yoshihiro Takahashi
MFC after: 1 week Notes: svn path=/head/; revision=242871
2012-09-10Remove some more NetBSD compat shims and other unused bits from theseJohn Baldwin
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. Notes: svn path=/head/; revision=240325
2012-09-06Remove NetBSD compat shims for drivers originally shared with NetBSD/pc98.John Baldwin
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) Notes: svn path=/head/; revision=240172
2010-01-12Spell "Hz" correctly wherever it is user-visible.Gavin Atkinson
PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Approved by: ed (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=202161
2007-02-23o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati
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@ Notes: svn path=/head/; revision=166901
2006-05-16Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp
unnecessary. Notes: svn path=/head/; revision=158651
2005-05-10Change a directory layout for pc98.Yoshihiro Takahashi
- 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 Notes: svn path=/head/; revision=146049
2005-01-06Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh
Notes: svn path=/head/; revision=139749
2004-07-10Update for the KDB framework:Marcel Moolenaar
o Remove inclusion of opt_ddb.h o Make debugging code conditional upon KDB. Notes: svn path=/head/; revision=131911
2004-03-17Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson
Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
2004-03-13Move the non-MD machine/dvcfg.h and machine/physio_proc.h to a commonPeter Wemm
MI area before they proliferate more. Notes: svn path=/head/; revision=126928
2003-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
2003-08-07We donot need `\n' for panic().Noriaki Mitsunaga
Notes: svn path=/head/; revision=118594
2003-07-01Mega busdma API commit.Scott Long
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 Notes: svn path=/head/; revision=117126
2003-05-03Force PnP devices to set SMIT mode.Yoshihiro Takahashi
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=114562
2002-09-20This file does not <sys/disklabel.h>Poul-Henning Kamp
Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103708
2002-06-01Quick, low impact band-aide to unbreak the build. Added && 0 so weRuslan Ermilov
ifdef out what appears to be a bogus call to softintr using data elements that aren't in the softc. Forgotten by: imp Notes: svn path=/head/; revision=97701
2002-05-30Check for defined(__i386__) instead of just defined(i386) since the compilerAlfred Perlstein
will be updated to only define(__i386__) for ANSI cleanliness. Notes: svn path=/head/; revision=97556
2002-03-20Remove __P.Alfred Perlstein
Notes: svn path=/head/; revision=92739
2001-10-09Added Logitec LHA-301 pnp id.Yoshihiro Takahashi
Notes: svn path=/head/; revision=84719
2001-07-14Catch up with NetBSD/pc98.Noriaki Mitsunaga
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 Notes: svn path=/head/; revision=79697
2001-06-14Correct typo.Yoshihiro Takahashi
Notes: svn path=/head/; revision=78210
2001-06-14Moved the wd33c93 specific file to sys/dev/ic.Yoshihiro Takahashi
Notes: svn path=/head/; revision=78209
2001-02-27Added another wd33c93 based SCSI card driver which replaces the bs driver.Yoshihiro Takahashi
Now, default is still bs. Submitted by: nyan and non. Obtained from: NetBSD/pc98 Notes: svn path=/head/; revision=73149