summaryrefslogtreecommitdiff
path: root/sys/dev/asr/asr.c
Commit message (Collapse)AuthorAgeFilesLines
...
* More whitespace style cleanups, also remove unneeded (void *) casts for bzero().Scott Long2004-05-011-33/+30
| | | | Notes: svn path=/head/; revision=128787
* Many more style cleanups. Switch complex macros to being inline functions.Scott Long2004-05-011-150/+139
| | | | | | | | | Put @includes in a better spot. Fix many cases of 2 space indents and spaces between a function name and the parens. Use KASSERT instead of a home-rolled ASSERT. Remove some undeeded caddr casts. Notes: svn path=/head/; revision=128786
* Get rid of a bunch of useless macros. STATIC becomes static, INLINE becomesScott Long2004-05-011-367/+227
| | | | | | | | __inline where appropriate and gets nuked elsewhere, IN/OUT/INOUT go away. Reformat code affected by this. Notes: svn path=/head/; revision=128784
* Fix the build. opt_asr.h is gone.Nate Lawson2004-04-221-1/+0
| | | | | | | Beer or equivalent to? njl Notes: svn path=/head/; revision=128544
* Remove more sead code.Scott Long2004-04-211-91/+2
| | | | Notes: svn path=/head/; revision=128536
* Don't indent preprocessor tokens.Scott Long2004-04-211-70/+70
| | | | Notes: svn path=/head/; revision=128535
* Remove ASR_MEASURE_PERFORMANCE. It hasn't been able to compile in severalScott Long2004-04-211-354/+0
| | | | | | | years. Notes: svn path=/head/; revision=128532
* Use offsetof() instead of hand-rolling something equivalent.Scott Long2004-04-211-1/+1
| | | | Notes: svn path=/head/; revision=128531
* Remove all of the old __FreeBSD_version code that provided FreeBSD 2.2.x andScott Long2004-04-211-236/+0
| | | | | | | 3.x shims. Notes: svn path=/head/; revision=128512
* Begin the slow, painful process of cleaning up asr. This eliminates many of theScott Long2004-04-211-91/+68
| | | | | | | bogus casts of NULL. It also distracts me while I procrastinate on useful work. Notes: svn path=/head/; revision=128511
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-2/+2
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* 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 code previously under #ifdef ASR_VERY_BROKENPoul-Henning Kamp2003-09-261-42/+0
| | | | | | | Ok'ed by: scottl Notes: svn path=/head/; revision=120478
* Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin2003-09-021-8/+6
| | | | | | | | Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
* Use __FBSDID().David E. O'Brien2003-08-241-3/+4
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* 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=119277
* Include <sys/ioccom.h> instead of <sys/disklabel.h>Poul-Henning Kamp2003-04-161-1/+1
| | | | Notes: svn path=/head/; revision=113580
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+5
| | | | | | | | | | | | | | | | 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
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-021-3/+3
| | | | Notes: svn path=/head/; revision=111748
* <machine/vmparam.h> is the right place to get KERNBASE, so don't specialDavid E. O'Brien2003-02-241-1/+1
| | | | | | | platform case it (or use alternate spellings). Notes: svn path=/head/; revision=111419
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-19/+19
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-19/+19
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Use UID_ and GID_ constants instead of hard-coded numeric valuesRobert Watson2002-12-271-1/+2
| | | | | | | | | | | | with make_dev(). Use OPERATOR instead of implicit WHEEL to match other storage devices. Use a mode of 0640 to be consistent with other storage devices. Submitted by: kris Reviewed by: scottl Notes: svn path=/head/; revision=108328
* Use a bandaid to fix a warning. However, this driver is very, very farJohn Baldwin2002-11-061-1/+1
| | | | | | | | | | | | from being MI in any fashion. It currently "assumes" that it can get a kernel virtual address for a phyiscal address by adding KERNBASE to the physical address. It also tries to read values out of a the PC BIOS on all archs. It also uses "manual" inb() and outb()'s to talk to the mcclock device which just happens to be at that location on both i386 and alpha. This driver should likely be i386-only. Notes: svn path=/head/; revision=106515
* Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs2002-08-221-1/+1
| | | | Notes: svn path=/head/; revision=102291
* `unexpand -a' should be run _before_ sed 's/^#define /#define^I/g'.David E. O'Brien2002-05-141-61/+61
| | | | Notes: svn path=/head/; revision=96615
* Tighten up the defined()'s.David E. O'Brien2002-05-141-3/+3
| | | | Notes: svn path=/head/; revision=96614
* unexpand -a everythingDavid E. O'Brien2002-05-141-3979/+3979
| | | | Notes: svn path=/head/; revision=96554
* First pass of style(9) for #define's.David E. O'Brien2002-05-141-60/+60
| | | | Notes: svn path=/head/; revision=96551
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-04-011-1/+1
| | | | | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@ Notes: svn path=/head/; revision=93593
* Remove erronious destroy_dev. Not sure what the author's intent was hereAlfred Perlstein2002-04-011-1/+0
| | | | | | | | | but this makes the driver not panic my -current box. Approved by: scottl Notes: svn path=/head/; revision=93506
* Remove __P.Alfred Perlstein2002-03-201-32/+32
| | | | Notes: svn path=/head/; revision=92739
* If we're going to ifdef out the only reference to asr_drvinit, thenWarner Losh2002-02-261-1/+1
| | | | | | | go ahead and ifdef out the function too. Notes: svn path=/head/; revision=91277
* Convert C++ style comments to proper C ones.David E. O'Brien2001-12-131-11/+12
| | | | | | | | Clean up C comments just a tad. Fix ID's. Notes: svn path=/head/; revision=87826
* Put a Band-Aid over the asr driver so that it hopefully won't causeScott Long2001-10-301-0/+2
| | | | | | | panics until the author comes up with a real fix. Notes: svn path=/head/; revision=85751
* KSE Milestone 2Julian Elischer2001-09-121-9/+10
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* Fresh code drop from the vendor. This fixes some critical bugs and addsScott Long2001-08-211-148/+458
| | | | | | | | | | support for a new class of controllers. Also adjust MAINTAINER at the approval of msmith. Obtained from: mark_salyzyn@adaptec.com Notes: svn path=/head/; revision=82092
* Fix probing on the alpha. It still causes the alpha to panic duringPaul Saab2001-04-031-1/+1
| | | | | | | attach. Notes: svn path=/head/; revision=75102
* Make an attempt to get the asr driver to compile on Alpha by fixing some i386Scott Long2001-04-011-1/+11
| | | | | | | | specific bogons. Compile with -O0, as anything higher gives the compiler a fit. No idea if this driver will actually work on Alpha, though. Notes: svn path=/head/; revision=75062
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray2001-03-011-1/+1
| | | | | | | | | | I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl. Notes: svn path=/head/; revision=73280
* Typo fixes: prefered -> preferredKris Kennaway2001-02-201-1/+1
| | | | | | | There are some others in contributed/external code I haven't touched. Notes: svn path=/head/; revision=72760
* Mechanical change to use <sys/queue.h> macro API instead ofPoul-Henning Kamp2001-02-041-1/+1
| | | | | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=71999
* Use M_ZERO.David Malone2000-12-031-22/+12
| | | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: mark_salyzyn@adaptec.com Notes: svn path=/head/; revision=69548
* Move suser() and suser_xxx() prototypes and a related #define fromPoul-Henning Kamp2000-10-291-1/+0
| | | | | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>. Notes: svn path=/head/; revision=67893
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Fix a race in ASR_ccbAdd and ASR_ccbRemove, which were both manipulatingMike Smith2000-09-211-0/+11
| | | | | | | | | the ccb queue without masking interrupts. Submitted by: Petr Lampa <lampa@fee.vutbr.cz> Notes: svn path=/head/; revision=66190
* Move the 'asr' driver to cdev major 154, since 97 is already taken.Mike Smith2000-09-011-1/+1
| | | | Notes: svn path=/head/; revision=65343
* Add the 'asr' driver, supplied by Mark Salyzyn of Adaptec (nee DPT).Mike Smith2000-09-011-0/+4373
This provides support for the Adaptec SCSI RAID controller family, as well as the DPT SmartRAID V and VI families. The driver will be maintained by Mark and Adaptec, and any changes should be referred to the MAINTAINER. Notes: svn path=/head/; revision=65312