| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | /* |
| 2 | * All Rights Reserved |
| 3 | * |
| 4 | * MARVELL CONFIDENTIAL |
| 5 | * Copyright 2012 Marvell International Ltd All Rights Reserved. |
| 6 | * The source code contained or described herein and all documents related to |
| 7 | * the source code ("Material") are owned by Marvell International Ltd or its |
| 8 | * suppliers or licensors. Title to the Material remains with Marvell International Ltd |
| 9 | * or its suppliers and licensors. The Material contains trade secrets and |
| 10 | * proprietary and confidential information of Marvell or its suppliers and |
| 11 | * licensors. The Material is protected by worldwide copyright and trade secret |
| 12 | * laws and treaty provisions. No part of the Material may be used, copied, |
| 13 | * reproduced, modified, published, uploaded, posted, transmitted, distributed, |
| 14 | * or disclosed in any way without Marvell's prior express written permission. |
| 15 | * |
| 16 | * No license under any patent, copyright, trade secret or other intellectual |
| 17 | * property right is granted to or conferred upon you by disclosure or delivery |
| 18 | * of the Materials, either expressly, by implication, inducement, estoppel or |
| 19 | * otherwise. Any license under such intellectual property rights must be |
| 20 | * express and approved by Marvell in writing. |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | #ifndef __H_SLIC_CTRL_SERVER__ |
| 25 | #define __H_SLIC_CTRL_SERVER__ |
| 26 | |
| 27 | #define QLEN 10 |
| 28 | #define SLIC_CTRL_SOCKET "/usr/slic_ctrl_socket" |
| 29 | |
| 30 | typedef enum |
| 31 | { |
| 32 | SLIC_CTRL_DUMP_REGISTERS = 0x01, |
| 33 | SLIC_CTRL_READ_REGISTER, |
| 34 | SLIC_CTRL_WRITE_REGISTER, |
| 35 | SLIC_CTRL_START_CYCLE_READ_REGISTER, |
| 36 | SLIC_CTRL_START_CYCLE_WRITE_REGISTER, |
| 37 | SLIC_CTRL_STOP_CYCLE_READ_REGISTER, |
| 38 | SLIC_CTRL_STOP_CYCLE_WRITE_REGISTER, |
| 39 | } SLIC_CTRL_IPC_Type; |
| 40 | |
| 41 | typedef struct |
| 42 | { |
| 43 | unsigned short d1; |
| 44 | unsigned short d2; |
| 45 | unsigned short d3; |
| 46 | unsigned short d4; |
| 47 | uint32_t d5; |
| 48 | uint32_t d6; |
| 49 | uint32_t d7; |
| 50 | uint32_t d8; |
| 51 | } SLIC_CTRL_IPC_Package_Body; |
| 52 | |
| 53 | typedef struct |
| 54 | { |
| 55 | SLIC_CTRL_IPC_Type type; |
| 56 | SLIC_CTRL_IPC_Package_Body body; |
| 57 | void * ptr; |
| 58 | } SLIC_CTRL_IPC_Package; |
| 59 | |
| 60 | void slic_ctrl_server_IPC(void); |
| 61 | |
| 62 | #endif |