Moved some extern declarations to header files (unused ones to /dev/null).

This commit is contained in:
bde 1997-11-20 19:30:35 +00:00
parent 56bbe83370
commit d1b702788e
10 changed files with 30 additions and 26 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.270 1997/11/06 19:28:02 phk Exp $
* $Id: machdep.c,v 1.271 1997/11/07 09:20:15 phk Exp $
*/
#include "apm.h"
@ -137,8 +137,6 @@ SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
static MALLOC_DEFINE(M_MBUF, "mbuf", "mbuf");
#ifdef BOUNCE_BUFFERS
extern char *bouncememory;
extern int maxbkva;
#ifdef BOUNCEPAGES
int bouncepages = BOUNCEPAGES;
#else
@ -146,7 +144,6 @@ int bouncepages = 0;
#endif
#endif /* BOUNCE_BUFFERS */
extern int freebufspace;
int msgbufmapped = 0; /* set when safe to use msgbuf */
int _udatasel, _ucodesel;
u_int atdevbase;
@ -178,7 +175,6 @@ SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD,
int boothowto = 0, bootverbose = 0, Maxmem = 0;
long dumplo;
extern int bootdev;
vm_offset_t phys_avail[10];

View File

@ -38,7 +38,7 @@
*
* from: Utah $Hdr: mem.c 1.13 89/10/08$
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
* $Id: mem.c,v 1.46 1997/07/20 08:37:20 bde Exp $
* $Id: mem.c,v 1.47 1997/09/14 03:19:02 peter Exp $
*/
/*
@ -135,8 +135,6 @@ memdevfs_init()
}
#endif /* DEVFS */
extern char *ptvmmap; /* poor name! */
static int
mmclose(dev, flags, fmt, p)
dev_t dev;

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.171 1997/11/07 09:20:18 phk Exp $
* $Id: pmap.c,v 1.172 1997/11/07 19:58:34 tegge Exp $
*/
/*
@ -159,8 +159,6 @@ int pv_npg;
int nkpt;
vm_offset_t kernel_vm_end;
extern vm_offset_t clean_sva, clean_eva;
/*
* Data for the pv entry allocation mechanism
*/

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: md_var.h,v 1.18 1997/09/13 16:12:11 joerg Exp $
* $Id: md_var.h,v 1.19 1997/10/27 17:23:04 bde Exp $
*/
#ifndef _MACHINE_MD_VAR_H_
@ -38,12 +38,19 @@
extern int Maxmem;
extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
#ifdef BOUNCE_BUFFERS
extern char *bouncememory;
extern int bouncepages;
#endif
extern u_long cpu_feature;
extern u_long cpu_high;
extern u_long cpu_id;
extern u_long cyrix_did;
extern char cpu_vendor[];
extern char kstack[];
#ifdef BOUNCE_BUFFERS
extern int maxbkva;
#endif
extern void (*netisrs[32]) __P((void));
extern int nfs_diskless_valid;
extern char sigcode[];

View File

@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
* $Id: pmap.h,v 1.52 1997/07/17 04:33:48 dyson Exp $
* $Id: pmap.h,v 1.53 1997/08/05 00:42:01 dyson Exp $
*/
#ifndef _MACHINE_PMAP_H_
@ -238,7 +238,10 @@ extern caddr_t CADDR1;
extern pt_entry_t *CMAP1;
extern vm_offset_t avail_end;
extern vm_offset_t avail_start;
extern vm_offset_t clean_eva;
extern vm_offset_t clean_sva;
extern vm_offset_t phys_avail[];
extern char *ptvmmap; /* poor name! */
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.270 1997/11/06 19:28:02 phk Exp $
* $Id: machdep.c,v 1.271 1997/11/07 09:20:15 phk Exp $
*/
#include "apm.h"
@ -137,8 +137,6 @@ SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
static MALLOC_DEFINE(M_MBUF, "mbuf", "mbuf");
#ifdef BOUNCE_BUFFERS
extern char *bouncememory;
extern int maxbkva;
#ifdef BOUNCEPAGES
int bouncepages = BOUNCEPAGES;
#else
@ -146,7 +144,6 @@ int bouncepages = 0;
#endif
#endif /* BOUNCE_BUFFERS */
extern int freebufspace;
int msgbufmapped = 0; /* set when safe to use msgbuf */
int _udatasel, _ucodesel;
u_int atdevbase;
@ -178,7 +175,6 @@ SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD,
int boothowto = 0, bootverbose = 0, Maxmem = 0;
long dumplo;
extern int bootdev;
vm_offset_t phys_avail[10];

View File

@ -38,7 +38,7 @@
*
* from: Utah $Hdr: mem.c 1.13 89/10/08$
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
* $Id: mem.c,v 1.46 1997/07/20 08:37:20 bde Exp $
* $Id: mem.c,v 1.47 1997/09/14 03:19:02 peter Exp $
*/
/*
@ -135,8 +135,6 @@ memdevfs_init()
}
#endif /* DEVFS */
extern char *ptvmmap; /* poor name! */
static int
mmclose(dev, flags, fmt, p)
dev_t dev;

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.171 1997/11/07 09:20:18 phk Exp $
* $Id: pmap.c,v 1.172 1997/11/07 19:58:34 tegge Exp $
*/
/*
@ -159,8 +159,6 @@ int pv_npg;
int nkpt;
vm_offset_t kernel_vm_end;
extern vm_offset_t clean_sva, clean_eva;
/*
* Data for the pv entry allocation mechanism
*/

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: md_var.h,v 1.18 1997/09/13 16:12:11 joerg Exp $
* $Id: md_var.h,v 1.19 1997/10/27 17:23:04 bde Exp $
*/
#ifndef _MACHINE_MD_VAR_H_
@ -38,12 +38,19 @@
extern int Maxmem;
extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
#ifdef BOUNCE_BUFFERS
extern char *bouncememory;
extern int bouncepages;
#endif
extern u_long cpu_feature;
extern u_long cpu_high;
extern u_long cpu_id;
extern u_long cyrix_did;
extern char cpu_vendor[];
extern char kstack[];
#ifdef BOUNCE_BUFFERS
extern int maxbkva;
#endif
extern void (*netisrs[32]) __P((void));
extern int nfs_diskless_valid;
extern char sigcode[];

View File

@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
* $Id: pmap.h,v 1.52 1997/07/17 04:33:48 dyson Exp $
* $Id: pmap.h,v 1.53 1997/08/05 00:42:01 dyson Exp $
*/
#ifndef _MACHINE_PMAP_H_
@ -238,7 +238,10 @@ extern caddr_t CADDR1;
extern pt_entry_t *CMAP1;
extern vm_offset_t avail_end;
extern vm_offset_t avail_start;
extern vm_offset_t clean_eva;
extern vm_offset_t clean_sva;
extern vm_offset_t phys_avail[];
extern char *ptvmmap; /* poor name! */
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;