1 /* $NetBSD: hpt.h,v 1.6 2019/04/15 20:45:08 skrll Exp $ */ 2 3 /*- 4 * Copyright (c) 2002 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Matthew Fredette. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 /* $OpenBSD: pmap.h,v 1.14 2001/05/09 15:31:24 art Exp $ */ 33 34 /* 35 * Copyright (c) 1998,1999 Michael Shalayeff 36 * All rights reserved. 37 * 38 * Redistribution and use in source and binary forms, with or without 39 * modification, are permitted provided that the following conditions 40 * are met: 41 * 1. Redistributions of source code must retain the above copyright 42 * notice, this list of conditions and the following disclaimer. 43 * 2. Redistributions in binary form must reproduce the above copyright 44 * notice, this list of conditions and the following disclaimer in the 45 * documentation and/or other materials provided with the distribution. 46 * 47 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 48 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 49 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 50 * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, 51 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 52 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 53 * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 54 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 55 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 56 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 57 * THE POSSIBILITY OF SUCH DAMAGE. 58 */ 59 /* 60 * Copyright 1996 1995 by Open Software Foundation, Inc. 61 * All Rights Reserved 62 * 63 * Permission to use, copy, modify, and distribute this software and 64 * its documentation for any purpose and without fee is hereby granted, 65 * provided that the above copyright notice appears in all copies and 66 * that both the copyright notice and this permission notice appear in 67 * supporting documentation. 68 * 69 * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 70 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 71 * FOR A PARTICULAR PURPOSE. 72 * 73 * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR 74 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 75 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, 76 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 77 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 78 */ 79 /* 80 * Copyright (c) 1990,1993,1994 The University of Utah and 81 * the Computer Systems Laboratory at the University of Utah (CSL). 82 * All rights reserved. 83 * 84 * Permission to use, copy, modify and distribute this software is hereby 85 * granted provided that (1) source code retains these copyright, permission, 86 * and disclaimer notices, and (2) redistributions including binaries 87 * reproduce the notices in supporting documentation, and (3) all advertising 88 * materials mentioning features or use of this software display the following 89 * acknowledgement: ``This product includes software developed by the 90 * Computer Systems Laboratory at the University of Utah.'' 91 * 92 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS 93 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF 94 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 95 * 96 * CSL requests users of this software to return to csl-dist@cs.utah.edu any 97 * improvements that they make and grant CSL redistribution rights. 98 * 99 * Utah $Hdr: pmap.h 1.24 94/12/14$ 100 * Author: Mike Hibler, Bob Wheeler, University of Utah CSL, 9/90 101 */ 102 103 /* 104 * Pmap header for hppa. 105 */ 106 107 /* 108 * HPT structure as used in the 7100LC/7300LC hardware TLB walker. 109 * 110 */ 111 struct hpt_entry { 112 u_int hpt_valid:1, /* Valid bit */ 113 hpt_vpn:15, /* Virtual Page Number */ 114 hpt_space:16; /* Space ID */ 115 u_int hpt_tlbprot; /* prot/access rights (for TLB load) */ 116 u_int hpt_tlbpage; /* physical page (<<5 for TLB load) */ 117 struct pv_entry *hpt_next; /* Pointer to associated hash list */ 118 }; 119