summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
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/macppc
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/macppc')
-rw-r--r--sys/arch/macppc/macppc/ofw_machdep.c4
-rw-r--r--sys/arch/macppc/pci/vgafb.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c
index 23a8d2cc3f8..42542bea79d 100644
--- a/sys/arch/macppc/macppc/ofw_machdep.c
+++ b/sys/arch/macppc/macppc/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.58 2020/05/25 06:45:25 jsg Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.59 2020/05/25 09:55:48 jsg Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -486,7 +486,7 @@ of_display_console(void)
{
struct ofwfb *fb = &ofwfb;
struct rasops_info *ri = &fb->ofw_ri;
- long defattr;
+ uint32_t defattr;
ri->ri_width = cons_width;
ri->ri_height = cons_height;
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c
index b18979f78be..e3752045b95 100644
--- a/sys/arch/macppc/pci/vgafb.c
+++ b/sys/arch/macppc/pci/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.61 2020/05/25 06:45:25 jsg Exp $ */
+/* $OpenBSD: vgafb.c,v 1.62 2020/05/25 09:55:48 jsg Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -66,7 +66,7 @@ struct vgafb_softc {
int vgafb_ioctl(void *, u_long, caddr_t, int, struct proc *);
paddr_t vgafb_mmap(void *, off_t, int);
int vgafb_alloc_screen(void *, const struct wsscreen_descr *, void **,
- int *, int *, long *);
+ int *, int *, uint32_t *);
void vgafb_free_screen(void *, void *);
int vgafb_show_screen(void *, void *, int, void (*cb)(void *, int, int),
void *);
@@ -179,7 +179,7 @@ int
vgafb_console_init(struct vgafb_softc *sc)
{
struct rasops_info *ri = &sc->sc_ri;
- long defattr;
+ uint32_t defattr;
ri->ri_flg = RI_CENTER | RI_VCONS | RI_WRONLY;
ri->ri_hw = sc;
@@ -452,7 +452,7 @@ vgafb_burn(void *v, u_int on, u_int flags)
int
vgafb_alloc_screen(void *v, const struct wsscreen_descr *type, void **cookiep,
- int *curxp, int *curyp, long *attrp)
+ int *curxp, int *curyp, uint32_t *attrp)
{
struct vgafb_softc *sc = v;
struct rasops_info *ri = &sc->sc_ri;