1 /* Copyright 2013-2014 Freescale Semiconductor Inc. 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 the above-listed copyright holders nor the 11 * names of any contributors may be used to endorse or promote products 12 * derived from this software without specific prior written permission. 13 * 14 * 15 * ALTERNATIVELY, this software may be distributed under the terms of the 16 * GNU General Public License ("GPL") as published by the Free Software 17 * Foundation, either version 2 of that License or (at your option) any 18 * later version. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33 /*************************************************************************//* 34 dprc-cmd.h 35 36 defines dprc portal commands 37 38 *//**************************************************************************/ 39 40 #ifndef _FSL_DPRC_CMD_H 41 #define _FSL_DPRC_CMD_H 42 43 /* DPRC Version */ 44 #define DPRC_VER_MAJOR 4 45 #define DPRC_VER_MINOR 0 46 47 /* Command IDs */ 48 #define DPRC_CMDID_CLOSE 0x800 49 #define DPRC_CMDID_OPEN 0x805 50 #define DPRC_CMDID_CREATE 0x905 51 52 #define DPRC_CMDID_GET_ATTR 0x004 53 #define DPRC_CMDID_RESET_CONT 0x005 54 55 #define DPRC_CMDID_SET_IRQ 0x010 56 #define DPRC_CMDID_GET_IRQ 0x011 57 #define DPRC_CMDID_SET_IRQ_ENABLE 0x012 58 #define DPRC_CMDID_GET_IRQ_ENABLE 0x013 59 #define DPRC_CMDID_SET_IRQ_MASK 0x014 60 #define DPRC_CMDID_GET_IRQ_MASK 0x015 61 #define DPRC_CMDID_GET_IRQ_STATUS 0x016 62 #define DPRC_CMDID_CLEAR_IRQ_STATUS 0x017 63 64 #define DPRC_CMDID_CREATE_CONT 0x151 65 #define DPRC_CMDID_DESTROY_CONT 0x152 66 #define DPRC_CMDID_SET_RES_QUOTA 0x155 67 #define DPRC_CMDID_GET_RES_QUOTA 0x156 68 #define DPRC_CMDID_ASSIGN 0x157 69 #define DPRC_CMDID_UNASSIGN 0x158 70 #define DPRC_CMDID_GET_OBJ_COUNT 0x159 71 #define DPRC_CMDID_GET_OBJ 0x15A 72 #define DPRC_CMDID_GET_RES_COUNT 0x15B 73 #define DPRC_CMDID_GET_RES_IDS 0x15C 74 #define DPRC_CMDID_GET_OBJ_REG 0x15E 75 #define DPRC_CMDID_SET_OBJ_IRQ 0x15F 76 #define DPRC_CMDID_GET_OBJ_IRQ 0x160 77 #define DPRC_CMDID_SET_OBJ_LABEL 0x161 78 #define DPRC_CMDID_GET_OBJ_DESC 0x162 79 80 #define DPRC_CMDID_CONNECT 0x167 81 #define DPRC_CMDID_DISCONNECT 0x168 82 #define DPRC_CMDID_GET_POOL 0x169 83 #define DPRC_CMDID_GET_POOL_COUNT 0x16A 84 85 #define DPRC_CMDID_GET_CONNECTION 0x16C 86 87 #endif /* _FSL_DPRC_CMD_H */ 88