mjacob
f13ec50e47
Clean up bus dma code for request/response queues.
2001-04-12 21:40:56 +00:00
mjacob
272082c697
ansify code
2001-03-14 06:58:25 +00:00
thorpej
c8f050a7f1
Use bus_dmamap_load(), not bus_dmamap_load_raw(), and add
...
BUS_DMA_STREAMING to data transfer map loads.
2001-03-08 02:21:44 +00:00
mjacob
0adf4d13bb
Oh, god, make the pain stop. "Fix" this one more time- but for the next
...
to last time.
It turns out that in fact, sparc64 was *not* working. There is a discussion
within the tech-kern@netbsd.org mail list as of just prior to this date
that contains the details.
Suffice to say that for sparc64 we have to add back in the usage
of BUS_DMA_COHERENT again to the call to bus_dmamap_load_raw. PK
added the usage of bus_dmamap_load_raw- which agrees with the
man page description of it- but now does not match what the
original BusDma author seems to think it's supposed to do.
While we're at it, do a specific set of steps for setting up and,
if necessary, tearing down, mailbox dma mappings.
2001-02-28 05:46:46 +00:00
mjacob
0dce6b45bc
this was *still* wrong
2001-02-25 01:49:18 +00:00
mjacob
9d2a3fb24d
More Kudos to Izumi: fix another argument to bus_dmamap_sync
2001-02-25 01:44:02 +00:00
mjacob
d5f967e27f
Now that the underlying code for bus_dmamap_sync appears to do the
...
right thing, don't use the illegal and "just worked by chance" addition
of BUS_DMA_COHERENT to bus_dmamap_load_raw. There still is a necessity
to add to the architecture to allow one to hint that this should be
a cache coherent mapping.
Fix offset argument to be zero for flushing data tranfers. Kudos to Izumi
for spotting this.
2001-02-24 23:30:01 +00:00
mjacob
e8ae80a071
Add missing BUS_DMA_COHERENT to bus_dmamap_load_raw calls for request
...
and response queues- this makes this work on UltraSparc now.
2001-02-23 23:57:47 +00:00
mjacob
3744fa3f33
Implement bootverbose recognition. Move interrupt registry up a bit so we can
...
use interrupting mailbox commands for isp_init. Set default HBA role.
Rename request/response dma maps to be more consistent with PCI version.
Enable bus_dmamap_sync on request queue- we already do this for response
queue- better do it for the request queue as well.
Checked to be working against a Sparc10.
2001-02-23 17:28:58 +00:00
wiz
c8b0b91e7e
Fix pathnames in comment.
2000-12-23 01:37:57 +00:00
mjacob
0a481d850d
fix SBus bursting *correctly* this time
2000-10-22 03:04:50 +00:00
mjacob
cecccb23b2
quiet chatty boot messages
2000-10-17 17:39:10 +00:00
mjacob
7cc31292b3
Turn on 32 byte bursting for ISP
2000-10-16 05:13:13 +00:00
mjacob
d8aef491c1
Add a maintenance note. Add a bus specific isp_sbus_intr function- this is
...
so we, ahem, note we're on an interrupt stack so we don't try and sleep
on any mailbox commands we might want to run.
2000-08-14 07:00:08 +00:00
mjacob
068c76fc80
Core version 2.0 (platform version 1.0) rewrite of ISP driver. Some
...
interace cleanups, some new common functions. The major impact that
will be noticeable right away is that if you boot with not Fibre connected
to the FC cards, you no longer hang indefinitely.
2000-08-01 23:55:09 +00:00
pk
406e0f779f
Add a `device class' interrupt level argument (from machine/intr.h)
...
to bus_interrupt_establish().
It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.
2000-07-09 20:57:41 +00:00
mjacob
855b5ef9b0
Use new isp_handle_index inline function. Change order in whch
...
some things are done. Remember to enable interrupts after calling
isp_reset but before isp_attach.
2000-07-05 22:10:56 +00:00
pk
82dbe14248
No need to specify page alignment; this is automatic.
2000-05-10 14:25:43 +00:00
pk
bb1605cff5
Fix bogus `boundary' argument in bus_dmamap_create().
2000-05-10 14:16:11 +00:00
pk
18a16edec1
Conform bus_dmamem_{alloc,map} usage to bus_dma(9) specs.
2000-05-09 23:16:19 +00:00
mjacob
6f13498242
correct oops on last checkin
2000-02-19 15:13:07 +00:00
mjacob
a9697ee5f2
Handle > 12 byte CDBs.
2000-02-19 01:55:42 +00:00
mjacob
0e0104d0e9
There is no readily available tool to set NVRAM on isp's on sparc,
...
so ignore it.
2000-01-14 08:43:17 +00:00
mjacob
2a7d01e353
The trigger for not downloading f/w is now a
...
NULL f/w pointer, not a nonzero f/w length.
2000-01-09 18:55:11 +00:00
mjacob
250a1f41c2
The sense of being able to sleep for DMA resources was reversed. Oops.
2000-01-09 18:44:40 +00:00
mjacob
5babd2b8c9
get back to looking at config flags
1999-12-20 00:49:58 +00:00
mjacob
e6da5abb16
Add back in inclusion of microcode and rationalize it. request/response
...
queue indices need to be u_int16_t wide.
1999-12-04 02:56:30 +00:00
pk
d5a471ccc9
Check presence of Sbus interrupt properties before using them.
...
Only one case is known to trigger this omission: a Sparc Classic
configured as X terminal.
1999-11-21 15:01:50 +00:00
mjacob
44c603dd7b
Remove reference to loadable f/w.
1999-10-28 16:11:19 +00:00
mjacob
6bbb170768
We alloc xflist and dma maps in mailbox setup. We swizzle endian stuff
...
at the end of dma setup.
1999-10-14 02:16:04 +00:00
thorpej
63b8530b4e
Update for SCSPI changes.
1999-09-30 23:04:39 +00:00
pk
61e5d73035
Fix bus_size_t/size_t/int confusion.
1999-05-27 14:22:28 +00:00
pk
569836a986
It is no longer necessary to protect bus_dma_[un]load() at splbio, since
...
sparc bus_dma*() functions now protect their own internals..
1999-04-25 10:40:53 +00:00
mjacob
d8aa229a12
roll internal release tag
1999-03-26 22:45:17 +00:00
pk
54ae4d24b8
Call bus_dma_[un]load() at splbio.
1999-03-23 00:38:15 +00:00
mjacob
c312dfb410
prototype 1080/1240 support caused register offset rewhack
1999-03-17 06:17:16 +00:00
mjacob
1a911bb798
roll internal release level
1999-02-09 00:54:07 +00:00
mjacob
5c5ac2958f
roll internal release tag and finally use bus_space I/O
1999-01-30 07:10:38 +00:00
mjacob
e618c0c7d7
turn on SBUS bursts
1999-01-10 06:22:12 +00:00
mjacob
d6cab14b00
clean up headers
1998-12-28 19:12:26 +00:00
mjacob
8fdc5aee4b
Make changes as required for new return values from dma setup routine
...
for isp. Unable to test in running kernel because they're not buildable today,
but should be okay.
1998-09-18 00:26:11 +00:00
mjacob
8fec1fd696
add bustype tag to softc
1998-09-08 07:36:26 +00:00
mrg
41ad1758ac
move isp_sbus attachment into /sys/dev/sbus.
1998-08-27 11:30:45 +00:00