summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida
Commit message (Collapse)AuthorAgeFilesLines
* Resolve LINT linking issue by renaming ida_init() to ida_setup(). Thehselasky2016-05-114-4/+4
| | | | | | | ida_init() symbol name is now taken for use by the LinuxKPI. Reported by: emaste @ Discussed with: mav @
* sys/dev: minor spelling fixes.pfg2016-05-031-1/+1
| | | | Most affect comments, very few have user-visible effects.
* Remove MAXBSIZE use from drivers where it has nothing to do.mav2015-03-223-5/+5
| | | | | | | In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead. MFC after: 1 month
* A dma tag alignment should be 1 (not 0) when a device can dma at any address.ian2014-11-061-1/+1
|
* Rework the DMA handling in ida(4) and add locking to make this driverjhb2012-08-275-176/+275
| | | | | | | | | | | | | | | MPSAFE. - Preallocate a full set of QCBs during attach rather than allocating new ones on demand to avoid allocations in the I/O path. - Remove the explicit bus space tag/handle and use bus_*() on the relevant 'struct resource' instead. - Defer logical drive probing to an intrhook. - Fix ida_detach() to detach and delete child devices (logical drives). - Update the DMA handling to support EINPROGRESS by moving the work to submit a mapped request into the bus_dma callback routine as well as add support for freezing the queue when EINPROGRESS is encountered. Tested by: Marco Steinbach coco executive-computing de
* Convert a number of drivers to obtaining their parent DMA tag from theirscottl2012-03-121-1/+1
| | | | PCI device attachment.
* - There's no need to overwrite the default device method with the defaultmarius2011-11-221-3/+1
| | | | | | | | | | one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID.
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-232-2/+2
| | | | | | | | | | | | | 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@
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-294-7/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* Test for NULL before use.mdodd2005-04-131-12/+11
| | | | Submitted by: sam (Coverity)
* Add KASSERT() to warn against NULL deref.mdodd2005-04-131-0/+1
| | | | Submitted by: sam (Coverity)
* Define additional commands.mdodd2005-04-131-0/+15
| | | | Obtained from: Linux
* Whitespace cleanup.mdodd2005-04-135-33/+33
|
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-051-1/+1
|
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Add a callout to dump card status on command queue timeouts.mdodd2004-12-142-1/+48
|
* Modify ida_v3_done() to treat FIFO status of -1 as FIFO empty (0).mdodd2004-12-141-1/+7
| | | | | This is what ida_v4_done() does and seems to be necessary with some firmware versions on v3 devices.
* Reformat arguments bus_dma_tag_create().mdodd2004-12-142-21/+45
|
* Do the dreaded s/dev_t/struct cdev */phk2004-06-162-2/+2
| | | | Bump __FreeBSD_version accordingly.
* Add missing <sys/module.h> includesphk2004-05-303-0/+3
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-172-8/+8
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Device megapatch 4/6:phk2004-02-211-0/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Change the disk(9) API in order to make device removal more robust.phk2004-02-182-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of that device were not immediately disappearing. Now the struct disk is allocate with a new call, disk_alloc() and owned by geom_disk and just abandonned by the device driver when disk_create() is called. Unfortunately, this results in a ton of "s/\./->/" changes to device drivers. Since I'm doing the sweep anyway, a couple of other API improvements have been carried out at the same time: The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to DISKFLAG_NEEDSGIANT A version number have been added to disk_create() so that we can detect, report and ignore binary drivers with old ABI in the future. Manual page update to follow shortly.
* Add a per controller IOCTL interface.mdodd2004-01-153-1/+142
|
* - Add comments.mdodd2004-01-152-34/+188
| | | | | | - Add more command defines and data structures. - Re-organize struct ida_drive_info to factor out struct ida_drive_info which will be used elsewhere.
* Insure values of adapter structure members are in correct byte order.mdodd2004-01-151-6/+7
|
* Initialize drive device_t in softc.mdodd2004-01-131-0/+1
|
* style(9): single tab after #define.mdodd2004-01-134-67/+67
|
* Handle "Bad Command List" errors.mdodd2004-01-121-0/+3
| | | | | No error status is returned by the adapter so set CMD_REJECTED so that ida_done() will DTRT.
* Remove comments that no longer apply.mdodd2004-01-121-4/+0
|
* - Initialize qcb flags in ida_construct_qcb() with respect to DMA direction.mdodd2004-01-121-4/+16
| | | | | - Print operation type, if known in hard/soft error message in ida_done(). - NULL qcb struct bio pointer in ida_done().
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-021-2/+2
| | | | | Glanced over by: imp, gibbs Tested by: i386 LINT
* Use __FBSDID().obrien2003-08-243-6/+9
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-08-221-2/+2
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Initialize bp->bio_driver1 in idad_strategy().mdodd2003-08-081-0/+1
| | | | | | | | Removed by accident in 1.38. This fixes the trap 12 everyone was seeing in ida_construct_qcb(). PR: kern/53245
* Mega busdma API commit.scottl2003-07-013-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg. Lockfunc allows a driver to provide a function for managing its locking semantics while using busdma. At the moment, this is used for the asynchronous busdma_swi and callback mechanism. Two lockfunc implementations are provided: busdma_lock_mutex() performs standard mutex operations on the mutex that is specified from lockfuncarg. dftl_lock() is a panic implementation and is defaulted to when NULL, NULL are passed to bus_dma_tag_create(). The only time that NULL, NULL should ever be used is when the driver ensures that bus_dmamap_load() will not be deferred. Drivers that do not provide their own locking can pass busdma_lock_mutex,&Giant args in order to preserve the former behaviour. sparc64 and powerpc do not provide real busdma_swi functions, so this is largely a noop on those platforms. The busdma_swi on is64 is not properly locked yet, so warnings will be emitted on this platform when busdma callback deferrals happen. If anyone gets panics or warnings from dflt_lock() being called, please let me know right away. Reviewed by: tmm, gibbs
* Bring back bus_dmasync_op_t. It is now a typedef to an int, though thescottl2003-05-271-3/+3
| | | | | | | | BUS_DMASYNC_ definitions remain as before. The does not change the ABI, and reverts the API to be a bit more compatible and flexible. This has survived a full 'make universe'. Approved by: re (bmah)
* I deserve a big pointy hat for having missed all those referencesmux2003-04-101-3/+3
| | | | to bus_dmasync_op_t in my last commit.
* Use bioq_flush() to drain a bio queue with a specific error code.phk2003-04-014-4/+8
| | | | | | | | Retain the mistake of not updating the devstat API for now. Spell bioq_disksort() consistently with the remaining bioq_*(). #include <geom/geom_disk.h> where this is more appropriate.
* Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-181-1/+0
| | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* Centralize the devstat handling for all GEOM disk device driversphk2003-03-085-13/+1
| | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-021-1/+1
|
* NO_GEOM cleanup:phk2003-02-234-66/+18
| | | | | | Move ida driver to "struct disk *" centric api. Retire major number 109.
* Fix the detach code to actually detach the disk instance createdphk2003-02-231-5/+1
| | | | during attach.
* Remove a goto the very next statement.phk2003-02-231-3/+0
|
* NO_GEOM cleanup:phk2003-02-211-3/+5
| | | | | | | | | | | | | Retire the "d_dump_t" and use the "dumper_t" type instead. Dumper_t takes a void * as first arg which is more general than the dev_t taken by d_dump_t. (Remember: we could have net-dumpers if somebody wrote us one!) Define the convention for GEOM controlled disk devices to be that the first argument to the dumper function is the struct disk pointer. Change device drivers accordingly.
* Update to new crashdump APIps2003-02-071-38/+9
|
* Use [u]intmax_t and %j instead of long long and %ll to better fix warningsjhb2002-11-071-1/+2
| | | | | | I fixed earlier. Requested by: mux, jake
* Cast a bus_addr_t to a long long to make printf happy.jhb2002-11-061-1/+1
|
* use __packed.alfred2002-09-231-3/+3
|
OpenPOWER on IntegriCloud