/* <:copyright-BRCM:2015:DUAL/GPL:standard Copyright (c) 2015 Broadcom All Rights Reserved Unless you and Broadcom execute a separate written software license agreement governing use of this software, this software is licensed to you under the terms of the GNU General Public License version 2 (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php, with the following added to such license: As a special exception, the copyright holders of this software give you permission to link this software with independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from this software. The special exception does not apply to any modifications of the software. Not withstanding the above, under no circumstances may you combine this software in any way with any other Broadcom software provided under a license other than the GPL, without Broadcom's express prior written consent. :> */ #ifndef RDP_PLATFORM_H_INCLUDED #define RDP_PLATFORM_H_INCLUDED #ifdef __cplusplus extern "C" { #endif #define RNR_FREQ_IN_MHZ 1400 #define UBUS_SLV_FREQ_IN_MHZ 500 /* TODO: implement */ #define IS_WAN_TX_PORT(bbh_id) (bbh_id == BBH_TX_WAN_ID) #define IS_WAN_RX_PORT(bbh_id) (bbh_id == BBH_ID_PON) #define IS_SDMA(dma_id) (dma_id > DMA0_ID) #define IS_DMA(dma_id) (dma_id <= DMA0_ID) #define IS_PROCESSING_RUNNER_IMAGE(i) ((rdp_core_to_image_map[i] == processing0_runner_image) || (rdp_core_to_image_map[i] == processing1_runner_image) || (rdp_core_to_image_map[i] == processing2_runner_image)) /* NATC */ #define NATC_CACHE_ENTRIES_NUM 512 /* DISP CONGESTION */ #define DIS_REOR_CONGESTION_THRESHOLD 200 typedef enum bbh_id_e { BBH_ID_0 = 0, BBH_ID_1, BBH_ID_2, BBH_ID_3, BBH_ID_4, BBH_ID_5, BBH_ID_PON, BBH_ID_NUM, BBH_ID_FIRST = BBH_ID_0, BBH_ID_LAST = BBH_ID_PON, BBH_ID_NULL = BBH_ID_NUM } bbh_id_e; typedef enum dma_id_e { DMA0_ID = 0, SDMA0_ID, DMA_NUM, DMA_ID_FIRST = DMA0_ID, } dma_id_e; typedef enum ddr_buf_size_e { BUF_2K = 0, BUF_4K, BUF_16K } ddr_buf_size_e; typedef enum rnr_quad_id_e { RNR_QUAD0_ID = 0, RNR_QUAD_ID_LAST = RNR_QUAD0_ID, } rnr_quad_id_e; #endif