isa_common.h (c3959391205ed8e27ed60988ab117c6c8ed5a173) | isa_common.h (01f1aed25930c0c11fe222fd88475b81959ae981) |
---|---|
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 --- 51 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 */ | 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 --- 51 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(void); | 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 | 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 |