Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic u_intNN_t -> uintNN_t



details:   https://anonhg.NetBSD.org/src/rev/35f8c61e0d0e
branches:  trunk
changeset: 758306:35f8c61e0d0e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Nov 01 06:41:50 2010 +0000

description:
u_intNN_t -> uintNN_t

Same code before and after.

diffstat:

 sys/dev/ic/sti.c    |   28 ++--
 sys/dev/ic/stireg.h |  270 ++++++++++++++++++++++++++--------------------------
 sys/dev/ic/stivar.h |    4 +-
 3 files changed, 151 insertions(+), 151 deletions(-)

diffs (truncated from 664 to 300 lines):

diff -r 4ce333d5d6e0 -r 35f8c61e0d0e sys/dev/ic/sti.c
--- a/sys/dev/ic/sti.c  Mon Nov 01 02:41:27 2010 +0000
+++ b/sys/dev/ic/sti.c  Mon Nov 01 06:41:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sti.c,v 1.11 2010/10/31 15:47:53 skrll Exp $   */
+/*     $NetBSD: sti.c,v 1.12 2010/11/01 06:41:50 skrll Exp $   */
 
 /*     $OpenBSD: sti.c,v 1.35 2003/12/16 06:07:13 mickey Exp $ */
 
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sti.c,v 1.11 2010/10/31 15:47:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sti.c,v 1.12 2010/11/01 06:41:50 skrll Exp $");
 
 #include "wsdisplay.h"
 
@@ -116,7 +116,7 @@
 void sti_bmove(struct sti_softc *, int, int, int, int, int, int,
     enum sti_bmove_funcs);
 int sti_setcment(struct sti_softc *, u_int, u_char, u_char, u_char);
-int sti_fetchfonts(struct sti_softc *, struct sti_inqconfout *, u_int32_t);
+int sti_fetchfonts(struct sti_softc *, struct sti_inqconfout *, uint32_t);
 void sti_attach_deferred(device_t);
 
 void
@@ -128,10 +128,10 @@
        struct sti_dd *dd;
        struct sti_cfg *cc;
        int error, size, i;
-       u_int8_t *p = (u_int8_t *)sc->sc_code;
-       u_int32_t addr, eaddr;
+       uint8_t *p = (uint8_t *)sc->sc_code;
+       uint32_t addr, eaddr;
        struct sti_region r;
-       u_int32_t *q;
+       uint32_t *q;
        uint32_t tmp;
 
        dd = &sc->sc_dd;
@@ -187,7 +187,7 @@
                dd->dd_pacode[0xe] = parseword(0x1e0) & ~3;
                dd->dd_pacode[0xf] = parseword(0x1f0) & ~3;
        } else  /* STI_DEVTYPE4 */
-               bus_space_read_region_4(sc->memt, sc->romh, 0, (u_int32_t *)dd,
+               bus_space_read_region_4(sc->memt, sc->romh, 0, (uint32_t *)dd,
                    sizeof(*dd) / 4);
 
 #ifdef STIDEBUG
@@ -197,7 +197,7 @@
            "memrq=%x, pwr=%d, bus=%x, ebus=%x, cfb=%x\n"
            "code=",
            dd->dd_type & 0xff, dd->dd_grrev, dd->dd_lrrev, dd->dd_altcodet,
-           *(u_int64_t *)dd->dd_grid, dd->dd_fntaddr, dd->dd_maxst,
+           *(uint64_t *)dd->dd_grid, dd->dd_fntaddr, dd->dd_maxst,
            dd->dd_romend, dd->dd_reglst, dd->dd_maxreent, dd->dd_maxtimo,
            dd->dd_montbl, dd->dd_udaddr, dd->dd_udsize, dd->dd_stimemreq,
            dd->dd_pwruse, dd->dd_bussup, dd->dd_ebussup, dd->dd_cfbaddr);
