/* * Copyright (C) ST-Ericsson AB 2010 * Author: Sjur Brendeland * License terms: GNU General Public License (GPL) version 2 */ #ifndef CAIF_DEVICE_H_ #define CAIF_DEVICE_H_ #include <linux/kernel.h> #include <linux/net.h> #include <linux/netdevice.h> #include <linux/caif/caif_socket.h> #include <net/caif/caif_device.h> /** * struct caif_dev_common - data shared between CAIF drivers and stack. * @flowctrl: Flow Control callback function. This function is * supplied by CAIF Core Stack and is used by CAIF * Link Layer to send flow-stop to CAIF Core. * The flow information will be distributed to all * clients of CAIF. * * @link_select: Profile of device, either high-bandwidth or * low-latency. This member is set by CAIF Link * Layer Device in order to indicate if this device * is a high bandwidth or low latency device. * * @use_frag: CAIF Frames may be fragmented. * Is set by CAIF Link Layer in order to indicate if the * interface receives fragmented frames that must be * assembled by CAIF Core Layer. * * @use_fcs: Indicate if Frame CheckSum (fcs) is used. * Is set if the physical interface is * using Frame Checksum on the CAIF Frames. * * @use_stx: Indicate STart of frame eXtension (stx) in use. * Is set if the CAIF Link Layer expects * CAIF Frames to start with the STX byte. * * This structure is shared between the CAIF drivers and the CAIF stack. * It is used by the device to register its behavior. * CAIF Core layer must set the member flowctrl in order to supply * CAIF Link Layer with the flow control function. * */ struct caif_dev_common { void (*flowctrl)(struct net_device *net, int on); enum caif_link_selector link_select; int use_frag; int use_fcs; int use_stx; }; #endif /* CAIF_DEVICE_H_ */ xt.git/tree/include/dt-bindings/pinctrl/mt6397-pinfunc.h?id=01b1aa359dd481579de6047af8d7874e6e529585'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl/mt6397-pinfunc.h?id=01b1aa359dd481579de6047af8d7874e6e529585'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/pinctrl/mt6397-pinfunc.h?id=01b1aa359dd481579de6047af8d7874e6e529585'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/pinctrl/mt6397-pinfunc.h'> <input type='hidden' name='id' value='01b1aa359dd481579de6047af8d7874e6e529585'/><input type='hidden' name='showmsg' value='1'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=01b1aa359dd481579de6047af8d7874e6e529585&showmsg=1'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=01b1aa359dd481579de6047af8d7874e6e529585&showmsg=1'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings?id=01b1aa359dd481579de6047af8d7874e6e529585&showmsg=1'>dt-bindings</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/pinctrl?id=01b1aa359dd481579de6047af8d7874e6e529585&showmsg=1'>pinctrl</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/pinctrl/mt6397-pinfunc.h?id=01b1aa359dd481579de6047af8d7874e6e529585&showmsg=1'>mt6397-pinfunc.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/pinctrl/mt6397-pinfunc.h?id=01b1aa359dd481579de6047af8d7874e6e529585'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>