Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci A few 64bit nits.



details:   https://anonhg.NetBSD.org/src/rev/3905b27324e8
branches:  trunk
changeset: 538658:3905b27324e8
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 24 20:41:59 2002 +0000

description:
A few 64bit nits.

diffstat:

 sys/dev/pci/machfb.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 8ec32bdc2434 -r 3905b27324e8 sys/dev/pci/machfb.c
--- a/sys/dev/pci/machfb.c      Thu Oct 24 20:37:59 2002 +0000
+++ b/sys/dev/pci/machfb.c      Thu Oct 24 20:41:59 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machfb.c,v 1.1 2002/10/24 18:15:57 junyoung Exp $      */
+/*     $NetBSD: machfb.c,v 1.2 2002/10/24 20:41:59 martin Exp $        */
 
 /*
  * Copyright (c) 2002 Bang Jun-Young
@@ -84,9 +84,9 @@
        bus_space_handle_t sc_regh;
        bus_space_handle_t sc_memh;
 
-       u_int aperbase;
+       u_long aperbase;
        size_t apersize;
-       u_int regbase;
+       u_long regbase;
        size_t regsize;
        size_t memsize;
        int memtype;
@@ -520,7 +520,7 @@
        sc->mclk_post_div = (sc->mclk_fb_div * 2 * sc->ref_freq) /
            (sc->mem_freq * sc->ref_div);
        sc->ramdac_freq = mach64_get_max_ramdac(sc);
-       printf("%s: %d KB %s %d.%d MHz, maximum RAMDAC clock %d MHz\n",
+       printf("%s: %ld KB %s %d.%d MHz, maximum RAMDAC clock %d MHz\n",
            sc->sc_dev.dv_xname, sc->memsize, 
            mach64_memtype_names[sc->memtype],
            sc->mem_freq / 1000, sc->mem_freq % 1000,
@@ -594,7 +594,9 @@
 mach64_init_screen(struct mach64_softc *sc, struct mach64screen *scr,
     const struct wsscreen_descr *type, int existing, long *attrp)
 {
+#if !defined(__sparc__)
        struct videomode *mode = (struct videomode *)type->modecookie;
+#endif
 
        scr->sc = sc;
        scr->type = type;



Home | Main Index | Thread Index | Old Index