Skip to content

Commit

Permalink
added missed header required for compile
Browse files Browse the repository at this point in the history
  • Loading branch information
lupohirp committed Sep 23, 2012
1 parent 68bb8a6 commit 7c3be2c
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions arch/arm/mach-msm/include/mach/msm_reqs.h
@@ -0,0 +1,102 @@
/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Code Aurora nor
* the names of its contributors may be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/

#ifndef __ARCH_ARM_MACH_MSM_REQS_H
#define __ARCH_ARM_MACH_MSM_REQS_H

#include <linux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MDP_TVENC_720P_2BPP,
MSM_AXI_FLOW_VIDEO_PLAYBACK_WVGA,
MSM_AXI_FLOW_VIDEO_PLAYBACK_QVGA,
MSM_AXI_FLOW_VIDEO_RECORDING_QVGA,

MSM_AXI_NUM_FLOWS,
};

#define MSM_REQ_DEFAULT_VALUE 0

/**
* msm_req_add - Creates an NPA request and returns a handle. Non-blocking.
* @req_name: Name of the request
* @res_name: Name of the NPA resource the request is for
*/
void *msm_req_add(char *res_name, char *client_name);

/**
* msm_req_update - Updates an existing NPA request. May block.
* @req: Request handle
* @value: Request value
*/
int msm_req_update(void *req, s32 value);

/**
* msm_req_remove - Removes an existing NPA request. May block.
* @req: Request handle
*/
int msm_req_remove(void *req);

#endif /* __ARCH_ARM_MACH_MSM_REQS_H */

0 comments on commit 7c3be2c

Please sign in to comment.