diff options
author | pst <pst@FreeBSD.org> | 1995-02-28 00:21:11 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1995-02-28 00:21:11 +0000 |
commit | 9b98fb36dc05ba21e4898c983c58bc0eb8f669b4 (patch) | |
tree | 91c6a33544eb4628383ab7c05b8571d00b6f35d3 /sys/dev/cy/cy.c | |
parent | 2b514bef5110bbe670f032770ac8769b1f371b4c (diff) | |
download | FreeBSD-src-9b98fb36dc05ba21e4898c983c58bc0eb8f669b4.zip FreeBSD-src-9b98fb36dc05ba21e4898c983c58bc0eb8f669b4.tar.gz |
Incorporate bde's code-review comments.
(a) bring back ttselect, now that we have xxxdevtotty() it isn't dangerous.
(b) remove all of the wrappers that have been replaced by ttselect
(c) fix formatting in syscons.c and definition in syscons.h
(d) add cxdevtotty
NOT DONE:
(e) make pcvt work... it was already broken...when someone fixes pcvt to
link properly, just rename get_pccons to xxxdevtotty and we're done
Diffstat (limited to 'sys/dev/cy/cy.c')
-rw-r--r-- | sys/dev/cy/cy.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index ff67eb4..f9defd0 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.2 1995/02/15 18:41:41 bde Exp $ + * $Id: cy.c,v 1.3 1995/02/25 20:09:12 pst Exp $ */ /* @@ -1512,16 +1512,6 @@ cydevtotty(dev_t dev) } int -cyselect(dev_t dev, int rw, struct proc *p) -{ - u_char unit = UNIT(dev); - if (unit >= /* NCY * ? */ PORTS_PER_CYCLOM) - return (ENXIO); - - return (ttyselect(info[unit]->tty, rw, p)); -} - -int cyspeed(int speed, int *prescaler_io) { int actual; |