Add sdmmc_io_read_region_1() and sdmmc_io_write_region_1() as an
authorpatrick <patrick@openbsd.org>
Sun, 11 Feb 2018 20:57:57 +0000 (20:57 +0000)
committerpatrick <patrick@openbsd.org>
Sun, 11 Feb 2018 20:57:57 +0000 (20:57 +0000)
commit1f8b50cb7a2eb53fe21aedbd356ed06d7973ac1c
tree98c33841b44b25ae8b8eb3010b86ec865b0a59ce
parent5651377cbf250c24673c7af42c6bb9afeddfefa5
Add sdmmc_io_read_region_1() and sdmmc_io_write_region_1() as an
interface for "reading memory" akin to the bus_space(9) API.  The
already existing multi interface is used for "reading FIFOs".  The
technical difference is that one always reads from the same address
(FIFO) while the other increments the address while reading (memory).

ok kettenis@
sys/dev/sdmmc/sdmmc_io.c
sys/dev/sdmmc/sdmmcvar.h