History log of /src/sys/arch/alpha/tc/tcasic.c |
Revision | | Date | Author | Comments |
1.52 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.51 |
| 07-May-2021 |
thorpej | branches: 1.51.6; Static'ify more symbols.
|
1.50 |
| 24-Apr-2021 |
thorpej | branches: 1.50.2; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.49 |
| 25-Sep-2020 |
thorpej | branches: 1.49.4; Changes to make interrupt {,dis}establish MP-safe on Alpha: - Protect all of the system interrupt linkage with the cpu_lock mutex. - Re-order some of the stores to the SCB vector table to make it safe in the face of lockless interrupt dispatch. - Add a framework for routing interrupts to specific CPUs. Interrupts are still funneled only to the primary CPU, but that will change for some systems soon. Ensure that interrupt handler lists are manipulated only on the CPUs that handle that specific interrupt source. This required a re-factor of the alpha_shared_intr_*() family of functions. - Enable __HAVE_INTR_CONTROL, although interrupt redistribution is still a no-op. - Reduce code duplication in the Jenson direct-SCB interrupt handlers.
|
1.48 |
| 22-Sep-2020 |
thorpej | 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.47 |
| 22-Jun-2017 |
flxd | spelling (DEC called it "TURBOchannel")
|
1.46 |
| 09-Jun-2017 |
flxd | Make VAXstation 4000 TURBOchannel adaptor work. PIO and IRQ tested on VS4000/60 and /96 with TC-USB (slhci) and PMAD-AA (le). DMA is untested. vax needs space to be mapped out, so memory space is pre-mapped for TC option drivers not bus_space'ified yet, also providing custom bus_space methods for this kludge.
|
1.45 |
| 12-Dec-2016 |
flxd | branches: 1.45.8; Clean-up (remove redundant declarations, concentrate checks).
|
1.44 |
| 06-Feb-2012 |
matt | branches: 1.44.6; 1.44.24; 1.44.28; 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.43 |
| 04-Jun-2011 |
tsutsui | branches: 1.43.2; 1.43.6; Split device_t/softc. pmax is tested on GXemul. Compile test only for alpha and vax.
XXX: alpha/tc/tcasic.c calls tcattach() via config_found(9), but XXX: pmax/tc/tcbus.c and vax/vsa/tc_vsbus.c calls tcattach() directly. XXX: It looks horrible...
|
1.42 |
| 14-Mar-2009 |
dsl | branches: 1.42.4; 1.42.6; 1.42.10; Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.41 |
| 14-Mar-2009 |
dsl | Remove all the __P() from sys (excluding sys/dist) Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
|
1.40 |
| 03-Dec-2007 |
ad | branches: 1.40.18; 1.40.26; 1.40.32; Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high. - Acquire kernel_lock only for interrupts at IPL_VM. - Implement threaded soft interrupts.
|
1.39 |
| 01-Jan-2003 |
thorpej | branches: 1.39.18; 1.39.60; 1.39.78; 1.39.80; 1.39.86; Use aprint_normal() for cfprint routines.
|
1.38 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.37 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.36 |
| 23-Aug-2001 |
nisimura | branches: 1.36.2; Add MX (PMAG-A), CX (PMAG-B), TX (PMAG-RO/PMAG[B]-J) TC framebuffer supports. None of them has any acceleration capability.
|
1.35 |
| 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.34 |
| 04-Mar-2001 |
ad | branches: 1.34.4; Hook in px & pxg devices.
|
1.33 |
| 22-Feb-2001 |
nisimura | Add code segment for PMAGD, which is under development this moment.
|
1.32 |
| 23-Dec-2000 |
tron | Fix typo in last commit.
|
1.31 |
| 22-Dec-2000 |
ad | In tc_fb_cnattach(): match from a table, and add #ifdef'ed out glue for the px/pxg devices.
|
1.30 |
| 05-Jun-2000 |
thorpej | Switch to the new `evcnt' mechanism for counting interrupts. Maintain a per-CPU interrupt counter for clock, device, and interprocessor interrupts.
|
1.29 |
| 04-Jun-2000 |
cgd | Implement the more flexiable `evcnt' interface as discussed (briefly) on tech-kern and now documented in evcnt(9).
|
1.28 |
| 26-Mar-2000 |
nisimura | branches: 1.28.2; - Remove unused bt459reg.h. - sfbvar.h has gone, placing patch on holes for now. Every TC framebuffer has a single explosure of xxfb_cnattach() which could be bridged by MI land.
|
1.27 |
| 07-Aug-1999 |
drochner | branches: 1.27.2; clean up error handling in TC graphics console attachment: all functions return 0 on success and an errno on failure
|
1.26 |
| 10-Apr-1999 |
cgd | be more consistent about use of 'cputype'. e.g. it's in a header, don't bother 'externing' it everywhere!
|
1.25 |
| 19-Nov-1998 |
ross | branches: 1.25.6; More include shuffling.
|
1.24 |
| 22-Oct-1998 |
briggs | Preliminary support for both serial consoles and kbd/display wscons consoles for TC alphas. Based on code from Takuya Koumoto <takuya-k@is.aist-nara.ac.jp> as well as some parts of Toru Nishimura's and Matthias Drochner's work on pmax wscons. This relies on the NEW_SCC_DRIVER.
|
1.23 |
| 14-May-1998 |
thorpej | Garbage-collect the old confargs stuff that was used in the Early Days. It isn't really appropriate anymore. Replace it with a real mainbus attach args structure.
|
1.22 |
| 19-Jan-1998 |
thorpej | Pass a pointer to the "get this slot's DMA tag" function pointer to the tc instance just like we do with the interrupt functions.
|
1.21 |
| 12-Jan-1998 |
thorpej | Adjust for config changes.
|
1.20 |
| 02-Sep-1997 |
thorpej | Pull in DEC_3000_300 and DEC_3000_500 options.
|
1.19 |
| 02-Sep-1997 |
thorpej | Nuke the idea of <machine/options.h>. It completely defeats the purpose of fine-grain option dependencies.
|
1.18 |
| 06-Jun-1997 |
thorpej | branches: 1.18.4; Pull thorpej-bus-dma branch into mainline.
|
1.17 |
| 07-Apr-1997 |
cgd | branches: 1.17.2; by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries. This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS options, which is present but commented out in the ALPHA config file. In ELF-format kernels, these strings are present in the kernel binary but are not loaded into memory. (In ECOFF-format kernels, there's no easy way to keep them from being loaded, so they _are_ loaded into memory.)
|
1.16 |
| 06-Apr-1997 |
cgd | clean up NetBSD RCS ID strings, include machine/options.h
|
1.15 |
| 08-Dec-1996 |
cgd | remove all traces of __BROKEN_INDIRECT_CONFIG (except in shared drivers)
|
1.14 |
| 05-Dec-1996 |
cgd | update these so they compile whether or not __BROKEN_INDIRECT_CONFIG is defined.
|
1.13 |
| 15-Nov-1996 |
cgd | branches: 1.13.2; Include a PMAGB-BA in the list of built-in devices only if SV_GRAPHICS is set in the RPB's rpb_variation field. This fixes a bug where machines (e.g. the 3000/900) would see that they could touch memory where a built-in PMAGB-BA, assume that it was there, and panic later because the memory they were accessing didn't look like PMAGB-BA registers (because it wasn't).
|
1.12 |
| 23-Oct-1996 |
cgd | update for new bus.h macros. bus_io_* and bus_mem_* integrated into single bus_space_* framework. Unfortunately, bus_space_{read,write}_* operations still imply barriers. That will change soon.
|
1.11 |
| 22-Oct-1996 |
cgd | update for new bus.h
|
1.10 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.9 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.8 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.7 |
| 14-Jul-1996 |
cgd | (1) Clean up interrupt handling slightly.
|
1.6 |
| 09-Jul-1996 |
cgd | clean and update for new defintions, prototypes, etc.
|
1.5 |
| 17-May-1996 |
cgd | branches: 1.5.4; set up a bus_chpiset_tag_t, and pass it to the TC code
|
1.4 |
| 12-Apr-1996 |
cgd | clean up copyrights and RCS IDs
|
1.3 |
| 12-Apr-1996 |
cgd | update for latest MI TC and SCSI code, and clean up in the face of config changes.
|
1.2 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.1 |
| 20-Dec-1995 |
cgd | update for new turbochannel configuration code.
|
1.5.4.1 |
| 05-Dec-1996 |
rat | Patch request from Chris Demetriou <cgd@NetBSD.ORG>
>Include a PMAGB-BA in the list of built-in devices only if SV_GRAPHICS >is set in the RPB's rpb_variation field. This fixes a bug where machines >(e.g. the 3000/900) would see that they could touch memory where a built-in >PMAGB-BA, assume that it was there, and panic later because the memory they >were accessing didn't look like PMAGB-BA registers (because it wasn't).
|
1.13.2.4 |
| 07-Jun-1997 |
cgd | syng thorpej-bus-dma changes with alpha-nwscons branch
|
1.13.2.3 |
| 01-Jun-1997 |
cgd | sync the nwscons branch up with yesterday's version of the trunk. Lots of conflicts/changes because of the RCS Id format changes. Also, a few cleanups and corrections.
|
1.13.2.2 |
| 08-Dec-1996 |
cgd | sync __BROKEN_INDIRECT_CONFIG removal with trunk.
|
1.13.2.1 |
| 07-Dec-1996 |
cgd | mostly sync with changes on the trunk
|
1.17.2.2 |
| 06-Jun-1997 |
thorpej | Split DEC 3000/300 and 3000/500 DMA functions into separate files, suggested by Chris Demetriou <cgd@netbsd.org>.
|
1.17.2.1 |
| 03-Jun-1997 |
thorpej | Call tc_dma_init() to intialize DMA-related things.
|
1.18.4.1 |
| 04-Sep-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.25.6.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.27.2.3 |
| 12-Mar-2001 |
bouyer | Sync with HEAD.
|
1.27.2.2 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.27.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.28.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.34.4.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.34.4.2 |
| 25-Aug-2001 |
thorpej | Merge Aug 24 -current into the kqueue branch.
|
1.34.4.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.36.2.3 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.36.2.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.36.2.1 |
| 23-Aug-2001 |
nathanw | file tcasic.c was added on branch nathanw_sa on 2002-10-18 02:34:33 +0000
|
1.39.86.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.39.80.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.39.78.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.39.60.1 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.39.18.1 |
| 07-Dec-2007 |
yamt | sync with head
|
1.40.32.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.40.26.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.40.18.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.42.10.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.42.6.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.42.4.1 |
| 12-Jun-2011 |
rmind | sync with head
|
1.43.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.43.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.44.28.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.44.24.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.44.24.1 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.44.6.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.45.8.1 |
| 01-Jul-2017 |
snj | Pull up following revision(s) (requested by flxd in ticket #65): share/man/man4/tc.4: revision 1.7 sys/arch/alpha/tc/tcasic.c: revision 1.46 sys/arch/pmax/tc/tcbus.c: revision 1.33 sys/arch/vax/conf/files.vax: revision 1.121 sys/arch/vax/vsa/tc_vsbus.c: revision 1.8, 1.9 sys/dev/tc/tc.c: revision 1.55 sys/dev/tc/tcvar.h: revision 1.27 Make VAXstation 4000 TURBOchannel adaptor work. PIO and IRQ tested on VS4000/60 and /96 with TC-USB (slhci) and PMAD-AA (le). DMA is untested. vax needs space to be mapped out, so memory space is pre-mapped for TC option drivers not bus_space'ified yet, also providing custom bus_space methods for this kludge. -- whitespace -- Add vax.
|
1.49.4.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.50.2.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|
1.51.6.1 |
| 03-Aug-2021 |
thorpej | Adapt to CFARGS().
|