aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2023-03-01 11:40:38 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2023-03-01 11:40:38 +0000
commit19fe14ec4c0cb6cbcf00090e93bf70d34261b15e (patch)
treefe768388fd6ea83c480ab5a1e0d4727d65e5be62
parent76a0183e361e7845cd59915166174400dbcead2a (diff)
downloadsrc-19fe14ec4c0cb6cbcf00090e93bf70d34261b15e.tar.gz
src-19fe14ec4c0cb6cbcf00090e93bf70d34261b15e.zip
fb: whack __mips__ leftovers
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/dev/fb/fbreg.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h
index 944243d4e687..928672eee21f 100644
--- a/sys/dev/fb/fbreg.h
+++ b/sys/dev/fb/fbreg.h
@@ -67,16 +67,8 @@ void ofwfb_fillw(int pat, void *base, size_t cnt);
u_int16_t ofwfb_readw(u_int16_t *addr);
void ofwfb_writew(u_int16_t *addr, u_int16_t val);
-#elif defined(__mips__) || defined(__arm__)
+#elif defined(__arm__)
-/*
- * Use amd64/i386-like settings under the assumption that MIPS-based display
- * drivers will have to add a level of indirection between a syscons-managed
- * frame buffer and the actual video hardware. We are forced to do this
- * because syscons doesn't carry around required busspace handles and tags to
- * use here. This is only really a problem for true VGA devices hooked up to
- * MIPS, as others will be performing a translation anyway.
- */
#define bcopy_io(s, d, c) memcpy((void *)(d), (void *)(s), (c))
#define bcopy_toio(s, d, c) memcpy((void *)(d), (void *)(s), (c))
#define bcopy_fromio(s, d, c) memcpy((void *)(d), (void *)(s), (c))
@@ -90,10 +82,8 @@ fillw(int val, uint16_t *buf, size_t size)
}
#define fillw_io(p, d, c) fillw((p), (void *)(d), (c))
-#if defined(__arm__)
#define readw(a) (*(uint16_t*)(a))
#define writew(a, v) (*(uint16_t*)(a) = (v))
-#endif
#else /* !__i386__ && !__amd64__ && !__powerpc__ */
#define bcopy_io(s, d, c) memcpy_io((d), (s), (c))