Deleted Added
full compact
sio_pccard.c (86909) sio_pccard.c (86912)
1/*
2 * Copyright (c) 2001 M. Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
1/*
2 * Copyright (c) 2001 M. Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/dev/sio/sio_pccard.c 86909 2001-11-26 07:39:51Z imp $
24 * $FreeBSD: head/sys/dev/sio/sio_pccard.c 86912 2001-11-26 12:29:53Z nyan $
25 */
26
27#include <sys/param.h>
28#include <sys/systm.h>
29#include <sys/bus.h>
30#include <sys/conf.h>
31#include <sys/kernel.h>
32#include <sys/lock.h>

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

87
88 return(ENXIO);
89}
90
91static int
92sio_pccard_probe(dev)
93 device_t dev;
94{
25 */
26
27#include <sys/param.h>
28#include <sys/systm.h>
29#include <sys/bus.h>
30#include <sys/conf.h>
31#include <sys/kernel.h>
32#include <sys/lock.h>

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

87
88 return(ENXIO);
89}
90
91static int
92sio_pccard_probe(dev)
93 device_t dev;
94{
95
96#ifdef PC98
97 SET_FLAG(dev, SET_IFTYPE(COM_IF_MODEM_CARD));
98#endif
95 /* Do not probe IRQ - pccard doesn't turn on the interrupt line */
96 /* until bus_setup_intr */
97 return (sioprobe(dev, 0, 1));
98}
99
100static int
101sio_pccard_attach(dev)
102 device_t dev;

--- 12 unchanged lines hidden ---
99 /* Do not probe IRQ - pccard doesn't turn on the interrupt line */
100 /* until bus_setup_intr */
101 return (sioprobe(dev, 0, 1));
102}
103
104static int
105sio_pccard_attach(dev)
106 device_t dev;

--- 12 unchanged lines hidden ---