Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/fm801.c
Show First 20 Lines • Show All 710 Lines • ▼ Show 20 Lines | if ((id = pci_get_devid(dev)) == PCI_DEVICE_FORTEMEDIA2 ) { | ||||
return ENXIO; | return ENXIO; | ||||
} | } | ||||
*/ | */ | ||||
return ENXIO; | return ENXIO; | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
fm801_alloc_resource(device_t bus, device_t child, int type, int *rid, | fm801_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 fm801_info *fm801; | struct fm801_info *fm801; | ||||
fm801 = pcm_getdevinfo(bus); | fm801 = pcm_getdevinfo(bus); | ||||
if (type == SYS_RES_IOPORT && *rid == PCIR_BAR(0)) | if (type == SYS_RES_IOPORT && *rid == PCIR_BAR(0)) | ||||
return (fm801->reg); | return (fm801->reg); | ||||
Show All 37 Lines |