Deleted Added
full compact
syscons_isa.c (46743) syscons_isa.c (47618)
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $Id: syscons_isa.c,v 1.2 1999/04/16 21:22:35 peter Exp $
26 * $Id: syscons_isa.c,v 1.3 1999/05/08 21:59:31 dfr Exp $
27 */
28
29#include "sc.h"
30#include "opt_syscons.h"
31
32#if NSC > 0
33
34#include <sys/param.h>

--- 27 unchanged lines hidden (view full) ---

62 "sc",
63 sc_methods,
64 1, /* XXX */
65};
66
67static int
68scprobe(device_t dev)
69{
27 */
28
29#include "sc.h"
30#include "opt_syscons.h"
31
32#if NSC > 0
33
34#include <sys/param.h>

--- 27 unchanged lines hidden (view full) ---

62 "sc",
63 sc_methods,
64 1, /* XXX */
65};
66
67static int
68scprobe(device_t dev)
69{
70 /* No pnp support */
71 if (isa_get_vendorid(dev))
72 return (ENXIO);
73
70 device_set_desc(dev, "System console");
71 return sc_probe_unit(device_get_unit(dev), isa_get_flags(dev));
72}
73
74static int
75scattach(device_t dev)
76{
77 return sc_attach_unit(device_get_unit(dev), isa_get_flags(dev));
78}
79
80DRIVER_MODULE(sc, isa, sc_driver, sc_devclass, 0, 0);
81
82#endif /* NSC > 0 */
74 device_set_desc(dev, "System console");
75 return sc_probe_unit(device_get_unit(dev), isa_get_flags(dev));
76}
77
78static int
79scattach(device_t dev)
80{
81 return sc_attach_unit(device_get_unit(dev), isa_get_flags(dev));
82}
83
84DRIVER_MODULE(sc, isa, sc_driver, sc_devclass, 0, 0);
85
86#endif /* NSC > 0 */