1/* $OpenBSD: isa_machdep.c,v 1.14 2017/09/08 05:36:51 deraadt Exp $ */
2/* $NetBSD: isa_machdep.c,v 1.12 1998/08/07 10:26:39 drochner Exp $ */
3
4/*
5 * Copyright (c) 1995, 1996 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Author: Chris G. Demetriou
9 *
10 * Permission to use, copy, modify and distribute this software and
11 * its documentation is hereby granted, provided that both the copyright
12 * notice and this permission notice appear in all copies of the
13 * software, derivative works or modified versions, and any portions
14 * thereof, and that both notices appear in supporting documentation.
15 *
16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 *
20 * Carnegie Mellon requests users of this software to return to
21 *
22 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
23 *  School of Computer Science
24 *  Carnegie Mellon University
25 *  Pittsburgh PA 15213-3890
26 *
27 * any improvements or extensions that they make and grant Carnegie the
28 * rights to redistribute these changes.
29 */
30
31/*
32 * Machine-specific functions for ISA autoconfiguration.
33 */
34
35#include <sys/param.h>
36#include <sys/time.h>
37#include <sys/systm.h>
38#include <sys/errno.h>
39#include <sys/device.h>
40
41#include <uvm/uvm_extern.h>
42
43#include <dev/isa/isavar.h>
44
45#include "vga.h"
46#if NVGA_ISA
47#include <dev/ic/mc6845reg.h>
48#include <dev/ic/pcdisplayvar.h>
49#include <dev/isa/vga_isavar.h>
50#endif
51
52int
53isa_display_console(iot, memt)
54	bus_space_tag_t iot, memt;
55{
56	int res = ENXIO;
57#if NVGA_ISA
58	res = vga_isa_cnattach(iot, memt);
59	if (!res)
60		return(0);
61#endif
62	return(res);
63}
64