summaryrefslogtreecommitdiff
path: root/sys/dev/nsp
AgeCommit message (Collapse)Author
2018-10-22Remove nsp(4) driverWarner Losh
nsp(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=339571
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-05-03sys/dev: minor spelling fixes.Pedro F. Giffuni
Most affect comments, very few have user-visible effects. Notes: svn path=/head/; revision=298955
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
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-05-16Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp
unnecessary. Notes: svn path=/head/; revision=158651
2005-09-20Remove OLDCARD support by removing compat shimsWarner Losh
Notes: svn path=/head/; revision=150396
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-02-04Minor style nitsWarner Losh
o remove unneeded {} o no need to bzero sc Notes: svn path=/head/; revision=141231
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=131915
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-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
2002-11-28o Changes to support NEWCARD.Noriaki Mitsunaga
o Add needed headers. o Add nsp_producs[] product data and nsp_match() function. o Change nsp_pccard_method[] to support both OLDCARD and NEWCARD. o Add warning to fall back to PIO mode when it cannot use SMIT mode. This is needed because memories are not allocated with NEWCARD now. Submitted by: takawata Approved by: re Notes: svn path=/head/; revision=107361
2002-09-20Remove unused #includes. Looks amacingly like the exact same setPoul-Henning Kamp
as I just removed from ncr53c500_pccard.c. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103692
2002-08-22Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs
Notes: svn path=/head/; revision=102291
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=97554
2002-03-20Remove __P.Alfred Perlstein
Notes: svn path=/head/; revision=92739
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-02Fix bus timeout bug which might happen when nsp do suspend I/O burst write.Noriaki Mitsunaga
A nsp chip does suspend I/O write by 512bytes burst write, though the chip only has 48 bytes FIFO. The chip assert I/O WAIT signal to PC-Card bus after the CPU writes more than 48 bytes to the chip if the SCSI device does not respond immediately in supsend I/O burst write. If the device does not respond for a while it might cause PC-Card bus timeout. The previous work around was to wait the request from SCSI device. But there are some devices which request bytes for synchronous transfer immediately. So current work aound is to fill 32bytes FIFO, wait for FIFO empty and burst write 512-32 bytes for every 512 bytes block. Submitted-by: Honda-san (the author of the driver) Obtained-from: NetBSD/pc98 Notes: svn path=/head/; revision=82784
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
o Check if it is in PIO_MODE when memory window is not handed. Notes: svn path=/head/; revision=73029
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-23Move nsp_card_intr()'s prototype and definition inside the appropriateJohn Baldwin
#ifdef's as it is only used in older versions of FreeBSD. Notes: svn path=/head/; revision=71470
2001-01-23Move the definition of nsp_start_timer() earlier in the file before it isJohn Baldwin
called so that it can be inlined. Notes: svn path=/head/; revision=71468
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
2001-01-02Remove 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=70597
2000-10-29Change flags of ncv and nsp driver. Both were conflicted with the flagsNoriaki Mitsunaga
used in lower layer (scsi_low.c). The flag of ncv for KME KXLC004 was chaged from 0x1 to 0x100. The flag of nsp for PIO mode was chaged from 0x1 to 0x100. Notes: svn path=/head/; revision=67848
2000-10-23Add PC-Card/ISA SCSI host adpater drivers from NetBSD/pc98Noriaki Mitsunaga
(a NetBSD port for NEC PC-98x1 machines). They are ncv for NCR 53C500, nsp for Workbit Ninja SCSI-3, and stg for TMC 18C30 and 18C50. I thank NetBSD/pc98 and bsd-nomads people. Obtained from: NetBSD/pc98 Notes: svn path=/head/; revision=67468