isa_common.h (633eb1fc9eaad65884cc8475c7c9f0ac823cbb5b) | isa_common.h (09aafea1c6836ca1eeb8bd739f5420b68d6476e0) |
---|---|
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 --- 34 unchanged lines hidden (view full) --- 43 struct isa_config ice_config; 44}; 45 46/* 47 * The structure used to attach devices to the isa bus. 48 */ 49struct isa_device { 50 struct resource_list id_resources; | 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 --- 34 unchanged lines hidden (view full) --- 43 struct isa_config ice_config; 44}; 45 46/* 47 * The structure used to attach devices to the isa bus. 48 */ 49struct isa_device { 50 struct resource_list id_resources; |
51 u_int32_t id_vendorid; /* pnp vendor id */ 52 u_int32_t id_serial; /* pnp serial */ 53 u_int32_t id_logicalid; /* pnp logical device id */ 54 u_int32_t id_compatid; /* pnp compat device id */ | 51 uint32_t id_vendorid; /* pnp vendor id */ 52 uint32_t id_serial; /* pnp serial */ 53 uint32_t id_logicalid; /* pnp logical device id */ 54 uint32_t id_compatid; /* pnp compat device id */ |
55 struct isa_config_list id_configs; /* pnp config alternatives */ 56 isa_config_cb *id_config_cb; /* callback function */ 57 void *id_config_arg; /* callback argument */ 58 int id_config_attr; /* pnp config attributes */ 59}; 60 61#define DEVTOISA(dev) ((struct isa_device *) device_get_ivars(dev)) 62 63/* 64 * These functions are architecture dependant. 65 */ 66extern void isa_init(device_t dev); 67extern struct resource *isa_alloc_resource(device_t bus, device_t child, | 55 struct isa_config_list id_configs; /* pnp config alternatives */ 56 isa_config_cb *id_config_cb; /* callback function */ 57 void *id_config_arg; /* callback argument */ 58 int id_config_attr; /* pnp config attributes */ 59}; 60 61#define DEVTOISA(dev) ((struct isa_device *) device_get_ivars(dev)) 62 63/* 64 * These functions are architecture dependant. 65 */ 66extern void isa_init(device_t dev); 67extern struct resource *isa_alloc_resource(device_t bus, device_t child, |
68 int type, int *rid, 69 u_long start, u_long end, 70 u_long count, u_int flags); | 68 int type, int *rid, u_long start, u_long end, u_long count, u_int flags); |
71extern int isa_release_resource(device_t bus, device_t child, | 69extern int isa_release_resource(device_t bus, device_t child, |
72 int type, int rid, 73 struct resource *r); | 70 int type, int rid, struct resource *r); |
74 75/* XXX alphe declares these elsewhere */ 76#ifndef __alpha__ | 71 72/* XXX alphe declares these elsewhere */ 73#ifndef __alpha__ |
77extern int isa_setup_intr(device_t bus, device_t child, 78 struct resource *r, int flags, 79 void (*ihand)(void *), void *arg, void **cookiep); 80extern int isa_teardown_intr(device_t bus, device_t child, 81 struct resource *r, void *cookie); | 74extern int isa_setup_intr(device_t bus, device_t child, struct resource *r, 75 int flags, void (*ihand)(void *), void *arg, void **cookiep); 76extern int isa_teardown_intr(device_t bus, device_t child, struct resource *r, 77 void *cookie); |
82#endif 83 | 78#endif 79 |