summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2016-08-20 19:41:14 +0000
committerkettenis <kettenis@openbsd.org>2016-08-20 19:41:14 +0000
commit3a48bb3d0ba1cbbab8d93f8783c9e3c66e473dcd (patch)
tree71127946af7be54b2d0be73e42927484e51f7a96 /lib/libc
parentAdd some code to set the SD/MMC clocks. (diff)
downloadwireguard-openbsd-3a48bb3d0ba1cbbab8d93f8783c9e3c66e473dcd.tar.xz
wireguard-openbsd-3a48bb3d0ba1cbbab8d93f8783c9e3c66e473dcd.zip
Various improvements to make this work better.
Restrict the block size to 512 bytes for now. While Linux and NetBSD seem to allow larger block sizes (4096 and 8192 bytes) I'm getting errors wth an older 2G Sandisk SD card that advertises support for 1024 byte blocks. Implement switching between the 400 KHz "discovery" clock and the 25 MHz "operational" clock. Enable the right clock based on the SD/MMC "unit" number. Don't advertise highspeed capabilities for now as I'm not sure how the adjust the clock timing in that case. Fix the way we calculate the number of blocks and the size of the total data transfer to matc what we do in sdhc(4).
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions