summaryrefslogtreecommitdiff
path: root/sys/dev/stg
AgeCommit message (Collapse)Author
2018-10-22Remove stg(4) driverWarner Losh
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
2018-01-29Tag the current round of deprecated drivers.Warner Losh
Differential Revision: https://reviews.freebsd.org/D13818 Notes: svn path=/head/; revision=328523
2017-11-27sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
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
2016-01-27Convert rman to use rman_res_t instead of u_longJustin Hibbits
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
2015-12-11Use the right product names.Warner Losh
Pointy Hat To: imp@ Notes: svn path=/head/; revision=292111
2015-12-11Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingWarner Losh
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
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
2013-05-10Fxi a bunch of typos.Eitan Adler
PR: misc/174625 Submitted by: Jeremy Chadwick <jdc@koitsu.org> Notes: svn path=/head/; revision=250460
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
2009-06-11strict kobj sigs: fix assortment of device_detach and device_shutdown implsAndriy Gapon
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
2009-02-24Change the functions to ANSI in those cases where it breaks promotionRoman Divacky
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
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-07-14no need to print unload anymore.Warner Losh
Notes: svn path=/head/; revision=160334
2006-05-16Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp
unnecessary. Notes: svn path=/head/; revision=158651
2005-09-21Remove OLDCARD shimsWarner Losh
Notes: svn path=/head/; revision=150440
2005-06-24Eliminate unused argument in PCMCIA_CARD macro.Warner Losh
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
2005-05-29Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi
and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
2005-03-01Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inWarner Losh
preference to some random negative number to allow other drivers a bite at the apple. Notes: svn path=/head/; revision=142890
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 Make debugging code conditional upon KDB instead of DDB. Notes: svn path=/head/; revision=131920
2004-05-27Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh
redundant includes and fix some of the include disordering. Submitted by: bde Notes: svn path=/head/; revision=129764
2004-05-26Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh
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
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-12-17Fix some becuase -> because typos.John Baldwin
Reported by: Marco Wertejuk <wertejuk@mwcis.com> Notes: svn path=/head/; revision=123608
2003-09-02Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin
Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
2003-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119420
2003-08-22Prefer new location of pci include files (which have only been in theWarner Losh
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
2003-04-10Make sure that pp_name is non-null before setting the deviceWarner Losh
description. This allows us to rely entirely on the CIS entries if necessary... Notes: svn path=/head/; revision=113315
2003-04-07- Add PCI support (Adaptec AHA-2920/A,Future Domain TMC-18XX/3260).Matthew N. Dodd
- Reduce duplicated code. PR: 50427 Submitted by: Bob Bishop <rb@gid.co.uk> Notes: svn path=/head/; revision=113205
2002-11-28o Changes to support NEWCARD.Noriaki Mitsunaga
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
2002-09-20Remove even more Copy&Pasted sets of #includes.Poul-Henning Kamp
Notes: svn path=/head/; revision=103693
2002-05-31Quick, low impact band-aide to unbreak the build. Added && 0 so weWarner Losh
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
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
2002-01-08Staticise a couple of debugging variables.Mike Smith
Notes: svn path=/head/; revision=89093
2001-12-15o Add KLD support for scsi_low.Noriaki Mitsunaga
o Add KLD dependency of ncv, nsp and stg drivers to scsi_low. Submitted by: takawata Notes: svn path=/head/; revision=87983
2001-11-03Remove PAO3 dependent part.Noriaki Mitsunaga
This will not affect either -current nor -stable. Notes: svn path=/head/; revision=85962
2001-09-04We should not pass the size of the memory to bus_alloc_resource().Noriaki Mitsunaga
We should use 1 to request default iomem. Pointed-out-by: imp Notes: svn path=/head/; revision=82922
2001-09-02Demand minimum I/O size rather than 0 when it callsNoriaki Mitsunaga
bus_alloc_resource(dev, SYS_RES_IOPORT, ...) Pointed-out by: Yamamoto-san shigeru@iij.ad.jp Notes: svn path=/head/; revision=82782
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-03-01Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray
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
2001-02-25o Check the size of I/O window handed by parent bus.Noriaki Mitsunaga
Notes: svn path=/head/; revision=73030
2001-02-25o Support AUTO SENSE correctly.Noriaki Mitsunaga
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
2001-01-23- Move stg_card_intr()'s prototype and definition inside appropriateJohn Baldwin
#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
2001-01-23Relocate the 'hwfuncs' functions below the inlined functions they attemptJohn Baldwin
to call so that the other functions can actually be inlined. Notes: svn path=/head/; revision=71472
2001-01-19Zap some cut-paste code that isn't used. It #included "apm.h" andPeter Wemm
an apm include file but had no other apm references. Notes: svn path=/head/; revision=71260
2001-01-09select() DKI is now in <sys/selinfo.h>.Garrett Wollman
Notes: svn path=/head/; revision=70834
2000-12-08Remove conflicts between unsinged char *s and int s.Noriaki Mitsunaga
It was possible cause of kernel panic. Pointed Out by: phk@FreeBSD.ORG Notes: svn path=/head/; revision=69763