Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sound/pci/csa.c
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | struct csa_softc { | ||||
struct csa_bridgeinfo binfo; /* The state of this bridge. */ | struct csa_bridgeinfo binfo; /* The state of this bridge. */ | ||||
}; | }; | ||||
typedef struct csa_softc *sc_p; | typedef struct csa_softc *sc_p; | ||||
static int csa_probe(device_t dev); | static int csa_probe(device_t dev); | ||||
static int csa_attach(device_t dev); | static int csa_attach(device_t dev); | ||||
static struct resource *csa_alloc_resource(device_t bus, device_t child, int type, int *rid, | static struct resource *csa_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 csa_release_resource(device_t bus, device_t child, int type, int rid, | static int csa_release_resource(device_t bus, device_t child, int type, int rid, | ||||
struct resource *r); | struct resource *r); | ||||
static int csa_setup_intr(device_t bus, device_t child, | static int csa_setup_intr(device_t bus, device_t child, | ||||
struct resource *irq, int flags, | struct resource *irq, int flags, | ||||
driver_filter_t *filter, | driver_filter_t *filter, | ||||
driver_intr_t *intr, void *arg, void **cookiep); | driver_intr_t *intr, void *arg, void **cookiep); | ||||
static int csa_teardown_intr(device_t bus, device_t child, | static int csa_teardown_intr(device_t bus, device_t child, | ||||
struct resource *irq, void *cookie); | struct resource *irq, void *cookie); | ||||
▲ Show 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | csa_resume(device_t dev) | ||||
if (csa_downloadimage(resp)) | if (csa_downloadimage(resp)) | ||||
return (ENXIO); | return (ENXIO); | ||||
return (bus_generic_resume(dev)); | return (bus_generic_resume(dev)); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
csa_alloc_resource(device_t bus, device_t child, int type, int *rid, | csa_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; | ||||
csa_res *resp; | csa_res *resp; | ||||
struct resource *res; | struct resource *res; | ||||
scp = device_get_softc(bus); | scp = device_get_softc(bus); | ||||
resp = &scp->res; | resp = &scp->res; | ||||
switch (type) { | switch (type) { | ||||
▲ Show 20 Lines • Show All 701 Lines • Show Last 20 Lines |