Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Constify pci_attach_args.



details:   https://anonhg.NetBSD.org/src/rev/1a9edd426265
branches:  trunk
changeset: 764893:1a9edd426265
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Wed May 11 00:12:41 2011 +0000

description:
Constify pci_attach_args.

diffstat:

 sys/dev/pci/chipsfb.c  |   8 ++++----
 sys/dev/pci/radeonfb.c |  12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (90 lines):

diff -r c16eeb0bde8a -r 1a9edd426265 sys/dev/pci/chipsfb.c
--- a/sys/dev/pci/chipsfb.c     Tue May 10 23:58:25 2011 +0000
+++ b/sys/dev/pci/chipsfb.c     Wed May 11 00:12:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chipsfb.c,v 1.28 2011/04/05 23:25:00 dyoung Exp $      */
+/*     $NetBSD: chipsfb.c,v 1.29 2011/05/11 00:12:41 dyoung Exp $      */
 
 /*
  * Copyright (c) 2006 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: chipsfb.c,v 1.28 2011/04/05 23:25:00 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: chipsfb.c,v 1.29 2011/05/11 00:12:41 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -69,7 +69,7 @@
 static int
 chipsfb_pci_match(device_t parent, cfdata_t match, void *aux)
 {
-       struct pci_attach_args *pa = (struct pci_attach_args *)aux;
+       const struct pci_attach_args *pa = (const struct pci_attach_args *)aux;
 
        if (PCI_CLASS(pa->pa_class) != PCI_CLASS_DISPLAY ||
            PCI_SUBCLASS(pa->pa_class) != PCI_SUBCLASS_DISPLAY_VGA)
@@ -88,7 +88,7 @@
 {
        struct chipsfb_pci_softc *scp = device_private(self);
        struct chipsfb_softc *sc = &scp->sc_chips;
-       struct pci_attach_args *pa = aux;
+       const struct pci_attach_args *pa = aux;
        char devinfo[256];
        pcireg_t screg;
 
diff -r c16eeb0bde8a -r 1a9edd426265 sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c    Tue May 10 23:58:25 2011 +0000
+++ b/sys/dev/pci/radeonfb.c    Wed May 11 00:12:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeonfb.c,v 1.43 2011/04/15 21:47:39 dyoung Exp $ */
+/*     $NetBSD: radeonfb.c,v 1.44 2011/05/11 00:17:55 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.43 2011/04/15 21:47:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.44 2011/05/11 00:17:55 dyoung Exp $");
 
 #define RADEONFB_DEFAULT_DEPTH 8
 
@@ -107,7 +107,7 @@
 static paddr_t radeonfb_mmap(void *, void *, off_t, int);
 static int radeonfb_scratch_test(struct radeonfb_softc *, int, uint32_t);
 static void radeonfb_loadbios(struct radeonfb_softc *,
-    struct pci_attach_args *);
+    const struct pci_attach_args *);
 
 static uintmax_t radeonfb_getprop_num(struct radeonfb_softc *, const char *,
     uintmax_t);
@@ -416,7 +416,7 @@
 static int
 radeonfb_match(device_t parent, cfdata_t match, void *aux)
 {
-       struct pci_attach_args  *pa = aux;
+       const struct pci_attach_args    *pa = aux;
        int                     i;
 
        if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_ATI)
@@ -434,7 +434,7 @@
 radeonfb_attach(device_t parent, device_t dev, void *aux)
 {
        struct radeonfb_softc   *sc = device_private(dev);
-       struct pci_attach_args  *pa = aux;
+       const struct pci_attach_args    *pa = aux;
        const char              *mptr;
        bus_size_t              bsz;
        pcireg_t                screg;
@@ -1151,7 +1151,7 @@
 }
 
 static void
-radeonfb_loadbios(struct radeonfb_softc *sc, struct pci_attach_args *pa)
+radeonfb_loadbios(struct radeonfb_softc *sc, const struct pci_attach_args *pa)
 {
        bus_space_tag_t         romt;
        bus_space_handle_t      romh, biosh;



Home | Main Index | Thread Index | Old Index