Date: Sat, 31 Mar 2012 19:29:25 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 208890 for review Message-ID: <201203311929.q2VJTPuG098354@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@208890?ac=10 Change 208890 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/03/31 19:28:31 Checkpoint a partial FreeBSD storage driver for the Altera University Program SD Card IP Core. The Altera core provides a much lower-level interface than is used by the sdhci(4) driver, as well as supporting neither interrupts nor DMA. Implement a timer-driver framework that handles the higher-level aspects of using the IP Core, such as detecting card insertion/removal, timer-driven I/O, etc. The very bottom end of the driver isn't yet implemented, as I am still working my way through a blend of the SD Card physical interface and Altera IP core specifications, but figured it best to check in this non-trivial work-in-progress on principle. Affected files ... .. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard.c#1 add .. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard.h#1 add .. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard_disk.c#1 add .. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard_io.c#1 add .. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/sdcard/altera_sdcard_nexus.c#1 add .. //depot/projects/ctsrd/beribsd/src/sys/mips/beri/files.beri#8 edit .. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI#6 edit .. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI.hints#2 edit Differences ... ==== //depot/projects/ctsrd/beribsd/src/sys/mips/beri/files.beri#8 (text+ko) ==== @@ -1,5 +1,9 @@ # $FreeBSD$ dev/altera/jtag_uart/altera_jtag_uart.c optional altera_jtag_uart +dev/altera/sdcard/altera_sdcard.c optional altera_sdcard +dev/altera/sdcard/altera_sdcard_disk.c optional altera_sdcard +dev/altera/sdcard/altera_sdcard_io.c optional altera_sdcard +dev/altera/sdcard/altera_sdcard_nexus.c optional altera_sdcard mips/beri/beri_machdep.c standard mips/beri/gxemul_cons.c optional gxemul_cons mips/mips/intr_machdep.c standard ==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI#6 (text+ko) ==== @@ -46,6 +46,7 @@ options ROOTDEVNAME=\"ufs:md0\" device altera_jtag_uart +device altera_sdcard device md device loop ==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI.hints#2 (text+ko) ==== @@ -1,1 +1,5 @@ # $FreeBSD$ + +hint.altera_sdcard.0.at="nexus0" +hint.altera_sdcard.0.maddr=0x7f008000 +hint.altera_sdcard.0.msize=0x400
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203311929.q2VJTPuG098354>