@@ -225,7 +225,7 @@
 
        /* copy code into memory */
        if (sc->sc_devtype == STI_DEVTYPE1) {
-               p = (u_int8_t *)sc->sc_code;
+               p = (uint8_t *)sc->sc_code;
                for (addr = dd->dd_pacode[STI_BEGIN], eaddr = addr + size * 4;
                    addr < eaddr; addr += 4 )
                        *p++ = bus_space_read_4(sc->memt, sc->romh, addr)
@@ -233,7 +233,7 @@
 
        } else  /* STI_DEVTYPE4 */
                bus_space_read_region_4(sc->memt, sc->romh,
-                   dd->dd_pacode[STI_BEGIN], (u_int32_t *)sc->sc_code,
+                   dd->dd_pacode[STI_BEGIN], (uint32_t *)sc->sc_code,
                    size / 4);
 
 #define        O(i)    (dd->dd_pacode[(i)] ? (sc->sc_code +    \
@@ -333,7 +333,7 @@
        printf(": %s rev %d.%02d;%d, ID 0x%016llX\n"
            "%s: %dx%d frame buffer, %dx%dx%d display, offset %dx%d\n",
            cfg.name, dd->dd_grrev >> 4, dd->dd_grrev & 0xf, dd->dd_lrrev,
-           *(u_int64_t *)dd->dd_grid, device_xname(sc->sc_dev), cfg.fbwidth,
+           *(uint64_t *)dd->dd_grid, device_xname(sc->sc_dev), cfg.fbwidth,
            cfg.fbheight, cfg.width, cfg.height, cfg.bppu, cfg.owidth,
            cfg.oheight);
 
@@ -384,7 +384,7 @@
 }
 
 int
-sti_fetchfonts(struct sti_softc *sc, struct sti_inqconfout *cfg, u_int32_t addr)
+sti_fetchfonts(struct sti_softc *sc, struct sti_inqconfout *cfg, uint32_t addr)
 {
        struct sti_font *fp = &sc->sc_curfont;
        int size;
@@ -419,7 +419,7 @@
                            addr + 0x37);
                } else  /* STI_DEVTYPE4 */
                        bus_space_read_region_4(sc->memt, sc->romh, addr,
-                           (u_int32_t *)fp, sizeof(struct sti_font) / 4);
+                           (uint32_t *)fp, sizeof(struct sti_font) / 4);
 
                printf("%s: %dx%d font type %d, %d bpc, charset %d-%d\n",
                    device_xname(sc->sc_dev), fp->width, fp->height, fp->type,
@@ -434,7 +434,7 @@
                        return (ENOMEM);
 
                bus_space_read_region_4(sc->memt, sc->romh, addr,
-                   (u_int32_t *)sc->sc_romfont, size / 4);
+                   (uint32_t *)sc->sc_romfont, size / 4);
 
                addr = 0; /* fp->next */
        } while (addr);
diff -r 4ce333d5d6e0 -r 35f8c61e0d0e sys/dev/ic/stireg.h
--- a/sys/dev/ic/stireg.h       Mon Nov 01 02:41:27 2010 +0000
+++ b/sys/dev/ic/stireg.h       Mon Nov 01 06:41:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stireg.h,v 1.3 2010/10/31 15:47:53 skrll Exp $ */
+/*     $NetBSD: stireg.h,v 1.4 2010/11/01 06:41:50 skrll Exp $ */
 
 /*     $OpenBSD: stireg.h,v 1.8 2003/08/19 02:52:38 mickey Exp $       */
 
