Lines 86-94
static int csa_release_resource(device_t bus, device_t child, int type, int rid,
Link Here
|
86 |
struct resource *r); |
86 |
struct resource *r); |
87 |
static int csa_setup_intr(device_t bus, device_t child, |
87 |
static int csa_setup_intr(device_t bus, device_t child, |
88 |
struct resource *irq, int flags, |
88 |
struct resource *irq, int flags, |
89 |
#if __FreeBSD_version >= 700031 |
|
|
90 |
driver_filter_t *filter, |
89 |
driver_filter_t *filter, |
91 |
#endif |
|
|
92 |
driver_intr_t *intr, void *arg, void **cookiep); |
90 |
driver_intr_t *intr, void *arg, void **cookiep); |
93 |
static int csa_teardown_intr(device_t bus, device_t child, |
91 |
static int csa_teardown_intr(device_t bus, device_t child, |
94 |
struct resource *irq, void *cookie); |
92 |
struct resource *irq, void *cookie); |
Lines 450-470
csa_release_resource(device_t bus, device_t child, int type, int rid,
Link Here
|
450 |
static int |
448 |
static int |
451 |
csa_setup_intr(device_t bus, device_t child, |
449 |
csa_setup_intr(device_t bus, device_t child, |
452 |
struct resource *irq, int flags, |
450 |
struct resource *irq, int flags, |
453 |
#if __FreeBSD_version >= 700031 |
|
|
454 |
driver_filter_t *filter, |
451 |
driver_filter_t *filter, |
455 |
#endif |
|
|
456 |
driver_intr_t *intr, void *arg, void **cookiep) |
452 |
driver_intr_t *intr, void *arg, void **cookiep) |
457 |
{ |
453 |
{ |
458 |
sc_p scp; |
454 |
sc_p scp; |
459 |
csa_res *resp; |
455 |
csa_res *resp; |
460 |
struct sndcard_func *func; |
456 |
struct sndcard_func *func; |
461 |
|
457 |
|
462 |
#if __FreeBSD_version >= 700031 |
|
|
463 |
if (filter != NULL) { |
458 |
if (filter != NULL) { |
464 |
printf("ata-csa.c: we cannot use a filter here\n"); |
459 |
printf("ata-csa.c: we cannot use a filter here\n"); |
465 |
return (EINVAL); |
460 |
return (EINVAL); |
466 |
} |
461 |
} |
467 |
#endif |
|
|
468 |
scp = device_get_softc(bus); |
462 |
scp = device_get_softc(bus); |
469 |
resp = &scp->res; |
463 |
resp = &scp->res; |
470 |
|
464 |
|