Manoj Rao | 1464874 | 2012-03-30 19:42:12 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __MHL_DEVCAP_H__ |
| 14 | #define __MHL_DEVCAP_H__ |
| 15 | |
| 16 | #define SILICON_IMAGE_ADOPTER_ID 322 |
| 17 | #define TRANSCODER_DEVICE_ID 0x8334 |
| 18 | |
| 19 | #define MHL_DEV_LD_AUDIO (0x01 << 2) |
| 20 | #define MHL_DEV_LD_VIDEO (0x01 << 1) |
| 21 | #define MHL_DEV_LD_MEDIA (0x01 << 3) |
| 22 | #define MHL_DEV_LD_GUI (0x01 << 7) |
| 23 | #define MHL_LOGICAL_DEVICE_MAP (MHL_DEV_LD_AUDIO |\ |
| 24 | MHL_DEV_LD_VIDEO | MHL_DEV_LD_MEDIA | MHL_DEV_LD_GUI) |
| 25 | |
| 26 | #define DEVCAP_VAL_DEV_STATE 0 |
| 27 | #define DEVCAP_VAL_MHL_VERSION MHL_VERSION |
| 28 | #define DEVCAP_VAL_DEV_CAT (MHL_DEV_CAT_SOURCE |\ |
| 29 | MHL_DEV_CATEGORY_POW_BIT) |
| 30 | #define DEVCAP_VAL_ADOPTER_ID_H (uint8_t)(SILICON_IMAGE_ADOPTER_ID >> 8) |
| 31 | #define DEVCAP_VAL_ADOPTER_ID_L (uint8_t)(SILICON_IMAGE_ADOPTER_ID & 0xFF) |
| 32 | #define DEVCAP_VAL_VID_LINK_MODE MHL_DEV_VID_LINK_SUPPRGB444 |
| 33 | #define DEVCAP_VAL_AUD_LINK_MODE MHL_DEV_AUD_LINK_2CH |
| 34 | #define DEVCAP_VAL_VIDEO_TYPE 0 |
| 35 | #define DEVCAP_VAL_LOG_DEV_MAP MHL_LOGICAL_DEVICE_MAP |
| 36 | #define DEVCAP_VAL_BANDWIDTH 0 |
| 37 | #define DEVCAP_VAL_FEATURE_FLAG (MHL_FEATURE_RCP_SUPPORT |\ |
| 38 | MHL_FEATURE_RAP_SUPPORT | MHL_FEATURE_SP_SUPPORT) |
| 39 | #define DEVCAP_VAL_DEVICE_ID_H (uint8_t)(TRANSCODER_DEVICE_ID >> 8) |
| 40 | #define DEVCAP_VAL_DEVICE_ID_L (uint8_t)(TRANSCODER_DEVICE_ID & 0xFF) |
| 41 | #define DEVCAP_VAL_SCRATCHPAD_SIZE MHL_SCRATCHPAD_SIZE |
| 42 | #define DEVCAP_VAL_INT_STAT_SIZE MHL_INT_AND_STATUS_SIZE |
| 43 | #define DEVCAP_VAL_RESERVED 0 |
| 44 | |
| 45 | #endif /* __MHL_DEVCAP_H__ */ |