Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci KNF (and reduced diff to FreeBSD)
details: https://anonhg.NetBSD.org/src/rev/ae0a44b5d8aa
branches: trunk
changeset: 583941:ae0a44b5d8aa
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Aug 30 21:05:47 2005 +0000
description:
KNF (and reduced diff to FreeBSD)
diffstat:
sys/dev/pci/if_iwi.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 55ea35ef42b7 -r ae0a44b5d8aa sys/dev/pci/if_iwi.c
--- a/sys/dev/pci/if_iwi.c Tue Aug 30 21:03:13 2005 +0000
+++ b/sys/dev/pci/if_iwi.c Tue Aug 30 21:05:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwi.c,v 1.16 2005/08/27 07:26:47 skrll Exp $ */
+/* $NetBSD: if_iwi.c,v 1.17 2005/08/30 21:05:47 skrll Exp $ */
/*-
* Copyright (c) 2004, 2005
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.16 2005/08/27 07:26:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.17 2005/08/30 21:05:47 skrll Exp $");
/*-
* Intel(R) PRO/Wireless 2200BG/2225BG/2915ABG driver
@@ -141,13 +141,15 @@
static int iwi_init(struct ifnet *);
static void iwi_stop(struct ifnet *, int);
-static __inline u_int8_t MEM_READ_1(struct iwi_softc *sc, u_int32_t addr)
+static __inline u_int8_t
+MEM_READ_1(struct iwi_softc *sc, u_int32_t addr)
{
CSR_WRITE_4(sc, IWI_CSR_INDIRECT_ADDR, addr);
return CSR_READ_1(sc, IWI_CSR_INDIRECT_DATA);
}
-static __inline u_int32_t MEM_READ_4(struct iwi_softc *sc, u_int32_t addr)
+static __inline u_int32_t
+MEM_READ_4(struct iwi_softc *sc, u_int32_t addr)
{
CSR_WRITE_4(sc, IWI_CSR_INDIRECT_ADDR, addr);
return CSR_READ_4(sc, IWI_CSR_INDIRECT_DATA);
Home |
Main Index |
Thread Index |
Old Index