summaryrefslogtreecommitdiffstats
path: root/sys/dev/digi/digi.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-06-20 14:52:08 +0000
committerbrian <brian@FreeBSD.org>2001-06-20 14:52:08 +0000
commitf1ae94cd5c8a240b33b2df0f489e143061e3fb99 (patch)
tree70f9f9cacd5686674ad202ece4b1ea589c517ac3 /sys/dev/digi/digi.h
parentad9f44ed8a9dbd2902fba4d3585bd8dd2cbb6cb7 (diff)
downloadFreeBSD-src-f1ae94cd5c8a240b33b2df0f489e143061e3fb99.zip
FreeBSD-src-f1ae94cd5c8a240b33b2df0f489e143061e3fb99.tar.gz
Allow individual ports to use alternate pin settings (swap dsr & cd)
via the new DIGIIO_SETALTPIN ioctl, and allow the port's ALTPIN setting to be queried via DIGIIO_GETALTPIN. The initial state and lock devices are normally used to set and/or lock ALTPIN settings although the device itself may also be used. ALTPIN settings are applied per-device and apply to both the callin and callout device at the same time.
Diffstat (limited to 'sys/dev/digi/digi.h')
-rw-r--r--sys/dev/digi/digi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/digi/digi.h b/sys/dev/digi/digi.h
index 69509b4..cba2e1c 100644
--- a/sys/dev/digi/digi.h
+++ b/sys/dev/digi/digi.h
@@ -118,6 +118,12 @@ struct digi_p {
tcflag_t c_iflag; /* hold true IXON/IXOFF/IXANY */
int lcc, lostcc, lbuf;
u_char send_ring;
+
+ unsigned laltpin : 1; /* Alternate pin settings locked */
+ unsigned ialtpin : 1; /* Initial alternate pin settings */
+
+ int cd; /* Depends on the altpin setting */
+ int dsr;
};
/*
OpenPOWER on IntegriCloud