io_mmi.h (1376B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 */ 7 8 #ifndef BLMI_MMI_H 9 #define BLMI_MMI_H 10 11 12 #define BLMI_MMI_REG_CFG (0x00) 13 #define BLMI_MMI_REG_STATUS (0x01) 14 15 #define BLMI_MMI_ID1 (0x02) 16 #define BLMI_MMI_ID2 (0x03) 17 #define BLMI_MMI_REG_PORT_CMD (0x04) 18 #define BLMI_MMI_PORT_CMD_DOIT (0x1) 19 #define BLMI_MMI_PORT_CMD_WRITE_EN (0x2) 20 #define BLMI_MMI_PORT_CMD_MEM_EN (0x4) 21 #define BLMI_MMI_PORT_CMD_RESET (0x8000) 22 23 #define BLMI_MMI_REG_PORT_EXT_CMD (0x05) 24 #define BLMI_MMI_PORT_EXT_BURST_EN (0x01) 25 #define BLMI_MMI_PORT_EXT_BURST_LEN(l) (((l) & 0x1ff) << 1) 26 27 #define BLMI_MMI_REG_PORT_STATUS (0x06) 28 #define BLMI_MMI_PORT_STATUS_READY (0x1) 29 #define BLMI_MMI_PORT_STATUS_ERROR (0x1c) 30 31 #define BLMI_MMI_REG_PORT_ADDR_LSB (0x07) 32 #define BLMI_MMI_REG_PORT_ADDR_MSB (0x08) 33 #define BLMI_MMI_REG_PORT_DATA_LSB (0x09) 34 #define BLMI_MMI_REG_PORT_DATA_MSB (0x0A) 35 #define BLMI_MMI_REG_PORT_FIFO_WR_PTR (0x0B) 36 #define BLMI_MMI_REG_PORT_FIFO_RD_PTR (0x0C) 37 #define BLMI_MMI_REG_PORT_TIMER (0x0D) 38 39 #endif /* BLMI_MMI_H */ 40