1 0 stevel /* 2 0 stevel * CDDL HEADER START 3 0 stevel * 4 0 stevel * The contents of this file are subject to the terms of the 5 3446 mrj * Common Development and Distribution License (the "License"). 6 3446 mrj * You may not use this file except in compliance with the License. 7 0 stevel * 8 0 stevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 0 stevel * or http://www.opensolaris.org/os/licensing. 10 0 stevel * See the License for the specific language governing permissions 11 0 stevel * and limitations under the License. 12 0 stevel * 13 0 stevel * When distributing Covered Code, include this CDDL HEADER in each 14 0 stevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 0 stevel * If applicable, add the following below this CDDL HEADER, with the 16 0 stevel * fields enclosed by brackets "[]" replaced with your own identifying 17 0 stevel * information: Portions Copyright [yyyy] [name of copyright owner] 18 0 stevel * 19 0 stevel * CDDL HEADER END 20 0 stevel */ 21 0 stevel /* 22 3446 mrj * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23 0 stevel * Use is subject to license terms. 24 0 stevel */ 25 0 stevel 26 0 stevel #ifndef _I86MMU_H 27 0 stevel #define _I86MMU_H 28 0 stevel 29 0 stevel #pragma ident "%Z%%M% %I% %E% SMI" 30 0 stevel 31 0 stevel #ifdef __cplusplus 32 0 stevel extern "C" { 33 0 stevel #endif 34 0 stevel 35 0 stevel extern int pte_dcmd(uintptr_t addr, uint_t flags, int argc, 36 0 stevel const mdb_arg_t *argv); 37 0 stevel 38 0 stevel extern int report_maps_dcmd(uintptr_t addr, uint_t flags, int argc, 39 0 stevel const mdb_arg_t *argv); 40 0 stevel 41 3446 mrj extern int htables_dcmd(uintptr_t addr, uint_t flags, int argc, 42 3446 mrj const mdb_arg_t *argv); 43 3446 mrj 44 0 stevel extern int ptable_dcmd(uintptr_t addr, uint_t flags, int argc, 45 0 stevel const mdb_arg_t *argv); 46 0 stevel 47 0 stevel extern int va2pfn_dcmd(uintptr_t addr, uint_t flags, int argc, 48 0 stevel const mdb_arg_t *argv); 49 0 stevel 50 5084 johnlev extern int mfntopfn_dcmd(uintptr_t addr, uint_t flags, int argc, 51 5084 johnlev const mdb_arg_t *argv); 52 5084 johnlev 53 5084 johnlev extern int pfntomfn_dcmd(uintptr_t addr, uint_t flags, int argc, 54 5084 johnlev const mdb_arg_t *argv); 55 5084 johnlev 56 0 stevel extern int page_num2pp(uintptr_t addr, uint_t flags, int argc, 57 0 stevel const mdb_arg_t *argv); 58 0 stevel 59 0 stevel extern int memseg_list(uintptr_t addr, uint_t flags, int argc, 60 0 stevel const mdb_arg_t *argv); 61 0 stevel 62 0 stevel extern int memseg_walk_init(mdb_walk_state_t *); 63 0 stevel extern int memseg_walk_step(mdb_walk_state_t *); 64 0 stevel extern void memseg_walk_fini(mdb_walk_state_t *); 65 0 stevel 66 5084 johnlev extern void free_mmu(void); 67 0 stevel 68 0 stevel #ifdef __cplusplus 69 0 stevel } 70 0 stevel #endif 71 0 stevel 72 0 stevel #endif /* _I86MMU_H */ 73