db453a7a34
This change adds a new optional console method cn_resume and a kernel console interface cnresume. Consoles that may need to re-initialize their hardware after suspend (e.g., because firmware does not care to do it) will implement cn_resume. Note that it is called in rather early environment not unlike early boot, so the same restrictions apply. Platform specific code, for platforms that support hardware suspend, should call cnresume early after resume, before any console output is expected. This change fixes a problem with a system of mine failing to resume when a serial console is used. I found that the serial port was in a strange configuration and an attempt to write to it likely resulted in an infinite loop. To avoid adding cn_resume method to every console driver, CONSOLE_DRIVER macro has been extended to support optional methods. Reviewed by: imp, mav MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D15552 |
||
---|---|---|
.. | ||
uart_bus_acpi.c | ||
uart_bus_ebus.c | ||
uart_bus_fdt.c | ||
uart_bus_isa.c | ||
uart_bus_pccard.c | ||
uart_bus_pci.c | ||
uart_bus_puc.c | ||
uart_bus_scc.c | ||
uart_bus.h | ||
uart_core.c | ||
uart_cpu_acpi.h | ||
uart_cpu_arm64.c | ||
uart_cpu_fdt.c | ||
uart_cpu_fdt.h | ||
uart_cpu_powerpc.c | ||
uart_cpu_sparc64.c | ||
uart_cpu_x86.c | ||
uart_cpu.h | ||
uart_dbg.c | ||
uart_dev_imx.c | ||
uart_dev_imx.h | ||
uart_dev_msm.c | ||
uart_dev_msm.h | ||
uart_dev_mvebu.c | ||
uart_dev_ns8250.c | ||
uart_dev_ns8250.h | ||
uart_dev_pl011.c | ||
uart_dev_quicc.c | ||
uart_dev_sab82532.c | ||
uart_dev_snps.c | ||
uart_dev_ti8250.c | ||
uart_dev_z8530.c | ||
uart_if.m | ||
uart_kbd_sun_tables.h | ||
uart_kbd_sun.c | ||
uart_kbd_sun.h | ||
uart_ppstypes.h | ||
uart_subr.c | ||
uart_tty.c | ||
uart.h |