version 1.2, 2006/09/29 08:49:30 |
version 1.2.6.1, 2007/03/12 05:55:18 |
Line 283 static void kse_attach(struct device *, |
|
Line 283 static void kse_attach(struct device *, |
|
CFATTACH_DECL(kse, sizeof(struct kse_softc), |
CFATTACH_DECL(kse, sizeof(struct kse_softc), |
kse_match, kse_attach, NULL, NULL); |
kse_match, kse_attach, NULL, NULL); |
|
|
static int kse_ioctl(struct ifnet *, u_long, caddr_t); |
static int kse_ioctl(struct ifnet *, u_long, void *); |
static void kse_start(struct ifnet *); |
static void kse_start(struct ifnet *); |
static void kse_watchdog(struct ifnet *); |
static void kse_watchdog(struct ifnet *); |
static int kse_init(struct ifnet *); |
static int kse_init(struct ifnet *); |
Line 416 kse_attach(struct device *parent, struct |
|
Line 416 kse_attach(struct device *parent, struct |
|
goto fail_0; |
goto fail_0; |
} |
} |
error = bus_dmamem_map(sc->sc_dmat, &seg, nseg, |
error = bus_dmamem_map(sc->sc_dmat, &seg, nseg, |
sizeof(struct kse_control_data), (caddr_t *)&sc->sc_control_data, |
sizeof(struct kse_control_data), (void **)&sc->sc_control_data, |
BUS_DMA_COHERENT); |
BUS_DMA_COHERENT); |
if (error != 0) { |
if (error != 0) { |
printf("%s: unable to map control data, error = %d\n", |
printf("%s: unable to map control data, error = %d\n", |
Line 511 kse_attach(struct device *parent, struct |
|
Line 511 kse_attach(struct device *parent, struct |
|
fail_3: |
fail_3: |
bus_dmamap_destroy(sc->sc_dmat, sc->sc_cddmamap); |
bus_dmamap_destroy(sc->sc_dmat, sc->sc_cddmamap); |
fail_2: |
fail_2: |
bus_dmamem_unmap(sc->sc_dmat, (caddr_t)sc->sc_control_data, |
bus_dmamem_unmap(sc->sc_dmat, (void *)sc->sc_control_data, |
sizeof(struct kse_control_data)); |
sizeof(struct kse_control_data)); |
fail_1: |
fail_1: |
bus_dmamem_free(sc->sc_dmat, &seg, nseg); |
bus_dmamem_free(sc->sc_dmat, &seg, nseg); |
Line 520 kse_attach(struct device *parent, struct |
|
Line 520 kse_attach(struct device *parent, struct |
|
} |
} |
|
|
static int |
static int |
kse_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) |
kse_ioctl(struct ifnet *ifp, u_long cmd, void *data) |
{ |
{ |
struct kse_softc *sc = ifp->if_softc; |
struct kse_softc *sc = ifp->if_softc; |
struct ifreq *ifr = (struct ifreq *)data; |
struct ifreq *ifr = (struct ifreq *)data; |