1*3358f48bSsnj /* $NetBSD: seglist.h,v 1.5 2009/10/23 17:01:08 snj Exp $ */ 22dde7e36Sscw 32dde7e36Sscw /* 42dde7e36Sscw * Copyright (c) 1997 The Steve Woodford 52dde7e36Sscw * All rights reserved. 62dde7e36Sscw * 72dde7e36Sscw * Redistribution and use in source and binary forms, with or without 82dde7e36Sscw * modification, are permitted provided that the following conditions 92dde7e36Sscw * are met: 102dde7e36Sscw * 1. Redistributions of source code must retain the above copyright 112dde7e36Sscw * notice, this list of conditions and the following disclaimer. 122dde7e36Sscw * 2. Redistributions in binary form must reproduce the above copyright 132dde7e36Sscw * notice, this list of conditions and the following disclaimer in the 142dde7e36Sscw * documentation and/or other materials provided with the distribution. 152dde7e36Sscw * 162dde7e36Sscw * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 172dde7e36Sscw * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 182dde7e36Sscw * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 192dde7e36Sscw * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 202dde7e36Sscw * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 212dde7e36Sscw * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222dde7e36Sscw * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232dde7e36Sscw * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242dde7e36Sscw * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 252dde7e36Sscw * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262dde7e36Sscw */ 272dde7e36Sscw 282dde7e36Sscw /* 292dde7e36Sscw * The following structure is passed to pmap_bootstrap by the startup 302dde7e36Sscw * code in locore.s. 312dde7e36Sscw * It simply describes the start and end addresses of the memory 322dde7e36Sscw * segments available to the board. 332dde7e36Sscw * If the offboard RAM segment spans multiple boards, they must be 342dde7e36Sscw * configured to appear physically contiguous in the VMEbus address 352dde7e36Sscw * space. 362dde7e36Sscw * 372dde7e36Sscw * NOTE: If you change this, you'll need to update locore.s ... 382dde7e36Sscw */ 3963dfa5e1Sthorpej typedef struct { 40a84a6744Sscw paddr_t ps_start; /* Start of segment */ 41a84a6744Sscw paddr_t ps_end; /* End of segment */ 422dde7e36Sscw int ps_startpage; /* Page number of first page */ 4363dfa5e1Sthorpej } phys_seg_list_t; 442dde7e36Sscw 4563dfa5e1Sthorpej /* Instantiated in machdep.c */ 4663dfa5e1Sthorpej extern phys_seg_list_t phys_seg_list[]; 47