summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/creator.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-05-25 09:55:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-05-25 09:55:50 +0000
commit9e5735df00975584d6cf6bc08dbd76eabfee6fac (patch)
treeb53b6f9533ffd09189205a870c4acea54dbed001 /sys/arch/sparc64/dev/creator.c
parent2c743ea363c5f913f013bb5b9402bcbea962c0a3 (diff)
change wsdisplay attribute type from long to uint32_t
miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
Diffstat (limited to 'sys/arch/sparc64/dev/creator.c')
-rw-r--r--sys/arch/sparc64/dev/creator.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c
index 9c090cd504c..52a5cd870db 100644
--- a/sys/arch/sparc64/dev/creator.c
+++ b/sys/arch/sparc64/dev/creator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: creator.c,v 1.52 2020/05/25 06:45:25 jsg Exp $ */
+/* $OpenBSD: creator.c,v 1.53 2020/05/25 09:55:48 jsg Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -54,8 +54,8 @@ void creator_ras_fifo_wait(struct creator_softc *, int);
void creator_ras_wait(struct creator_softc *);
void creator_ras_init(struct creator_softc *);
int creator_ras_copyrows(void *, int, int, int);
-int creator_ras_erasecols(void *, int, int, int, long int);
-int creator_ras_eraserows(void *, int, int, long int);
+int creator_ras_erasecols(void *, int, int, int, uint32_t);
+int creator_ras_eraserows(void *, int, int, uint32_t);
void creator_ras_fill(struct creator_softc *);
void creator_ras_setfg(struct creator_softc *, int32_t);
@@ -241,7 +241,7 @@ creator_ioctl(v, cmd, data, flags, p)
sc->sc_mode = *(u_int *)data;
if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) {
struct rasops_info *ri = &sc->sc_sunfb.sf_ro;
- long attr;
+ uint32_t attr;
if ((sc->sc_sunfb.sf_dev.dv_cfdata->cf_flags &
CREATOR_CFFLAG_NOACCEL) == 0)
@@ -594,7 +594,7 @@ int
creator_ras_eraserows(cookie, row, n, attr)
void *cookie;
int row, n;
- long int attr;
+ uint32_t attr;
{
struct rasops_info *ri = cookie;
struct creator_softc *sc = ri->ri_hw;
@@ -634,7 +634,7 @@ int
creator_ras_erasecols(cookie, row, col, n, attr)
void *cookie;
int row, col, n;
- long int attr;
+ uint32_t attr;
{
struct rasops_info *ri = cookie;
struct creator_softc *sc = ri->ri_hw;