Deleted Added
full compact
ida_eisa.c (60041) ida_eisa.c (63934)
1/*
2 * Copyright (c) 2000 Jonathan Lemon
3 * Copyright (c) 1999 by Matthew N. Dodd <winter@jurai.net>
4 * All Rights Reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright (c) 2000 Jonathan Lemon
3 * Copyright (c) 1999 by Matthew N. Dodd <winter@jurai.net>
4 * All Rights Reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/ida/ida_eisa.c 60041 2000-05-05 09:59:14Z phk $
27 * $FreeBSD: head/sys/dev/ida/ida_eisa.c 63934 2000-07-27 22:24:44Z jlemon $
28 */
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/bus.h>
34
35#include <sys/bio.h>

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

310 error = bus_setup_intr(dev, ida->irq, INTR_TYPE_BIO,
311 ida_intr, ida, &ida->ih);
312 if (error) {
313 device_printf(dev, "can't setup interrupt\n");
314 ida_free(ida);
315 return (ENOMEM);
316 }
317
28 */
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/bus.h>
34
35#include <sys/bio.h>

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

310 error = bus_setup_intr(dev, ida->irq, INTR_TYPE_BIO,
311 ida_intr, ida, &ida->ih);
312 if (error) {
313 device_printf(dev, "can't setup interrupt\n");
314 ida_free(ida);
315 return (ENOMEM);
316 }
317
318 ida->flags = 0;
318 error = ida_init(ida);
319 if (error) {
320 ida_free(ida);
321 return (error);
322 }
323
324 ida_attach(ida);
319 error = ida_init(ida);
320 if (error) {
321 ida_free(ida);
322 return (error);
323 }
324
325 ida_attach(ida);
325 ida->flags = IDA_ATTACHED;
326 ida->flags |= IDA_ATTACHED;
326
327 return (0);
328}
329
330DRIVER_MODULE(ida, eisa, ida_eisa_driver, ida_devclass, 0, 0);
327
328 return (0);
329}
330
331DRIVER_MODULE(ida, eisa, ida_eisa_driver, ida_devclass, 0, 0);