diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-04-01 02:09:37 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-04-01 02:09:37 +0000 |
commit | fd57bd78930daa2241fbfe09b5a0509d69d08d31 (patch) | |
tree | e6e8b85be1e00d29cc0a948e348f5bede49771a9 /sys/pci/if_mxreg.h | |
parent | f11e57320000b0c348ac5a9ee1117ed3eda24eb6 (diff) | |
download | FreeBSD-src-fd57bd78930daa2241fbfe09b5a0509d69d08d31.zip FreeBSD-src-fd57bd78930daa2241fbfe09b5a0509d69d08d31.tar.gz |
Make the Macronix driver work on FreeBSD/alpha and add to GENERIC.
Like the PNIC, we have to copy packet headers in the receive handler
because the chip will only DMA to longword aligned buffers.
Also do some mindor cleanups.
Diffstat (limited to 'sys/pci/if_mxreg.h')
-rw-r--r-- | sys/pci/if_mxreg.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/pci/if_mxreg.h b/sys/pci/if_mxreg.h index 8a6d0a8..87cf411 100644 --- a/sys/pci/if_mxreg.h +++ b/sys/pci/if_mxreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_mxreg.h,v 1.12 1998/12/04 21:34:33 wpaul Exp $ + * $Id: if_mxreg.h,v 1.14 1999/04/01 02:01:04 wpaul Exp $ */ /* @@ -502,7 +502,7 @@ struct mx_softc { #define CSR_WRITE_4(sc, reg, val) \ bus_space_write_4(sc->mx_btag, sc->mx_bhandle, reg, val) #define CSR_WRITE_2(sc, reg, val) \ - bus_space_write_2(sc->mx_btag, sc->mx_bbhandle, reg, val) + bus_space_write_2(sc->mx_btag, sc->mx_bhandle, reg, val) #define CSR_WRITE_1(sc, reg, val) \ bus_space_write_1(sc->mx_btag, sc->mx_bhandle, reg, val) @@ -695,3 +695,9 @@ struct mx_softc { #define PHY_BMSR_LINKSTAT 0x0004 #define PHY_BMSR_JABBER 0x0002 #define PHY_BMSR_EXTENDED 0x0001 + +#ifdef __alpha__ +#undef vtophys +#define vtophys(va) (pmap_kextract(((vm_offset_t) (va))) \ + + 1*1024*1024*1024) +#endif |