Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/isa/sbc.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
u_int32_t bd_ver; | u_int32_t bd_ver; | ||||
}; | }; | ||||
static int sbc_probe(device_t dev); | static int sbc_probe(device_t dev); | ||||
static int sbc_attach(device_t dev); | static int sbc_attach(device_t dev); | ||||
static void sbc_intr(void *p); | static void sbc_intr(void *p); | ||||
static struct resource *sbc_alloc_resource(device_t bus, device_t child, int type, int *rid, | static struct resource *sbc_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags); | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags); | ||||
static int sbc_release_resource(device_t bus, device_t child, int type, int rid, | static int sbc_release_resource(device_t bus, device_t child, int type, int rid, | ||||
struct resource *r); | struct resource *r); | ||||
static int sbc_setup_intr(device_t dev, device_t child, struct resource *irq, | static int sbc_setup_intr(device_t dev, device_t child, struct resource *irq, | ||||
int flags, | int flags, | ||||
driver_filter_t *filter, | driver_filter_t *filter, | ||||
driver_intr_t *intr, | driver_intr_t *intr, | ||||
void *arg, void **cookiep); | void *arg, void **cookiep); | ||||
static int sbc_teardown_intr(device_t dev, device_t child, struct resource *irq, | static int sbc_teardown_intr(device_t dev, device_t child, struct resource *irq, | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
} else i++; | } else i++; | ||||
} | } | ||||
sbc_unlock(scp); | sbc_unlock(scp); | ||||
return (ret > 0)? EINVAL : 0; | return (ret > 0)? EINVAL : 0; | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
sbc_alloc_resource(device_t bus, device_t child, int type, int *rid, | sbc_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct sbc_softc *scp; | struct sbc_softc *scp; | ||||
int *alloced, rid_max, alloced_max; | int *alloced, rid_max, alloced_max; | ||||
struct resource **res; | struct resource **res; | ||||
#ifdef PC98 | #ifdef PC98 | ||||
int i; | int i; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |