Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/pci Use proper integer types for PCI configur...



details:   https://anonhg.NetBSD.org/src/rev/35de78515648
branches:  trunk
changeset: 451030:35de78515648
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 04 08:30:06 2019 +0000

description:
Use proper integer types for PCI configuration registers.

diffstat:

 sys/arch/atari/pci/pci_machdep.c |  8 ++++----
 sys/arch/atari/pci/pci_vga.c     |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (66 lines):

diff -r 952b7b1c4699 -r 35de78515648 sys/arch/atari/pci/pci_machdep.c
--- a/sys/arch/atari/pci/pci_machdep.c  Sat May 04 08:27:30 2019 +0000
+++ b/sys/arch/atari/pci/pci_machdep.c  Sat May 04 08:30:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.c,v 1.57 2019/05/04 08:20:05 tsutsui Exp $ */
+/*     $NetBSD: pci_machdep.c,v 1.58 2019/05/04 08:30:06 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1996 Leo Weppelman.  All rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.57 2019/05/04 08:20:05 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.58 2019/05/04 08:30:06 tsutsui Exp $");
 
 #include "opt_mbtype.h"
 
@@ -228,7 +228,7 @@
        pcitag_t                tag;
        pcireg_t                csr;
        int                     device, maxndevs;
-       int                     id;
+       uint32_t                id;
 
        tag   = 0;
        id    = 0;
@@ -328,7 +328,7 @@
        PCI_MEMREG iolist;
        struct pci_memreg *p, *q;
        int dev, reg;
-       int id, class;
+       uint32_t id, class;
        pcitag_t tag;
        pcireg_t csr, address, mask;
        pci_chipset_tag_t pc;
diff -r 952b7b1c4699 -r 35de78515648 sys/arch/atari/pci/pci_vga.c
--- a/sys/arch/atari/pci/pci_vga.c      Sat May 04 08:27:30 2019 +0000
+++ b/sys/arch/atari/pci/pci_vga.c      Sat May 04 08:30:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_vga.c,v 1.15 2019/05/04 08:20:05 tsutsui Exp $     */
+/*     $NetBSD: pci_vga.c,v 1.16 2019/05/04 08:30:06 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1999 Leo Weppelman.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_vga.c,v 1.15 2019/05/04 08:20:05 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_vga.c,v 1.16 2019/05/04 08:30:06 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -76,9 +76,9 @@
        pci_chipset_tag_t       pc = NULL; /* XXX */
        bus_space_handle_t      ioh_regs, memh_fb;
        pcitag_t                tag;
-       int                     device, found, id, maxndevs, i, j;
+       int                     device, found, maxndevs, i, j;
        int                     got_ioh, got_memh, rv;
-       int             class;
+       uint32_t                id, class;
        volatile uint8_t        *regs;
        uint8_t                 *fb;
        const char              *nbd = "NetBSD/Atari";



Home | Main Index | Thread Index | Old Index