Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/if_ndis/if_ndis_pccard.c
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | ndis_attach_pccard(dev) | ||||
error = ndis_alloc_amem(sc); | error = ndis_alloc_amem(sc); | ||||
if (error) { | if (error) { | ||||
device_printf(dev, "failed to allocate attribute memory\n"); | device_printf(dev, "failed to allocate attribute memory\n"); | ||||
goto fail; | goto fail; | ||||
} | } | ||||
error = ndis_attach(dev); | error = ndis_attach(dev); | ||||
if (error == 0) | |||||
gone_in_dev(dev, 13, "pccard removed"); | |||||
fail: | fail: | ||||
return(error); | return(error); | ||||
} | } | ||||
static int | static int | ||||
ndis_detach_pccard(device_t dev) | ndis_detach_pccard(device_t dev) | ||||
{ | { | ||||
Show All 22 Lines |