12350c44ff39b4cb2940893964a05f778fc80a436San Mehat/* 22350c44ff39b4cb2940893964a05f778fc80a436San Mehat * Copyright (C) 2008 The Android Open Source Project 32350c44ff39b4cb2940893964a05f778fc80a436San Mehat * 42350c44ff39b4cb2940893964a05f778fc80a436San Mehat * Licensed under the Apache License, Version 2.0 (the "License"); 52350c44ff39b4cb2940893964a05f778fc80a436San Mehat * you may not use this file except in compliance with the License. 62350c44ff39b4cb2940893964a05f778fc80a436San Mehat * You may obtain a copy of the License at 72350c44ff39b4cb2940893964a05f778fc80a436San Mehat * 82350c44ff39b4cb2940893964a05f778fc80a436San Mehat * http://www.apache.org/licenses/LICENSE-2.0 92350c44ff39b4cb2940893964a05f778fc80a436San Mehat * 102350c44ff39b4cb2940893964a05f778fc80a436San Mehat * Unless required by applicable law or agreed to in writing, software 112350c44ff39b4cb2940893964a05f778fc80a436San Mehat * distributed under the License is distributed on an "AS IS" BASIS, 122350c44ff39b4cb2940893964a05f778fc80a436San Mehat * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 132350c44ff39b4cb2940893964a05f778fc80a436San Mehat * See the License for the specific language governing permissions and 142350c44ff39b4cb2940893964a05f778fc80a436San Mehat * limitations under the License. 152350c44ff39b4cb2940893964a05f778fc80a436San Mehat */ 162350c44ff39b4cb2940893964a05f778fc80a436San Mehat 172350c44ff39b4cb2940893964a05f778fc80a436San Mehat#ifndef _XWARP_H 182350c44ff39b4cb2940893964a05f778fc80a436San Mehat#define _XWARP_H 192350c44ff39b4cb2940893964a05f778fc80a436San Mehat 202350c44ff39b4cb2940893964a05f778fc80a436San Mehat#include <unistd.h> 212350c44ff39b4cb2940893964a05f778fc80a436San Mehat 222350c44ff39b4cb2940893964a05f778fc80a436San Mehatclass Xwarp { 232350c44ff39b4cb2940893964a05f778fc80a436San Mehat static const char *XWARP_BACKINGFILE; 242350c44ff39b4cb2940893964a05f778fc80a436San Mehat static const char *XWARP_CFG; 252350c44ff39b4cb2940893964a05f778fc80a436San Mehat static const char *XWARP_READY; 262350c44ff39b4cb2940893964a05f778fc80a436San Mehat static const char *XWARP_MIRROR_STATUS; 272350c44ff39b4cb2940893964a05f778fc80a436San Mehat 282350c44ff39b4cb2940893964a05f778fc80a436San Mehatpublic: 292350c44ff39b4cb2940893964a05f778fc80a436San Mehat static int enable(); 302350c44ff39b4cb2940893964a05f778fc80a436San Mehat static int disable(); 312350c44ff39b4cb2940893964a05f778fc80a436San Mehat static int status(bool *ready, unsigned *mirrorPos, unsigned *maxSize); 322350c44ff39b4cb2940893964a05f778fc80a436San Mehat 332350c44ff39b4cb2940893964a05f778fc80a436San Mehatprivate: 342350c44ff39b4cb2940893964a05f778fc80a436San Mehat static int doEnableDisable(bool enable); 352350c44ff39b4cb2940893964a05f778fc80a436San Mehat}; 362350c44ff39b4cb2940893964a05f778fc80a436San Mehat 372350c44ff39b4cb2940893964a05f778fc80a436San Mehat#endif 38