/** * DOC: MEI_GSC_PROXY Client Driver * * The mei_gsc_proxy driver acts as a translation layer between * proxy user (I915) and ME FW by proxying messages to ME FW
*/
/** * mei_gsc_proxy_send - Sends a proxy message to ME FW. * @dev: device corresponding to the mei_cl_device * @buf: a message buffer to send * @size: size of the message * Return: bytes sent on Success, <0 on Failure
*/ staticint mei_gsc_proxy_send(struct device *dev, constvoid *buf, size_t size)
{
ssize_t ret;
if (!dev || !buf) return -EINVAL;
ret = mei_cldev_send(to_mei_cl_device(dev), buf, size); if (ret < 0)
dev_dbg(dev, "mei_cldev_send failed. %zd\n", ret);
return ret;
}
/** * mei_gsc_proxy_recv - Receives a proxy message from ME FW. * @dev: device corresponding to the mei_cl_device * @buf: a message buffer to contain the received message * @size: size of the buffer * Return: bytes received on Success, <0 on Failure
*/ staticint mei_gsc_proxy_recv(struct device *dev, void *buf, size_t size)
{
ssize_t ret;
if (!dev || !buf) return -EINVAL;
ret = mei_cldev_recv(to_mei_cl_device(dev), buf, size); if (ret < 0)
dev_dbg(dev, "mei_cldev_recv failed. %zd\n", ret);
/** * mei_gsc_proxy_component_match - compare function for matching mei. * * The function checks if the device is pci device and * Intel VGA adapter, the subcomponent is SW Proxy * and the VGA is on the bus 0 reserved for built-in devices * to reject discrete GFX. * * @dev: master device * @subcomponent: subcomponent to match (I915_COMPONENT_SWPROXY) * @data: compare data (mei pci parent) * * Return: * * 1 - if components match * * 0 - otherwise
*/ staticint mei_gsc_proxy_component_match(struct device *dev, int subcomponent, void *data)
{ struct pci_dev *pdev;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.