Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/pci KNF: define struct pareg near the top of t...
details: https://anonhg.NetBSD.org/src/rev/9ef5c1485e71
branches: trunk
changeset: 749494:9ef5c1485e71
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Dec 01 01:08:45 2009 +0000
description:
KNF: define struct pareg near the top of the file.
diffstat:
sys/arch/i386/pci/elan520.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 0e98c4aea154 -r 9ef5c1485e71 sys/arch/i386/pci/elan520.c
--- a/sys/arch/i386/pci/elan520.c Tue Dec 01 01:06:31 2009 +0000
+++ b/sys/arch/i386/pci/elan520.c Tue Dec 01 01:08:45 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elan520.c,v 1.43 2009/09/17 20:21:54 dyoung Exp $ */
+/* $NetBSD: elan520.c,v 1.44 2009/12/01 01:08:45 dyoung Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.43 2009/09/17 20:21:54 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.44 2009/12/01 01:08:45 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -108,6 +108,11 @@
#endif
};
+struct pareg {
+ paddr_t start;
+ paddr_t end;
+};
+
static bool elansc_attached = false;
int elansc_wpvnmi = 1;
int elansc_pcinmi = 1;
@@ -647,11 +652,6 @@
bus_space_write_4(memt, memh, MMCR_PAR(idx), par);
}
-struct pareg {
- paddr_t start;
- paddr_t end;
-};
-
static int
region_paddr_to_par(struct pareg *region0, struct pareg *regions, uint32_t unit)
{
Home |
Main Index |
Thread Index |
Old Index