Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/csa.c
| Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
| 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, | ||||
| rman_res_t start, rman_res_t end, | rman_res_t start, rman_res_t end, | ||||
| rman_res_t count, u_int flags); | 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, 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); | ||||
| static driver_intr_t csa_intr; | static driver_intr_t csa_intr; | ||||
| static int csa_initialize(sc_p scp); | static int csa_initialize(sc_p scp); | ||||
| ▲ Show 20 Lines • Show All 329 Lines • ▼ Show 20 Lines | csa_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
| default: | default: | ||||
| return (NULL); | return (NULL); | ||||
| } | } | ||||
| return res; | return res; | ||||
| } | } | ||||
| static int | static int | ||||
| csa_release_resource(device_t bus, device_t child, int type, int rid, | csa_release_resource(device_t bus, device_t child, struct resource *r) | ||||
| struct resource *r) | |||||
| { | { | ||||
| return (0); | return (0); | ||||
| } | } | ||||
| /* | /* | ||||
| * The following three functions deal with interrupt handling. | * The following three functions deal with interrupt handling. | ||||
| * An interrupt is primarily handled by the bridge driver. | * An interrupt is primarily handled by the bridge driver. | ||||
| * The bridge driver then determines the child devices to pass | * The bridge driver then determines the child devices to pass | ||||
| ▲ Show 20 Lines • Show All 666 Lines • Show Last 20 Lines | |||||