1/*- 2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org> 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 --- 23 unchanged lines hidden (view full) --- 32 * PCIIA compatible cards. 33 * 34 * Tested and known working: 35 * "B&C Microsystems PC488A-0" 36 * 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/dev/ieee488/pcii.c 166914 2007-02-23 19:34:52Z imp $"); |
41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/lock.h> 45#include <sys/mutex.h> 46#include <sys/kernel.h> 47#include <sys/module.h> 48#include <sys/bus.h> --- 95 unchanged lines hidden (view full) --- 144 145 device_set_desc(dev, "PCII IEEE-4888 controller"); 146 147 error = bus_alloc_resources(dev, pcii_res_spec, sc->res); 148 if (error) 149 return (error); 150 151 error = bus_setup_intr(dev, sc->res[0], |
152 INTR_TYPE_MISC | INTR_MPSAFE, NULL, |
153 upd7210intr, &sc->upd7210, &sc->intr_handler); 154 if (error) { 155 bus_release_resources(dev, pcii_res_spec, sc->res); 156 return (error); 157 } 158 159 for (rid = 0; rid < 8; rid++) { 160 sc->upd7210.reg_res[rid] = sc->res[2]; --- 14 unchanged lines hidden --- |