usb: gadget: u_serial: allow more console gadget ports
Allow configuring more than one console using USB serial or ACM gadget. By default, only first (ttyGS0) is a console, but this may be changed using function's new "console" attribute. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:

committed by
Felipe Balbi

parent
b417343c6a
commit
d7cb8fb7aa
@@ -58,6 +58,13 @@ int gserial_alloc_line_no_console(unsigned char *port_line);
|
||||
int gserial_alloc_line(unsigned char *port_line);
|
||||
void gserial_free_line(unsigned char port_line);
|
||||
|
||||
#ifdef CONFIG_U_SERIAL_CONSOLE
|
||||
|
||||
ssize_t gserial_set_console(unsigned char port_num, const char *page, size_t count);
|
||||
ssize_t gserial_get_console(unsigned char port_num, char *page);
|
||||
|
||||
#endif /* CONFIG_U_SERIAL_CONSOLE */
|
||||
|
||||
/* connect/disconnect is handled by individual functions */
|
||||
int gserial_connect(struct gserial *, u8 port_num);
|
||||
void gserial_disconnect(struct gserial *);
|
||||
|
Reference in New Issue
Block a user