summaryrefslogtreecommitdiffstats
path: root/sys/scsi
Commit message (Collapse)AuthorAgeFilesLines
* Include "scbus.h" in scsiconfig.c to get the number NSCBUS from theats1994-11-271-1/+2
| | | | config file.
* Submitted by: Lawrence J. King ljking@ljk.OCUnix.On.Caats1994-11-171-1/+5
| | | | | | Check the firmware revision for non-printing characters and replace them question-marks if necessary. Problem is known with old Seagate ST296N drives.
* Remove bogus and unused declaration and definition of Debugger().bde1994-11-151-7/+1
|
* Remove unused definition of Debugger().bde1994-11-151-6/+1
|
* Remove bogus declaration of Debugger(). Change the macro for Debugger()bde1994-11-151-7/+1
| | | | to call the function instead of doing nothing.
* scsiconf.h:ats1994-11-142-6/+6
| | | | | | | | Change the sc_link structure from 8 targets with 8 lun's to 16 targets with 8 lun's. Wide scsi and the ncr 825 does support 16 targets. scsiconf.c: move the addition of the trailing NUL's out of a then clause, they are also needed in the else clause for an unknown device.
* Delete a bogus check that the SCSI_DELAY only works for the firstats1994-11-121-4/+2
| | | | | | scsi adapter. Let it work on every adapter. Someone want to rewrite this to be coupled with the adapter specification in the config file, so that you can say which adapters need it ?
* Avoid a division by zero if the actual sector size isn't known during thejoerg1994-11-071-1/+7
| | | | | | | device announcement; assume a sector size of 512 instead (likely to be right at all). This case happens when booting with a removable disk device attached (e.g. an MOD), but no medium inserted.
* |Both, the wd and the sd driver do not reject invalid request of oddjoerg1994-11-031-1/+8
| | | | | |sizes. They simply pass them to the disks, which usually causes |fatal errors then.
* Changed RAW_PART to RAWPART so it comes from disklabel.h.phk1994-10-311-12/+14
| | | | | Force RAW_PART to have the right size. Set d_secperunit in the disklabel.
* Andreas Klemm's tape erase patches from 1.1.5.1jkh1994-10-282-2/+65
| | | | Submitted by: andreas
* Julian Elischer's disklabel fixes.jkh1994-10-272-7/+8
|
* Finished device configuration database work for all ISA devices (except `ze')wollman1994-10-236-15/+57
| | | | | | | | | | | | | and all SCSI devices (except that it's not done quite the way I want). New information added includes: - A text description of the device - A ``state''---unknown, unconfigured, idle, or busy - A generic parent device (with support in the m.i. code) - An interrupt mask type field (which will hopefully go away) so that . ``doconfig'' can be written This requires a new version of the `lsdev' program as well (next commit).
* Make my ALLDEVS kernel compile (basically, LINT minus a lot of options).wollman1994-10-211-2/+3
| | | | This involves fixing a few things I broke last time.
* Peter Dufaults comconsole changes.phk1994-10-201-3/+4
| | | | Submitted by: Peter Dufault
* Implement scsi_externalize(), again. (This was supposed to be committed in thewollman1994-10-191-1/+12
| | | | last batch of changes but somehow got lost in the shuffle.)
* Define SCSI_EXTERNALLEN outside of #ifdef KERNEL, for lsdev.wollman1994-10-191-2/+3
|
* Forgot to bring this file over from previous commit.wollman1994-10-191-1/+8
|
* all: register deviceswollman1994-10-194-4/+175
| | | | cd.c sd.c: implement disk stats
* Removed unused vars. Silenced gcc -Wall. Some of this stuff is virtuallyphk1994-10-085-81/+95
| | | | type-less. Everything is "u_int32" :-(
* In sd_get_params() the timeout for the MODE_SENSE command was toorgrimes1994-10-041-2/+2
| | | | | | short. I changed it from 2000 to 4000 and now my disk works fine. Submitted by: John Hay <jhay@mikom.csir.co.za>
* Pull in 1.1.5.1 changes to sd.c from 1.23 to 1.27 (basically the fixes forrgrimes1994-10-041-2/+5
| | | | | | | drives that return sector counts of 0 and cause division by 0 traps during the probe). Reviewed by: Dave <root@hclb.demon.co.uk> Obtained from: FreeBSD 1.1.5.1
* GCC cleanup.phk1994-10-021-1/+2
| | | | | | Reviewed by: Submitted by: Obtained from:
* Reviewed by: Julian Elischer / Jordan K. Hubbardse1994-09-285-16/+361
| | | | | | | | | | | | Changes are only effective, if NEW_SCSICONF is defined: 1) Added u_int16 quirks to struct scsi_link for device quirks. 2) Added void *devmodes to struct scsi_link for tape density modes. 3) Modified selectdev() to return first full match (with wildcard). With this patch all device dependent configuration is done in one place (scsiconf.c), while there were some specifications in st.c and some hardware dependent drivers (ie. ncr.c) before.
* Changed CDOUTSTANDING back to a value of 2 (from 1), since this is now onlyse1994-09-161-2/+2
| | | | | an upper limit, not a fixed value (ignoring the host adapter capabilities) as before.
* Removed all vestiges of tlbflush(). Replaced them with calls to pmap_update().dg1994-09-021-2/+2
| | | | Made pmap_update an inline assembly function.
* Reviewed by: Stefan Esser <se>se1994-08-311-5/+16
| | | | | | Calculation of 'cd->cmdscount' now as in 'sd.c' (required for ncr scsi). CDOUTSTANDING defined as '1' (as the comment says), was '2' in fact ... Debugger takes an (char*) argument, changed macro definition accordingly.
* Rather than exclude bounce buffers support with NOBOUNCE, include itdg1994-08-314-15/+13
| | | | | | with BOUNCE_BUFFERS. This is more intuitive, and is better for future multiplatform support. Added BOUNCE_BUFFERS option to the GENERIC and LINT kernel config files.
* Change RAW_PART back to 3, too early step right now, disklabels need moreache1994-08-301-5/+5
| | | | | work Change hardcoded 3 value in several places to RAW_PART define
* Make decl/define for Debugger() match reality.jkh1994-08-301-3/+3
| | | | Submitted by: jkh
* RAW_PART=2ache1994-08-291-2/+2
|
* Raw partition is 2 nowache1994-08-291-2/+2
|
* 1) Changed ddb into a option rather than a pseudo-device (use options DDBdg1994-08-273-23/+6
| | | | | | | | | | in your kernel config now). 2) Added ps ddb function from 1.1.5. Cleaned it up a bit and moved into its own file. 3) Added \r handing in db_printf. 4) Added missing memory usage stats to statclock(). 5) Added dummy function to pseudo_set so it will be emitted if there are no other pseudo declarations.
* 1) cleaned up after Garrett - fixed more redundant declarations, changeddg1994-08-201-3/+1
| | | | | | | | use of timeout_t -> timeout_func_t in aha1542 and aha1742 drivers. 2) fix a bug in the portalfs that was uncovered by better prototyping - specifically, the time must be converted from timeval to timespec before storing in va_atime. 3) fixed/added some miscellaneous prototypes
* Change all #includes to follow the current Berkeley style. Some of thesewollman1994-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | ``changes'' are actually not changes at all, but CVS sometimes has trouble telling the difference. This also includes support for second-directory compiles. This is not quite complete yet, as `config' doesn't yet do the right thing. You can still make it work trivially, however, by doing the following: rm /sys/compile mkdir /usr/obj/sys/compile ln -s M-. /sys/compile cd /sys/i386/conf config MYKERNEL cd ../../compile/MYKERNEL ln -s /sys @ rm machine ln -s @/i386/include machine make depend make
* Added $Id$dg1994-08-023-16/+7
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-254-38/+44
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* Wait a much longer time for slow devices like CD multichangers to timeoutjkh1994-05-191-3/+3
| | | | (by request of Horo Hideo).
* Bug fixes and performance improvements from John Dyson and myself:dg1994-04-203-8/+18
| | | | | | | | | | | | | | | 1) check va before clearing the page clean flag. Not doing so was causing the vnode pager error 5 messages when paging from NFS. (pmap.c) 2) put back interrupt protection in idle_loop. Bruce didn't think it was necessary, John insists that it is (and I agree). (swtch.s) 3) various improvements to the clustering code (vm_machdep.c). It's now enabled/used by default. 4) bad disk blocks are now handled properly when doing clustered IOs. (wd.c, vm_machdep.c) 5) bogus bad block handling fixed in wd.c. 6) algorithm improvements to the pageout/pagescan daemons. It's amazing how well 4MB machines work now.
* from John Dyson:dg1994-04-051-1/+5
| | | | | | | | | | 1) fixed some bugs related to the bounce buffer code 2) vnode pager now supports clustered pageouts 3) experimental code for clustering all I/O via a new "cldisksort" 4) added >16MB check to Bustek driver 5) made some experimental algorithmic changes to the pageout daemon 6) fixed bugs in truncating mapped files (esp when mapped via NFS) 7) reorganized vnode pager I/O code
* Bounce buffers. From John Dyson with help from me.dg1994-03-234-5/+30
|
* Get rid of a nagging call to sleep() which crept back in.wollman1994-03-201-1/+1
|
* Catch the divide by zero bug earlier. If the drive give backats1994-03-151-3/+12
| | | | | | a zero cylinder and/or head count, set them and the sector count to some fictious values. The same already happens if the request sense is unsuccessfull.
* Put a safety check in for the secsiz divide for the MB printf. Elseats1994-03-141-2/+2
| | | | | we get a panic integer divide fault in the kernel if the drive returns a bogus zero secsize.
* Gee, seems like I have commited this fix at least 3 times :-)rgrimes1994-02-071-2/+2
| | | | | | | | | | | | | | | >From: Adam David <adam@veda.is> Subject: SCSI timeout in sdopen() Date: Sun, 6 Feb 1994 21:40:48 GMT Index: sys FreeBSD-current Reference: FreeBSD-current/sys/9 Description: sdopen() times out on slow SCSI devices. This code was moved into a different file, which might explain why it got missed again. Repeat-By: using slow SCSI disks
* Fixed CDIOREADTOCENTRYS ioctl call so that it returns only the entriesswallace1994-02-051-9/+11
| | | | and not header + entries as per definition.
* Fixed bug in dump code that caused the wrong physical page to be dumped.dg1994-01-291-2/+2
|
* Patch from Julian. Commit message by me.rgrimes1994-01-295-11/+48
| | | | | | | | | | | | | | | | | | | | | | cd.c: Initialize channel info in CDIOCSETVOL ioctl. Correct CDIOCSTOP and CDIOCEJCET ioctls to use scsi_stop_unit instead of scsi_start_unit. Add CDIOCALLOW and CDIOCPREVENT ioctls. ch.h: Return EBUSY instead of ENXIO if the device is already in use. scsi_base.c: Add scsi_stop_unit routine. sd.c: Add mising indirection through sc_link to sd_get_parms routine when checking for media loaded. st.c: Return EBUSY instead of ENXIO if the device is already in use. Clear the SDEV_WAITING flag in ststart if we do the wakeup call.
* Remove bogus and missleading comment, this has been fixed.rgrimes1994-01-221-2/+1
| | | | - /* blkcnt = initialise_me; */
* "New" VM system from John Dyson & myself. For a run-down of thedg1994-01-142-5/+19
| | | | | major changes, see the log of any effected file in the sys/vm directory (swap_pager.c for instance).
OpenPOWER on IntegriCloud