Deleted Added
full compact
pckbd.c (51056) pckbd.c (51276)
1/*
2 * Copyright (c) 1999 FreeBSD(98) port team.
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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*
2 * Copyright (c) 1999 FreeBSD(98) port team.
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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/pc98/cbus/pckbd.c 51056 1999-09-07 11:17:09Z kato $
28 * $FreeBSD: head/sys/pc98/cbus/pckbd.c 51276 1999-09-14 12:57:40Z nyan $
29 */
30
31#include "pckbd.h"
32#include "opt_kbd.h"
33
34#if NPCKBD > 0
35
36#include <sys/param.h>

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

91static int pckbd_attach_unit(int unit, keyboard_t **kbd,
92 int port, int irq, int flags);
93static timeout_t pckbd_timeout;
94
95
96static int
97pckbdprobe(device_t dev)
98{
29 */
30
31#include "pckbd.h"
32#include "opt_kbd.h"
33
34#if NPCKBD > 0
35
36#include <sys/param.h>

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

91static int pckbd_attach_unit(int unit, keyboard_t **kbd,
92 int port, int irq, int flags);
93static timeout_t pckbd_timeout;
94
95
96static int
97pckbdprobe(device_t dev)
98{
99 /* Check isapnp ids */
100 if (isa_get_vendorid(dev))
101 return (ENXIO);
102
99 device_set_desc(dev, "PC-98 Keyboard");
100
101 return pckbd_probe_unit(device_get_unit(dev), isa_get_port(dev),
102 (1 << isa_get_irq(dev)), device_get_flags(dev));
103}
104
105static int
106pckbdattach(device_t dev)

--- 824 unchanged lines hidden ---
103 device_set_desc(dev, "PC-98 Keyboard");
104
105 return pckbd_probe_unit(device_get_unit(dev), isa_get_port(dev),
106 (1 << isa_get_irq(dev)), device_get_flags(dev));
107}
108
109static int
110pckbdattach(device_t dev)

--- 824 unchanged lines hidden ---