blob: 897f14885c9d2319a1c65987b5346f0460ff46a1 [file] [log] [blame]
/*
* All Rights Reserved
*
* MARVELL CONFIDENTIAL
* Copyright 2012 Marvell International Ltd All Rights Reserved.
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell International Ltd or its
* suppliers or licensors. Title to the Material remains with Marvell International Ltd
* or its suppliers and licensors. The Material contains trade secrets and
* proprietary and confidential information of Marvell or its suppliers and
* licensors. The Material is protected by worldwide copyright and trade secret
* laws and treaty provisions. No part of the Material may be used, copied,
* reproduced, modified, published, uploaded, posted, transmitted, distributed,
* or disclosed in any way without Marvell's prior express written permission.
*
* No license under any patent, copyright, trade secret or other intellectual
* property right is granted to or conferred upon you by disclosure or delivery
* of the Materials, either expressly, by implication, inducement, estoppel or
* otherwise. Any license under such intellectual property rights must be
* express and approved by Marvell in writing.
*
*/
#ifndef __H_SLIC_CTRL_SERVER__
#define __H_SLIC_CTRL_SERVER__
#define QLEN 10
#define SLIC_CTRL_SOCKET "/usr/slic_ctrl_socket"
typedef enum
{
SLIC_CTRL_DUMP_REGISTERS = 0x01,
SLIC_CTRL_READ_REGISTER,
SLIC_CTRL_WRITE_REGISTER,
SLIC_CTRL_START_CYCLE_READ_REGISTER,
SLIC_CTRL_START_CYCLE_WRITE_REGISTER,
SLIC_CTRL_STOP_CYCLE_READ_REGISTER,
SLIC_CTRL_STOP_CYCLE_WRITE_REGISTER,
} SLIC_CTRL_IPC_Type;
typedef struct
{
unsigned short d1;
unsigned short d2;
unsigned short d3;
unsigned short d4;
uint32_t d5;
uint32_t d6;
uint32_t d7;
uint32_t d8;
} SLIC_CTRL_IPC_Package_Body;
typedef struct
{
SLIC_CTRL_IPC_Type type;
SLIC_CTRL_IPC_Package_Body body;
void * ptr;
} SLIC_CTRL_IPC_Package;
void slic_ctrl_server_IPC(void);
#endif