@@ -110,31 +110,31 @@
 
        /* LSB high */
 struct sti_dd {
-       u_int32_t       dd_type;        /* 0x00 device type */
+       uint32_t        dd_type;        /* 0x00 device type */
 #define        STI_DEVTYPE1    1
 #define        STI_DEVTYPE4    3
-       u_int8_t        dd_unused;
-       u_int8_t        dd_nmon;        /* 0x05 number monitor rates */
-       u_int8_t        dd_grrev;       /* 0x06 global rom revision */
-       u_int8_t        dd_lrrev;       /* 0x07 local rom revision */
-       u_int8_t        dd_grid[8];     /* 0x08 graphics id */
+       uint8_t         dd_unused;
+       uint8_t         dd_nmon;        /* 0x05 number monitor rates */
+       uint8_t         dd_grrev;       /* 0x06 global rom revision */
+       uint8_t         dd_lrrev;       /* 0x07 local rom revision */
+       uint8_t         dd_grid[8];     /* 0x08 graphics id */
 #define STI_DEV4_DD_GRID       0x08    /* offset for STI_DEVTYPE4 */
 #define STI_DEV1_DD_GRID       0x10    /* offset for STI_DEVTYPE1 */
-       u_int32_t       dd_fntaddr;     /* 0x10 font start address */
-       u_int32_t       dd_maxst;       /* 0x14 max state storage */
-       u_int32_t       dd_romend;      /* 0x18 rom last address */
+       uint32_t        dd_fntaddr;     /* 0x10 font start address */
+       uint32_t        dd_maxst;       /* 0x14 max state storage */
+       uint32_t        dd_romend;      /* 0x18 rom last address */
 #define STI_DEV4_DD_ROMEND     0x18    /* offset for STI_DEVTYPE4 */
 #define STI_DEV1_DD_ROMEND     0x50    /* offset for STI_DEVTYPE1 */
-       u_int32_t       dd_reglst;      /* 0x1c device region list */
-       u_int16_t       dd_maxreent;    /* 0x20 max reent storage */
-       u_int16_t       dd_maxtimo;     /* 0x22 max execution timeout .1 sec */
-       u_int32_t       dd_montbl;      /* 0x24 mon table address, array of
+       uint32_t        dd_reglst;      /* 0x1c device region list */
+       uint16_t        dd_maxreent;    /* 0x20 max reent storage */
+       uint16_t        dd_maxtimo;     /* 0x22 max execution timeout .1 sec */
+       uint32_t        dd_montbl;      /* 0x24 mon table address, array of
                                                names num of dd_nmon */
-       u_int32_t       dd_udaddr;      /* 0x28 user data address */
-       u_int32_t       dd_stimemreq;   /* 0x2c sti memory request */
-       u_int32_t       dd_udsize;      /* 0x30 user data size */
-       u_int16_t       dd_pwruse;      /* 0x34 power usage */
-       u_int8_t        dd_bussup;      /* 0x36 bus support */
+       uint32_t        dd_udaddr;      /* 0x28 user data address */
+       uint32_t        dd_stimemreq;   /* 0x2c sti memory request */
+       uint32_t        dd_udsize;      /* 0x30 user data size */
+       uint16_t        dd_pwruse;      /* 0x34 power usage */
+       uint8_t         dd_bussup;      /* 0x36 bus support */
 #define        STI_BUSSUPPORT_GSCINTL  0x01    /*      supports pulling INTL for int */
 #define        STI_BUSSUPPORT_GSC15X   0x02    /*      supports GSC 1.5X */
 #define        STI_BUSSUPPORT_GSC2X    0x04    /*      supports GSC 2.X */
@@ -143,18 +143,18 @@
 #define        STI_BUSSUPPORT_ILOCK    0x20    /*      supports implicit locking */
 #define        STI_BUSSUPPORT_ROMMAP   0x40    /*      rom is only in pci erom space */
 #define        STI_BUSSUPPORT_2DECODE  0x80    /*      single address decoder */
-       u_int8_t        dd_ebussup;     /* 0x37 extended bus support */
+       uint8_t         dd_ebussup;     /* 0x37 extended bus support */
 #define        STI_EBUSSUPPORT_DMA     0x01    /*      supports dma */
 #define        STI_EBUSSUPPORT_PIOLOCK 0x02    /*      no implicit locking for dma */
-       u_int8_t        dd_altcodet;    /* 0x38 alternate code type */
+       uint8_t         dd_altcodet;    /* 0x38 alternate code type */
 #define        STI_ALTCODE_UNKNOWN     0x00
 #define        STI_ALTCODE_PA64        0x01    /*      alt code is in pa64 */
-       u_int8_t        dd_eddst[3];    /* 0x39 extended DD struct */
-       u_int32_t       dd_cfbaddr;     /* 0x3c CFB address, location of
+       uint8_t         dd_eddst[3];    /* 0x39 extended DD struct */
+       uint32_t        dd_cfbaddr;     /* 0x3c CFB address, location of
                                                X11 driver to be used for
                                                servers w/o accel */
-       u_int32_t       dd_pacode[16];  /* 0x40 routines for pa-risc */
-       u_int32_t       dd_altcode[16]; /* 0x80 routines for m68k/i386 */
+       uint32_t        dd_pacode[16];  /* 0x40 routines for pa-risc */
+       uint32_t        dd_altcode[16]; /* 0x80 routines for m68k/i386 */
 };
 
 /* after the last region there is one indirect list ptr */
