/*
 * Configure the BMC function in here.
 * Enable function by define macro 1.
 * Disable function by define macro 0.
 * Author: Jimbo
 */

#ifndef __BMC_CONF_H__
#define __BMC_CONF_H__

#define MAX_SENSOR_NUM		8
//#define SENSOR_NAME_LEN		20

#define CONF_IPMB_SUPPORT 	1
#define CONF_POWER_SUPPORT 	1
#define CONF_SENSOR_SUPPORT	1

#define PRIMARY_IPMB_CHANNEL  0x00
#define PRIMARY_PB_TBL    	0
#define SECONDARY_PB_TBL    	1

#define IP6_ADDR_LEN             16
#define	MAX_USER_NAME_LEN	(16+1) //1 for storing the null character
#define MSG_PAYLOAD_SIZE	1024 * 4
#define PIPE_NAME_LEN       	64

#define MSG_PIPES_PATH      "/var/"

#define PARAM_IFC	0x01
#define BMCNUM		0x1

#define MAX_PYLDS_SUPPORT			2

//Added to Support 20 Alert Strings in Set/Get Pef Config.Parms ../
///* It should equal to number of Event filter entries */
#define MAX_ALERT_STRINGS                  MAX_EVT_FILTER_ENTRIES
#define PEF_MAX_OEM_PARAMETERS              0x20
#define MAX_SIZE_PET_GUID                   0x11
#define MAX_PLD_ENABLES_TYPES               4
#define MAX_FF_CMD_CFGS                     255

#define MAX_PRIVILEGE_TYPES                 7
#define MAX_NUM_CH_USERS_MDS 0x10

#define MAX_USERNAME_LEN        16
#define MAX_PASSWORD_LEN        20

#define EMAIL_ADDR_SIZE 64
#define EMAIL_FORMAT_SIZE   64


#define	AUTHTYPE_RESERVED		0x03
#define LOOP_BACK_REQ                     0x10
#define NVRH_USERCONFIG 0
#define USER_ID             (((INT32U)'U'<< 24) | ((INT32U)'S'<< 16) | ('E'<<8) | 'R')
#define MAX_NUM_CHANNELS		0xc

#define MAX_PASSWD_LEN      ( 20 )
#define MAX_SIZE_KEY 56
#define	AUTHTYPE_NONE	0x00
#define	AUTHTYPE_OEM_PROPRIETARY	0x05
#define MAX_USER_CFG_MDS 0x10
#define		SESSION_ID_INFO		1
#define CHALLENGE_STR_LEN       16

#define		SESSION_HANDLE_INFO						2
#define		SESSION_INDEX_INFO						3
#define		SESSION_CHANNEL_INFO					4
#define		MGD_SYS_SESSION_ID_INFO					5
#define		SESSION_PAYLOAD_INFO					6
#define		SESSION_REMOTE_INFO					7
#define		MAX_INST_SUPPORTED						2

#define	IFNAMSIZ	16
#define MAX_CHANNEL    0x04

#define PRIV_LEVEL_RESERVED	0x00

#define PRIV_LEVEL_PROPRIETARY	0x05
#define MAX_PASSWORD_LEN        20
#define SIXTEEN_COUNT_WINDOW_LEN 16

#define MD5  0x02

/** Pending Bridged Response Tbl Size
 ** 
 ** Do not increase beyond 60 as maximum sequence number is 64
 **------------------------------------------------------------*/
#define MAX_PENDING_BRIDGE_RES   64
#define MAX_PENDING_BRIDGE_TBL   2

/*------------------------------------------------------------
 * IPMI support config
 *----------------------------------------------------------*/
#define BRIDGE_DEVICE 		 0
#define IPM_DEVICE 		 1
#define APP_DEVICE 		 1
#define CHASSIS_DEVICE 		 0
#define EVENT_PROCESSING_DEVICE  0
#define PEF_DEVICE 		 0
#define SENSOR_DEVICE 		 1
#define FRU_DEVICE 		 0
#define SDR_DEVICE 		 1
#define SEL_DEVICE 		 0
#define AMI_DEVICE 		 0
#define OEM_DEVICE		1
#endif /* __BMC_CONF_H__ */
