diff options
Diffstat (limited to 'include/linux/wwan.h')
| -rw-r--r-- | include/linux/wwan.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/wwan.h b/include/linux/wwan.h index 24d76500b1cc..01fa15506286 100644 --- a/include/linux/wwan.h +++ b/include/linux/wwan.h @@ -64,11 +64,21 @@ struct wwan_port_ops {  			    poll_table *wait);  }; +/** struct wwan_port_caps - The WWAN port capbilities + * @frag_len: WWAN port TX fragments length + * @headroom_len: WWAN port TX fragments reserved headroom length + */ +struct wwan_port_caps { +	size_t frag_len; +	unsigned int headroom_len; +}; +  /**   * wwan_create_port - Add a new WWAN port   * @parent: Device to use as parent and shared by all WWAN ports   * @type: WWAN port type   * @ops: WWAN port operations + * @caps: WWAN port capabilities   * @drvdata: Pointer to caller driver data   *   * Allocate and register a new WWAN port. The port will be automatically exposed @@ -86,6 +96,7 @@ struct wwan_port_ops {  struct wwan_port *wwan_create_port(struct device *parent,  				   enum wwan_port_type type,  				   const struct wwan_port_ops *ops, +				   struct wwan_port_caps *caps,  				   void *drvdata);  /**  |