@@ -168,51 +168,51 @@
 };
 
 struct sti_font {
-       u_int16_t       first;
-       u_int16_t       last;
-       u_int8_t        width;
-       u_int8_t        height;
-       u_int8_t        type;
+       uint16_t        first;
+       uint16_t        last;
+       uint8_t         width;
+       uint8_t         height;
+       uint8_t         type;
 #define        STI_FONT_HPROMAN8       1
 #define        STI_FONT_KANA8          2
-       u_int8_t        bpc;
-       u_int32_t       next;
-       u_int8_t        uheight;
-       u_int8_t        uoffset;
-       u_int8_t        unused[2];
+       uint8_t         bpc;
+       uint32_t        next;
+       uint8_t         uheight;
+       uint8_t         uoffset;
+       uint8_t         unused[2];
 };
 
 struct sti_fontcfg {
-       u_int16_t       first;
-       u_int16_t       last;
-       u_int8_t        width;
-       u_int8_t        height;
-       u_int8_t        type;
-       u_int8_t        bpc;
-       u_int8_t        uheight;
-       u_int8_t        uoffset;
+       uint16_t        first;
+       uint16_t        last;
+       uint8_t         width;
+       uint8_t         height;
+       uint8_t         type;
+       uint8_t         bpc;
+       uint8_t         uheight;
+       uint8_t         uoffset;
 };
 
 typedef struct sti_ecfg {
-       u_int8_t        current_monitor;
-       u_int8_t        uf_boot;
-       u_int16_t       power;          /* power dissipation Watts */
-       u_int32_t       freq_ref;
-       u_int32_t       *addr;          /* memory block of size dd_stimemreq */
+       uint8_t         current_monitor;
+       uint8_t         uf_boot;
+       uint16_t        power;          /* power dissipation Watts */
+       uint32_t        freq_ref;
+       uint32_t        *addr;          /* memory block of size dd_stimemreq */
        void            *future;
 } *sti_ecfg_t;
 
 typedef struct sti_cfg {
-       u_int32_t       text_planes;
-       u_int16_t       scr_width;
-       u_int16_t       scr_height;
-       u_int16_t       oscr_width;
-       u_int16_t       oscr_height;
-       u_int16_t       fb_width;
-       u_int16_t       fb_height;
-       u_int32_t       regions[STI_REGION_MAX];
-       u_int32_t       reent_level;
-       u_int32_t       *save_addr;
+       uint32_t        text_planes;
+       uint16_t        scr_width;
+       uint16_t        scr_height;
+       uint16_t        oscr_width;
+       uint16_t        oscr_height;
+       uint16_t        fb_width;
+       uint16_t        fb_height;
+       uint32_t        regions[STI_REGION_MAX];
+       uint32_t        reent_level;
+       uint32_t        *save_addr;
        sti_ecfg_t      ext_cfg;
 } *sti_cfg_t;
 
@@ -223,7 +223,7 @@
          sti_##n##flags_t, sti_##n##in_t, sti_##n##out_t, sti_cfg_t);
 
 typedef struct sti_initflags {
-       u_int32_t       flags;
+       uint32_t        flags;
 #define        STI_INITF_WAIT  0x80000000
 #define        STI_INITF_RESET 0x40000000
 #define        STI_INITF_TEXT  0x20000000
@@ -243,27 +243,27 @@
 } *sti_initflags_t;
 
 typedef struct sti_einitin {
-       u_int8_t        mon_type;
-       u_int8_t        pad;
-       u_int16_t       inflight;       /* possible on pci */
+       uint8_t         mon_type;
+       uint8_t         pad;



Home | Main Index | Thread Index | Old Index