shithub: riscv

Download patch

ref: 1a4dfffb5edace2642026803f3286a4677a1a86d
parent: 6a3c510a4e864da781a5aac3b01d68c3368b9e3a
author: cinap_lenrek <[email protected]>
date: Sun Nov 5 11:53:48 EST 2023

sdhost: remove coherence() for RD() and cleanup

--- a/sys/src/9/bcm64/sdhost.c
+++ b/sys/src/9/bcm64/sdhost.c
@@ -72,7 +72,6 @@
 RD(int reg)
 {
 	u32int *r = (u32int*)SDHOSTREGS;
-	coherence();
 	return r[reg];
 }
 
@@ -137,13 +136,13 @@
 }
 
 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 @@
 }
 
 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);