NetBSD/sys
mjacob 219d22404b Major restructuring for swizzling to the request queue and unswizzling from
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have
a complete set of inline functions in isp_inline.h. Each platform is
responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32}
macros.

The reason this needs to be done is that we need to have a single set of
functions that will work correctly on multiple architectures for both little
and big endian machines. It also needs to work correctly in the case that
we have the request or response queues in memory that has to be treated
specially (e.g., have ddi_dma_sync called on it for Solaris after we update
it or before we read from it).

One thing that falls out of this is that we no longer build requests in the
request queue itself. Instead, we build the request locally (e.g., on the
stack) and then as part of the swizzling operation, copy it to the request
queue entry we've allocated. I thought long and hard about whether this was
too expensive a change to make as it in a lot of cases requires an extra
copy. On balance, the flexbility is worth it. With any luck, the entry that
we build locally stays in a processor writeback cache (after all, it's only
64 bytes) so that the cost of actually flushing it to the memory area that is
the shared queue with the PCI device is not all that expensive. We may examine
this again and try to get clever in the future to try and avoid copies.

Another change that falls out of this is that MEMORYBARRIER should be taken
a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the
entry being added. But there had been many other places this had been missing.
It's now very important that it be done.

For NetBSD, it does a ddi_dmamap_sync as appropriate. This gets us out of
the explicit ddi_dmamap_sync on the whole response queue that we did for SBus
cards at each interrupt.

Set things up so that platforms that cannot have an SBus don't get a lot of
the SBus code checks (dead coded out).

Additional changes:

Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry,
the iptr value that gets returned is the value we intend to eventually plug
into the ISP registers as the entry *one past* the last one we've written-
*not* the current entry we're updating. All along we've been calling sync
functions on the wrong index value. Argh. The 'fix' here is to rename all
'iptr' variables as 'nxti' to remember that this is the 'next' pointer-
not the current pointer.

Devote a single bit to mboxbsy- and set aside bits for output mbox registers
that we need to pick up- we can have at least one command which does not
have any defined output registers (MBOX_EXECUTE_FIRMWARE).

Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response.
Otherwise, we won't unswizzle it correctly.

Nuke some additional __P macros.
2001-12-14 00:13:44 +00:00
..
adosfs
altq
arch Fix problem introduced with the MKMAN->NOMAN conversion. 2001-12-13 22:33:20 +00:00
coda add a VOP_PUTPAGES method for all the filesystems that don't have pages, 2001-12-06 04:27:40 +00:00
compat MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
conf mk48txx needs-flag to allow sparc's clock.c to be compiled without 2001-12-10 22:36:21 +00:00
crypto fix cast128 with shorter key length. sync with kame 2001-11-27 11:19:36 +00:00
ddb - pull in opt_kgdb.h where necessary 2001-11-20 08:43:19 +00:00
dev Major restructuring for swizzling to the request queue and unswizzling from 2001-12-14 00:13:44 +00:00
filecorefs
gdbscripts
ipkdb
isofs delint -- you can't cast an lvalue 2001-11-17 18:56:46 +00:00
kern fix typo in #ifdef __FreeBSD__ 2001-12-11 18:15:09 +00:00
lib MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
lkm YANOMAN= 2001-12-13 01:26:39 +00:00
miscfs replace "vnode" and "vtext" with "file" and "exec" in uvmexp field names. 2001-12-09 03:07:43 +00:00
msdosfs VOP_PUTPAGES() requires page-aligned offsets, so be sure to provide such. 2001-11-30 07:05:53 +00:00
net Enable active LCP keepalive handling in the PPP layer, the PPPoE layer 2001-12-10 23:23:24 +00:00
netatalk
netccitt Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
netinet correct timing to increment icmp6 MIB variables. sync with kame 2001-12-07 10:10:43 +00:00
netinet6 correct timing to increment icmp6 MIB variables. sync with kame 2001-12-07 10:10:43 +00:00
netisdn
netiso MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
netkey
netnatm
netns
netsmb
nfs - Implement 2001-12-08 04:09:59 +00:00
ntfs add a VOP_PUTPAGES method for all the filesystems that don't have pages, 2001-12-06 04:27:40 +00:00
stand bring back. we need to fix these, not remove them. 2001-12-01 02:15:39 +00:00
sys Add support for dumping ELF-cormat core files. 2001-12-09 23:05:56 +00:00
ufs add a VOP_PUTPAGES method for all the filesystems that don't have pages, 2001-12-06 04:27:40 +00:00
uvm Move the code that walks the process's VM map during a coredump 2001-12-10 01:52:26 +00:00
Makefile add 'lkm' to SUBDIR - it got mistakely got removed in last revision 2001-12-02 00:47:21 +00:00