summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tlreg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-03-31 04:04:14 +0000
committerwpaul <wpaul@FreeBSD.org>1999-03-31 04:04:14 +0000
commit26f7598224306fe8f8aebaa262ca7767fc193d5f (patch)
tree1e42584348632e288939868e37ad7ac918f79a61 /sys/pci/if_tlreg.h
parent5588dd15e19f2b9215a8b45db6747947b0792672 (diff)
downloadFreeBSD-src-26f7598224306fe8f8aebaa262ca7767fc193d5f.zip
FreeBSD-src-26f7598224306fe8f8aebaa262ca7767fc193d5f.tar.gz
Insert ifmedia_set() that I forgot and put in the vtophys() hack for
the alpha. Now the ThunderLAN driver works on the alpha (both my sample cards check out.) Update the alpha GENERIC config to include ThunderLAN driver now that I've tested it.
Diffstat (limited to 'sys/pci/if_tlreg.h')
-rw-r--r--sys/pci/if_tlreg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/pci/if_tlreg.h b/sys/pci/if_tlreg.h
index c5e76c9..f4eb98c 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.14 1999/03/30 16:57:26 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
OpenPOWER on IntegriCloud