Lines Matching +full:used +full:- +full:by +full:- +full:rtas
1 // SPDX-License-Identifier: GPL-2.0
4 * Adapted from 'alpha' version by Gary Thomas
5 * Modified by Cort Dougan (cort@cs.nmt.edu)
40 #include <asm/pci-bridge.h>
49 #include <asm/rtas.h>
62 /* Used for doing CHRP event-scans */
68 /* To be replaced by RTAS when available */
82 "Asynchronous", "Reserved", "Flow-Through Synchronous",
86 "Disabled", "Write-Through", "Copy-Back", "Transparent Mode"
253 * Per default, input/output-device points to the keyboard/screen
254 * If no card is installed, the built-in serial port is used as a fallback.
256 * to the built-in serial node. Instead, a /failsafe node is created.
277 property = of_get_property(of_chosen, "linux,stdout-path", NULL); in chrp_init()
313 } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) { in chrp_setup_arch()
329 /* use RTAS time-of-day routines if available */ in chrp_setup_arch()
336 /* On pegasos, enable the L2 cache if not already done by OF */ in chrp_setup_arch()
346 * can be printed. -- Cort in chrp_setup_arch()
359 chip->irq_eoi(&desc->irq_data); in chrp_8259_cascade()
363 * Finds the open-pic node and sets up the mpic driver.
375 np = of_find_node_by_type(NULL, "open-pic"); in chrp_find_openpic()
380 opprop = of_get_property(root, "platform-open-pic", &oplen); in chrp_find_openpic()
384 opaddr = opprop[na-1]; /* assume 32-bit */ in chrp_find_openpic()
397 iranges = of_get_property(np, "interrupt-ranges", &len); in chrp_find_openpic()
399 len = 0; /* non-distributed mpic */ in chrp_find_openpic()
404 * The first pair of cells in interrupt-ranges refers to the in chrp_find_openpic()
416 iranges[0], iranges[0] + iranges[1] - 1); in chrp_find_openpic()
427 j = na - 1; in chrp_find_openpic()
432 iranges[0], iranges[0] + iranges[1] - 1, in chrp_find_openpic()
434 mpic_assign_isu(chrp_mpic, i - 1, opprop[j]); in chrp_find_openpic()
451 for_each_node_by_type(np, "interrupt-controller") in chrp_find_8259()
461 printk(KERN_ERR "i8259: Not found in device-tree" in chrp_find_8259()
468 * we ever see a problem, we can try to re-use the pSeries code here. in chrp_find_8259()
469 * Also, Pegasos-type platforms don't have a proper node to start in chrp_find_8259()
474 "8259-interrupt-acknowledge", NULL); in chrp_find_8259()
478 chrp_int_ack = addrp[of_n_addr_cells(np)-1]; in chrp_find_8259()
524 if (of_node_is_type(kbd->parent, "adb")) in chrp_init_IRQ()