summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1995-02-28 00:21:11 +0000
committerpst <pst@FreeBSD.org>1995-02-28 00:21:11 +0000
commit9b98fb36dc05ba21e4898c983c58bc0eb8f669b4 (patch)
tree91c6a33544eb4628383ab7c05b8571d00b6f35d3 /sys/dev/cy
parent2b514bef5110bbe670f032770ac8769b1f371b4c (diff)
downloadFreeBSD-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')
-rw-r--r--sys/dev/cy/cy.c12
-rw-r--r--sys/dev/cy/cy_isa.c12
2 files changed, 2 insertions, 22 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;
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index ff67eb4..f9defd0 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.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;
OpenPOWER on IntegriCloud