diff options
author | imp <imp@FreeBSD.org> | 2006-01-27 19:10:13 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-01-27 19:10:13 +0000 |
commit | 40c7d835b9c0f0875af9bbcd1a9f8e838f5a3ca1 (patch) | |
tree | 583f4cb12e99c355016824df333a4ba429f04548 /sys/dev/ed/if_edvar.h | |
parent | 33a996340aa062ac3c9be3f7606443418f3147ea (diff) | |
download | FreeBSD-src-40c7d835b9c0f0875af9bbcd1a9f8e838f5a3ca1.zip FreeBSD-src-40c7d835b9c0f0875af9bbcd1a9f8e838f5a3ca1.tar.gz |
Have a function pointer to the routine to call for writing an mbuf
into the card's memory.
# this eliminates a more of the ifdef soup in if_ed and if_edvar
# I've fixed the cbus drivers, but can't test them all easily.
If I've broken anything, please let me know.
Diffstat (limited to 'sys/dev/ed/if_edvar.h')
-rw-r--r-- | sys/dev/ed/if_edvar.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ed/if_edvar.h b/sys/dev/ed/if_edvar.h index 66ca79b..d7d3a8e 100644 --- a/sys/dev/ed/if_edvar.h +++ b/sys/dev/ed/if_edvar.h @@ -71,6 +71,7 @@ struct ed_softc { void (*sc_tick)(void *); void (*readmem)(struct ed_softc *sc, bus_size_t src, uint8_t *dst, uint16_t amount); + u_short (*sc_write_mbufs)(struct ed_softc *, struct mbuf *, bus_size_t); int nic_offset; /* NIC (DS8390) I/O bus address offset */ int asic_offset; /* ASIC I/O bus address offset */ @@ -215,14 +216,10 @@ int ed_isa_mem_ok(device_t, u_long, u_int); /* XXX isa specific */ void ed_stop(struct ed_softc *); void ed_shmem_readmem16(struct ed_softc *, bus_size_t, uint8_t *, uint16_t); void ed_shmem_readmem8(struct ed_softc *, bus_size_t, uint8_t *, uint16_t); +u_short ed_shmem_write_mbufs(struct ed_softc *, struct mbuf *, bus_size_t); void ed_pio_readmem(struct ed_softc *, bus_size_t, uint8_t *, uint16_t); void ed_pio_writemem(struct ed_softc *, uint8_t *, uint16_t, uint16_t); - -/* The following is unsatisfying XXX */ -#ifdef ED_HPP -void ed_hpp_readmem(struct ed_softc *, bus_size_t, uint8_t *, uint16_t); -u_short ed_hpp_write_mbufs(struct ed_softc *, struct mbuf *, int); -#endif +u_short ed_pio_write_mbufs(struct ed_softc *, struct mbuf *, bus_size_t); void ed_disable_16bit_access(struct ed_softc *); void ed_enable_16bit_access(struct ed_softc *); |