PageRenderTime 39ms CodeModel.GetById 32ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/arm/mach-fsm/include/mach/msm_reqs.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
C++ Header | 102 lines | 51 code | 10 blank | 41 comment | 0 complexity | c05a3224d470eeb584079f296a2d9ab3 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
  2 *
  3 * Redistribution and use in source and binary forms, with or without
  4 * modification, are permitted provided that the following conditions are met:
  5 *     * Redistributions of source code must retain the above copyright
  6 *       notice, this list of conditions and the following disclaimer.
  7 *     * Redistributions in binary form must reproduce the above copyright
  8 *       notice, this list of conditions and the following disclaimer in the
  9 *       documentation and/or other materials provided with the distribution.
 10 *     * Neither the name of Code Aurora nor
 11 *       the names of its contributors may be used to endorse or promote
 12 *       products derived from this software without specific prior written
 13 *       permission.
 14 *
 15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 17 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 18 * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 19 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 26 *
 27 */
 28
 29#ifndef __ARCH_ARM_MACH_MSM_REQS_H
 30#define __ARCH_ARM_MACH_MSM_REQS_H
 31
 32#include <linux/kernel.h>
 33
 34enum system_bus_flow_ids {
 35	MSM_AXI_FLOW_INVALID = 0,
 36	MSM_AXI_FLOW_APPLICATION_LOW,
 37	MSM_AXI_FLOW_APPLICATION_MED,
 38	MSM_AXI_FLOW_APPLICATION_HI,
 39	MSM_AXI_FLOW_APPLICATION_MAX,
 40	MSM_AXI_FLOW_VIDEO_PLAYBACK_LOW,
 41	MSM_AXI_FLOW_VIDEO_PLAYBACK_MED,
 42	MSM_AXI_FLOW_VIDEO_PLAYBACK_HI,
 43	MSM_AXI_FLOW_VIDEO_PLAYBACK_MAX,
 44	MSM_AXI_FLOW_VIDEO_RECORD_LOW,
 45	MSM_AXI_FLOW_VIDEO_RECORD_MED,
 46	MSM_AXI_FLOW_VIDEO_RECORD_HI,
 47	MSM_AXI_FLOW_GRAPHICS_LOW,
 48	MSM_AXI_FLOW_GRAPHICS_MED,
 49	MSM_AXI_FLOW_GRAPHICS_HI,
 50	MSM_AXI_FLOW_VIEWFINDER_LOW,
 51	MSM_AXI_FLOW_VIEWFINDER_MED,
 52	MSM_AXI_FLOW_VIEWFINDER_HI,
 53	MSM_AXI_FLOW_LAPTOP_DATA_CALL,
 54	MSM_AXI_FLOW_APPLICATION_DATA_CALL,
 55	MSM_AXI_FLOW_GPS,
 56	MSM_AXI_FLOW_TV_OUT_LOW,
 57	MSM_AXI_FLOW_TV_OUT_MED,
 58	MSM_AXI_FLOW_ILCDC_WVGA,
 59	MSM_AXI_FLOW_VOYAGER_DEFAULT,
 60	MSM_AXI_FLOW_2D_GPU_HIGH,
 61	MSM_AXI_FLOW_3D_GPU_HIGH,
 62	MSM_AXI_FLOW_CAMERA_PREVIEW_HIGH,
 63	MSM_AXI_FLOW_CAMERA_SNAPSHOT_12MP,
 64	MSM_AXI_FLOW_CAMERA_RECORDING_720P,
 65	MSM_AXI_FLOW_JPEG_12MP,
 66	MSM_AXI_FLOW_MDP_LCDC_WVGA_2BPP,
 67	MSM_AXI_FLOW_MDP_MDDI_WVGA_2BPP,
 68	MSM_AXI_FLOW_MDP_DTV_720P_2BPP,
 69	MSM_AXI_FLOW_VIDEO_RECORDING_720P,
 70	MSM_AXI_FLOW_VIDEO_PLAYBACK_720P,
 71	MSM_AXI_FLOW_MDP_TVENC_720P_2BPP,
 72	MSM_AXI_FLOW_VIDEO_PLAYBACK_WVGA,
 73	MSM_AXI_FLOW_VIDEO_PLAYBACK_QVGA,
 74	MSM_AXI_FLOW_VIDEO_RECORDING_QVGA,
 75
 76	MSM_AXI_NUM_FLOWS,
 77};
 78
 79#define MSM_REQ_DEFAULT_VALUE 0
 80
 81/**
 82 * msm_req_add - Creates an NPA request and returns a handle. Non-blocking.
 83 * @req_name:	Name of the request
 84 * @res_name:	Name of the NPA resource the request is for
 85 */
 86void *msm_req_add(char *res_name, char *client_name);
 87
 88/**
 89 * msm_req_update - Updates an existing NPA request. May block.
 90 * @req:	Request handle
 91 * @value:	Request value
 92 */
 93int msm_req_update(void *req, s32 value);
 94
 95/**
 96 * msm_req_remove - Removes an existing NPA request. May block.
 97 * @req:	Request handle
 98 */
 99int msm_req_remove(void *req);
100
101#endif /* __ARCH_ARM_MACH_MSM_REQS_H */
102