Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Whitespace fix. No functional change.
details: https://anonhg.NetBSD.org/src/rev/02300e57784c
branches: trunk
changeset: 744933:02300e57784c
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Feb 18 04:09:31 2020 +0000
description:
Whitespace fix. No functional change.
diffstat:
sys/dev/pci/ichsmb.c | 6 +++---
sys/dev/pci/if_an_pci.c | 26 +++++++++++++-------------
2 files changed, 16 insertions(+), 16 deletions(-)
diffs (86 lines):
diff -r 24349a475a68 -r 02300e57784c sys/dev/pci/ichsmb.c
--- a/sys/dev/pci/ichsmb.c Tue Feb 18 04:08:12 2020 +0000
+++ b/sys/dev/pci/ichsmb.c Tue Feb 18 04:09:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ichsmb.c,v 1.65 2019/12/24 06:27:17 thorpej Exp $ */
+/* $NetBSD: ichsmb.c,v 1.66 2020/02/18 04:09:31 msaitoh Exp $ */
/* $OpenBSD: ichiic.c,v 1.18 2007/05/03 09:36:26 dlg Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.65 2019/12/24 06:27:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.66 2020/02/18 04:09:31 msaitoh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -308,7 +308,7 @@
LPCIB_SMB_HS_INTR | LPCIB_SMB_HS_DEVERR |
LPCIB_SMB_HS_BUSERR | LPCIB_SMB_HS_FAILED);
bus_space_barrier(sc->sc_iot, sc->sc_ioh, LPCIB_SMB_HS, 1,
- BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
+ BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
/* Wait for bus to be idle */
for (retries = 100; retries > 0; retries--) {
diff -r 24349a475a68 -r 02300e57784c sys/dev/pci/if_an_pci.c
--- a/sys/dev/pci/if_an_pci.c Tue Feb 18 04:08:12 2020 +0000
+++ b/sys/dev/pci/if_an_pci.c Tue Feb 18 04:09:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_an_pci.c,v 1.36 2018/12/09 11:14:02 jdolecek Exp $ */
+/* $NetBSD: if_an_pci.c,v 1.37 2020/02/18 04:09:31 msaitoh Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_an_pci.c,v 1.36 2018/12/09 11:14:02 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_an_pci.c,v 1.37 2020/02/18 04:09:31 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -116,7 +116,7 @@
static void
an_pci_attach(device_t parent, device_t self, void *aux)
{
- struct pci_attach_args *pa = (struct pci_attach_args *)aux;
+ struct pci_attach_args *pa = (struct pci_attach_args *)aux;
struct an_pci_softc *psc = device_private(self);
struct an_softc *sc = &psc->sc_an;
char const *intrstr;
@@ -131,21 +131,21 @@
pci_aprint_devinfo(pa, "802.11 controller");
- /* Map I/O registers */
- if (pci_mapreg_map(pa, AN_PCI_IOBA, PCI_MAPREG_TYPE_IO, 0,
+ /* Map I/O registers */
+ if (pci_mapreg_map(pa, AN_PCI_IOBA, PCI_MAPREG_TYPE_IO, 0,
&sc->sc_iot, &sc->sc_ioh, NULL, &iosize) != 0) {
- aprint_error_dev(self, "unable to map registers\n");
- return;
- }
+ aprint_error_dev(self, "unable to map registers\n");
+ return;
+ }
- /* Enable the device. */
- csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
- pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
- csr | PCI_COMMAND_MASTER_ENABLE);
+ /* Enable the device. */
+ csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
+ pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+ csr | PCI_COMMAND_MASTER_ENABLE);
/* Map and establish the interrupt. */
if (pci_intr_map(pa, &ih)) {
- aprint_error_dev(self, "unable to map interrupt\n");
+ aprint_error_dev(self, "unable to map interrupt\n");
return;
}
intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf));
Home |
Main Index |
Thread Index |
Old Index