Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/fm801.c
| Show First 20 Lines • Show All 722 Lines • ▼ Show 20 Lines | fm801_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
| if (type == SYS_RES_IOPORT && *rid == PCIR_BAR(0)) | if (type == SYS_RES_IOPORT && *rid == PCIR_BAR(0)) | ||||
| return (fm801->reg); | return (fm801->reg); | ||||
| return (NULL); | return (NULL); | ||||
| } | } | ||||
| static int | static int | ||||
| fm801_release_resource(device_t bus, device_t child, int type, int rid, | fm801_release_resource(device_t bus, device_t child, struct resource *r) | ||||
| struct resource *r) | |||||
| { | { | ||||
| return (0); | return (0); | ||||
| } | } | ||||
| static device_method_t fm801_methods[] = { | static device_method_t fm801_methods[] = { | ||||
| /* Device interface */ | /* Device interface */ | ||||
| DEVMETHOD(device_probe, fm801_pci_probe), | DEVMETHOD(device_probe, fm801_pci_probe), | ||||
| DEVMETHOD(device_attach, fm801_pci_attach), | DEVMETHOD(device_attach, fm801_pci_attach), | ||||
| Show All 23 Lines | |||||