From b6185cbde22ddc49af500b9b29dd21cc730d858a Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 10 Jul 2011 23:13:22 +0000 Subject: [PATCH] Fix machine/ includes --- sys/arch/mips/adm5120/adm5120_intr.c | 12 +-- sys/arch/mips/adm5120/dev/admpci.c | 47 ++++----- sys/arch/mips/adm5120/dev/if_admsw.c | 26 +++-- sys/arch/mips/adm5120/dev/if_admswvar.h | 26 +++-- sys/arch/mips/adm5120/dev/uart.c | 96 +++++++++---------- sys/arch/mips/adm5120/dev/wdc_extio.c | 20 ++-- sys/arch/mips/alchemy/au1000.c | 6 +- sys/arch/mips/alchemy/au1100.c | 8 +- sys/arch/mips/alchemy/au1500.c | 8 +- sys/arch/mips/alchemy/au1550.c | 8 +- sys/arch/mips/alchemy/au_chipdep.c | 6 +- sys/arch/mips/alchemy/au_himem_space.c | 6 +- sys/arch/mips/alchemy/au_icu.c | 14 ++- sys/arch/mips/alchemy/au_wired_space.c | 6 +- sys/arch/mips/alchemy/aubus.c | 18 ++-- sys/arch/mips/alchemy/dev/auspi.c | 13 ++- sys/arch/mips/alchemy/dev/if_aumac.c | 21 ++-- sys/arch/mips/alchemy/include/auvar.h | 4 +- sys/arch/mips/atheros/ar9344.c | 6 +- sys/arch/mips/atheros/dev/arpci.c | 16 ++-- sys/arch/mips/atheros/include/ar9344reg.h | 5 +- sys/arch/mips/bonito/bonito_iobc.c | 8 +- sys/arch/mips/bonito/bonito_pci.c | 14 +-- sys/arch/mips/conf/files.atheros | 7 +- sys/arch/mips/mips/bus_dma.c | 23 ++--- .../mips/mips/bus_space_alignstride_chipdep.c | 6 +- sys/arch/mips/mips/in_cksum.c | 8 +- sys/arch/mips/mips/mips3_clock.c | 11 +-- sys/arch/mips/mips/mips3_clockintr.c | 7 +- sys/arch/mips/mips/mips_softint.c | 8 +- sys/arch/mips/rmi/rmixl_gpio.c | 15 ++- sys/arch/mips/rmi/rmixl_intr.c | 21 ++-- sys/arch/mips/rmi/rmixl_obio.c | 13 ++- sys/arch/mips/rmi/rmixl_pcie.c | 17 ++-- sys/arch/mips/rmi/rmixl_pcix.c | 15 ++- 35 files changed, 257 insertions(+), 288 deletions(-) diff --git a/sys/arch/mips/adm5120/adm5120_intr.c b/sys/arch/mips/adm5120/adm5120_intr.c index 42dde73927de..5d14a7d07f8a 100644 --- a/sys/arch/mips/adm5120/adm5120_intr.c +++ b/sys/arch/mips/adm5120/adm5120_intr.c @@ -1,4 +1,4 @@ -/* $NetBSD: adm5120_intr.c,v 1.5 2011/07/01 18:38:48 dyoung Exp $ */ +/* $NetBSD: adm5120_intr.c,v 1.6 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. @@ -67,20 +67,14 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: adm5120_intr.c,v 1.5 2011/07/01 18:38:48 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: adm5120_intr.c,v 1.6 2011/07/10 23:13:23 matt Exp $"); #include "opt_ddb.h" #define __INTR_PRIVATE #include -#include +#include #include -#include -#include -#include - -#include -#include #include #include diff --git a/sys/arch/mips/adm5120/dev/admpci.c b/sys/arch/mips/adm5120/dev/admpci.c index 9b91809cc87c..3a732a7c420f 100644 --- a/sys/arch/mips/adm5120/dev/admpci.c +++ b/sys/arch/mips/adm5120/dev/admpci.c @@ -1,4 +1,4 @@ -/* $NetBSD: admpci.c,v 1.7 2011/07/01 18:38:49 dyoung Exp $ */ +/* $NetBSD: admpci.c,v 1.8 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2007 David Young. All rights reserved. @@ -61,9 +61,12 @@ #include "pci.h" #include -__KERNEL_RCSID(0, "$NetBSD: admpci.c,v 1.7 2011/07/01 18:38:49 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: admpci.c,v 1.8 2011/07/10 23:13:23 matt Exp $"); #include +#include +#include + #include #include #include @@ -74,10 +77,6 @@ __KERNEL_RCSID(0, "$NetBSD: admpci.c,v 1.7 2011/07/01 18:38:49 dyoung Exp $"); #include -#include -#include -#include - #include #include #include @@ -86,6 +85,8 @@ __KERNEL_RCSID(0, "$NetBSD: admpci.c,v 1.7 2011/07/01 18:38:49 dyoung Exp $"); #include #endif +#include + #include #include #include @@ -114,7 +115,7 @@ do { \ #define ADMPCI_MAX_DEVICE struct admpci_softc { - struct device sc_dev; + device_t sc_dev; struct mips_pci_chipset sc_pc; bus_space_tag_t sc_memt; @@ -125,11 +126,11 @@ struct admpci_softc { bus_space_handle_t sc_datah; }; -int admpcimatch(struct device *, struct cfdata *, void *); -void admpciattach(struct device *, struct device *, void *); +int admpcimatch(device_t, cfdata_t, void *); +void admpciattach(device_t, device_t, void *); #if NPCI > 0 -static void admpci_attach_hook(struct device *, struct device *, +static void admpci_attach_hook(device_t, device_t, struct pcibus_attach_args *); static int admpci_bus_maxdevs(void *, int); static pcitag_t admpci_make_tag(void *, int, int, int); @@ -150,7 +151,7 @@ static struct extent *mem_ex = NULL; #endif /* NPCI > 0 */ -CFATTACH_DECL(admpci, sizeof(struct admpci_softc), +CFATTACH_DECL_NEW(admpci, sizeof(struct admpci_softc), admpcimatch, admpciattach, NULL, NULL); int admpci_found = 0; @@ -166,7 +167,7 @@ int admpci_found = 0; #endif int -admpcimatch(struct device *parent, struct cfdata *match, void *aux) +admpcimatch(device_t parent, cfdata_t match, void *aux) { struct mainbus_attach_args *ma = (struct mainbus_attach_args *)aux; @@ -174,10 +175,10 @@ admpcimatch(struct device *parent, struct cfdata *match, void *aux) } void -admpciattach(struct device *parent, struct device *self, void *aux) +admpciattach(device_t parent, device_t self, void *aux) { struct adm5120_config *admc = &adm5120_configuration; - struct admpci_softc *sc = (struct admpci_softc *)self; + struct admpci_softc *sc = device_private(self); struct mainbus_attach_args *ma = (struct mainbus_attach_args *)aux; #if NPCI > 0 u_long result; @@ -187,24 +188,24 @@ admpciattach(struct device *parent, struct device *self, void *aux) admpci_found = 1; + sc->sc_dev = self; sc->sc_conft = ma->ma_obiot; if (bus_space_map(sc->sc_conft, ADM5120_BASE_PCI_CONFDATA, 4, 0, &sc->sc_datah) != 0) { - printf( - "\n%s: unable to map PCI Configuration Data register\n", - device_xname(&sc->sc_dev)); + aprint_error( + ": unable to map PCI Configuration Data register\n"); return; } if (bus_space_map(sc->sc_conft, ADM5120_BASE_PCI_CONFADDR, 4, 0, &sc->sc_addrh) != 0) { - printf( - "\n%s: unable to map PCI Configuration Address register\n", - device_xname(&sc->sc_dev)); + aprint_error( + ": unable to map PCI Configuration Address register\n"); return; } - printf(": ADM5120 Host-PCI Bridge, data %"PRIxBSH" addr %"PRIxBSH", sc %p\n", - sc->sc_datah, sc->sc_addrh, (void *)sc); + aprint_normal(": ADM5120 Host-PCI Bridge, " + "data %"PRIxBSH" addr %"PRIxBSH", sc %p\n", + sc->sc_datah, sc->sc_addrh, sc); #if NPCI > 0 sc->sc_memt = &admc->pcimem_space; @@ -271,7 +272,7 @@ admpciattach(struct device *parent, struct device *self, void *aux) #if NPCI > 0 void -admpci_attach_hook(struct device *parent, struct device *self, +admpci_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba) { } diff --git a/sys/arch/mips/adm5120/dev/if_admsw.c b/sys/arch/mips/adm5120/dev/if_admsw.c index 2acda4b676a4..f4e05f0ef8f8 100644 --- a/sys/arch/mips/adm5120/dev/if_admsw.c +++ b/sys/arch/mips/adm5120/dev/if_admsw.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_admsw.c,v 1.9 2011/07/01 18:38:49 dyoung Exp $ */ +/* $NetBSD: if_admsw.c,v 1.10 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. @@ -76,20 +76,22 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.9 2011/07/01 18:38:49 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.10 2011/07/10 23:13:23 matt Exp $"); #include -#include +#include #include -#include -#include -#include -#include -#include -#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include @@ -102,10 +104,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.9 2011/07/01 18:38:49 dyoung Exp $"); #include -#include -#include -#include - #include #include diff --git a/sys/arch/mips/adm5120/dev/if_admswvar.h b/sys/arch/mips/adm5120/dev/if_admswvar.h index c0418a396aab..3c9302fbf102 100644 --- a/sys/arch/mips/adm5120/dev/if_admswvar.h +++ b/sys/arch/mips/adm5120/dev/if_admswvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_admswvar.h,v 1.3 2011/07/01 18:38:49 dyoung Exp $ */ +/* $NetBSD: if_admswvar.h,v 1.4 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. @@ -34,19 +34,21 @@ #define _IF_ADMSWVAR_H_ #include -__KERNEL_RCSID(0, "$NetBSD: if_admswvar.h,v 1.3 2011/07/01 18:38:49 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_admswvar.h,v 1.4 2011/07/10 23:13:23 matt Exp $"); #include -#include +#include #include -#include -#include -#include -#include -#include -#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include /* for PAGE_SIZE */ @@ -56,10 +58,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_admswvar.h,v 1.3 2011/07/01 18:38:49 dyoung Exp $ #include #include -#include -#include -#include - #include #include diff --git a/sys/arch/mips/adm5120/dev/uart.c b/sys/arch/mips/adm5120/dev/uart.c index 225edbf17e47..b4c49d73c003 100644 --- a/sys/arch/mips/adm5120/dev/uart.c +++ b/sys/arch/mips/adm5120/dev/uart.c @@ -1,4 +1,4 @@ -/* $NetBSD: uart.c,v 1.8 2011/07/01 18:38:49 dyoung Exp $ */ +/* $NetBSD: uart.c,v 1.9 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. @@ -32,30 +32,23 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uart.c,v 1.8 2011/07/01 18:38:49 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uart.c,v 1.9 2011/07/10 23:13:23 matt Exp $"); -#include #include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include #include +#include +#include +#include +#include +#include +#include +#include +#include + +#include #include #include -#include #include #define REG_READ(o) bus_space_read_4(sc->sc_st, sc->sc_ioh, (o)) @@ -63,8 +56,6 @@ __KERNEL_RCSID(0, "$NetBSD: uart.c,v 1.8 2011/07/01 18:38:49 dyoung Exp $"); cons_decl(uart_); -extern struct consdev *cn_tab; /* physical console device info */ - dev_type_open(uart_open); dev_type_open(uart_close); dev_type_read(uart_read); @@ -75,75 +66,76 @@ dev_type_poll(uart_poll); dev_type_stop(uart_stop); const struct cdevsw uart_cdevsw = { - uart_open, uart_close, uart_read, uart_write, uart_ioctl, - uart_stop, uart_tty, uart_poll, nommap, ttykqfilter, D_TTY + uart_open, uart_close, uart_read, uart_write, uart_ioctl, + uart_stop, uart_tty, uart_poll, nommap, ttykqfilter, D_TTY }; - struct consdev uartcons = { - NULL, NULL, uart_cngetc, uart_cnputc, uart_cnpollc, NULL, NULL, NULL, - NODEV, CN_NORMAL + .cn_getc = uart_cngetc, + .cn_putc = uart_cnputc, + .cn_pollc = uart_cnpollc, + .cn_dev = NODEV, + .cn_pri = CN_NORMAL }; struct uart_softc { - struct device sc_dev; - struct tty *sc_tty; + device_t sc_dev; + struct tty * sc_tty; - bus_space_tag_t sc_st; - bus_space_handle_t sc_ioh; - void *sc_ih; + bus_space_tag_t sc_st; + bus_space_handle_t sc_ioh; + void * sc_ih; }; extern struct cfdriver uart_cd; static int uart_consattached; -static int uart_probe (struct device *, struct cfdata *, void *); -static void uart_attach (struct device *, struct device *, void *); +static int uart_probe (device_t, cfdata_t, void *); +static void uart_attach (device_t, device_t, void *); void uart_start(struct tty *); int uart_param(struct tty *, struct termios *); int uart_intr(void *); -CFATTACH_DECL(uart, sizeof(struct uart_softc), +CFATTACH_DECL_NEW(uart, sizeof(struct uart_softc), uart_probe, uart_attach, NULL, NULL); static int -uart_probe(struct device *parent, struct cfdata *cf, void *aux) +uart_probe(device_t parent, cfdata_t cf, void *aux) { - struct obio_attach_args *aa = aux; + struct obio_attach_args * const oba = aux; - if (strcmp(aa->oba_name, cf->cf_name) == 0) + if (strcmp(oba->oba_name, cf->cf_name) == 0) return (1); return (0); } static void -uart_attach(struct device *parent, struct device *self, void *aux) +uart_attach(device_t parent, device_t self, void *aux) { - struct obio_attach_args *oba = aux; - struct uart_softc *sc = (struct uart_softc *)self; + struct obio_attach_args * const oba = aux; + struct uart_softc * const sc = device_private(self); struct tty *tp; int maj, minor; - + + sc->sc_dev = self; sc->sc_st = oba->oba_st; - if (bus_space_map(oba->oba_st, oba->oba_addr, 256, 0, - &sc->sc_ioh)) { - printf("%s: unable to map device\n", sc->sc_dev.dv_xname); + if (bus_space_map(oba->oba_st, oba->oba_addr, 256, 0, &sc->sc_ioh)) { + aprint_error("unable to map device\n"); return; } /* Establish the interrupt. */ sc->sc_ih = adm5120_intr_establish(oba->oba_irq, INTR_FIQ, uart_intr, sc); if (sc->sc_ih == NULL) { - printf("%s: unable to establish interrupt\n", - sc->sc_dev.dv_xname); + aprint_error("unable to establish interrupt\n"); return; } REG_WRITE(UART_CR_REG,UART_CR_PORT_EN|UART_CR_RX_INT_EN|UART_CR_RX_TIMEOUT_INT_EN); maj = cdevsw_lookup_major(&uart_cdevsw); - minor = sc->sc_dev.dv_unit; + minor = device_unit(sc->sc_dev); tp = tty_alloc(); tp->t_oproc = uart_start; @@ -154,9 +146,9 @@ uart_attach(struct device *parent, struct device *self, void *aux) if (minor == 0 && uart_consattached) { /* attach as console*/ cn_tab->cn_dev = tp->t_dev; - printf(" console"); + aprint_normal(" console"); } - printf("\n"); + aprint_normal("\n"); } int @@ -172,14 +164,16 @@ uart_cnputc(dev_t dev, int c) { char chr; chr = c; - while ((*((volatile unsigned long *)0xb2600018)) & 0x20) ; + while ((*((volatile unsigned long *)0xb2600018)) & 0x20) + continue; (*((volatile unsigned long *)0xb2600000)) = c; } int uart_cngetc(dev_t dev) { - while ((*((volatile unsigned long *)0xb2600018)) & 0x10) ; + while ((*((volatile unsigned long *)0xb2600018)) & 0x10) + continue; return (*((volatile unsigned long *)0xb2600000)) & 0xff; } diff --git a/sys/arch/mips/adm5120/dev/wdc_extio.c b/sys/arch/mips/adm5120/dev/wdc_extio.c index ddf8ddfb3bc5..40843615172f 100644 --- a/sys/arch/mips/adm5120/dev/wdc_extio.c +++ b/sys/arch/mips/adm5120/dev/wdc_extio.c @@ -1,4 +1,4 @@ -/* $NetBSD: wdc_extio.c,v 1.4 2011/07/01 18:38:49 dyoung Exp $ */ +/* $NetBSD: wdc_extio.c,v 1.5 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2007 David Young. All rights reserved. @@ -61,19 +61,17 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wdc_extio.c,v 1.4 2011/07/01 18:38:49 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wdc_extio.c,v 1.5 2011/07/10 23:13:23 matt Exp $"); -#include #include -#include -#include -#include -#include -#include - #include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/sys/arch/mips/alchemy/au1000.c b/sys/arch/mips/alchemy/au1000.c index 8ab61629820e..c7d9c0370cad 100644 --- a/sys/arch/mips/alchemy/au1000.c +++ b/sys/arch/mips/alchemy/au1000.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1000.c,v 1.9 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au1000.c,v 1.10 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -101,11 +101,11 @@ __KERNEL_RCSID(0, "$NetBSD"); #include #include -#include +#include #include #include -static const char *au1000_irqnames[] = { +static const char * const au1000_irqnames[] = { "uart0", "uart1", "uart2", diff --git a/sys/arch/mips/alchemy/au1100.c b/sys/arch/mips/alchemy/au1100.c index 02b81eeae642..036ae4266d52 100644 --- a/sys/arch/mips/alchemy/au1100.c +++ b/sys/arch/mips/alchemy/au1100.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1100.c,v 1.9 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au1100.c,v 1.10 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,15 +97,15 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au1100.c,v 1.9 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au1100.c,v 1.10 2011/07/10 23:13:23 matt Exp $"); #include #include -#include +#include #include #include -static const char *au1100_irqnames[] = { +static const char * const au1100_irqnames[] = { "uart0", "uart1", "sdcard", diff --git a/sys/arch/mips/alchemy/au1500.c b/sys/arch/mips/alchemy/au1500.c index 61dd55c74186..f4a3dff57d6d 100644 --- a/sys/arch/mips/alchemy/au1500.c +++ b/sys/arch/mips/alchemy/au1500.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1500.c,v 1.10 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au1500.c,v 1.11 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,15 +97,15 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au1500.c,v 1.10 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au1500.c,v 1.11 2011/07/10 23:13:23 matt Exp $"); #include #include -#include +#include #include #include -static const char *au1500_irqnames[] = { +static const char * const au1500_irqnames[] = { "uart0", "pci inta", "pci intb", diff --git a/sys/arch/mips/alchemy/au1550.c b/sys/arch/mips/alchemy/au1550.c index 3eccc3b454fa..c56f26081c6f 100644 --- a/sys/arch/mips/alchemy/au1550.c +++ b/sys/arch/mips/alchemy/au1550.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1550.c,v 1.13 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au1550.c,v 1.14 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,15 +97,15 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au1550.c,v 1.13 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au1550.c,v 1.14 2011/07/10 23:13:23 matt Exp $"); #include #include -#include +#include #include #include -static const char *au1550_irqnames[] = { +static const char * const au1550_irqnames[] = { "uart0", "pci inta", "pci intb", diff --git a/sys/arch/mips/alchemy/au_chipdep.c b/sys/arch/mips/alchemy/au_chipdep.c index 1362a6d4a5cd..d891a4015bb2 100644 --- a/sys/arch/mips/alchemy/au_chipdep.c +++ b/sys/arch/mips/alchemy/au_chipdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: au_chipdep.c,v 1.3 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au_chipdep.c,v 1.4 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -32,11 +32,11 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au_chipdep.c,v 1.3 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au_chipdep.c,v 1.4 2011/07/10 23:13:23 matt Exp $"); #include #include -#include +#include #include #include diff --git a/sys/arch/mips/alchemy/au_himem_space.c b/sys/arch/mips/alchemy/au_himem_space.c index f930012cc244..55adf93a8989 100644 --- a/sys/arch/mips/alchemy/au_himem_space.c +++ b/sys/arch/mips/alchemy/au_himem_space.c @@ -1,4 +1,4 @@ -/* $NetBSD: au_himem_space.c,v 1.12 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au_himem_space.c,v 1.13 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.12 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.13 2011/07/10 23:13:23 matt Exp $"); /* * This provides mappings for the upper I/O regions used on some @@ -78,7 +78,7 @@ __KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.12 2011/07/01 18:39:29 dyoung E #include #include -#include +#include #include #define TRUNC_PAGE(x) ((x) & ~(PAGE_SIZE - 1)) diff --git a/sys/arch/mips/alchemy/au_icu.c b/sys/arch/mips/alchemy/au_icu.c index 9c680cf8abdb..c0e5595e7742 100644 --- a/sys/arch/mips/alchemy/au_icu.c +++ b/sys/arch/mips/alchemy/au_icu.c @@ -1,4 +1,4 @@ -/* $NetBSD: au_icu.c,v 1.27 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au_icu.c,v 1.28 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -68,20 +68,18 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au_icu.c,v 1.27 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au_icu.c,v 1.28 2011/07/10 23:13:23 matt Exp $"); #include "opt_ddb.h" #define __INTR_PRIVATE #include -#include +#include +#include +#include +#include #include #include -#include -#include - -#include -#include #include #include diff --git a/sys/arch/mips/alchemy/au_wired_space.c b/sys/arch/mips/alchemy/au_wired_space.c index 35b353f7e84b..19720f9d8af5 100644 --- a/sys/arch/mips/alchemy/au_wired_space.c +++ b/sys/arch/mips/alchemy/au_wired_space.c @@ -1,4 +1,4 @@ -/* $NetBSD: au_wired_space.c,v 1.7 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: au_wired_space.c,v 1.8 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au_wired_space.c,v 1.7 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au_wired_space.c,v 1.8 2011/07/10 23:13:23 matt Exp $"); /* * This provides mappings for the upper I/O regions used on some @@ -76,7 +76,7 @@ __KERNEL_RCSID(0, "$NetBSD: au_wired_space.c,v 1.7 2011/07/01 18:39:29 dyoung Ex #include #include -#include +#include #include #include diff --git a/sys/arch/mips/alchemy/aubus.c b/sys/arch/mips/alchemy/aubus.c index fa3aca7bf8ff..3086e5d03de4 100644 --- a/sys/arch/mips/alchemy/aubus.c +++ b/sys/arch/mips/alchemy/aubus.c @@ -1,4 +1,4 @@ -/* $NetBSD: aubus.c,v 1.22 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: aubus.c,v 1.23 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,24 +97,24 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: aubus.c,v 1.22 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aubus.c,v 1.23 2011/07/10 23:13:23 matt Exp $"); #include "locators.h" +#define _MIPS_BUS_DMA_PRIVATE #include -#include +#include #include #include #include +#include -#define _MIPS_BUS_DMA_PRIVATE -#include -#include +#include #include #include #include -static int aubus_match(device_t, struct cfdata *, void *); +static int aubus_match(device_t, cfdata_t, void *); static void aubus_attach(device_t, device_t, void *); static int aubus_print(void *, const char *); @@ -132,7 +132,7 @@ struct mips_bus_dma_tag aubus_mdt = { * Probe for the aubus; always succeeds. */ static int -aubus_match(device_t parent, struct cfdata *match, void *aux) +aubus_match(device_t parent, cfdata_t match, void *aux) { return 1; @@ -145,7 +145,7 @@ static void aubus_attach(device_t parent, device_t self, void *aux) { struct aubus_attach_args aa; - struct device *sc = self; + device_t sc = self; struct au_chipdep *chip; const struct au_dev *ad; int locs[AUBUSCF_NLOCS]; diff --git a/sys/arch/mips/alchemy/dev/auspi.c b/sys/arch/mips/alchemy/dev/auspi.c index 44749a6957fa..70f2a7895c4b 100644 --- a/sys/arch/mips/alchemy/dev/auspi.c +++ b/sys/arch/mips/alchemy/dev/auspi.c @@ -1,4 +1,4 @@ -/* $NetBSD: auspi.c,v 1.5 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: auspi.c,v 1.6 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -42,19 +42,18 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: auspi.c,v 1.5 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: auspi.c,v 1.6 2011/07/10 23:13:23 matt Exp $"); #include "locators.h" #include -#include -#include +#include +#include #include #include +#include #include - -#include -#include +#include #include #include diff --git a/sys/arch/mips/alchemy/dev/if_aumac.c b/sys/arch/mips/alchemy/dev/if_aumac.c index 0f21e173c01c..1921721e06a0 100644 --- a/sys/arch/mips/alchemy/dev/if_aumac.c +++ b/sys/arch/mips/alchemy/dev/if_aumac.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_aumac.c,v 1.30 2011/07/01 18:39:29 dyoung Exp $ */ +/* $NetBSD: if_aumac.c,v 1.31 2011/07/10 23:13:23 matt Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -46,21 +46,22 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.30 2011/07/01 18:39:29 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.31 2011/07/10 23:13:23 matt Exp $"); #include "rnd.h" #include -#include +#include #include +#include +#include +#include +#include +#include +#include #include #include -#include #include -#include -#include -#include -#include #include /* for PAGE_SIZE */ @@ -74,10 +75,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.30 2011/07/01 18:39:29 dyoung Exp $") #include #endif -#include -#include -#include - #include #include diff --git a/sys/arch/mips/alchemy/include/auvar.h b/sys/arch/mips/alchemy/include/auvar.h index bdef3887b263..396a0dc54bf2 100644 --- a/sys/arch/mips/alchemy/include/auvar.h +++ b/sys/arch/mips/alchemy/include/auvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: auvar.h,v 1.10 2011/02/20 07:48:36 matt Exp $ */ +/* $NetBSD: auvar.h,v 1.11 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -81,7 +81,7 @@ struct au_chipdep { const char *name; bus_addr_t icus[2]; /* in case it ever changes */ struct au_dev *devices; - const char **irqnames; + const char * const *irqnames; }; struct au_chipdep *au_chipdep(void); diff --git a/sys/arch/mips/atheros/ar9344.c b/sys/arch/mips/atheros/ar9344.c index 4cfd4b5bd981..268eb00516c5 100644 --- a/sys/arch/mips/atheros/ar9344.c +++ b/sys/arch/mips/atheros/ar9344.c @@ -1,4 +1,4 @@ -/* $NetBSD: ar9344.c,v 1.2 2011/07/10 06:26:02 matt Exp $ */ +/* $NetBSD: ar9344.c,v 1.3 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -48,7 +48,7 @@ * family. */ #include -__KERNEL_RCSID(0, "$NetBSD: ar9344.c,v 1.2 2011/07/10 06:26:02 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ar9344.c,v 1.3 2011/07/10 23:13:22 matt Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -413,7 +413,7 @@ static const struct atheros_device ar9344_devices[] = { .adv_cirq = ARCHIP_CPU_IRQ_GMAC1, .adv_mirq = -1, }, { - .adv_name = "pcierc", + .adv_name = "arpcie", .adv_addr = AR9344_PCIE_RC_BASE, .adv_size = 0x1000, .adv_cirq = AR9344_CPU_IRQ_PCIERC, diff --git a/sys/arch/mips/atheros/dev/arpci.c b/sys/arch/mips/atheros/dev/arpci.c index a9ff78b87e9c..cd353823eb57 100644 --- a/sys/arch/mips/atheros/dev/arpci.c +++ b/sys/arch/mips/atheros/dev/arpci.c @@ -1,4 +1,4 @@ -/* $NetBSD: arpci.c,v 1.1 2011/07/07 05:06:44 matt Exp $ */ +/* $NetBSD: arpci.c,v 1.2 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. * All rights reserved. @@ -30,7 +30,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: arpci.c,v 1.1 2011/07/07 05:06:44 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arpci.c,v 1.2 2011/07/10 23:13:22 matt Exp $"); #include #include @@ -51,6 +51,7 @@ struct arpci_softc { bus_space_handle_t sc_bsh; struct mips_bus_space sc_memt; struct mips_pci_chipset sc_pc; + bool sc_pcie; u_int sc_pba_flags; }; @@ -65,10 +66,10 @@ arpci_attach_hook(device_t parent, device_t self, static int arpci_bus_maxdevs(void *v, int busno) { - //struct arpci_softc * const sc = v; + struct arpci_softc * const sc = v; if (busno == 0) - return 22; + return (sc->sc_pcie ? 1 : 22); return 32; } @@ -152,7 +153,7 @@ arpci_conf_read(void *v, pcitag_t tag, int reg) bus_space_write_4(sc->sc_bst, sc->sc_bsh, AR7100_PCI_LCL_CFG_CMD, AR7100_PCI_LCL_CFG_CMD_READ | tag); addr += AR7100_PCI_LCL_CFG_RDATA; - printf("%s: tag %#lx ", __func__, tag); + printf("%s: tag %#lx: ", __func__, tag); } else { bus_space_write_4(sc->sc_bst, sc->sc_bsh, AR7100_PCI_CFG_ADDR, tag); @@ -287,6 +288,7 @@ arpci_attach(device_t parent, device_t self, void *aux) sc->sc_dev = self; sc->sc_bst = aa->aa_bst; sc->sc_dmat = aa->aa_dmat; + sc->sc_pcie = (strcmp(device_cfdata(self)->cf_name, "arpcie") == 0); if (bus_space_map(aa->aa_bst, aa->aa_addr, aa->aa_size, 0, &sc->sc_bsh)) { @@ -294,7 +296,7 @@ arpci_attach(device_t parent, device_t self, void *aux) return; } - aprint_normal("\n"); + aprint_normal(": PCI%s bus\n", (sc->sc_pcie ? "-Express x1" : "")); arpci_bus_mem_init(&sc->sc_memt, sc); arpci_chipset_init(sc); @@ -315,6 +317,8 @@ arpci_attach(device_t parent, device_t self, void *aux) CFATTACH_DECL_NEW(arpci, sizeof(struct arpci_softc), arpci_match, arpci_attach, NULL, NULL); +CFATTACH_DECL_NEW(arpcie, sizeof(struct arpci_softc), + arpci_match, arpci_attach, NULL, NULL); #define CHIP arpci #define CHIP_LITTLE_ENDIAN /* defined */ diff --git a/sys/arch/mips/atheros/include/ar9344reg.h b/sys/arch/mips/atheros/include/ar9344reg.h index 688b23454110..3307ff124b68 100644 --- a/sys/arch/mips/atheros/include/ar9344reg.h +++ b/sys/arch/mips/atheros/include/ar9344reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: ar9344reg.h,v 1.1 2011/07/07 05:06:44 matt Exp $ */ +/* $NetBSD: ar9344reg.h,v 1.2 2011/07/10 23:13:23 matt Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -52,7 +52,8 @@ #define AR9344_SLIC_BASE 0x180A9000 #define AR9344_STEREO_BASE 0x180B0000 #define AR9344_MDIO_BASE 0x180B8000 -#define AR9344_PCIE_RC_BASE 0x180F0000 +#define AR9344_PCIE_RC_BASE 0x180C0000 +#define AR9344_PCIE_RC_BASE2 0x180F0000 #define AR9344_WDMA_BASE 0x18100000 #define AR9344_RTC_BASE 0x18107000 #define AR9344_UART1_BASE 0x18150000 /* high speed */ diff --git a/sys/arch/mips/bonito/bonito_iobc.c b/sys/arch/mips/bonito/bonito_iobc.c index 47cbca033227..23d0d26eeeea 100644 --- a/sys/arch/mips/bonito/bonito_iobc.c +++ b/sys/arch/mips/bonito/bonito_iobc.c @@ -1,4 +1,4 @@ -/* $NetBSD: bonito_iobc.c,v 1.4 2008/04/28 20:23:28 martin Exp $ */ +/* $NetBSD: bonito_iobc.c,v 1.5 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -40,12 +40,12 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bonito_iobc.c,v 1.4 2008/04/28 20:23:28 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bonito_iobc.c,v 1.5 2011/07/10 23:13:22 matt Exp $"); #include +#include -#include -#include +#include #include #include diff --git a/sys/arch/mips/bonito/bonito_pci.c b/sys/arch/mips/bonito/bonito_pci.c index c25862156675..f576062410b3 100644 --- a/sys/arch/mips/bonito/bonito_pci.c +++ b/sys/arch/mips/bonito/bonito_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: bonito_pci.c,v 1.8 2011/07/01 20:48:47 dyoung Exp $ */ +/* $NetBSD: bonito_pci.c,v 1.9 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -35,15 +35,15 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bonito_pci.c,v 1.8 2011/07/01 20:48:47 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bonito_pci.c,v 1.9 2011/07/10 23:13:22 matt Exp $"); #include -#include -#include - #include -#include -#include +#include +#include +#include + +#include #include #include diff --git a/sys/arch/mips/conf/files.atheros b/sys/arch/mips/conf/files.atheros index 8c74a03959ac..ffb0a1386236 100644 --- a/sys/arch/mips/conf/files.atheros +++ b/sys/arch/mips/conf/files.atheros @@ -1,4 +1,4 @@ -# $NetBSD: files.atheros,v 1.9 2011/07/07 05:06:45 matt Exp $ +# $NetBSD: files.atheros,v 1.10 2011/07/10 23:13:22 matt Exp $ defflag opt_wisoc.h WISOC_AR5312 WISOC_AR5315 WISOC_AR7100 WISOC_AR9344 @@ -19,6 +19,7 @@ file arch/mips/atheros/ar9344.c wisoc_ar9344 device arbus { [addr=-1] } attach arbus at mainbus file arch/mips/atheros/arbus.c arbus +file arch/mips/atheros/arbusle.c arbus # On-chip UART device attach com at arbus with com_arbus @@ -51,8 +52,10 @@ file arch/mips/atheros/dev/arspi.c arspi # On-chip PCI controller device arpci: pcibus +device arpcie: pcibus attach arpci at arbus -file arch/mips/atheros/dev/arpci.c arpci +attach arpcie at arbus +file arch/mips/atheros/dev/arpci.c arpci | arpcie # On-chip OHCI USB controller attach ohci at arbus with ohci_arbus diff --git a/sys/arch/mips/mips/bus_dma.c b/sys/arch/mips/mips/bus_dma.c index fd4963661455..3c44078ba7bf 100644 --- a/sys/arch/mips/mips/bus_dma.c +++ b/sys/arch/mips/mips/bus_dma.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus_dma.c,v 1.26 2011/07/01 20:58:39 dyoung Exp $ */ +/* $NetBSD: bus_dma.c,v 1.27 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc. @@ -32,16 +32,20 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.26 2011/07/01 20:58:39 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.27 2011/07/10 23:13:22 matt Exp $"); + +#define _MIPS_BUS_DMA_PRIVATE #include -#include -#include +#include +#include #include -#include -#include -#include #include +#include +#include +#include +#include +#include #include @@ -50,10 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.26 2011/07/01 20:58:39 dyoung Exp $"); #include #endif -#define _MIPS_BUS_DMA_PRIVATE -#include -#include -#include +#include const struct mips_bus_dmamap_ops mips_bus_dmamap_ops = _BUS_DMAMAP_OPS_INITIALIZER; const struct mips_bus_dmamem_ops mips_bus_dmamem_ops = _BUS_DMAMEM_OPS_INITIALIZER; diff --git a/sys/arch/mips/mips/bus_space_alignstride_chipdep.c b/sys/arch/mips/mips/bus_space_alignstride_chipdep.c index ee7b6c960e5d..59a2a9f20abf 100644 --- a/sys/arch/mips/mips/bus_space_alignstride_chipdep.c +++ b/sys/arch/mips/mips/bus_space_alignstride_chipdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus_space_alignstride_chipdep.c,v 1.14 2011/07/06 10:01:02 matt Exp $ */ +/* $NetBSD: bus_space_alignstride_chipdep.c,v 1.15 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc. @@ -81,14 +81,14 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bus_space_alignstride_chipdep.c,v 1.14 2011/07/06 10:01:02 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_space_alignstride_chipdep.c,v 1.15 2011/07/10 23:13:22 matt Exp $"); #ifdef CHIP_EXTENT #include #endif #include -#include +#include #include diff --git a/sys/arch/mips/mips/in_cksum.c b/sys/arch/mips/mips/in_cksum.c index b6c19c409dc8..fb3196c66881 100644 --- a/sys/arch/mips/mips/in_cksum.c +++ b/sys/arch/mips/mips/in_cksum.c @@ -1,4 +1,4 @@ -/* $NetBSD: in_cksum.c,v 1.14 2010/09/18 16:43:50 tsutsui Exp $ */ +/* $NetBSD: in_cksum.c,v 1.15 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 1993 Regents of the University of California. @@ -42,18 +42,18 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: in_cksum.c,v 1.14 2010/09/18 16:43:50 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in_cksum.c,v 1.15 2011/07/10 23:13:22 matt Exp $"); #include -#include +#include #include +#include #include #include #include #include -#include union memptr { uint32_t *l; diff --git a/sys/arch/mips/mips/mips3_clock.c b/sys/arch/mips/mips/mips3_clock.c index 44d987ba6c90..3cfde1005d10 100644 --- a/sys/arch/mips/mips/mips3_clock.c +++ b/sys/arch/mips/mips/mips3_clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips3_clock.c,v 1.12 2011/02/20 07:45:48 matt Exp $ */ +/* $NetBSD: mips3_clock.c,v 1.13 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -40,18 +40,17 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: mips3_clock.c,v 1.12 2011/02/20 07:45:48 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mips3_clock.c,v 1.13 2011/07/10 23:13:22 matt Exp $"); #include -#include +#include +#include #include #include -#include #include -#include -#include +#include /* * Wait for at least "n" microseconds. diff --git a/sys/arch/mips/mips/mips3_clockintr.c b/sys/arch/mips/mips/mips3_clockintr.c index 9e7345359c92..f51f75b320bb 100644 --- a/sys/arch/mips/mips/mips3_clockintr.c +++ b/sys/arch/mips/mips/mips3_clockintr.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips3_clockintr.c,v 1.11 2011/02/20 07:45:48 matt Exp $ */ +/* $NetBSD: mips3_clockintr.c,v 1.12 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,17 +39,16 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mips3_clockintr.c,v 1.11 2011/02/20 07:45:48 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mips3_clockintr.c,v 1.12 2011/07/10 23:13:22 matt Exp $"); #include -#include #include #include #include #include -#include +#include /* * Handling to be done upon receipt of a MIPS 3 clock interrupt. This diff --git a/sys/arch/mips/mips/mips_softint.c b/sys/arch/mips/mips/mips_softint.c index 7d86bdd95082..1891f7460510 100644 --- a/sys/arch/mips/mips/mips_softint.c +++ b/sys/arch/mips/mips/mips_softint.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips_softint.c,v 1.4 2011/04/06 05:23:59 matt Exp $ */ +/* $NetBSD: mips_softint.c,v 1.5 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc. @@ -30,18 +30,16 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mips_softint.c,v 1.4 2011/04/06 05:23:59 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mips_softint.c,v 1.5 2011/07/10 23:13:22 matt Exp $"); #include #include -#include -#include #include +#include #include #include -#include #include #ifdef __HAVE_FAST_SOFTINTS diff --git a/sys/arch/mips/rmi/rmixl_gpio.c b/sys/arch/mips/rmi/rmixl_gpio.c index 6869caa10245..bd54e3a72618 100644 --- a/sys/arch/mips/rmi/rmixl_gpio.c +++ b/sys/arch/mips/rmi/rmixl_gpio.c @@ -1,5 +1,5 @@ -/* $NetBSD: rmixl_gpio.c,v 1.2 2011/07/01 19:01:30 dyoung Exp $ */ -/* $NetBSD: rmixl_gpio.c,v 1.2 2011/07/01 19:01:30 dyoung Exp $ */ +/* $NetBSD: rmixl_gpio.c,v 1.3 2011/07/10 23:13:22 matt Exp $ */ +/* $NetBSD: rmixl_gpio.c,v 1.3 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. * All rights reserved. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: rmixl_gpio.c,v 1.2 2011/07/01 19:01:30 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rmixl_gpio.c,v 1.3 2011/07/10 23:13:22 matt Exp $"); #define _INTR_PRIVATE @@ -37,17 +37,14 @@ __KERNEL_RCSID(0, "$NetBSD: rmixl_gpio.c,v 1.2 2011/07/01 19:01:30 dyoung Exp $" #include "gpio.h" #include +#include +#include #include +#include #include #include -#include - -#include - -#include - #include #include #include diff --git a/sys/arch/mips/rmi/rmixl_intr.c b/sys/arch/mips/rmi/rmixl_intr.c index 065e077891ff..0f3a6e6b23f3 100644 --- a/sys/arch/mips/rmi/rmixl_intr.c +++ b/sys/arch/mips/rmi/rmixl_intr.c @@ -1,4 +1,4 @@ -/* $NetBSD: rmixl_intr.c,v 1.6 2011/07/01 19:01:30 dyoung Exp $ */ +/* $NetBSD: rmixl_intr.c,v 1.7 2011/07/10 23:13:22 matt Exp $ */ /*- * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. @@ -64,26 +64,23 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rmixl_intr.c,v 1.6 2011/07/01 19:01:30 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rmixl_intr.c,v 1.7 2011/07/10 23:13:22 matt Exp $"); #include "opt_ddb.h" #include "opt_multiprocessor.h" #define __INTR_PRIVATE #include -#include -#include -#include -#include -#include #include -#include -#include - #include -#include +#include +#include +#include +#include +#include +#include +#include -#include #include #include diff --git a/sys/arch/mips/rmi/rmixl_obio.c b/sys/arch/mips/rmi/rmixl_obio.c index 048d086f9095..23dc45eea9ae 100644 --- a/sys/arch/mips/rmi/rmixl_obio.c +++ b/sys/arch/mips/rmi/rmixl_obio.c @@ -1,4 +1,4 @@ -/* $NetBSD: rmixl_obio.c,v 1.4 2011/07/01 19:01:31 dyoung Exp $ */ +/* $NetBSD: rmixl_obio.c,v 1.5 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc. @@ -40,21 +40,20 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rmixl_obio.c,v 1.4 2011/07/01 19:01:31 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rmixl_obio.c,v 1.5 2011/07/10 23:13:22 matt Exp $"); #include "locators.h" #include "pci.h" +#define _MIPS_BUS_DMA_PRIVATE #include -#include +#include #include #include #include +#include -#define _MIPS_BUS_DMA_PRIVATE -#include - -#include +#include #include #include diff --git a/sys/arch/mips/rmi/rmixl_pcie.c b/sys/arch/mips/rmi/rmixl_pcie.c index 5a641d3c1904..99d5752ab012 100644 --- a/sys/arch/mips/rmi/rmixl_pcie.c +++ b/sys/arch/mips/rmi/rmixl_pcie.c @@ -1,4 +1,4 @@ -/* $NetBSD: rmixl_pcie.c,v 1.7 2011/07/01 19:01:31 dyoung Exp $ */ +/* $NetBSD: rmixl_pcie.c,v 1.8 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rmixl_pcie.c,v 1.7 2011/07/01 19:01:31 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rmixl_pcie.c,v 1.8 2011/07/10 23:13:22 matt Exp $"); #include "opt_pci.h" #include "pci.h" @@ -48,18 +48,17 @@ __KERNEL_RCSID(0, "$NetBSD: rmixl_pcie.c,v 1.7 2011/07/01 19:01:31 dyoung Exp $" #include #include -#include +#include +#include #include #include -#include +#include #include /* for 'hz' */ -#include +#include +#include #include -#include -#include - #include #include #include @@ -75,8 +74,6 @@ __KERNEL_RCSID(0, "$NetBSD: rmixl_pcie.c,v 1.7 2011/07/01 19:01:31 dyoung Exp $" #include #endif -#include - #ifdef PCI_DEBUG int rmixl_pcie_debug = PCI_DEBUG; # define DPRINTF(x) do { if (rmixl_pcie_debug) printf x ; } while (0) diff --git a/sys/arch/mips/rmi/rmixl_pcix.c b/sys/arch/mips/rmi/rmixl_pcix.c index cc8a0fd75da9..db93276c4769 100644 --- a/sys/arch/mips/rmi/rmixl_pcix.c +++ b/sys/arch/mips/rmi/rmixl_pcix.c @@ -1,4 +1,4 @@ -/* $NetBSD: rmixl_pcix.c,v 1.8 2011/07/01 19:01:31 dyoung Exp $ */ +/* $NetBSD: rmixl_pcix.c,v 1.9 2011/07/10 23:13:22 matt Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rmixl_pcix.c,v 1.8 2011/07/01 19:01:31 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rmixl_pcix.c,v 1.9 2011/07/10 23:13:22 matt Exp $"); #include "opt_pci.h" #include "pci.h" @@ -48,18 +48,17 @@ __KERNEL_RCSID(0, "$NetBSD: rmixl_pcix.c,v 1.8 2011/07/01 19:01:31 dyoung Exp $" #include #include -#include +#include +#include #include #include +#include #include #include /* for 'hz' */ -#include +#include #include -#include -#include - #include #include #include @@ -75,8 +74,6 @@ __KERNEL_RCSID(0, "$NetBSD: rmixl_pcix.c,v 1.8 2011/07/01 19:01:31 dyoung Exp $" #include #endif -#include - #ifdef PCI_DEBUG int rmixl_pcix_debug = PCI_DEBUG; # define DPRINTF(x) do { if (rmixl_pcix_debug) printf x ; } while (0)