aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/stg
Commit message (Collapse)AuthorAgeFilesLines
* Remove stg(4) driverWarner Losh2018-10-228-2170/+0
| | | | | | | | | | | | stg(4) is marked as gone in 12. Remove it. There are no sightings of it in the nycbug dmesg database. It was for an obscure SCSI card that sold mostly in Japan, and was especially popilar among pc98 hackers in the 4.x time frame. It was also only enabled on i386. Relnote: Yes Notes: svn path=/head/; revision=339572
* Tag the current round of deprecated drivers.Warner Losh2018-01-291-0/+1
| | | | | | | Differential Revision: https://reviews.freebsd.org/D13818 Notes: svn path=/head/; revision=328523
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-277-0/+14
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Convert rman to use rman_res_t instead of u_longJustin Hibbits2016-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Summary: Migrate to using the semi-opaque type rman_res_t to specify rman resources. For now, this is still compatible with u_long. This is step one in migrating rman to use uintmax_t for resources instead of u_long. Going forward, this could feasibly be used to specify architecture-specific definitions of resource ranges, rather than baking a specific integer type into the API. This change has been broken out to facilitate MFC'ing drivers back to 10 without breaking ABI. Reviewed By: jhb Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5075 Notes: svn path=/head/; revision=294883
* Use the right product names.Warner Losh2015-12-111-1/+1
| | | | | | | Pointy Hat To: imp@ Notes: svn path=/head/; revision=292111
* Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingWarner Losh2015-12-111-0/+1
| | | | | | | | | | | | block. Use it in all the PNP drivers to export either the current PNP table. For uart, create a custom table and export it using MODULE_PNP_INFO since it's the only one that matches on function number. Differential Review: https://reviews.freebsd.org/D3461 Notes: svn path=/head/; revision=292079
* Lock the scsi_low code and the drivers which use it along with otherJohn Baldwin2014-11-206-170/+109
| | | | | | | | | | | | | | | | | | | | | | | 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
* Fxi a bunch of typos.Eitan Adler2013-05-101-1/+1
| | | | | | | | PR: misc/174625 Submitted by: Jeremy Chadwick <jdc@koitsu.org> Notes: svn path=/head/; revision=250460
* Remove some more NetBSD compat shims and other unused bits from theseJohn Baldwin2012-09-106-58/+26
| | | | | | | | | | | | | | 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
* Remove NetBSD compat shims for drivers originally shared with NetBSD/pc98.John Baldwin2012-09-063-47/+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) Notes: svn path=/head/; revision=240172
* strict kobj sigs: fix assortment of device_detach and device_shutdown implsAndriy Gapon2009-06-112-3/+3
| | | | | | | | | | with common issue of having void return type instead of int Reviewed by: imp, current@ Approved by: jhb (mentor) Notes: svn path=/head/; revision=194023
* Change the functions to ANSI in those cases where it breaks promotionRoman Divacky2009-02-241-10/+3
| | | | | | | | | | | to int rule. See ISO C Standard: SS6.7.5.3:15. Approved by: kib (mentor) Reviewed by: warner Tested by: silence on -current Notes: svn path=/head/; revision=189004
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-233-3/+3
| | | | | | | | | | | | | | | | 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
* no need to print unload anymore.Warner Losh2006-07-141-1/+0
| | | | Notes: svn path=/head/; revision=160334
* Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp2006-05-161-1/+0
| | | | | | | unnecessary. Notes: svn path=/head/; revision=158651
* Remove OLDCARD shimsWarner Losh2005-09-211-31/+6
| | | | Notes: svn path=/head/; revision=150440
* Eliminate unused argument in PCMCIA_CARD macro.Warner Losh2005-06-241-5/+5
| | | | | | | | | | | Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments. Approved by: re (dwhite) Notes: svn path=/head/; revision=147580
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-295-6/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inWarner Losh2005-03-011-2/+2
| | | | | | | | preference to some random negative number to allow other drivers a bite at the apple. Notes: svn path=/head/; revision=142890
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-066-6/+6
| | | | Notes: svn path=/head/; revision=139749
* Update for the KDB framework:Marcel Moolenaar2004-07-101-3/+2
| | | | | | | o Make debugging code conditional upon KDB instead of DDB. Notes: svn path=/head/; revision=131920
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh2004-05-271-10/+5
| | | | | | | | | redundant includes and fix some of the include disordering. Submitted by: bde Notes: svn path=/head/; revision=129764
* Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh2004-05-261-1/+1
| | | | | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment. Notes: svn path=/head/; revision=129740
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-6/+6
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Move the non-MD machine/dvcfg.h and machine/physio_proc.h to a commonPeter Wemm2004-03-132-3/+3
| | | | | | | MI area before they proliferate more. Notes: svn path=/head/; revision=126928
* Fix some becuase -> because typos.John Baldwin2003-12-171-1/+1
| | | | | | | Reported by: Marco Wertejuk <wertejuk@mwcis.com> Notes: svn path=/head/; revision=123608
* Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin2003-09-021-1/+1
| | | | | | | | Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
* Use __FBSDID().David E. O'Brien2003-08-245-7/+16
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119420
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119287
* Make sure that pp_name is non-null before setting the deviceWarner Losh2003-04-101-1/+2
| | | | | | | | description. This allows us to rely entirely on the CIS entries if necessary... Notes: svn path=/head/; revision=113315
* - Add PCI support (Adaptec AHA-2920/A,Future Domain TMC-18XX/3260).Matthew N. Dodd2003-04-075-338/+351
| | | | | | | | | | - Reduce duplicated code. PR: 50427 Submitted by: Bob Bishop <rb@gid.co.uk> Notes: svn path=/head/; revision=113205
* o Changes to support NEWCARD.Noriaki Mitsunaga2002-11-281-2/+31
| | | | | | | | | | | o Add needed headers. o Add stg_products[] product data and stg_match() function. o Change stg_pccard_method[] to support both OLDCARD and NEWCARD. Approved by: re Notes: svn path=/head/; revision=107363
* Remove even more Copy&Pasted sets of #includes.Poul-Henning Kamp2002-09-202-16/+0
| | | | Notes: svn path=/head/; revision=103693
* Quick, low impact band-aide to unbreak the build. Added && 0 so weWarner Losh2002-05-311-1/+1
| | | | | | | | ifdef out what appears to be a bogus call to softintr using data elements that aren't in the softc. Notes: svn path=/head/; revision=97684
* Check for defined(__i386__) instead of just defined(i386) since the compilerAlfred Perlstein2002-05-301-3/+3
| | | | | | | will be updated to only define(__i386__) for ANSI cleanliness. Notes: svn path=/head/; revision=97556
* Remove __P.Alfred Perlstein2002-03-204-29/+29
| | | | Notes: svn path=/head/; revision=92739
* Staticise a couple of debugging variables.Mike Smith2002-01-081-2/+2
| | | | Notes: svn path=/head/; revision=89093
* o Add KLD support for scsi_low.Noriaki Mitsunaga2001-12-151-0/+1
| | | | | | | | | o Add KLD dependency of ncv, nsp and stg drivers to scsi_low. Submitted by: takawata Notes: svn path=/head/; revision=87983
* Remove PAO3 dependent part.Noriaki Mitsunaga2001-11-033-109/+0
| | | | | | | This will not affect either -current nor -stable. Notes: svn path=/head/; revision=85962
* We should not pass the size of the memory to bus_alloc_resource().Noriaki Mitsunaga2001-09-042-2/+2
| | | | | | | | | We should use 1 to request default iomem. Pointed-out-by: imp Notes: svn path=/head/; revision=82922
* Demand minimum I/O size rather than 0 when it callsNoriaki Mitsunaga2001-09-021-1/+1
| | | | | | | | | bus_alloc_resource(dev, SYS_RES_IOPORT, ...) Pointed-out by: Yamamoto-san shigeru@iij.ad.jp Notes: svn path=/head/; revision=82782
* Catch up with NetBSD/pc98.Noriaki Mitsunaga2001-07-145-380/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray2001-03-012-2/+2
| | | | | | | | | | I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl. Notes: svn path=/head/; revision=73280
* o Check the size of I/O window handed by parent bus.Noriaki Mitsunaga2001-02-251-2/+7
| | | | Notes: svn path=/head/; revision=73030
* o Support AUTO SENSE correctly.Noriaki Mitsunaga2001-02-252-132/+54
| | | | | | | | | | | | | | o Offset and period in synch messages and width negotiation should be done for per target not per lun. Move these from *lun_info to *targ_info. o Change in handling XPT_RESET_DEV and XPT_GET_TRAN_SETTINGS . o Change CAM_* xpt_done return values. o Busy loop did not timeout. Change this to timeout as original NetBSD/pc98. Reviewed by: bsd-nomads ML Notes: svn path=/head/; revision=73025
* - Move stg_card_intr()'s prototype and definition inside appropriateJohn Baldwin2001-01-231-8/+10
| | | | | | | | #ifdef's as it is is only used on older versions of FreeBSD. - #ifdef a local variable only used on older versions of FreeBSD. Notes: svn path=/head/; revision=71474
* Relocate the 'hwfuncs' functions below the inlined functions they attemptJohn Baldwin2001-01-231-85/+85
| | | | | | | to call so that the other functions can actually be inlined. Notes: svn path=/head/; revision=71472
* Zap some cut-paste code that isn't used. It #included "apm.h" andPeter Wemm2001-01-191-5/+0
| | | | | | | an apm include file but had no other apm references. Notes: svn path=/head/; revision=71260
* select() DKI is now in <sys/selinfo.h>.Garrett Wollman2001-01-092-1/+2
| | | | Notes: svn path=/head/; revision=70834
* Remove conflicts between unsinged char *s and int s.Noriaki Mitsunaga2000-12-081-6/+6
| | | | | | | | | It was possible cause of kernel panic. Pointed Out by: phk@FreeBSD.ORG Notes: svn path=/head/; revision=69763