John Baldwin
73dbd3da73
Remove various bits of conditional Alpha code and fixup a few comments.
2006-05-12 05:04:46 +00:00
Scott Long
b5a531ae40
Give the asr softc list global a proper name.
2006-02-12 06:57:41 +00:00
Scott Long
5d9299772e
Squash a couple more invalid long casts.
2006-02-05 05:05:27 +00:00
Scott Long
1107d45356
Squash another use of vtophys. Instead of creating separate busdma objects
...
for doing static memory transfers, start collecting them into a single
object.
2006-02-04 17:56:17 +00:00
Scott Long
b0cb1aaf7c
Add the start of busdma infrastructure to this driver. Convert the
...
ASR_resetIOPR function to use it.
2006-02-04 08:45:19 +00:00
Scott Long
b32f2b9a08
Now that the U32 type is a really 32-bits wide, eliminate a bunch of other
...
bad assumptions and long values.
2006-02-04 08:20:23 +00:00
Scott Long
90acf956d3
Give correct definitions to some basic types.
2006-02-04 08:01:49 +00:00
Scott Long
04ab3022a9
Fix a possible memory leak in asr_attach.
2006-02-04 06:08:19 +00:00
Scott Long
9cbec74dcb
Don't allocate an asr_ccb in asr_attach, it hasn't been needed for years.
2006-01-14 16:01:01 +00:00
Scott Long
19e9e8235d
Replace bogus code with real code.
2006-01-14 15:59:54 +00:00
Scott Long
8f6ee34112
Rename driver_t variables. Use device_printf() instead of homerolled printf.
...
Use the provided softc instead of rolling our own.
2006-01-14 15:51:42 +00:00
Ruslan Ermilov
3238c6bd33
Fix -Wundef from compiling the amd64 LINT.
2005-12-04 10:06:06 +00:00
Scott Long
a304e92b2b
Only create the rdpti alias if the asr device creation succeeds.
2005-04-29 04:47:11 +00:00
Scott Long
e5bd0ae156
Make life easier on those trying to use the asr utilities by automatically
...
creating the /dev/dpti%d entry that the software expects. This is just
a band-aid until either someone (hopefully) rewrites the utilities, or all
asr/dpt cards in existance get blasted into the sun.
2005-04-01 22:12:53 +00:00
Olivier Houchard
641a67bed4
Bring back some of the ioctl junk that was removed in rev 1.59 as a
...
i386-only kernel option, ASR_COMPAT, and under BURN_BRIDGES.
It is really ugly, but raidutils depends on it.
Discussed with: scottl
2005-03-17 01:20:49 +00:00
Warner Losh
53ee71735f
Use BUS_PROBE_DEFAULT for pci probe return value
2005-03-05 19:06:12 +00:00
Warner Losh
098ca2bda9
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +00:00
Marius Strobl
72aca14cfb
- Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP
...
in case of a CHECK CONDITION.
- Make this driver return SCSI status information.
- While here, factor out the clearing of the CAM status from every
element of the switch statement to only once before the switch.
This fixes burning CDs with recent cdrecord 2.01 alpha versions and
burners attached to asr(4) controllers but there could have been
other applications and da(4) etc. also affected.
Reviewed by: gibbs, scottl
MFC after: 2 weeks
2004-08-02 23:32:23 +00:00
Poul-Henning Kamp
89c9c53da0
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
Poul-Henning Kamp
fe12f24bb0
Add missing <sys/module.h> includes
2004-05-30 20:08:47 +00:00
Scott Long
c043a33795
Update the version history in the driver to note everything that has happened
...
over the last three weeks.
2004-05-05 14:19:43 +00:00
Scott Long
1e5532d487
Roto-till the ioctl code. Remove all the groping around in the x86 BIOS
...
segment, remove the groping around in the Option ROM segments, remove the
bogus tests for bcopy vs. copyout. There really is no reason for a
management app to know these things other than to create l33t info tables
for the user.
2004-05-05 05:29:19 +00:00
Scott Long
60c3d7b627
Convert the asr driver to use the bus_space API. This does not represent
...
a significant functional change, but it further cleans up the code and
brings it closer to being portable. Thanks to Don Bowman for helping to
test this.
2004-05-05 03:42:33 +00:00
Scott Long
01a157ea66
Fix a typo from rev 1.56 that somehow escaped my testing.
2004-05-04 03:16:22 +00:00
Scott Long
eb095afb05
Remove the static reservation of the asr major number
2004-05-02 03:51:53 +00:00
Scott Long
9823f1a2c9
Remove the defAlignLong and getAlignLong macros. I guess that the original
...
intent was to make sure that message structs allocated off of the stack were
4-byte aligned. However, the macros as defined did absolutely nothing.
And since I2O forces you to manually copy messages down to the hardware, there
really is no point of enforced alignment anyways.
2004-05-02 03:33:18 +00:00
Scott Long
c371b99774
Remove the bogus printing of the asr control device major number. Also
...
rename the control device from rasr%d to asr%d. This starts us down the
path of divorcing ourselves from a very bogus design in the management
apps. Since the apps are open source now, they will likely be updated
and fixed before 5.3.
2004-05-02 00:27:54 +00:00
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