aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hptmv/ioctl.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the following -Werror warning from clang 10.0.0 in hptmv(4):Dimitry Andric2020-02-151-1/+1
| | | | | | | | | | | | | | | | | sys/dev/hptmv/ioctl.c:240:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] _vbus_p=pArray->pVBus; ^ sys/dev/hptmv/ioctl.c:237:10: note: previous statement is here if(!mIsArray(pArray)) ^ This is because the return statement after the if statement was not indented. (Note that this file has been idented assuming 4-space tabs.) MFC after: 3 days Notes: svn path=/projects/clang1000-import/; revision=357970
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | 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
* sys/dev: Replace zero with NULL for pointers.Pedro F. Giffuni2017-02-201-1/+1
| | | | | | | | | | | Makes things easier to read, plus architectures may set NULL to something different than zero. Found with: devel/coccinelle MFC after: 3 weeks Notes: svn path=/head/; revision=313982
* Various fixes to hptmv(4):John Baldwin2014-08-051-138/+64
| | | | | | | | | | | | | | | | | - Replace the global driver lock with a per-instance device lock. - Use the per-instance device lock instead of Giant for the CAM sim lock. - Add global locks to protect the adapter list and DPC queues. - Use wakeup() and mtx_sleep() to wait for certain events like the controller going idle rather than polling via timeouts passed to tsleep(). - Use callout(9) instead of timeout(9). - Mark the interrupt handler MPSAFE. - Remove compat shims for FreeBSD versions older than 8.0. Reviewed by: Steve Chang <ychang@highpoint-tech.com> Notes: svn path=/head/; revision=269617
* Update driver to vendor's version 1.16 plus some local changes:Xin LI2009-04-071-0/+57
| | | | | | | | | | | | | | | | | | - override_kernel_driver() has been removed since this is an in-tree version of driver. - __DATE__ and __TIME__ removed from version string to make binary update builders happy. - Utilize pause(9) for __FreeBSDversion >= 700033 (redo 167086). - Utilize kproc_suspend_check() for __FreeBSDversion >= 800002. (redo 172836). - Don't read past end of pVDevice (redo 143787). - Make sure that controller and channel are initialized (redo 169823). - Don't include cam/cam_xpt_periph.h (redo 158177). MFC After: 3 days Notes: svn path=/head/; revision=190809
* Perhaps a better fix- make the called function do the (possible never reached)Matt Jacob2007-05-211-8/+11
| | | | | | | | | initialization. Do a token amount of style cleanup. Poked by: bde Notes: svn path=/head/; revision=169823
* Make gcc 4.2 happy by initiatlizing controller && channel priorMatt Jacob2007-05-201-1/+1
| | | | | | | | | to a call to a function which *might* then initialize them. MFC after: 3 days Notes: svn path=/head/; revision=169798
* Use pause() rather than tsleep() on stack variables and function pointers.John Baldwin2007-02-271-9/+9
| | | | Notes: svn path=/head/; revision=167086
* Import new version of the HPTMV driver from Highpoint. The major changeScott Long2005-09-071-24/+57
| | | | | | | | | | | here is the support for amd64, as well as possible support for PAE. Many thanks to Highpoint for continuing to support FreeBSD. Obtained from: Steve Chang @ Highpoint MFC After: 3 days. Notes: svn path=/head/; revision=149871
* Clean up the botching of the previous repo-copy. Reference the includedScott Long2005-03-021-1/+1
| | | | | | | | | headers from the correct location. Submitted by: Tai-hwa Liang Notes: svn path=/head/; revision=143039
* Move all of the hptmv files to /sys/dev/hptmv so that they won't be mistakenScott Long2005-03-021-0/+2
| | | | | | | for being on a CVS vendor branch. The files were moved via a repo-copy. Notes: svn path=/head/; revision=142988
* avoid sneaky double freeSam Leffler2005-02-251-1/+5
| | | | | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: scottl Notes: svn path=/head/; revision=142409
* Import the HighPoint RocketRAID 182x driver. Thanks to HighPoint forScott Long2004-10-241-0/+924
providing the original driver, and thanks to IronSystems for providing hardware for testing. Notes: svn path=/head/; revision=136849