Home | History | Annotate | Download | only in pci
History log of /src/sys/arch/alpha/pci/ttwogavar.h
RevisionDateAuthorComments
 1.8  04-Dec-2023  thorpej Convert the Alpha port's bus_space back-end to manage address space
with vmem(9) arenas (using statically-allocated private boundary tags
for very early-in-boot) rather than extent(9).

As a side-effect, there's arguments to some initialization functions
that are no longer required, so garbage-collect those, update all the
call sites.
 1.7  08-May-2021  thorpej More symbol sanitizing.
 1.6  22-Sep-2020  thorpej branches: 1.6.6;
Changes to make MPSAFE interrupts work on Alpha:

- Remove the ipl argument to scb_set() and the associated array of
"mpsafe" booleans initialized based on the ipl. It was bogus
anyway; all IPL_{BIO,NET,TTY}, etc. values are aliases of IPL_VM,
and for all practical purposes, there is really only one device
interrrupt level on Alpha anyway. Intead, we now treat all dispatches
from the SCB vector table as MP-safe, and it is now the handler for
that vector who is responsible for acquiring the KERNEL_LOCK if needed.

- Update the direct interrupt vector handlers in jensenio and TURBOchannel
to acquire the KERNEL_LOCK.

- Introduce a new ALPHA_INTR_MPSAFE flag, and add a flags argument to
alpha_shared_intr_establish(). When it is set, indicate that the
handler is MP-safe. Update alpha_shared_intr_dispatch() to pay
attention and acquire the KERNEL_LOCK (or not) as indicated.

- Re-factor all of the PCI interrupt handling, providing "generic PCI"
"PCI interrupts through ISA IRQs" implementations to significantly
reduce code duplication. Supplement the PCI chipset tag with more
info to facilitate this, and make the PCI interrupt-related routines
take a pci_chipset_tag_t argument rather than a void * argument.

- Because PCI interrupts on KN8AE are dispatched directly from the
SCB, provide a wrapper for non-MPSAFE interrupt handlers that
acquires the KERNEL_LOCK.

- Change the pci_intr_handle_t type to be a struct rather than an
integer type in order to catch any direct use of it as a value.
Add a set of functions to interact with pci_intr_handle_t, including
setting interrupt flags.

- Implement pci_intr_setattr() so that the PCI_INTR_MPSAFE attribute
can be set on a pci_intr_handle_t.

- While I'm here, make all of the MI PCI back-end operations call
through real functions rather than hopping directly through function
pointers in the chipset tag.

This change looks a lot bigger than it really is because of the re-factor
in the plethora of model-specific PCI interrupt back-ends. The KN8AE,
KN300, and T2/T3/T4 (Sable) are largely un-changed.
 1.5  17-Jun-2020  thorpej #include <sys/extent.h> explicitly.
 1.4  06-Feb-2012  matt Do a minor cleanup of alpha (this will make applying pullups post branching
easier).
u_int{8,16,32,64}_t -> uint{*}_t
Change all old-style definitions to C89 prototypes.
Whitespace cleanup.
Constification in db_disasm.c
 1.3  28-Apr-2008  martin branches: 1.3.34; 1.3.38;
Remove clause 3 and 4 from TNF licenses
 1.2  27-Jul-2001  thorpej branches: 1.2.2; 1.2.124; 1.2.126; 1.2.128;
Rework the interrupt code, shaving some cycles off in the process.
Rather than an "iointr" routine that decomposes a vector into an
IRQ, we maintain a vector table directly, hooking up each "iointr"
routine at the correct vector. This also allows us to hook device
interrupts up to specific vectors (c.f. Jensen).

We can shave even more cycles off, here, and I will, but it requires
some changes to the alpha_shared_intr stuff.
 1.1  21-Dec-2000  thorpej branches: 1.1.2; 1.1.6;
Add support for the AlphaServer 2100 (Sable) and the AlphaServer 2100A
(Lynx), written from scratch by me over a year ago, but never committed
to the tree because there was a bug I could never quite find. I have
fixed a few problems in the code, but still don't know if that bug is
quite fixed. Since I don't have access to the hardware directly, I'll
have to call for testers again.
 1.1.6.1  03-Aug-2001  lukem update to -current
 1.1.2.2  05-Jan-2001  bouyer Sync with HEAD
 1.1.2.1  21-Dec-2000  bouyer file ttwogavar.h was added on branch thorpej_scsipi on 2001-01-05 17:33:50 +0000
 1.2.128.1  16-May-2008  yamt sync with head.
 1.2.126.1  18-May-2008  yamt sync with head.
 1.2.124.1  02-Jun-2008  mjf Sync with HEAD.
 1.2.2.2  27-Jul-2001  thorpej Rework the interrupt code, shaving some cycles off in the process.
Rather than an "iointr" routine that decomposes a vector into an
IRQ, we maintain a vector table directly, hooking up each "iointr"
routine at the correct vector. This also allows us to hook device
interrupts up to specific vectors (c.f. Jensen).

We can shave even more cycles off, here, and I will, but it requires
some changes to the alpha_shared_intr stuff.
 1.2.2.1  27-Jul-2001  thorpej file ttwogavar.h was added on branch nathanw_sa on 2001-07-27 00:25:22 +0000
 1.3.38.1  18-Feb-2012  mrg merge to -current.
 1.3.34.1  17-Apr-2012  yamt sync with head
 1.6.6.1  13-May-2021  thorpej Sync with HEAD.

RSS XML Feed