aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nsp
Commit message (Collapse)AuthorAgeFilesLines
* Merge r189004.Roman Divacky2009-03-191-20/+7
| | | | | | | | Requested by: yongari Approved by: ed (mentor) Notes: svn path=/stable/7/; revision=190087
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-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@ Notes: svn path=/head/; revision=166901
* 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 support by removing compat shimsWarner Losh2005-09-201-28/+10
| | | | Notes: svn path=/head/; revision=150396
* Eliminate unused argument in PCMCIA_CARD macro.Warner Losh2005-06-241-4/+4
| | | | | | | | | | | 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-291-2/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Minor style nitsWarner Losh2005-02-041-36/+17
| | | | | | | | o remove unneeded {} o no need to bzero sc Notes: svn path=/head/; revision=141231
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-064-4/+4
| | | | 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=131915
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh2004-05-271-12/+7
| | | | | | | | | 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-4/+4
| | | | | | | | 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
* Use __FBSDID().David E. O'Brien2003-08-242-2/+6
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* o Changes to support NEWCARD.Noriaki Mitsunaga2002-11-281-2/+35
| | | | | | | | | | | | | | 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
* Remove unused #includes. Looks amacingly like the exact same setPoul-Henning Kamp2002-09-201-6/+0
| | | | | | | | | as I just removed from ncr53c500_pccard.c. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103692
* Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs2002-08-221-2/+2
| | | | Notes: svn path=/head/; revision=102291
* 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=97554
* Remove __P.Alfred Perlstein2002-03-203-37/+37
| | | | Notes: svn path=/head/; revision=92739
* 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-111/+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-041-1/+1
| | | | | | | | | We should use 1 to request default iomem. Pointed-out-by: imp Notes: svn path=/head/; revision=82922
* Fix bus timeout bug which might happen when nsp do suspend I/O burst write.Noriaki Mitsunaga2001-09-021-9/+23
| | | | | | | | | | | | | | | | | | | | 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
* 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-144-365/+1045
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-011-1/+1
| | | | | | | | | | 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-8/+13
| | | | | | | o Check if it is in PIO_MODE when memory window is not handed. Notes: svn path=/head/; revision=73029
* o Support AUTO SENSE correctly.Noriaki Mitsunaga2001-02-252-147/+55
| | | | | | | | | | | | | | 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 nsp_card_intr()'s prototype and definition inside the appropriateJohn Baldwin2001-01-231-8/+8
| | | | | | | #ifdef's as it is only used in older versions of FreeBSD. Notes: svn path=/head/; revision=71470
* Move the definition of nsp_start_timer() earlier in the file before it isJohn Baldwin2001-01-231-12/+12
| | | | | | | called so that it can be inlined. Notes: svn path=/head/; revision=71468
* Zap some cut-paste code that isn't used. It #included "apm.h" andPeter Wemm2001-01-191-6/+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-091-0/+2
| | | | Notes: svn path=/head/; revision=70834
* Remove conflicts between unsinged char *s and int s.Noriaki Mitsunaga2001-01-021-4/+4
| | | | | | | | | It was possible cause of kernel panic. Pointed Out by: phk@FreeBSD.ORG Notes: svn path=/head/; revision=70597
* Change flags of ncv and nsp driver. Both were conflicted with the flagsNoriaki Mitsunaga2000-10-291-1/+1
| | | | | | | | | | 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
* Add PC-Card/ISA SCSI host adpater drivers from NetBSD/pc98Noriaki Mitsunaga2000-10-234-0/+2090
(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