1*5084Sjohnlev /* 2*5084Sjohnlev * CDDL HEADER START 3*5084Sjohnlev * 4*5084Sjohnlev * The contents of this file are subject to the terms of the 5*5084Sjohnlev * Common Development and Distribution License (the "License"). 6*5084Sjohnlev * You may not use this file except in compliance with the License. 7*5084Sjohnlev * 8*5084Sjohnlev * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5084Sjohnlev * or http://www.opensolaris.org/os/licensing. 10*5084Sjohnlev * See the License for the specific language governing permissions 11*5084Sjohnlev * and limitations under the License. 12*5084Sjohnlev * 13*5084Sjohnlev * When distributing Covered Code, include this CDDL HEADER in each 14*5084Sjohnlev * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5084Sjohnlev * If applicable, add the following below this CDDL HEADER, with the 16*5084Sjohnlev * fields enclosed by brackets "[]" replaced with your own identifying 17*5084Sjohnlev * information: Portions Copyright [yyyy] [name of copyright owner] 18*5084Sjohnlev * 19*5084Sjohnlev * CDDL HEADER END 20*5084Sjohnlev */ 21*5084Sjohnlev 22*5084Sjohnlev /* 23*5084Sjohnlev * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*5084Sjohnlev * Use is subject to license terms. 25*5084Sjohnlev */ 26*5084Sjohnlev 27*5084Sjohnlev #ifndef _SYS_BALLOON_H 28*5084Sjohnlev #define _SYS_BALLOON_H 29*5084Sjohnlev 30*5084Sjohnlev #pragma ident "%Z%%M% %I% %E% SMI" 31*5084Sjohnlev 32*5084Sjohnlev #ifdef __cplusplus 33*5084Sjohnlev extern "C" { 34*5084Sjohnlev #endif 35*5084Sjohnlev 36*5084Sjohnlev #define BALLOON_DEV_NAME "balloon" 37*5084Sjohnlev #define BALLOON_PATHNAME "xen/" BALLOON_DEV_NAME 38*5084Sjohnlev 39*5084Sjohnlev #define BALLOON_DRIVER_NAME "balloon" 40*5084Sjohnlev 41*5084Sjohnlev #define BLN_IOCTL_BASE ('B' << 24) | ('A' << 16) 42*5084Sjohnlev 43*5084Sjohnlev /* 44*5084Sjohnlev * To return the desired value. These defines are copied in balloon.py 45*5084Sjohnlev * in the hypervisor gate, so woe befall anyone who changes these. 46*5084Sjohnlev */ 47*5084Sjohnlev #define BLN_IOCTL_CURRENT (BLN_IOCTL_BASE | 0x1) 48*5084Sjohnlev #define BLN_IOCTL_TARGET (BLN_IOCTL_BASE | 0x2) 49*5084Sjohnlev #define BLN_IOCTL_LOW (BLN_IOCTL_BASE | 0x3) 50*5084Sjohnlev #define BLN_IOCTL_HIGH (BLN_IOCTL_BASE | 0x4) 51*5084Sjohnlev #define BLN_IOCTL_LIMIT (BLN_IOCTL_BASE | 0x5) 52*5084Sjohnlev 53*5084Sjohnlev #ifdef __cplusplus 54*5084Sjohnlev } 55*5084Sjohnlev #endif 56*5084Sjohnlev 57*5084Sjohnlev #endif /* _SYS_BALLOON_H */ 58