aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iir/iir_ctrl.c
Commit message (Collapse)AuthorAgeFilesLines
* Extract eventfilter declarations to sys/_eventfilter.hConrad Meyer2019-05-201-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | This allows replacing "sys/eventfilter.h" includes with "sys/_eventfilter.h" in other header files (e.g., sys/{bus,conf,cpu}.h) and reduces header pollution substantially. EVENTHANDLER_DECLARE and EVENTHANDLER_LIST_DECLAREs were moved out of .c files into appropriate headers (e.g., sys/proc.h, powernv/opal.h). As a side effect of reduced header pollution, many .c files and headers no longer contain needed definitions. The remainder of the patch addresses adding appropriate includes to fix those files. LOCK_DEBUG and LOCK_FILE_LINE_ARG are moved to sys/_lock.h, as required by sys/mutex.h since r326106 (but silently protected by header pollution prior to this change). No functional change (intended). Of course, any out of tree modules that relied on header pollution for sys/eventhandler.h, sys/lock.h, or sys/mutex.h inclusion need to be fixed. __FreeBSD_version has been bumped. Notes: svn path=/head/; revision=347984
* 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
* Lock iir(4) and mark it MPSAFE.John Baldwin2014-11-131-104/+33
| | | | | | | | | | | | | | | | | | | | | | - Add a per-device mutex to the softc and use it for bus_dma tags, CAM SIMs, callouts, and interrupt handler. - Switch from timeout(9) to callout(9). - Add a separate global mutex to protect the global event buffer ring. - Return completed index from iir_intr_locked() and remove the global gdt_wait_* variables. - Remove global list of gdt softcs and replace its use with devclass_get_device(). - Use si_drv1 to store softc pointer in the SDEV_PER_HBA case instead of minor numbers. - Do math on osreldate instead of dubious char math on osrelease[] that didn't work on 10.0+. - Use bus_*() instead of bus_space_*(). - Use device_printf() instead of printf() with a unit number. Tested by: no one Notes: svn path=/head/; revision=274487
* Avoid potential redefinition of the macro.Jung-uk Kim2013-08-151-1/+1
| | | | Notes: svn path=/head/; revision=254379
* Include <sys/sysctl.h>, to get the declarations of ostype andMarcel Moolenaar2009-12-021-2/+1
| | | | | | | osrelease. Remove the duplicate declarations from this file. Notes: svn path=/head/; revision=200045
* Remove unused VM includes.John Baldwin2009-06-031-4/+0
| | | | Notes: svn path=/head/; revision=193396
* We no longer need to use d_thread_t, migrate to struct thread *.Warner Losh2009-05-201-3/+3
| | | | Notes: svn path=/head/; revision=192450
* Replace all calls to minor() with dev2unit().Ed Schouten2008-09-271-5/+5
| | | | | | | | | | | | | | | | | | After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib Notes: svn path=/head/; revision=183397
* Correct improper permissions on /dev/iir. The earlier permissionsColin Percival2005-05-061-2/+2
| | | | | | | | | of 0644 allowed for people to do Evil Things via ioctl(2). Security: FreeBSD-SA-05:06.iir Notes: svn path=/head/; revision=145947
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-8/+8
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Update from vendor. This also adds support for newer management tools.Scott Long2004-05-191-0/+2
| | | | | | | Submitted by: Achim Leubner Notes: svn path=/head/; revision=129449
* Device megapatch 4/6:Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=126080
* Remove the static major assignment for iir(4).Scott Long2004-02-141-4/+1
| | | | | | | Submitted by: phk (partially) Notes: svn path=/head/; revision=125834
* Update email addresses, copyrights, and tweak the management interface.Scott Long2003-09-261-7/+20
| | | | | | | Submitted by: "Leubner, Achim" <Achim_Leubner@adaptec.com> Notes: svn path=/head/; revision=120477
* Use __FBSDID().David E. O'Brien2003-08-241-1/+2
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Import latest changes from the vendor. This also is reported to fix theScott Long2003-04-251-3/+22
| | | | | | | | | | driver at long last! Many thanks to vaidas.damosevicius@if.lt for keeping this issue alive and pursuing Intel for a fix, Intel/ICP for working on the driver, and Sergey Osokin for bringing the original patches up to 5-CURRENT. Notes: svn path=/head/; revision=114001
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-14/+7
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Fix cdevsw initialization commit to follow canonical format.Poul-Henning Kamp2003-03-021-1/+1
| | | | Notes: svn path=/head/; revision=111745
* msgPoul-Henning Kamp2003-02-261-15/+0
| | | | Notes: svn path=/head/; revision=111573
* Remove S_IROTH from the make_dev() lines for iir-related devices. ThisRobert Watson2002-12-271-2/+2
| | | | | | | | | | | improves protection consistency with other storage devices (generally root:operator,660). This driver appears not to have an active maintainer. Submitted by: kris Notes: svn path=/head/; revision=108320
* Include <sys/ioccom.h> directly, rather than indirectly throughPoul-Henning Kamp2002-09-201-1/+1
| | | | | | | | | <sys/disklabel.h> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103694
* Move the new byte order function prototypes from <sys/param.h> toMike Barcroft2002-04-261-0/+1
| | | | | | | <sys/endian.h>. This puts us in line with NetBSD and OpenBSD. Notes: svn path=/head/; revision=95533
* Add the 'iir' driver, for the Intel Integrated RAID controllers andMike Smith2002-01-201-0/+371
prior ICP Vortex models. This driver was developed by Achim Leubner of Intel (previously with ICP Vortex) and Boji Kannanthanam of Intel. Submitted by: "Kannanthanam, Boji T" <boji.t.kannanthanam@intel.com> MFC after: 2 weeks Notes: svn path=/head/; revision=89580