Module Name: src Committed By: thorpej Date: Sun Jul 4 22:36:43 UTC 2021
Modified Files: src/sys/arch/alpha/common: shared_intr.c src/sys/arch/alpha/include: intr.h pci_machdep.h src/sys/arch/alpha/jensenio: jensenio_intr.c src/sys/arch/alpha/pci: pci_1000.c pci_1000a.c pci_2100_a500.c pci_550.c pci_6600.c pci_eb164.c pci_eb64plus.c pci_eb66.c pci_kn20aa.c pci_kn300.c pci_machdep.c sio_pic.c Log Message: Reduce code duplication when setting up the interrupt handler data structures: - alpha_shared_intr_alloc() no longer takes a "string length" argument, and just uses kmem_asprintf() to create an "irq %u" string by default. This is suitable for nearly every caller. - Add a alpha_shared_intr_set_string() that allows callers to override the default IRQ description string. - Related: make alpha_shared_intr_string() return a const char *, since no callers should need to modify the string directly now. - Re-factor PCI shared interrupt structure allocation / initialization into a new alpha_pci_intr_alloc(), which is suitable for nearly every Alpha PCI platform. Callers are expected to first have initialized the interrupt hardware to the quiescent state. Adjust various call sites of above functions to account for changes, even if they are not able to use the newly re-factored code. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/alpha/common/shared_intr.c cvs rdiff -u -r1.83 -r1.84 src/sys/arch/alpha/include/intr.h cvs rdiff -u -r1.23 -r1.24 src/sys/arch/alpha/include/pci_machdep.h cvs rdiff -u -r1.15 -r1.16 src/sys/arch/alpha/jensenio/jensenio_intr.c cvs rdiff -u -r1.29 -r1.30 src/sys/arch/alpha/pci/pci_1000.c cvs rdiff -u -r1.31 -r1.32 src/sys/arch/alpha/pci/pci_1000a.c \ src/sys/arch/alpha/pci/pci_6600.c src/sys/arch/alpha/pci/pci_machdep.c cvs rdiff -u -r1.16 -r1.17 src/sys/arch/alpha/pci/pci_2100_a500.c cvs rdiff -u -r1.40 -r1.41 src/sys/arch/alpha/pci/pci_550.c cvs rdiff -u -r1.48 -r1.49 src/sys/arch/alpha/pci/pci_eb164.c cvs rdiff -u -r1.27 -r1.28 src/sys/arch/alpha/pci/pci_eb64plus.c \ src/sys/arch/alpha/pci/pci_eb66.c cvs rdiff -u -r1.57 -r1.58 src/sys/arch/alpha/pci/pci_kn20aa.c cvs rdiff -u -r1.41 -r1.42 src/sys/arch/alpha/pci/pci_kn300.c cvs rdiff -u -r1.50 -r1.51 src/sys/arch/alpha/pci/sio_pic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.