Lines Matching +full:machine +full:- +full:level
1 // SPDX-License-Identifier: GPL-2.0
40 #include <asm/pci-bridge.h>
62 /* Used for doing CHRP event-scans */
82 "Asynchronous", "Reserved", "Flow-Through Synchronous",
86 "Disabled", "Write-Through", "Copy-Back", "Transparent Mode"
108 seq_printf(m, "machine\t\t: CHRP %s\n", model); in chrp_show_cpuinfo()
176 static void __init sio_fixup_irq(const char *name, u8 device, u8 level, in sio_fixup_irq() argument
186 if (level0 != level || type0 != type || !active) { in sio_fixup_irq()
187 printk(KERN_WARNING "sio: %s irq level %d, type %d, %sactive: " in sio_fixup_irq()
188 "remapping to level %d, type %d, active\n", in sio_fixup_irq()
189 name, level0, type0, !active ? "in" : "", level, type); in sio_fixup_irq()
191 sio_write(level, 0x70); in sio_fixup_irq()
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()
300 const char *machine = NULL; in chrp_setup_arch() local
306 machine = of_get_property(root, "model", NULL); in chrp_setup_arch()
307 if (machine && strncmp(machine, "Pegasos", 7) == 0) { in chrp_setup_arch()
309 } else if (machine && strncmp(machine, "IBM", 3) == 0) { in chrp_setup_arch()
311 } else if (machine && strncmp(machine, "MOT", 3) == 0) { in chrp_setup_arch()
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()
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()