From f1ae94cd5c8a240b33b2df0f489e143061e3fb99 Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 20 Jun 2001 14:52:08 +0000 Subject: 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. --- sys/dev/digi/digi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/dev/digi/digi.h') 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; }; /* -- cgit v1.1