summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt
Commit message (Collapse)AuthorAgeFilesLines
* Simplify cdevsw registration.phk1999-05-311-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* This commit should be a extensive NO-OP:phk1999-05-301-6/+22
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* I'm told by the PR author that this page_size increment was injkh1999-05-131-2/+1
| | | | the wrong place; back it out.
* During probe, the page lockdown code in dpt_control.c does somejkh1999-05-111-2/+4
| | | | | | | | | | | | | bad math: it does not handle page-boundary conditions, and will not end up mapping all of the requested addresses. This will cause a panic: page fault during probe on some systems. I have a machine that will panic every time (when using the dpt driver) on kernel probe when there are 5 drives installed. When there are 4 drives, it is fine. Fix is to always allocate/deallocate an extra page. There is also a bonus splx() fix on an early error return. Submitted by: Mark J. Taylor <mtaylor@cybernet.com> PR: 9367
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:peter1999-05-091-5/+1
| | | | | | | | #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.)
* Move the declaration of the interrupt type from the driver structuredfr1999-05-081-3/+2
| | | | to the BUS_SETUP_INTR call.
* Add a number of interrelated CAM feature enhancements and bug fixes.ken1999-05-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: These changes will require recompilation of any userland applications, like cdrecord, xmcd, etc., that use the CAM passthrough interface. A make world is recommended. camcontrol.[c8]: - We now support two new commands, "tags" and "negotiate". - The tags commands allows users to view the number of tagged openings for a device as well as a number of other related parameters, and it allows users to set tagged openings for a device. - The negotiate command allows users to enable and disable disconnection and tagged queueing, set sync rates, offsets and bus width. Note that not all of those features are available for all controllers. Only the adv, ahc, and ncr drivers fully support all of the features at this point. Some cards do not allow the setting of sync rates, offsets and the like, and some of the drivers don't have any facilities to do so. Some drivers, like the adw driver, only support enabling or disabling sync negotiation, but do not support setting sync rates. - new description in the camcontrol man page of how to format a disk - cleanup of the camcontrol inquiry command - add support in the 'devlist' command for skipping unconfigured devices if -v was not specified on the command line. - make use of the new base_transfer_speed in the path inquiry CCB. - fix CCB bzero cases cam_xpt.c, cam_sim.[ch], cam_ccb.h: - new flags on many CCB function codes to designate whether they're non-immediate, use a user-supplied CCB, and can only be passed from userland programs via the xpt device. Use these flags in the transport layer and pass driver to categorize CCBs. - new flag in the transport layer device matching code for device nodes that indicates whether a device is unconfigured - bump the CAM version from 0x10 to 0x11 - Change the CAM ioctls to use the version as their group code, so we can force users to recompile code even when the CCB size doesn't change. - add + fill in a new value in the path inquiry CCB, base_transfer_speed. Remove a corresponding field from the cam_sim structure, and add code to every SIM to set this field to the proper value. - Fix the set transfer settings code in the transport layer. scsi_cd.c: - make some variables volatile instead of just casting them in various places - fix a race condition in the changer code - attach unless we get a "logical unit not supported" error. This should fix all of the cases where people have devices that return weird errors when they don't have media in the drive. scsi_da.c: - attach unless we get a "logical unit not supported" error scsi_pass.c: - for immediate CCBs, just malloc a CCB to send the user request in. This gets rid of the 'held' count problem in camcontrol tags. scsi_pass.h: - change the CAM ioctls to use the CAM version as their group code. adv driver: - Allow changing the sync rate and offset separately. adw driver - Allow changing the sync rate and offset separately. aha driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. ahc driver: - Allow setting offset and sync rate separately bt driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. NCR driver: - Fix the ultra/ultra 2 negotiation bug - allow setting both the sync rate and offset separately Other HBA drivers: - Put code in to set the base_transfer_speed field for XPT_GET_TRAN_SETTINGS CCBs. Reviewed by: gibbs, mjacob (isp), imp (aha)
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tpeter1999-04-241-1/+5
| | | | hurt the driver portability to 3.x too much for where drivers are shared.
* Implement an EISA new-bus framework. The old driver probe mechanismpeter1999-04-181-99/+93
| | | | | | | | | had a quirk that made a shim rather hard to implement properly and it was just easier to convert the drivers in one go. The changes to the buslogic driver go beyond just this - the whole driver was new-bus'ed including pci and isa. I have only tested the EISA part of this so far. Submitted by: Doug Rabson <dfr@nlsystems.com>
* Error check is not necessary - this function cannot fail in thiseivind1998-12-221-8/+4
| | | | | | context. Noted by: gibbs
* Better error checking and more complete struct initialization.eivind1998-12-221-5/+13
| | | | Reviewed by: Simon Shapiro <shimon@simon-shapiro.org>
* probe function changed from returning char * to const char *.dillon1998-12-141-3/+3
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-4/+3
| | | | and local variables, goto labels, and functions declared but not defined.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-2/+3
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* -Wunused cleanup.gibbs1998-10-151-9/+3
| | | | Submitted by: Poul-Henning Kamp <phk@freebsd.org>
* Honor CAM_TAG_ACTION_NONE.gibbs1998-10-151-2/+3
|
* Call dpt_intr from our timeout routine to clear any pending commands beforegibbs1998-10-091-3/+11
| | | | | | | | performing actual timeout processing. Modify a few printf statements. Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
* ahc_pci.c:gibbs1998-10-071-2/+2
| | | | | | | | | | | | | Disable DPARCKEN in the DSCOMMAND0 register on the aic7890/91/96/97. Parity checking is broken for some chip/MB combinations and this is the work around recommended by Adaptec. dpt_pci.c: Remove a superflous '{' that prevented DPT_ALLOW_MEMIO from working. pcireg.h: Add a definition for Parity Error Reponse bit in the PCI Space command register.
* Remove a spurious, but benign statement.gibbs1998-10-021-6/+4
| | | | | Correct some panic and printf strings that referenced the 'bt' driver. I should be more careful when I Cut 'n Paste.
* dpt.h:gibbs1998-09-222-18/+16
| | | | | | | | | | Bump the lun field in the eata ccb to 5 bits. We still only use 3 of them, but we may use the rest at a later date. dpt_scsi.c: Default to only 32 S/G segments. Bzero our CCB array after allocation.
* Drop the maximum SG count to 32 from 1024. We can't make use of all ofgibbs1998-09-202-22/+28
| | | | | | | | | | | those extra ones yet, anyway. In dpttimeout, expect that the controller will complete aborted CCBs through the interrupt handler. This corrects a panic that was caused by completing the same transaction twice during timeout recovery. Honor the tag times types expressed by the user and pass them down to the controller.
* Correct printf format bugs.gibbs1998-09-151-4/+5
|
* Conver the DPT driver to CAM. The dpt_control interface is not yetgibbs1998-09-156-3718/+3152
| | | | functional, but will be in another day or so.
* Fix an spl protection botch.gibbs1998-08-261-3/+3
| | | | Submitted by: Gene Stark <stark@FreeBSD.ORG>
* Fixed printf format and spelling errors. Didn't fix relatedbde1998-08-161-3/+3
| | | | | | description of DPT_SHUTDOWN_SLEEP in LINT. Didn't add timestamps so that the (combined?) sleep interval can be printed as intended in the original printf.
* Hide compiler warnings for casting from a long to a pointer of abde1998-08-101-2/+2
| | | | | | different size (on i386's with 64 bit longs). Cosmetic. Non-cosmetic unportabilities were already hidden by using ntohl() to convert a 32-bit user DMA address to a long.
* MF22: Shut this thing up by default.jkh1998-08-091-2/+2
|
* Fix some things Simon had broken, basically making LINT compile again.eivind1998-08-061-9/+3
| | | | | Submitted by: Simon Shapiro <shimon@simon-shapiro.org> Pointed out by: bde
* Update DPT driver from 1.4.3 to 1.4.5eivind1998-08-053-159/+294
| | | | Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
* Fixed printf format errors (only 1 left in GENERIC now).bde1998-07-132-20/+20
|
* This commit fixes various 64bit portability problems required fordfr1998-06-071-3/+3
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* o Return error when the controller can't accept commands.eivind1998-06-023-12/+11
| | | | | | | o Make driver less chatty on boot (only announce version under bootverbose) Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
* Include "eisa.h" and only provide code if NEISA > 0.gibbs1998-05-171-1/+4
|
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-171-2/+2
|
* Add EISA support for DPT driversjulian1998-03-114-9/+569
| | | | | Submitted by: Matthew Dodd Reviewd by: shimon@simon-shapiro.org (DPT author)
* Fixed a syntax error. Strange but correct code was broken by recentbde1998-02-251-2/+2
| | | | changes to the queue macros.
* Removed unused #includes.bde1998-02-203-32/+3
|
* Staticize. (Diffs by me & and Simon in cooperation.)eivind1998-02-103-36/+36
|
* Add #include "opt_devfs.h".eivind1998-02-091-1/+2
|
* Add Simon Shapiro's DPT driverjulian1998-01-264-0/+5321
this shouldn't break anything existing. Userland utilities to follow.
OpenPOWER on IntegriCloud