summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/testlog.stp
diff options
context:
space:
mode:
authorfche <fche>2008-01-28 20:59:25 +0000
committerfche <fche>2008-01-28 20:59:25 +0000
commit0f16be729dd58136d9791f6fc5d492f34bbbeeba (patch)
treee330ac37eeaa349ab167a77e0979ecbff8e83a04 /testsuite/systemtap.samples/testlog.stp
parent395d6cf1121410e4795193ee42fb1890d1695907 (diff)
downloadsystemtap-steved-0f16be729dd58136d9791f6fc5d492f34bbbeeba.tar.gz
systemtap-steved-0f16be729dd58136d9791f6fc5d492f34bbbeeba.tar.xz
systemtap-steved-0f16be729dd58136d9791f6fc5d492f34bbbeeba.zip
update copyright years for recent checkins
Diffstat (limited to 'testsuite/systemtap.samples/testlog.stp')
0 files changed, 0 insertions, 0 deletions
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Early debug UART support
 *
 * (C) Copyright 2014 Google, Inc
 * Writte by Simon Glass <sjg@chromium.org>
 */

#ifndef _DEBUG_UART_H
#define _DEBUG_UART_H

/*
 * The debug UART is intended for use very early in U-Boot to debug problems
 * when an ICE or other debug mechanism is not available.
 *
 * To use it you should:
 * - Make sure your UART supports this interface
 * - Enable CONFIG_DEBUG_UART
 * - Enable the CONFIG for your UART to tell it to provide this interface
 *       (e.g. CONFIG_DEBUG_UART_NS16550)
 * - Define the required settings as needed (see below)
 * - Call debug_uart_init() before use
 * - Call printch() to output a character
 *
 * Depending on your platform it may be possible to use this UART before a
 * stack is available.
 *
 * If your UART does not support this interface you can probably add support
 * quite easily. Remember that you cannot use driver model and it is preferred
 * to use no stack.
 *
 * You must not use this UART once driver model is working and the serial
 * drivers are up and running (done in serial_init()). Otherwise the drivers
 * may conflict and you will get strange output.
 *
 *
 * To enable the debug UART in your serial driver:
 *
 * - #include <debug_uart.h>
 * - Define _debug_uart_init(), trying to avoid using the stack
 * - Define _debug_uart_putc() as static inline (avoiding stack usage)
 * - Immediately afterwards, add DEBUG_UART_FUNCS to define the rest of the
 *     functionality (printch(), etc.)
 *
 * If your board needs additional init for the UART to work, enable
 * CONFIG_DEBUG_UART_BOARD_INIT and write a function called