18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * n_tracesink.h - Kernel driver API to route trace data in kernel space. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) Intel 2011 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * The PTI (Parallel Trace Interface) driver directs trace data routed from 108c2ecf20Sopenharmony_ci * various parts in the system out through the Intel Penwell PTI port and 118c2ecf20Sopenharmony_ci * out of the mobile device for analysis with a debugging tool 128c2ecf20Sopenharmony_ci * (Lauterbach, Fido). This is part of a solution for the MIPI P1149.7, 138c2ecf20Sopenharmony_ci * compact JTAG, standard. 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * This header file is used by n_tracerouter to be able to send the 168c2ecf20Sopenharmony_ci * data of it's tty port to the tty port this module sits. This 178c2ecf20Sopenharmony_ci * mechanism can also be used independent of the PTI module. 188c2ecf20Sopenharmony_ci * 198c2ecf20Sopenharmony_ci */ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#ifndef N_TRACESINK_H_ 228c2ecf20Sopenharmony_ci#define N_TRACESINK_H_ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_civoid n_tracesink_datadrain(u8 *buf, int count); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif 27