KNF: define struct pareg near the top of the file.
This commit is contained in:
parent
8a18e16048
commit
066dc95eb2
@ -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 @@ struct elansc_softc {
|
||||
#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 @@ elansc_disable_par(bus_space_tag_t memt, bus_space_handle_t memh, int idx)
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user