mos_intr_common.h (917B)
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 * File: mos_intr_common.h 8 */ 9 10 #ifndef _SOC_SHARED_MOS_INTR_COMMON_H 11 #define _SOC_SHARED_MOS_INTR_COMMON_H 12 13 14 /* 15 * Common definitions for cross-cpu interrupts 16 */ 17 18 /* Define each of the 4 bits in the S/W interrupt reg based on the 19 source of the interrupt */ 20 #define CMICM_SW_INTR_HOST 0 21 #define CMICM_SW_INTR_RCPU 1 22 #define CMICM_SW_INTR_UC0 2 23 #define CMICM_SW_INTR_UC1 3 24 25 #define CMICM_NUM_UCS 3 /* This is now the max UCs supported. */ 26 #define CMICM_SW_INTR_NUM_HOSTS (CMICM_NUM_UCS+2) 27 28 #define CMICM_SW_INTR_UC(num) \ 29 (((num) == 0) ? CMICM_SW_INTR_UC0 : \ 30 ((num) == 1 ? CMICM_SW_INTR_UC1 : CMICM_SW_INTR_RCPU)) 31 32 #endif