diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 1999-03-31 04:12:30 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 1999-03-31 04:12:30 +0000 |
| commit | cc03fdef42e71ca22cce50406cfac26e5f8dc5a8 (patch) | |
| tree | 3dceb70e681b6f4e190aafe476b5cb82edfb4333 /sys/pci | |
| parent | e7e156d1f84e591de6c30b93e436a1b4eced052a (diff) | |
Notes
Diffstat (limited to 'sys/pci')
| -rw-r--r-- | sys/pci/if_tl.c | 5 | ||||
| -rw-r--r-- | sys/pci/if_tlreg.h | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index c0580c7bff0f..a2e84372da3e 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -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_tl.c,v 1.27 1999/03/30 17:07:20 wpaul Exp $ + * $Id: if_tl.c,v 1.38 1999/03/31 04:00:05 wpaul Exp $ */ /* @@ -221,7 +221,7 @@ #if !defined(lint) static const char rcsid[] = - "$Id: if_tl.c,v 1.27 1999/03/30 17:07:20 wpaul Exp $"; + "$Id: if_tl.c,v 1.38 1999/03/31 04:00:05 wpaul Exp $"; #endif /* @@ -1763,6 +1763,7 @@ tl_attach(config_id, unit) ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_10_T|IFM_HDX, 0, NULL); ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_10_T|IFM_FDX, 0, NULL); ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_10_5, 0, NULL); + ifmedia_set(&sc->ifmedia, IFM_ETHER|IFM_10_T); /* Reset again, this time setting bitrate mode. */ tl_softreset(sc, 1); ifm = &sc->ifmedia; diff --git a/sys/pci/if_tlreg.h b/sys/pci/if_tlreg.h index 14ebbf0ced4b..f4eb98c4b901 100644 --- a/sys/pci/if_tlreg.h +++ b/sys/pci/if_tlreg.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_tlreg.h,v 1.8 1999/03/30 17:07:20 wpaul Exp $ + * $Id: if_tlreg.h,v 1.15 1999/03/31 04:00:05 wpaul Exp $ */ @@ -806,3 +806,9 @@ struct tl_stats { */ #define EEPROM_CTL_READ 0xA1 /* 0101 0001 */ #define EEPROM_CTL_WRITE 0xA0 /* 0101 0000 */ + +#ifdef __alpha__ +#undef vtophys +#define vtophys(va) (pmap_kextract(((vm_offset_t) (va))) \ + + 1*1024*1024*1024) +#endif |
