summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-11-05 16:53:48 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-11-05 16:53:48 +0000
commit1a4dfffb5edace2642026803f3286a4677a1a86d (patch)
tree3cc7e4e9a614886b3d6b6537a99ae3f0976158e7
parent6a3c510a4e864da781a5aac3b01d68c3368b9e3a (diff)
sdhost: remove coherence() for RD() and cleanup
-rw-r--r--sys/src/9/bcm64/sdhost.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/src/9/bcm64/sdhost.c b/sys/src/9/bcm64/sdhost.c
index 96fd54563..b50c0cd0e 100644
--- a/sys/src/9/bcm64/sdhost.c
+++ b/sys/src/9/bcm64/sdhost.c
@@ -72,7 +72,6 @@ static u32int
RD(int reg)
{
u32int *r = (u32int*)SDHOSTREGS;
- coherence();
return r[reg];
}
@@ -137,13 +136,13 @@ sdhostinit(SDio*)
}
static int
-sdhostinquiry(SDio *, char *inquiry, int inqlen)
+sdhostinquiry(SDio*, char *inquiry, int inqlen)
{
return snprint(inquiry, inqlen, "BCM SD Host Controller");
}
static void
-sdhostenable(SDio *io)
+sdhostenable(SDio*)
{
WR(HC_POWER, 1);
WR(HC_HOSTCONFIG, HC_HSTCF_INTBUS_WIDE|HC_HSTCF_SLOW_CARD);
@@ -218,7 +217,7 @@ sdhostcmd(SDio*, SDiocmd *cmd, u32int arg, u32int *resp)
}
static void
-sdhostiosetup(SDio*, int write, void *buf, int bsize, int bcount)
+sdhostiosetup(SDio*, int, void *, int bsize, int bcount)
{
WR(HC_BLOCKSIZE, bsize);
WR(HC_BLOCKCOUNT, bcount);