/* * Copyright (c) 2016-2017, Linaro Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */#ifndef __QCOM_GLINK_NATIVE_H__#define __QCOM_GLINK_NATIVE_H__structqcom_glink_pipe{size_tlength;size_t(*avail)(structqcom_glink_pipe*glink_pipe);void(*peak)(structqcom_glink_pipe*glink_pipe,void*data,size_tcount);void(*advance)(structqcom_glink_pipe*glink_pipe,size_tcount);void(*write)(structqcom_glink_pipe*glink_pipe,constvoid*hdr,size_thlen,constvoid*data,size_tdlen);};structqcom_glink;structqcom_glink*qcom_glink_native_probe(structdevice*dev,structqcom_glink_pipe*rx,structqcom_glink_pipe*tx);voidqcom_glink_native_remove(structqcom_glink*glink);#endif