Update for the ucom(4) addition.
This commit is contained in:
parent
a2b1ac707a
commit
85fcd0b58d
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: Makefile,v 1.125 2000/01/24 15:33:12 ad Exp $
|
||||
# $NetBSD: Makefile,v 1.126 2000/01/25 08:32:05 augustss Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/18/93
|
||||
|
||||
MAN= ahb.4 ahc.4 aria.4 atalk.4 audio.4 awi.4 bha.4 bpf.4 cardbus.4 ccd.4 \
|
||||
cd.4 ch.4 clcs.4 clnp.4 cltp.4 cnw.4 ddb.4 dpt.4 drum.4 eap.4 eisa.4 en.4 \
|
||||
ep.4 esh.4 esis.4 eso.4 exphy.4 fd.4 fpa.4 fms.4 fxp.4 \
|
||||
cd.4 ch.4 clcs.4 clnp.4 cltp.4 cnw.4 ddb.4 dpt.4 drum.4 eap.4 eisa.4 \
|
||||
en.4 ep.4 esh.4 esis.4 eso.4 exphy.4 fd.4 fpa.4 fms.4 fxp.4 \
|
||||
gre.4 icmp.4 icsphy.4 idp.4 ifmedia.4 inet.4 inphy.4 \
|
||||
iophy.4 ip.4 ipip.4 iso.4 isp.4 lc.4 lkm.4 lo.4 lxtphy.4 \
|
||||
mbe.4 md.4 mhzc.4 midi.4 mii.4 mpu.4 mtio.4 ncr.4 ne.4 netintro.4 \
|
||||
|
@ -17,7 +17,8 @@ MAN= ahb.4 ahc.4 aria.4 atalk.4 audio.4 awi.4 bha.4 bpf.4 cardbus.4 ccd.4 \
|
|||
wsmouse.4 wsmux.4 ym.4 zero.4 zstty.4
|
||||
|
||||
# USB devices
|
||||
MAN+= uaudio.4 ugen.4 uhid.4 ukbd.4 ulpt.4 umass.4 umodem.4 ums.4 usb.4 \
|
||||
MAN+= uaudio.4 ucom.4 ugen.4 uhid.4 ukbd.4 ulpt.4 umass.4 \
|
||||
umodem.4 ums.4 usb.4 \
|
||||
aue.4 cue.4 kue.4 \
|
||||
uhci.4 ohci.4
|
||||
|
||||
|
|
|
@ -0,0 +1,80 @@
|
|||
.\" $NetBSD: ucom.4,v 1.1 2000/01/25 08:32:04 augustss Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" This code is derived from software contributed to The NetBSD Foundation
|
||||
.\" by Lennart Augustsson.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by the NetBSD
|
||||
.\" Foundation, Inc. and its contributors.
|
||||
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
||||
.\" contributors may be used to endorse or promote products derived
|
||||
.\" from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd November 25, 1999
|
||||
.Dt UCOM 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm ucom
|
||||
.Nd USB tty support
|
||||
.Sh SYNOPSIS
|
||||
.\"Cd "ucom* at uetekcom? portno ?"
|
||||
.Cd "ucom* at umodem? portno ?"
|
||||
.Pp
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
driver attaches to USB modems, serial ports, and other devices that need
|
||||
to look like a tty.
|
||||
The
|
||||
.Nm
|
||||
driver shows a behaviour like a
|
||||
.Xr tty 4 .
|
||||
This means that normal programs such as
|
||||
.Xr tip 1
|
||||
or
|
||||
.Xr pppd 8
|
||||
can be used to access the device.
|
||||
.Pp
|
||||
The
|
||||
.Va portno
|
||||
locator can be used to decide which port to use for device that have
|
||||
multiple external ports.
|
||||
.Sh FILES
|
||||
.Bl -tag -width Pa
|
||||
.It Pa /dev/ttyU?
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr tty 4 ,
|
||||
.\"Xr uetekcom 4 ,
|
||||
.Xr umodem 4 ,
|
||||
.Xr usb 4
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm
|
||||
driver
|
||||
appeared in
|
||||
.Nx 1.5 .
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: umodem.4,v 1.3 1999/08/23 12:32:19 augustss Exp $
|
||||
.\" $NetBSD: umodem.4,v 1.4 2000/01/25 08:32:05 augustss Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -42,6 +42,7 @@
|
|||
.Nd USB modem support
|
||||
.Sh SYNOPSIS
|
||||
.Cd "umodem* at uhub?"
|
||||
.Cd "ucom* at umodem?"
|
||||
.Pp
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
|
@ -54,24 +55,16 @@ The commands can either be multiplxed with the data stream
|
|||
or handled through separate pipes. In the latter case the AT
|
||||
commands have to be given on device separate from the data device.
|
||||
.Pp
|
||||
The
|
||||
.Nm
|
||||
driver shows a behaviour like a
|
||||
The device is accessed through the
|
||||
.Xr ucom 4
|
||||
driver which makes it behave like a
|
||||
.Xr tty 4 .
|
||||
This means that normal programs such as
|
||||
.Xr tip 1
|
||||
or
|
||||
.Xr pppd 8
|
||||
can be used to access the modem.
|
||||
.Sh FILES
|
||||
.Bl -tag -width Pa
|
||||
.It Pa /dev/ttyU?
|
||||
.El
|
||||
.Sh BUGS
|
||||
Only modems with multiplexed commands and data are supported
|
||||
at the moment.
|
||||
.Sh SEE ALSO
|
||||
.Xr tty 4 ,
|
||||
.Xr ucom 4 ,
|
||||
.Xr usb 4
|
||||
.Sh HISTORY
|
||||
The
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.c,v 1.42 2000/01/20 17:15:20 mjacob Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.43 2000/01/25 08:31:56 augustss Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991 The Regents of the University of California.
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.42 2000/01/20 17:15:20 mjacob Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.43 2000/01/25 08:31:56 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -192,8 +192,8 @@ cdev_decl(uhid);
|
|||
cdev_decl(ugen);
|
||||
#include "ulpt.h"
|
||||
cdev_decl(ulpt);
|
||||
#include "umodem.h"
|
||||
cdev_decl(umodem);
|
||||
#include "ucom.h"
|
||||
cdev_decl(ucom);
|
||||
|
||||
#ifdef __I4B_IS_INTEGRATED
|
||||
/* open, close, ioctl */
|
||||
|
@ -320,7 +320,7 @@ struct cdevsw cdevsw[] =
|
|||
cdev_notdef(), /* 55 */
|
||||
#endif
|
||||
cdev_mouse_init(NWSMUX, wsmux), /* 56: ws multiplexor */
|
||||
cdev_tty_init(NUMODEM, umodem), /* 57: USB modem */
|
||||
cdev_tty_init(NUCOM, ucom), /* 57: USB tty */
|
||||
cdev_ses_init(NSES,ses), /* 58: SCSI SES/SAF-TE */
|
||||
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: ALPHA,v 1.112 2000/01/20 17:14:42 mjacob Exp $
|
||||
# $NetBSD: ALPHA,v 1.113 2000/01/25 08:31:57 augustss Exp $
|
||||
#
|
||||
# Alpha kernel with all the options you'd want, and more.
|
||||
|
||||
|
@ -387,6 +387,7 @@ ulpt* at uhub? port ? configuration ? interface ?
|
|||
|
||||
# USB Modem
|
||||
umodem* at uhub? port ? configuration ?
|
||||
ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: ENIWETOK,v 1.15 2000/01/19 03:05:06 mycroft Exp $
|
||||
# $NetBSD: ENIWETOK,v 1.16 2000/01/25 08:31:57 augustss Exp $
|
||||
# From: GENERIC,v 1.139 2000/01/19 03:01:46 mycroft Exp
|
||||
#
|
||||
# Mycroft's AS200.
|
||||
|
@ -377,6 +377,7 @@ fd* at fdc? drive ?
|
|||
|
||||
# USB Modem
|
||||
#umodem* at uhub? port ? configuration ?
|
||||
#ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
#umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# $NetBSD: GENERIC,v 1.141 2000/01/23 23:46:04 hubertf Exp $
|
||||
# $NetBSD: GENERIC,v 1.142 2000/01/25 08:31:58 augustss Exp $
|
||||
#
|
||||
# Generic Alpha kernel. Enough to get booted, etc., but not much more.
|
||||
|
||||
include "arch/alpha/conf/std.alpha"
|
||||
|
||||
#ident "GENERIC-$Revision: 1.141 $"
|
||||
#ident "GENERIC-$Revision: 1.142 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
|
@ -353,6 +353,7 @@ ulpt* at uhub? port ? configuration ? interface ?
|
|||
|
||||
# USB Modem
|
||||
umodem* at uhub? port ? configuration ?
|
||||
ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.c,v 1.40 1999/08/16 22:27:13 augustss Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.41 2000/01/25 08:31:59 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
|
@ -183,7 +183,7 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
|
|||
#include "ugen.h"
|
||||
#include "ugen.h"
|
||||
#include "ulpt.h"
|
||||
#include "umodem.h"
|
||||
#include "ucom.h"
|
||||
#include "vcoda.h" /* coda file system */
|
||||
#include "wsdisplay.h"
|
||||
#include "wskbd.h"
|
||||
|
@ -285,7 +285,7 @@ struct cdevsw cdevsw[] = {
|
|||
cdev_disk_init(NRAID,raid), /* 71: RAIDframe disk driver */
|
||||
cdev_ugen_init(NUGEN,ugen), /* 72: USB generic driver */
|
||||
cdev_mouse_init(NWSMUX,wsmux), /* 73: ws multiplexor */
|
||||
cdev_tty_init(NUMODEM,umodem), /* 74: USB modem */
|
||||
cdev_tty_init(NUCOM,ucom), /* 74: USB tty */
|
||||
};
|
||||
|
||||
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: CATS,v 1.22 2000/01/17 17:47:04 augustss Exp $
|
||||
# $NetBSD: CATS,v 1.23 2000/01/25 08:31:59 augustss Exp $
|
||||
#
|
||||
# CATS -- CHALTECH CATS Development kernel
|
||||
#
|
||||
|
@ -307,6 +307,7 @@ ulpt* at uhub? port ? configuration ? interface ?
|
|||
|
||||
# USB Modem
|
||||
umodem* at uhub? port ? configuration ?
|
||||
ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.h,v 1.12 1999/08/18 23:34:27 sommerfeld Exp $ */
|
||||
/* $NetBSD: conf.h,v 1.13 2000/01/25 08:32:00 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
|
@ -158,7 +158,7 @@ cdev_decl(usb);
|
|||
cdev_decl(uhid);
|
||||
cdev_decl(ugen);
|
||||
cdev_decl(ulpt);
|
||||
cdev_decl(umodem);
|
||||
cdev_decl(ucom);
|
||||
cdev_decl(vc_nb_);
|
||||
cdev_decl(wsdisplay);
|
||||
cdev_decl(wskbd);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: BIKINI,v 1.22 2000/01/17 17:47:05 augustss Exp $
|
||||
# $NetBSD: BIKINI,v 1.23 2000/01/25 08:32:00 augustss Exp $
|
||||
# From: GENERIC,v 1.260 1999/09/28 18:07:29 thorpej Exp
|
||||
#
|
||||
# BIKINI -- Mycroft's development machine
|
||||
|
@ -540,6 +540,7 @@ uhub* at uhub? port ? configuration ? interface ?
|
|||
|
||||
# USB Modem
|
||||
#umodem* at uhub? port ? configuration ?
|
||||
#ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
#umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# $NetBSD: GENERIC,v 1.294 2000/01/24 01:09:57 augustss Exp $
|
||||
# $NetBSD: GENERIC,v 1.295 2000/01/25 08:32:01 augustss Exp $
|
||||
#
|
||||
# GENERIC -- everything that's currently supported
|
||||
#
|
||||
|
||||
include "arch/i386/conf/std.i386"
|
||||
|
||||
#ident "GENERIC-$Revision: 1.294 $"
|
||||
#ident "GENERIC-$Revision: 1.295 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
|
@ -588,6 +588,7 @@ ulpt* at uhub? port ? configuration ? interface ?
|
|||
|
||||
# USB Modem
|
||||
umodem* at uhub? port ? configuration ?
|
||||
ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: TRINITY,v 1.90 2000/01/17 17:47:07 augustss Exp $
|
||||
# $NetBSD: TRINITY,v 1.91 2000/01/25 08:32:02 augustss Exp $
|
||||
# From: GENERIC,v 1.260 1999/09/28 18:07:29 thorpej Exp
|
||||
#
|
||||
# TRINITY -- Mycroft's laptop
|
||||
|
@ -542,6 +542,7 @@ ne* at pcmcia? function ? # NE2000-compatible Ethernet
|
|||
|
||||
# USB Modem
|
||||
#umodem* at uhub? port ? configuration ?
|
||||
#ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
#umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: ZYGORTHIAN-SPACE-RAIDERS,v 1.19 2000/01/25 01:10:50 mycroft Exp $
|
||||
# $NetBSD: ZYGORTHIAN-SPACE-RAIDERS,v 1.20 2000/01/25 08:32:02 augustss Exp $
|
||||
# From: GENERIC,v 1.260 1999/09/28 18:07:29 thorpej Exp
|
||||
#
|
||||
# GENERIC -- everything that's currently supported
|
||||
|
@ -548,6 +548,7 @@ ate0 at isa? port 0x2a0 irq ? # AT1700
|
|||
|
||||
# USB Modem
|
||||
#umodem* at uhub? port ? configuration ?
|
||||
#ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
#umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.c,v 1.115 1999/08/16 22:27:14 augustss Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.116 2000/01/25 08:32:03 augustss Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -203,8 +203,8 @@ cdev_decl(uhid);
|
|||
cdev_decl(ugen);
|
||||
#include "ulpt.h"
|
||||
cdev_decl(ulpt);
|
||||
#include "umodem.h"
|
||||
cdev_decl(umodem);
|
||||
#include "ucom.h"
|
||||
cdev_decl(ucom);
|
||||
#include "vcoda.h"
|
||||
cdev_decl(vc_nb_);
|
||||
|
||||
|
@ -359,7 +359,7 @@ struct cdevsw cdevsw[] =
|
|||
cdev_esh_init(NESH, esh_fp), /* 63: HIPPI (esh) raw device */
|
||||
cdev_ugen_init(NUGEN,ugen), /* 64: USB generic driver */
|
||||
cdev_mouse_init(NWSMUX, wsmux), /* 65: ws multiplexor */
|
||||
cdev_tty_init(NUMODEM,umodem), /* 66: USB modem */
|
||||
cdev_tty_init(NUCOM, ucom), /* 66: USB tty */
|
||||
};
|
||||
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
|
||||
|
||||
|
@ -468,6 +468,7 @@ static int chrtoblktbl[] = {
|
|||
/* 64 */ NODEV,
|
||||
/* 65 */ NODEV,
|
||||
/* 66 */ NODEV,
|
||||
/* 67 */ NODEV,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# $NetBSD: GENERIC,v 1.48 2000/01/23 23:46:14 hubertf Exp $
|
||||
# $NetBSD: GENERIC,v 1.49 2000/01/25 08:32:03 augustss Exp $
|
||||
#
|
||||
# GENERIC -- everything that's currently supported
|
||||
#
|
||||
|
||||
include "arch/macppc/conf/std.macppc"
|
||||
|
||||
#ident "GENERIC-$Revision: 1.48 $"
|
||||
#ident "GENERIC-$Revision: 1.49 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
|
@ -228,6 +228,7 @@ ulpt* at uhub? port ? configuration ? interface ?
|
|||
|
||||
# USB Modem
|
||||
umodem* at uhub? port ? configuration ?
|
||||
ucom* at umodem?
|
||||
|
||||
# USB Mass Storage
|
||||
umass* at uhub? port ? configuration ? interface ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.c,v 1.16 1999/10/15 12:24:37 tsubai Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.17 2000/01/25 08:32:04 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
|
@ -141,8 +141,8 @@ cdev_decl(uhid);
|
|||
cdev_decl(ugen);
|
||||
#include "ulpt.h"
|
||||
cdev_decl(ulpt);
|
||||
#include "umodem.h"
|
||||
cdev_decl(umodem);
|
||||
#include "ucom.h"
|
||||
cdev_decl(ucom);
|
||||
|
||||
#include "com.h"
|
||||
cdev_decl(com);
|
||||
|
@ -192,7 +192,7 @@ struct cdevsw cdevsw[] = {
|
|||
cdev_lpt_init(NULPT,ulpt), /* 41: USB printer */
|
||||
cdev_ugen_init(NUGEN,ugen), /* 42: USB generic driver */
|
||||
cdev_mouse_init(NWSMUX,wsmux), /* 43: ws multiplexor */
|
||||
cdev_tty_init(NUMODEM,umodem), /* 44: USB modem */
|
||||
cdev_tty_init(NUMODEM,ucom), /* 44: USB tty */
|
||||
cdev_tty_init(NCOM,com), /* 45: NS16x50 compatible ports */
|
||||
};
|
||||
int nchrdev = sizeof cdevsw / sizeof cdevsw[0];
|
||||
|
|
Loading…
Reference in New Issue