summaryrefslogtreecommitdiff
path: root/sys/dev/aacraid
Commit message (Collapse)AuthorAgeFilesLines
* sys/dev: minor spelling fixes.Pedro F. Giffuni2016-05-033-3/+3
| | | | | | | Most affect comments, very few have user-visible effects. Notes: svn path=/head/; revision=298955
* aacraid(4): Fix some mostly trivial buffer overrunsConrad Meyer2016-04-261-3/+5
| | | | | | | | | | | | | strcpy(3) emits a trailing nul byte, trampling fields after the intended destination. Instead, use strncpy(3), intentionally leaving these fields not nul-terminated. Reported by: Coverity CIDs: 1031024, 1305463, 1305494, 1305545 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=298665
* aacraid(4): Sanely copyin userland pointers and ensure that we don't getSean Bruno2016-04-191-4/+14
| | | | | | | | | | | | | | | anything janky from a user. (cturt) aac(4): landergriffith+freebsdbugzilla@gmail.com pointed out that aacraid(4) had the same issue and handling of pointers, so let's change that too. PR: 206573 Submitted by: cturt@hardenedbsd.org Obtained from: HardenedBSD MFC after: 1 week Notes: svn path=/head/; revision=298280
* Cleanup unnecessary semicolons from the kernel.Pedro F. Giffuni2016-04-101-2/+2
| | | | | | | Found with devel/coccinelle. Notes: svn path=/head/; revision=297793
* Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Justin Hibbits2016-02-271-2/+2
| | | | | | | | | | | Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count. Migrate these to use the new bus_alloc_resource_anywhere() API. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370 Notes: svn path=/head/; revision=296137
* Remove MAXBSIZE use from drivers where it has nothing to do.Alexander Motin2015-03-221-2/+2
| | | | | | | | | | In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead. MFC after: 1 month Notes: svn path=/head/; revision=280347
* Remove instances of variables that were set, but never used. gcc 4.9Warner Losh2014-03-302-7/+1
| | | | | | | warns about these by default. Notes: svn path=/head/; revision=263954
* Update kernel inclusions of capability.h to use capsicum.h instead; someRobert Watson2014-03-161-1/+1
| | | | | | | | | | | further refinement is required as some device drivers intended to be portable over FreeBSD versions rely on __FreeBSD_version to decide whether to include capability.h. MFC after: 3 weeks Notes: svn path=/head/; revision=263233
* Wrap this debug statement in debug defines. Else, this driverSean Bruno2014-01-031-0/+2
| | | | | | | | | | will refuse to load. MFC after: 2 weeks Sponsored by: Yahoo! Inc. Notes: svn path=/head/; revision=260243
* Update aacraid to version 3.2.5.Achim Leubner2013-11-084-160/+621
| | | | | | | | | | | | Full MSI-X interrupt support added. Timeout and reset handling reworked, firmware flash update test added. Support for drives with 4KB block size added. Changes made to avoid exposure of phys. array components by default. Approved by: scottl (mentor), emaste (co-mentor) Notes: svn path=/head/; revision=257847
* Handle cases where capability rights are not provided.Pawel Jakub Dawidek2013-09-051-3/+10
| | | | | | | Reported by: kib Notes: svn path=/head/; revision=255240
* Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIScott Long2013-08-121-7/+1
| | | | | | | | | | | | | | | | | | | | command register. The lazy BAR allocation code in FreeBSD sometimes disables this bit when it detects a range conflict, and will re-enable it on demand when a driver allocates the BAR. Thus, the bit is no longer a reliable indication of capability, and should not be checked. This results in the elimination of a lot of code from drivers, and also gives the opportunity to simplify a lot of drivers to use a helper API to set the busmaster enable bit. This changes fixes some recent reports of disk controllers and their associated drives/enclosures disappearing during boot. Submitted by: jhb Reviewed by: jfv, marius, achadd, achim MFC after: 1 day Notes: svn path=/head/; revision=254263
* Unbreak ia64 tinderbox: 64-bit support was made conditional uponMarcel Moolenaar2013-05-261-13/+4
| | | | | | | | | | __amd64__, and thus limited. Eliminate 2 trivial conditionals by casting the 64-bit integral, holding an address, via (uintptr_t) to (void *) and replace the last remaining check for __amd64__ with a check for __LP64__ instead. Notes: svn path=/head/; revision=251013
* Driver 'aacraid' added. Supports Adaptec by PMC RAID controller families ↵Achim Leubner2013-05-248-0/+8303
Series 6, 7, 8 and upcoming products. Older Adaptec RAID controller families are supported by the 'aac' driver. Approved by: scottl (mentor) Notes: svn path=/head/; revision=250963