Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/isa/gusc.c
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
typedef struct gusc_softc *sc_p; | typedef struct gusc_softc *sc_p; | ||||
static int gusc_probe(device_t dev); | static int gusc_probe(device_t dev); | ||||
static int gusc_attach(device_t dev); | static int gusc_attach(device_t dev); | ||||
static int gusisa_probe(device_t dev); | static int gusisa_probe(device_t dev); | ||||
static void gusc_intr(void *); | static void gusc_intr(void *); | ||||
static struct resource *gusc_alloc_resource(device_t bus, device_t child, int type, int *rid, | static struct resource *gusc_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 gusc_release_resource(device_t bus, device_t child, int type, int rid, | static int gusc_release_resource(device_t bus, device_t child, int type, int rid, | ||||
struct resource *r); | struct resource *r); | ||||
static device_t find_masterdev(sc_p scp); | static device_t find_masterdev(sc_p scp); | ||||
static int alloc_resource(sc_p scp); | static int alloc_resource(sc_p scp); | ||||
static int release_resource(sc_p scp); | static int release_resource(sc_p scp); | ||||
static devclass_t gusc_devclass; | static devclass_t gusc_devclass; | ||||
▲ Show 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | if (scp->midi_intr.intr != NULL && | ||||
(*scp->midi_intr.intr)(scp->midi_intr.arg); | (*scp->midi_intr.intr)(scp->midi_intr.arg); | ||||
did_something = 1; | did_something = 1; | ||||
} | } | ||||
} while (did_something != 0); | } while (did_something != 0); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
gusc_alloc_resource(device_t bus, device_t child, int type, int *rid, | gusc_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) | ||||
{ | { | ||||
sc_p scp; | sc_p scp; | ||||
int *alloced, rid_max, alloced_max; | int *alloced, rid_max, alloced_max; | ||||
struct resource **res; | struct resource **res; | ||||
scp = device_get_softc(bus); | scp = device_get_softc(bus); | ||||
switch (type) { | switch (type) { | ||||
case SYS_RES_IOPORT: | case SYS_RES_IOPORT: | ||||
▲ Show 20 Lines • Show All 304 Lines • Show Last 20 Lines |