xref: /openbsd-src/sys/arch/m88k/include/pmap_table.h (revision c0c4242b0b274f79358ca44332ef83f0804d0148)
1*c0c4242bSmiod /*	$OpenBSD: pmap_table.h,v 1.5 2013/11/16 18:45:20 miod Exp $	*/
229a9c786Smiod /*
329a9c786Smiod  * Mach Operating System
429a9c786Smiod  * Copyright (c) 1992 Carnegie Mellon University
529a9c786Smiod  * All Rights Reserved.
629a9c786Smiod  *
729a9c786Smiod  * Permission to use, copy, modify and distribute this software and its
829a9c786Smiod  * documentation is hereby granted, provided that both the copyright
929a9c786Smiod  * notice and this permission notice appear in all copies of the
1029a9c786Smiod  * software, derivative works or modified versions, and any portions
1129a9c786Smiod  * thereof, and that both notices appear in supporting documentation.
1229a9c786Smiod  *
1329a9c786Smiod  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1429a9c786Smiod  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
1529a9c786Smiod  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1629a9c786Smiod  *
1729a9c786Smiod  * Carnegie Mellon requests users of this software to return to
1829a9c786Smiod  *
1929a9c786Smiod  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2029a9c786Smiod  *  School of Computer Science
2129a9c786Smiod  *  Carnegie Mellon University
2229a9c786Smiod  *  Pittsburgh PA 15213-3890
2329a9c786Smiod  *
2429a9c786Smiod  * any improvements or extensions that they make and grant Carnegie Mellon
2529a9c786Smiod  * the rights to redistribute these changes.
2629a9c786Smiod  */
2729a9c786Smiod 
282fa72412Spirofti #ifndef _M88K_PMAP_TABLE_H_
292fa72412Spirofti #define _M88K_PMAP_TABLE_H_
3029a9c786Smiod 
3129a9c786Smiod /*
3229a9c786Smiod  * Built-in mappings list.
3305632480Smiod  * An entry is considered invalid if size = 0, and
3405632480Smiod  * end of list is indicated by size 0xffffffff
3529a9c786Smiod  */
3611bf4d43Smiod struct pmap_table {
3705632480Smiod 	paddr_t		start;
3805632480Smiod 	psize_t		size;
3905632480Smiod 	vm_prot_t	prot;
4005632480Smiod 	unsigned int	cacheability;
41*c0c4242bSmiod 	boolean_t	may_use_batc;
4211bf4d43Smiod };
4329a9c786Smiod 
4411bf4d43Smiod const struct pmap_table *pmap_table_build(void);
4529a9c786Smiod 
462fa72412Spirofti #endif	/* _M88K_PMAP_TABLE_H_ */
47