summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/serial/usb_serial.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-01-16 08:13:25 +0000
committerhselasky <hselasky@FreeBSD.org>2012-01-16 08:13:25 +0000
commit9681d0cefcc9de94e08da04552c6b7a59a1012bc (patch)
treedc536d316105d2d8e9afaedf1651828edff86cf4 /sys/dev/usb/serial/usb_serial.h
parent8c9cfa24de66dab31dbbfa02c62ec9e59ca23154 (diff)
downloadFreeBSD-src-9681d0cefcc9de94e08da04552c6b7a59a1012bc.zip
FreeBSD-src-9681d0cefcc9de94e08da04552c6b7a59a1012bc.tar.gz
Export information about USB serial port unit and port numbers
directly via the sysctl interface. Submitted by: Mykhaylo Yehorov PR: usb/164090 MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/serial/usb_serial.h')
-rw-r--r--sys/dev/usb/serial/usb_serial.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/serial/usb_serial.h b/sys/dev/usb/serial/usb_serial.h
index 5b53b89..521612b 100644
--- a/sys/dev/usb/serial/usb_serial.h
+++ b/sys/dev/usb/serial/usb_serial.h
@@ -70,6 +70,7 @@
#include <sys/tty.h>
#include <sys/serial.h>
#include <sys/fcntl.h>
+#include <sys/sysctl.h>
/* Module interface related macros */
#define UCOM_MODVER 1
@@ -132,8 +133,10 @@ struct ucom_param_task {
struct ucom_super_softc {
struct usb_process sc_tq;
- uint32_t sc_unit;
- uint32_t sc_subunits;
+ int sc_unit;
+ int sc_subunits;
+ struct sysctl_oid *sc_sysctl_ttyunit;
+ struct sysctl_oid *sc_sysctl_ttyports;
};
struct ucom_softc {
OpenPOWER on IntegriCloud