xref: /netbsd-src/sys/arch/next68k/next68k/seglist.h (revision 8a3fe07864e3511bfd888f2908bbf85e8b1448e8)
1 /*	$NetBSD: seglist.h,v 1.7 2021/12/05 04:54:21 msaitoh Exp $ */
2 
3 /*
4  * This file was taken from mvme68k/mvme68k/seglist.h
5  * should probably be re-synced when needed.
6  * Darrin B. Jewell <jewell@mit.edu>  Tue Nov 10 05:07:16 1998
7  * original cvs id: NetBSD: seglist.h,v 1.4 1998/08/22 10:55:35 scw Exp
8  */
9 
10 /*
11  * Copyright (c) 1997 The Steve Woodford
12  * All rights reserved.
13  *
14  * Redistribution and use in source and binary forms, with or without
15  * modification, are permitted provided that the following conditions
16  * are met:
17  * 1. Redistributions of source code must retain the above copyright
18  *    notice, this list of conditions and the following disclaimer.
19  * 2. Redistributions in binary form must reproduce the above copyright
20  *    notice, this list of conditions and the following disclaimer in the
21  *    documentation and/or other materials provided with the distribution.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 /*
36  * The following structure is passed to pmap_bootstrap by the startup
37  * code in locore.s.
38  * It simply describes the start and end addresses of the memory
39  * segments available to the board.
40  * If the offboard RAM segment spans multiple boards, they must be
41  * configured to appear physically contiguous in the VMEbus address
42  * space.
43  *
44  * NOTE: If you change this, you'll need to update locore.s ...
45  */
46 typedef struct {
47 	paddr_t		ps_start;	/* Start of segment */
48 	paddr_t		ps_end;		/* End of segment */
49 	int		ps_startpage;	/* Page number of first page */
50 } phys_seg_list_t;
51 
52 /* Instantiated in machdep.c */
53 extern phys_seg_list_t phys_seg_list[];
54