1/*- 2 * Copyright (c) 1999 Doug Rabson 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/isa/isa_common.h 88376 2001-12-21 21:54:56Z tmm $ |
27 */ 28 29/* 30 * Parts of the ISA bus implementation common to all architectures. 31 * 32 * Drivers must not depend on information in this file as it can change 33 * without notice. 34 */ --- 25 unchanged lines hidden (view full) --- 60 int id_config_attr; /* pnp config attributes */ 61}; 62 63#define DEVTOISA(dev) ((struct isa_device *) device_get_ivars(dev)) 64 65/* 66 * These functions are architecture dependant. 67 */ |
68extern void isa_init(device_t dev); |
69extern struct resource *isa_alloc_resource(device_t bus, device_t child, 70 int type, int *rid, 71 u_long start, u_long end, 72 u_long count, u_int flags); 73extern int isa_release_resource(device_t bus, device_t child, 74 int type, int rid, 75 struct resource *r); 76 77/* XXX alphe declares these elsewhere */ 78#ifndef __alpha__ 79extern int isa_setup_intr(device_t bus, device_t child, 80 struct resource *r, int flags, 81 void (*ihand)(void *), void *arg, void **cookiep); 82extern int isa_teardown_intr(device_t bus, device_t child, 83 struct resource *r, void *cookie); 84#endif 85 |