Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/vibes.c
Show First 20 Lines • Show All 715 Lines • ▼ Show 20 Lines | sv_probe(device_t dev) | ||||
default: | default: | ||||
return ENXIO; | return ENXIO; | ||||
} | } | ||||
} | } | ||||
static int | static int | ||||
sv_attach(device_t dev) { | sv_attach(device_t dev) { | ||||
struct sc_info *sc; | struct sc_info *sc; | ||||
rman_res_t count, midi_start, games_start; | |||||
u_int32_t data; | u_int32_t data; | ||||
char status[SND_STATUSLEN]; | char status[SND_STATUSLEN]; | ||||
u_long midi_start, games_start, count, sdmaa, sdmac, ml, mu; | u_long sdmaa, sdmac, ml, mu; | ||||
sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK | M_ZERO); | sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK | M_ZERO); | ||||
sc->dev = dev; | sc->dev = dev; | ||||
pci_enable_busmaster(dev); | pci_enable_busmaster(dev); | ||||
if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) { | if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) { | ||||
device_printf(dev, "chip is in D%d power mode " | device_printf(dev, "chip is in D%d power mode " | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |