Sync with sys/i386/isa/syscons.c revision 1.263.

This commit is contained in:
kato 1998-06-15 13:06:33 +00:00
parent a91f714a56
commit 988417407e

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.86 1998/05/17 11:53:30 phk Exp $
* $Id: syscons.c,v 1.87 1998/06/08 08:55:46 kato Exp $
*/
#include "sc.h"
@ -153,6 +153,7 @@ static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
static void *sc_vga_devfs_token;
static void *sc_mouse_devfs_token;
static void *sc_console_devfs_token;
#endif
@ -924,6 +925,7 @@ scattach(struct isa_device *dev)
for (vc = 0; vc < MAXCONS; vc++)
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga");
sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "sysmouse");
sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR,