vm.h revision 195649
11590Srgrimes/*- 21590Srgrimes * Copyright (c) 2009 Alan L. Cox <alc@cs.rice.edu> 31590Srgrimes * All rights reserved. 41590Srgrimes * 51590Srgrimes * Redistribution and use in source and binary forms, with or without 61590Srgrimes * modification, are permitted provided that the following conditions 71590Srgrimes * are met: 81590Srgrimes * 1. Redistributions of source code must retain the above copyright 91590Srgrimes * notice, this list of conditions and the following disclaimer. 101590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111590Srgrimes * notice, this list of conditions and the following disclaimer in the 121590Srgrimes * documentation and/or other materials provided with the distribution. 131590Srgrimes * 141590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 151590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 161590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 171590Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 181590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 191590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 201590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 221590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 231590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 241590Srgrimes * SUCH DAMAGE. 251590Srgrimes * 261590Srgrimes * $FreeBSD: head/sys/ia64/include/vm.h 195649 2009-07-12 23:31:20Z alc $ 271590Srgrimes */ 281590Srgrimes 291590Srgrimes#ifndef _MACHINE_VM_H_ 301590Srgrimes#define _MACHINE_VM_H_ 311590Srgrimes 321590Srgrimes#include <machine/atomic.h> 331590Srgrimes#include <machine/pte.h> 341590Srgrimes 3541568Sarchie/* Memory attributes. */ 361590Srgrimes#define VM_MEMATTR_WRITE_BACK ((vm_memattr_t)PTE_MA_WB) 371590Srgrimes#define VM_MEMATTR_UNCACHEABLE ((vm_memattr_t)PTE_MA_UC) 3887258Smarkm#define VM_MEMATTR_UNCACHEABLE_EXPORTED ((vm_memattr_t)PTE_MA_UCE) 391590Srgrimes#define VM_MEMATTR_WRITE_COMBINING ((vm_memattr_t)PTE_MA_WC) 4087628Sdwmalone#define VM_MEMATTR_NATPAGE ((vm_memattr_t)PTE_MA_NATPAGE) 411590Srgrimes 4287628Sdwmalone#define VM_MEMATTR_DEFAULT VM_MEMATTR_WRITE_BACK 4387258Smarkm 4487628Sdwmalone#endif /* !_MACHINE_VM_H_ */ 451590Srgrimes