2023-10-26 05:58:34 -05:00
|
|
|
/*! \file bcmdrd_config.h
|
2021-01-28 10:38:47 -06:00
|
|
|
*
|
|
|
|
* This config file defines all compilation-time specifications for
|
|
|
|
* the BCMDRD.
|
|
|
|
*
|
|
|
|
* Reasonable defaults are provided for all configuration options
|
|
|
|
* where appropriate.
|
|
|
|
*
|
|
|
|
* You need not edit this file directly to change your configuration,
|
|
|
|
* nor is modifying this file advised -- so doing will require
|
|
|
|
* manually merging whenever the BCMDRD is upgraded.
|
|
|
|
*
|
|
|
|
* You should provide your own configuration options or overrides
|
|
|
|
* through a combination of:
|
|
|
|
*
|
|
|
|
* 1. The compiler command line, such as -D{OPTION}={VALUE}
|
|
|
|
*
|
|
|
|
* 2. Create your own custom configuration file:
|
|
|
|
* a) Create a file called 'bcmdrd_custom_config.h'
|
|
|
|
* b) Define all custom settings, using this file as
|
|
|
|
* the reference
|
|
|
|
* c) Add -DBCMDRD_INCLUDE_CUSTOM_CONFIG to your
|
|
|
|
* compilation
|
|
|
|
* d) Make sure the compilation include path includes
|
|
|
|
* 'bcmdrd_custom_config.h'
|
2023-10-26 05:58:34 -05:00
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* $Copyright: Copyright 2018-2022 Broadcom. All rights reserved.
|
|
|
|
* The term 'Broadcom' refers to Broadcom Inc. and/or its subsidiaries.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* A copy of the GNU General Public License version 2 (GPLv2) can
|
|
|
|
* be found in the LICENSES folder.$
|
2021-01-28 10:38:47 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BCMDRD_CONFIG_H
|
|
|
|
#define BCMDRD_CONFIG_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Include system config file if specified:
|
|
|
|
*/
|
|
|
|
#ifdef BCMDRD_INCLUDE_CUSTOM_CONFIG
|
|
|
|
#include <bcmdrd_custom_config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* OPTIONAL configuration and feature values.
|
|
|
|
* Defaults are provided for all non-specified values.
|
|
|
|
*/
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*! Maximum number of chips supported. */
|
2021-01-28 10:38:47 -06:00
|
|
|
#ifndef BCMDRD_CONFIG_MAX_UNITS
|
|
|
|
#define BCMDRD_CONFIG_MAX_UNITS 8
|
|
|
|
#endif
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*! Maximum number of ports per chip supported. */
|
2021-01-28 10:38:47 -06:00
|
|
|
#ifndef BCMDRD_CONFIG_MAX_PORTS
|
[BCMSAI] Update BCMSAI debian to 6.0.0.10 with 6.5.23 SDK, and opennsl module to 6.5.23 (#9046)
Manual verification on switch (TH3 device)
admin@str2-xxxxx-01:~$ bcmcmd bsv
bsv
BRCM SAI ver: [6.0.0.10], OCP SAI ver: [1.9.1], SDK ver: [sdk-6.5.23]
drivshell>
admin@str2-xxxxx-01:~$ bcmcmd version
version
Broadcom Command Monitor: Copyright (c) 1998-2021 Broadcom
Release: sdk-6.5.23 built 20211020 (Wed Oct 20 06:52:58 2021)
From root@fedbbfdbee81:/__w/2/s/output/x86-xgsall-deb/hsdk
Platform: X86
OS: Unix (Posix)
Chips:
BCM56640_A0,
BCM56850_A0,
BCM56340_A0,
BCM56960_A0, BCM56860_A0,
BCM56970_A0, BCM56870_A0,
BCM56980_A0, BCM56980_B0,
BCM56370_A0, BCM56275_A0, BCM56770_A0,
Chips:
BCM56780_A0, BCM56782_A0, BCM56784_A0, BCM56785_A0,
BCM56786_A0, BCM56787_A0, BCM56788_A0, BCM56789_A0,
BCM56880_A0, BCM56880_B0, BCM56881_A0, BCM56881_B0,
BCM56883_A0, BCM56883_B0, BCM56990_A0, BCM56990_B0,
BCM56991_B0, BCM56992_B0, BCM56996_A0, BCM56996_B0,
BCM56997_A0, BCM56997_B0
Variant drivers:
BCM56780_A0_CNA_1_2_10, BCM56780_A0_DNA_2_7_6_0, BCM56880_A0_CNA_1_2_9, BCM56880_A0_DNA_4_9_5_0
PHYs: BCM5400, BCM54182, BCM54185, BCM54180,
BCM54140, BCM54192, BCM54195, BCM54190,
BCM54194, BCM54210, BCM54220, BCM54280,
BCM54282, BCM54240, BCM54285, BCM5428X,
BCM54290, BCM54292, BCM54294, BCM54295,
BCM54296, BCM56160-GPHY, BCM53540-GPHY, BCM56275-GPHY,
BCM8750, BCM8752, BCM8754, BCM84740,
BCM84164, BCM84758, BCM84780, BCM84784,
BCM84318, BCM84328, Sesto, BCM82780,
copper sfp
drivshell>
2021-10-28 02:12:32 -05:00
|
|
|
#define BCMDRD_CONFIG_MAX_PORTS 848
|
2021-01-28 10:38:47 -06:00
|
|
|
#endif
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*! Direct access to memory-mapped registers. */
|
2021-01-28 10:38:47 -06:00
|
|
|
#ifndef BCMDRD_CONFIG_MEMMAP_DIRECT
|
|
|
|
#define BCMDRD_CONFIG_MEMMAP_DIRECT 0
|
|
|
|
#endif
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*!
|
|
|
|
* \brief Include chip symbol tables.
|
2021-01-28 10:38:47 -06:00
|
|
|
*
|
|
|
|
* No symbolic debugging (register/memory names) will be available
|
|
|
|
* without this defined.
|
|
|
|
*
|
|
|
|
* This define is required to get any symbols at all.
|
|
|
|
*
|
2023-10-26 05:58:34 -05:00
|
|
|
* Symbols tables are required for normal SDK operation, but may be
|
|
|
|
* excluded for small footprint base driver applications.
|
|
|
|
*
|
2021-01-28 10:38:47 -06:00
|
|
|
* If you only wish to include symbols for a subset of chips in the
|
|
|
|
* system (probably for code space reasons), you can define the
|
|
|
|
* following for each chip whose symbols you wish to EXCLUDE:
|
|
|
|
*
|
|
|
|
* BCMDRD_CONFIG_EXCLUDE_CHIP_SYMBOLS_<CHIP>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef BCMDRD_CONFIG_INCLUDE_CHIP_SYMBOLS
|
|
|
|
#define BCMDRD_CONFIG_INCLUDE_CHIP_SYMBOLS 1
|
|
|
|
#endif
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*!
|
|
|
|
* \brief Include register and memory field information.
|
2021-01-28 10:38:47 -06:00
|
|
|
*
|
|
|
|
* This provides encoding, decoding, and displaying individual field
|
|
|
|
* values for each register and memory.
|
|
|
|
*
|
|
|
|
* Requires more code space than just the chip symbols alone.
|
|
|
|
*
|
2023-10-26 05:58:34 -05:00
|
|
|
* Symbols field information is required for normal SDK operation, but
|
|
|
|
* may be excluded for small footprint base driver applications.
|
|
|
|
*
|
2021-01-28 10:38:47 -06:00
|
|
|
* The per-chip exclusion define
|
|
|
|
* (BCMDRD_CONFIG_EXCLUDE_FIELD_INFO_<CHIP>) also applies.
|
|
|
|
*/
|
|
|
|
#ifndef BCMDRD_CONFIG_INCLUDE_FIELD_INFO
|
|
|
|
#define BCMDRD_CONFIG_INCLUDE_FIELD_INFO 1
|
|
|
|
#endif
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*!
|
|
|
|
* \brief Include alternative symbol names for registers and memories.
|
2021-01-28 10:38:47 -06:00
|
|
|
*
|
|
|
|
* Mainly for internal Broadcom use, so you can safely leave this
|
|
|
|
* option off.
|
|
|
|
*/
|
|
|
|
#ifndef BCMDRD_CONFIG_INCLUDE_ALIAS_NAMES
|
|
|
|
#define BCMDRD_CONFIG_INCLUDE_ALIAS_NAMES 1
|
|
|
|
#endif
|
|
|
|
|
2023-10-26 05:58:34 -05:00
|
|
|
/*!
|
|
|
|
* \brief Include field size checks for registers and memories.
|
|
|
|
*
|
|
|
|
* This option adds compile-time checks for field values exceeding the
|
|
|
|
* size of the field being assigned. The check in mainly intended for
|
|
|
|
* internal use, and it may trigger warnings from various memory
|
|
|
|
* sanity checker tools.
|
|
|
|
*/
|
|
|
|
#ifndef BCMDRD_CONFIG_INCLUDE_FIELD_CHECKS
|
|
|
|
#define BCMDRD_CONFIG_INCLUDE_FIELD_CHECKS 0
|
|
|
|
#endif
|
|
|
|
|
2021-01-28 10:38:47 -06:00
|
|
|
#endif /* BCMDRD_CONFIG_H */
|
|
|
|
|
|
|
|
#ifdef CONFIG_OPTION
|
|
|
|
#ifdef BCMDRD_INCLUDE_CUSTOM_CONFIG
|
|
|
|
CONFIG_OPTION(BCMDRD_INCLUDE_CUSTOM_CONFIG)
|
|
|
|
#endif
|
|
|
|
#ifdef BCMDRD_CONFIG_MAX_UNITS
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_MAX_UNITS)
|
|
|
|
#endif
|
|
|
|
#ifdef BCMDRD_CONFIG_MAX_PORTS
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_MAX_PORTS)
|
|
|
|
#endif
|
|
|
|
#ifdef BCMDRD_CONFIG_MEMMAP_DIRECT
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_MEMMAP_DIRECT)
|
|
|
|
#endif
|
|
|
|
#ifdef BCMDRD_CONFIG_INCLUDE_CHIP_SYMBOLS
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_INCLUDE_CHIP_SYMBOLS)
|
|
|
|
#endif
|
|
|
|
#ifdef BCMDRD_CONFIG_INCLUDE_FIELD_INFO
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_INCLUDE_FIELD_INFO)
|
|
|
|
#endif
|
|
|
|
#ifdef BCMDRD_CONFIG_INCLUDE_ALIAS_NAMES
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_INCLUDE_ALIAS_NAMES)
|
|
|
|
#endif
|
2023-10-26 05:58:34 -05:00
|
|
|
#ifdef BCMDRD_CONFIG_INCLUDE_FIELD_CHECKS
|
|
|
|
CONFIG_OPTION(BCMDRD_CONFIG_INCLUDE_FIELD_CHECKS)
|
|
|
|
#endif
|
2021-01-28 10:38:47 -06:00
|
|
|
#endif /* CONFIG_OPTION */
|
|
|
|
#include "bcmdrd_config_chips.h"
|