Scott Long
f5a923258b
Correctly test *Reply_Ptr in ASR_resetIOP(). Thanks to dhartmei for pointing
...
this out.
2004-05-01 06:32:01 +00:00
Scott Long
6021732ae8
Re-indent some silly sub-blocks in asr_attach().
2004-05-01 06:12:58 +00:00
Scott Long
6f4409dd10
Remove ASR_get_sc() and reference the softc in the dev_t. For some nefarious
...
reason, the I2O protocol requires knowledge of all I2O devices in the system,
so we can't get rid of the evil linked-list of softc's yet.
2004-05-01 05:56:57 +00:00
Scott Long
68cf1a90b4
Remove the DOMINO and MODE0 device attachments. They never did anything.
...
Remove a bunch of obfuscating macros.
2004-05-01 05:19:39 +00:00
Scott Long
ec0b2af03f
More whitespace style cleanups, also remove unneeded (void *) casts for bzero().
2004-05-01 03:06:54 +00:00
Scott Long
6f2cb1c2f2
Many more style cleanups. Switch complex macros to being inline functions.
...
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.
2004-05-01 02:27:06 +00:00
Scott Long
cff5a08d74
Get rid of a bunch of useless macros. STATIC becomes static, INLINE becomes
...
__inline where appropriate and gets nuked elsewhere, IN/OUT/INOUT go away.
Reformat code affected by this.
2004-05-01 01:25:05 +00:00
Nate Lawson
28aee9f11e
Fix the build. opt_asr.h is gone.
...
Beer or equivalent to? njl
2004-04-22 02:22:18 +00:00
Scott Long
f0c8cb0022
Remove more sead code.
2004-04-21 20:58:48 +00:00
Scott Long
ba6d64678f
Don't indent preprocessor tokens.
2004-04-21 20:56:08 +00:00
Scott Long
4ada12355d
Remove ASR_MEASURE_PERFORMANCE. It hasn't been able to compile in several
...
years.
2004-04-21 20:14:45 +00:00
Scott Long
1f4b72f7f6
Use offsetof() instead of hand-rolling something equivalent.
2004-04-21 20:09:45 +00:00
Scott Long
bf91c20547
Remove all of the old __FreeBSD_version code that provided FreeBSD 2.2.x and
...
3.x shims.
2004-04-21 03:59:52 +00:00
Scott Long
4e28e03aa5
Begin the slow, painful process of cleaning up asr. This eliminates many of the
...
bogus casts of NULL. It also distracts me while I procrastinate on useful work.
2004-04-21 03:51:39 +00:00
Nate Lawson
5f96beb9e0
Convert callers to the new bus_alloc_resource_any(9) API.
...
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
2004-03-17 17:50:55 +00:00
Poul-Henning Kamp
dc08ffec87
Device megapatch 4/6:
...
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.
2004-02-21 21:10:55 +00:00
Poul-Henning Kamp
f9b9ae4dd1
Remove code previously under #ifdef ASR_VERY_BROKEN
...
Ok'ed by: scottl
2003-09-26 15:56:42 +00:00
John Baldwin
e27951b29c
Use PCIR_BAR(x) instead of PCIR_MAPS.
...
Glanced over by: imp, gibbs
Tested by: i386 LINT
2003-09-02 17:30:40 +00:00
David E. O'Brien
aad970f1fe
Use __FBSDID().
...
Also some minor style cleanups.
2003-08-24 17:55:58 +00:00
Warner Losh
4fbd232c86
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 05:54:52 +00:00
Poul-Henning Kamp
8f18989721
Include <sys/ioccom.h> instead of <sys/disklabel.h>
2003-04-16 20:46:30 +00:00
Poul-Henning Kamp
7ac40f5f59
Gigacommit to improve device-driver source compatibility between
...
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)
2003-03-03 12:15:54 +00:00
Dag-Erling Smørgrav
521f364b80
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
2003-03-02 16:54:40 +00:00
David E. O'Brien
e901be8e96
<machine/vmparam.h> is the right place to get KERNBASE, so don't special
...
platform case it (or use alternate spellings).
2003-02-24 06:56:18 +00:00
Warner Losh
a163d034fa
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
Alfred Perlstein
44956c9863
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
Jens Schweikhardt
9d5abbddbf
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
Robert Watson
5083ed18af
Use UID_ and GID_ constants instead of hard-coded numeric values
...
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
2002-12-27 17:50:39 +00:00
John Baldwin
ba76c5a2c1
Use a bandaid to fix a warning. However, this driver is very, very far
...
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.
2002-11-06 19:42:59 +00:00
Archie Cobbs
4a6a94d8d8
Replace (ab)uses of "NULL" where "0" is really meant.
2002-08-22 21:24:01 +00:00
Brian Somers
2f371b0268
Remove an extraneous )
...
Not approved by: maintainer
I'm guessing that this is trivial enough to sidestep approval.
2002-05-15 12:25:11 +00:00
David E. O'Brien
d93389d676
`unexpand -a' should be run _before_ sed 's/^#define /#define^I/g'.
2002-05-14 21:59:10 +00:00
David E. O'Brien
5d340b7ec1
Tighten up the defined()'s.
2002-05-14 21:54:56 +00:00
David E. O'Brien
014585d125
unexpand -a everything
2002-05-14 01:09:03 +00:00
David E. O'Brien
ddd36f9fac
First pass of style(9) for #define's.
2002-05-14 00:53:08 +00:00
John Baldwin
44731cab3b
Change the suser() API to take advantage of td_ucred as well as do a
...
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@
2002-04-01 21:31:13 +00:00
Alfred Perlstein
5da99a94e8
Remove erronious destroy_dev. Not sure what the author's intent was here
...
but this makes the driver not panic my -current box.
Approved by: scottl
2002-04-01 06:09:17 +00:00
Alfred Perlstein
e51a25f850
Remove __P.
2002-03-20 02:08:01 +00:00
Warner Losh
47f9536259
If we're going to ifdef out the only reference to asr_drvinit, then
...
go ahead and ifdef out the function too.
2002-02-26 03:22:44 +00:00
David E. O'Brien
f414f5dc5c
Convert C++ style comments to proper C ones.
...
Clean up C comments just a tad.
Fix ID's.
2001-12-13 23:48:34 +00:00
John Baldwin
7118b0c4c3
Use C comments instead of C++ comments.
...
Reported by: gcc30
2001-12-13 19:54:12 +00:00
Scott Long
ed4927f5e8
Put a Band-Aid over the asr driver so that it hopefully won't cause
...
panics until the author comes up with a real fix.
2001-10-30 21:13:39 +00:00
Julian Elischer
b40ce4165d
KSE Milestone 2
...
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
2001-09-12 08:38:13 +00:00
Scott Long
2c325c113c
Fresh code drop from the vendor. This fixes some critical bugs and adds
...
support for a new class of controllers. Also adjust MAINTAINER at the
approval of msmith.
Obtained from: mark_salyzyn@adaptec.com
2001-08-21 19:58:16 +00:00
Paul Saab
05ba6e6a36
Fix probing on the alpha. It still causes the alpha to panic during
...
attach.
2001-04-03 00:26:34 +00:00
Scott Long
0001afe2f5
Make an attempt to get the asr driver to compile on Alpha by fixing some i386
...
specific bogons. Compile with -O0, as anything higher gives the compiler
a fit. No idea if this driver will actually work on Alpha, though.
2001-04-01 08:33:01 +00:00
Poul-Henning Kamp
f83880518b
Send the remains (such as I have located) of "block major numbers" to
...
the bit-bucket.
2001-03-26 12:41:29 +00:00
Mark Murray
ed34d0ade2
Turn on interrupt-entropy harvesting for all/any mass storage devices
...
I could find. I have no doubt missed a couple.
Interrupt entropy harvesting is still conditional on the
kern.random.sys.harvest_interrupt sysctl.
2001-03-01 17:09:09 +00:00
Kris Kennaway
dd76c70387
Typo fixes: prefered -> preferred
...
There are some others in contributed/external code I haven't touched.
2001-02-20 10:30:22 +00:00
Poul-Henning Kamp
fc2ffbe604
Mechanical change to use <sys/queue.h> macro API instead of
...
fondling implementation details.
Created with: sed(1)
Reviewed by: md5(1)
2001-02-04 13:13:25 +00:00