1127664Sbms/*- 2172677Smlaier * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> 3190225Srpaulo * All rights reserved. 4127664Sbms * 5127664Sbms * Redistribution and use in source and binary forms, with or without 6127664Sbms * modification, are permitted provided that the following conditions 7127664Sbms * are met: 8127664Sbms * 1. Redistributions of source code must retain the above copyright 9127664Sbms * notice, this list of conditions and the following disclaimer. 10127664Sbms * 2. Redistributions in binary form must reproduce the above copyright 11127664Sbms * notice, this list of conditions and the following disclaimer in the 12127664Sbms * documentation and/or other materials provided with the distribution. 13127664Sbms * 14127664Sbms * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15172677Smlaier * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16172677Smlaier * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17172677Smlaier * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18172677Smlaier * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19127664Sbms * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20127664Sbms * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21127664Sbms * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22127664Sbms * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23127664Sbms * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24127664Sbms * SUCH DAMAGE. 25127664Sbms * 26127664Sbms * $FreeBSD$ 27127664Sbms */ 28127664Sbms 29127664Sbmsstruct physical; 30127664Sbmsstruct device; 31127664Sbms 32127664Sbms#define DEF_TTYCDDELAY 1 /* Default ``set cd'' value */ 33127664Sbms 34127664Sbmsextern struct device *tty_Create(struct physical *); 35127664Sbmsextern struct device *tty_iov2device(int, struct physical *, 36214518Srpaulo struct iovec *, int *, int, int *, int *); 37127664Sbmsextern unsigned tty_DeviceSize(void); 38127664Sbms