PERFORCE change 221483 for review
Bjoern A. Zeeb
bz at FreeBSD.org
Fri Jan 25 17:01:18 UTC 2013
http://p4web.freebsd.org/@@221483?ac=10
Change 221483 by bz at bz_zenith on 2013/01/25 17:00:31
Put atse(4) Altera Tripple Speed Ethernet driver into the tree as-is.
Basic things work in polling mode for our current internal FIFO
configuration.
There is a NOTES list at the beginning of the file for integration
and debugging issues to be handled.
This will at least allow others to start using and testing it.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/atse/a_api.h#1 add
.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/atse/if_atse.c#1 add
.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/atse/if_atsereg.h#1 add
.. //depot/projects/ctsrd/beribsd/src/sys/mips/beri/files.beri#28 edit
.. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4.hints#19 edit
.. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4_BASE#2 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/sys/mips/beri/files.beri#28 (text+ko) ====
@@ -1,4 +1,5 @@
# $FreeBSD: head/sys/mips/beri/files.beri 245373 2013-01-13 16:27:56Z rwatson $
+dev/altera/atse/if_atse.c optional altera_atse
dev/altera/jtag_uart/altera_jtag_uart_cons.c optional altera_jtag_uart
dev/altera/jtag_uart/altera_jtag_uart_tty.c optional altera_jtag_uart
dev/altera/jtag_uart/altera_jtag_uart_fdt.c optional altera_jtag_uart fdt
==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4.hints#19 (text+ko) ====
@@ -24,3 +24,41 @@
hint.map.3.start=0x00000000
hint.map.3.end=0x02000000
hint.map.3.name="kernel"
+
+#
+# Altera Triple-Speed Ethernet Mac, present in tPad and DE-4 configurations
+# Currently requires to find the isf(4) device. Later a loader should fix this.
+#
+hint.atse.0.at="nexus0"
+hint.atse.0.maddr=0x7f007000
+hint.atse.0.msize=0x400
+hint.atse.0.tx_maddr=0x7f007400
+hint.atse.0.tx_msize=0x8
+hint.atse.0.txc_maddr=0x7f007420
+hint.atse.0.txc_msize=0x20
+hint.atse.0.tx_irq=2
+hint.atse.0.rx_maddr=0x7f007500
+hint.atse.0.rx_msize=0x8
+hint.atse.0.rxc_maddr=0x7f007520
+hint.atse.0.rxc_msize=0x20
+hint.atse.0.rx_irq=1
+hint.e1000phy.0.at="miibus0"
+hint.e1000phy.0.phyno=0
+
+# No IRQ on the 2nd port, just c&p to make driver happy.
+hint.atse.1.at="nexus0"
+hint.atse.1.maddr=0x7f005000
+hint.atse.1.msize=0x400
+hint.atse.1.tx_maddr=0x7f005400
+hint.atse.1.tx_msize=0x8
+hint.atse.1.txc_maddr=0x7f005420
+hint.atse.1.txc_msize=0x20
+hint.atse.1.tx_irq=2
+hint.atse.1.rx_maddr=0x7f005500
+hint.atse.1.rx_msize=0x8
+hint.atse.1.rxc_maddr=0x7f005520
+hint.atse.1.rxc_msize=0x20
+hint.atse.1.rx_irq=1
+hint.e1000phy.1.at="miibus0"
+hint.e1000phy.1.phyno=0
+
==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4_BASE#2 (text+ko) ====
@@ -17,6 +17,7 @@
hints "BERI_DE4.hints" # Flash partitions still use hints.
+device altera_atse
device altera_avgen
device altera_jtag_uart
device altera_sdcard
@@ -25,3 +26,7 @@
device isf
device sc
+
+device miibus
+options DEVICE_POLLING
+
More information about the p4-projects
mailing list