aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ips/ips.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | 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
* - Use the existing driver lock in cdevsw methods and remove D_NEEDGIANT.John Baldwin2014-11-131-9/+7
| | | | | | | | | | | - Use callout(9) instead of timeout(9). - Use bus_*() instead of bus_space_*(). - Don't check for a NULL softc in attach. Tested by: no one Notes: svn path=/head/; revision=274488
* while (0); -> while (0) in multi-line macrosWarner Losh2006-08-171-1/+1
| | | | Notes: svn path=/head/; revision=161425
* Separate the hardware definitions into ipsreg.h so they can be used byScott Long2005-11-291-308/+5
| | | | | | | future userland tools. Notes: svn path=/head/; revision=152919
* Overhaul error handling in the IPS driver. Don't use a magic value forScott Long2005-09-251-3/+29
| | | | | | | | | | | | driver-induced errors, instead be better about propagating error status upwards. Add more error definitions, courtesy of the linux driver. Fix a command leak in the ioctl handler. Re-arrange some of the command handlers to localize error handling. MFC After: 3 days Notes: svn path=/head/; revision=150535
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-291-1/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Add crashdump support to the ips driver. It only works for the more modernScott Long2005-01-301-0/+3
| | | | | | | | | | | | ServeRAID 4 - 7 models right now. Support for older cards is possible, but I don't have any hardware to experiment with. Thanks to Jack Hammer at Adaptec for providing debugging hints. Sponsored by: ImproWare AG, Switzerland Notes: svn path=/head/; revision=141062
* Lock the IPS driver and bring it out from under Giant. Also do someScott Long2005-01-281-15/+9
| | | | | | | | | | | | | | | | | | | significant clean up and optimizations: - don't call bioq_disksort() on every command, the hardware will do that for us. - remove all of the complicated bio deferral code. bio's that can't be serviced immediately can just wait on the bioq. - Only reserve one command object for doing control commands to the card. This simplifies a lot of code and significantly reduces the size of the command struct. - Allocate commands out of a slab instead of embedding them into the softc. - Call the command action method directly instead of having ips_get_free_cmd() call it indirectly. MFC After: 1 week Notes: svn path=/head/; revision=140923
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-1/+1
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Use a unique malloc type rather than M_DEVBUF.Scott Long2004-05-301-0/+2
| | | | Notes: svn path=/head/; revision=129859
* Fix typo in the device id for the new cards.Scott Long2004-03-271-1/+1
| | | | Notes: svn path=/head/; revision=127487
* Add generic support for the recent Adaptec flavors of ServeRAID.Scott Long2004-03-191-0/+2
| | | | Notes: svn path=/head/; revision=127205
* Switch from using mutexes to using semaphores to protect against earlyScott Long2004-02-281-2/+6
| | | | | | | | | | completion of synchronous commands. Also switch to a per-array bioq as it appears to improve performance. Submitted by: mbr, imp.ch (bioq change) Notes: svn path=/head/; revision=126364
* ServeRaid (at least 5i) didn't initialize correctly. To getMartin Blapp2003-11-271-2/+57
| | | | | | | | | | | | | | | | | | | | | | | | them working (cache, automatic rebuild and hotswap) the FFDC info (First Failure Data Capture) on the adapter must be initialised. Logical drives in critical/degraded states weren't added to the drive list. FreeBSD was not able to see a degraded array after a reboot. Degraded drives are now also added to the drivelist and the state of the logical drive is given at boottime. The adapter type is detected from informations in nvram page 5 and displayed at boottime. Change IPS_OS_FREEBSD definition from 10 to 8 according to IBM specs. Submitted by: <Patrick Guelat> pgfb@imp.ch Reviewed by: mbr, scottl Approved by: re Notes: svn path=/head/; revision=122999
* Delay most of the adapter initilization until after interrupts arePaul Saab2003-09-111-0/+1
| | | | | | | | | enabled. Tested by: Richard Puga <puga@mauibuilt.com> Notes: svn path=/head/; revision=119997
* Prefer new location of pci include files (which have only been in theWarner Losh2003-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. Notes: svn path=/head/; revision=119280
* - Zero the buffers used to hold configuration data from the card. Not doingScott Long2003-06-261-1/+2
| | | | | | | | | | | | | so can leave stale data in the buffer and confuse the driver. - enable the ability to set the 'disable' hint for the driver to keep it from attaching. i.e. 'hw.ips.0.disable=1' will prevent the driver from attaching. - Only detach if attach suceeded. Submitted by: mjacob Notes: svn path=/head/; revision=116852
* Add the 'ips' driver for the IBM (now Adaptec) ServeRAID controllerScott Long2003-05-111-0/+403
series. This driver was generously developed and released by David Jeffreys and Adaptec. I've updated it to work with 5.x and fixed a few bugs. MFC After: 1 week Notes: svn path=/head/; revision=114902