/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Driver for the Conexant CX25821 PCIe bridge
*
* Copyright (C) 2009 Conexant Systems Inc.
* Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com>
*/
#ifndef __ATHENA_SRAM_H__
#define __ATHENA_SRAM_H__
/* #define RX_SRAM_START_SIZE = 0; // Start of reserved SRAM */
#define VID_CMDS_SIZE 80 /* Video CMDS size in bytes */
#define AUDIO_CMDS_SIZE 80 /* AUDIO CMDS size in bytes */
#define MBIF_CMDS_SIZE 80 /* MBIF CMDS size in bytes */
/* #define RX_SRAM_POOL_START_SIZE = 0; // Start of usable RX SRAM for buffers */
#define VID_IQ_SIZE 64 /* VID instruction queue size in bytes */
#define MBIF_IQ_SIZE 64
#define AUDIO_IQ_SIZE 64 /* AUD instruction queue size in bytes */
#define VID_CDT_SIZE 64 /* VID cluster descriptor table size in bytes */
#define MBIF_CDT_SIZE 64 /* MBIF/HBI cluster descriptor table size in bytes */
#define AUDIO_CDT_SIZE 48 /* AUD cluster descriptor table size in bytes */
/* #define RX_SRAM_POOL_FREE_SIZE = 16; // Start of available RX SRAM */
/* #define RX_SRAM_END_SIZE = 0; // End of RX SRAM */
/* #define TX_SRAM_POOL_START_SIZE = 0; // Start of transmit pool SRAM */
/* #define MSI_DATA_SIZE = 64; // Reserved (MSI Data, RISC working stora */
#define VID_CLUSTER_SIZE 1440 /* VID cluster data line */
#define AUDIO_CLUSTER_SIZE 128 /* AUDIO cluster data line */
#define MBIF_CLUSTER_SIZE 1440 /* MBIF/HBI cluster data line */
/* #define TX_SRAM_POOL_FREE_SIZE = 704; // Start of available TX SRAM */
/* #define TX_SRAM_END_SIZE = 0; // End of TX SRAM */
/* Receive SRAM */
#define RX_SRAM_START 0 x10000
#define VID_A_DOWN_CMDS 0 x10000
#define VID_B_DOWN_CMDS 0 x10050
#define VID_C_DOWN_CMDS 0 x100A0
#define VID_D_DOWN_CMDS 0 x100F0
#define VID_E_DOWN_CMDS 0 x10140
#define VID_F_DOWN_CMDS 0 x10190
#define VID_G_DOWN_CMDS 0 x101E0
#define VID_H_DOWN_CMDS 0 x10230
#define VID_A_UP_CMDS 0 x10280
#define VID_B_UP_CMDS 0 x102D0
#define VID_C_UP_CMDS 0 x10320
#define VID_D_UP_CMDS 0 x10370
#define VID_E_UP_CMDS 0 x103C0
#define VID_F_UP_CMDS 0 x10410
#define VID_I_UP_CMDS 0 x10460
#define VID_J_UP_CMDS 0 x104B0
#define AUD_A_DOWN_CMDS 0 x10500
#define AUD_B_DOWN_CMDS 0 x10550
#define AUD_C_DOWN_CMDS 0 x105A0
#define AUD_D_DOWN_CMDS 0 x105F0
#define AUD_A_UP_CMDS 0 x10640
#define AUD_B_UP_CMDS 0 x10690
#define AUD_C_UP_CMDS 0 x106E0
#define AUD_E_UP_CMDS 0 x10730
#define MBIF_A_DOWN_CMDS 0 x10780
#define MBIF_B_DOWN_CMDS 0 x107D0
#define DMA_SCRATCH_PAD 0 x10820 /* Scratch pad area from 0x10820 to 0x10B40 */
/* #define RX_SRAM_POOL_START = 0x105B0; */
#define VID_A_IQ 0 x11000
#define VID_B_IQ 0 x11040
#define VID_C_IQ 0 x11080
#define VID_D_IQ 0 x110C0
#define VID_E_IQ 0 x11100
#define VID_F_IQ 0 x11140
#define VID_G_IQ 0 x11180
#define VID_H_IQ 0 x111C0
#define VID_I_IQ 0 x11200
#define VID_J_IQ 0 x11240
#define AUD_A_IQ 0 x11280
#define AUD_B_IQ 0 x112C0
#define AUD_C_IQ 0 x11300
#define AUD_D_IQ 0 x11340
#define AUD_E_IQ 0 x11380
#define MBIF_A_IQ 0 x11000
#define MBIF_B_IQ 0 x110C0
#define VID_A_CDT 0 x10C00
#define VID_B_CDT 0 x10C40
#define VID_C_CDT 0 x10C80
#define VID_D_CDT 0 x10CC0
#define VID_E_CDT 0 x10D00
#define VID_F_CDT 0 x10D40
#define VID_G_CDT 0 x10D80
#define VID_H_CDT 0 x10DC0
#define VID_I_CDT 0 x10E00
#define VID_J_CDT 0 x10E40
#define AUD_A_CDT 0 x10E80
#define AUD_B_CDT 0 x10EB0
#define AUD_C_CDT 0 x10EE0
#define AUD_D_CDT 0 x10F10
#define AUD_E_CDT 0 x10F40
#define MBIF_A_CDT 0 x10C00
#define MBIF_B_CDT 0 x10CC0
/* Cluster Buffer for RX */
#define VID_A_UP_CLUSTER_1 0 x11400
#define VID_A_UP_CLUSTER_2 0 x119A0
#define VID_A_UP_CLUSTER_3 0 x11F40
#define VID_A_UP_CLUSTER_4 0 x124E0
#define VID_B_UP_CLUSTER_1 0 x12A80
#define VID_B_UP_CLUSTER_2 0 x13020
#define VID_B_UP_CLUSTER_3 0 x135C0
#define VID_B_UP_CLUSTER_4 0 x13B60
#define VID_C_UP_CLUSTER_1 0 x14100
#define VID_C_UP_CLUSTER_2 0 x146A0
#define VID_C_UP_CLUSTER_3 0 x14C40
#define VID_C_UP_CLUSTER_4 0 x151E0
#define VID_D_UP_CLUSTER_1 0 x15780
#define VID_D_UP_CLUSTER_2 0 x15D20
#define VID_D_UP_CLUSTER_3 0 x162C0
#define VID_D_UP_CLUSTER_4 0 x16860
#define VID_E_UP_CLUSTER_1 0 x16E00
#define VID_E_UP_CLUSTER_2 0 x173A0
#define VID_E_UP_CLUSTER_3 0 x17940
#define VID_E_UP_CLUSTER_4 0 x17EE0
#define VID_F_UP_CLUSTER_1 0 x18480
#define VID_F_UP_CLUSTER_2 0 x18A20
#define VID_F_UP_CLUSTER_3 0 x18FC0
#define VID_F_UP_CLUSTER_4 0 x19560
#define VID_I_UP_CLUSTER_1 0 x19B00
#define VID_I_UP_CLUSTER_2 0 x1A0A0
#define VID_I_UP_CLUSTER_3 0 x1A640
#define VID_I_UP_CLUSTER_4 0 x1ABE0
#define VID_J_UP_CLUSTER_1 0 x1B180
#define VID_J_UP_CLUSTER_2 0 x1B720
#define VID_J_UP_CLUSTER_3 0 x1BCC0
#define VID_J_UP_CLUSTER_4 0 x1C260
#define AUD_A_UP_CLUSTER_1 0 x1C800
#define AUD_A_UP_CLUSTER_2 0 x1C880
#define AUD_A_UP_CLUSTER_3 0 x1C900
#define AUD_B_UP_CLUSTER_1 0 x1C980
#define AUD_B_UP_CLUSTER_2 0 x1CA00
#define AUD_B_UP_CLUSTER_3 0 x1CA80
#define AUD_C_UP_CLUSTER_1 0 x1CB00
#define AUD_C_UP_CLUSTER_2 0 x1CB80
#define AUD_C_UP_CLUSTER_3 0 x1CC00
#define AUD_E_UP_CLUSTER_1 0 x1CC80
#define AUD_E_UP_CLUSTER_2 0 x1CD00
#define AUD_E_UP_CLUSTER_3 0 x1CD80
#define RX_SRAM_POOL_FREE 0 x1CE00
#define RX_SRAM_END 0 x1D000
/* Free Receive SRAM 144 Bytes */
/* Transmit SRAM */
#define TX_SRAM_POOL_START 0 x00000
#define VID_A_DOWN_CLUSTER_1 0 x00040
#define VID_A_DOWN_CLUSTER_2 0 x005E0
#define VID_A_DOWN_CLUSTER_3 0 x00B80
#define VID_A_DOWN_CLUSTER_4 0 x01120
#define VID_B_DOWN_CLUSTER_1 0 x016C0
#define VID_B_DOWN_CLUSTER_2 0 x01C60
#define VID_B_DOWN_CLUSTER_3 0 x02200
#define VID_B_DOWN_CLUSTER_4 0 x027A0
#define VID_C_DOWN_CLUSTER_1 0 x02D40
#define VID_C_DOWN_CLUSTER_2 0 x032E0
#define VID_C_DOWN_CLUSTER_3 0 x03880
#define VID_C_DOWN_CLUSTER_4 0 x03E20
#define VID_D_DOWN_CLUSTER_1 0 x043C0
#define VID_D_DOWN_CLUSTER_2 0 x04960
#define VID_D_DOWN_CLUSTER_3 0 x04F00
#define VID_D_DOWN_CLUSTER_4 0 x054A0
#define VID_E_DOWN_CLUSTER_1 0 x05a40
#define VID_E_DOWN_CLUSTER_2 0 x05FE0
#define VID_E_DOWN_CLUSTER_3 0 x06580
#define VID_E_DOWN_CLUSTER_4 0 x06B20
#define VID_F_DOWN_CLUSTER_1 0 x070C0
#define VID_F_DOWN_CLUSTER_2 0 x07660
#define VID_F_DOWN_CLUSTER_3 0 x07C00
#define VID_F_DOWN_CLUSTER_4 0 x081A0
#define VID_G_DOWN_CLUSTER_1 0 x08740
#define VID_G_DOWN_CLUSTER_2 0 x08CE0
#define VID_G_DOWN_CLUSTER_3 0 x09280
#define VID_G_DOWN_CLUSTER_4 0 x09820
#define VID_H_DOWN_CLUSTER_1 0 x09DC0
#define VID_H_DOWN_CLUSTER_2 0 x0A360
#define VID_H_DOWN_CLUSTER_3 0 x0A900
#define VID_H_DOWN_CLUSTER_4 0 x0AEA0
#define AUD_A_DOWN_CLUSTER_1 0 x0B500
#define AUD_A_DOWN_CLUSTER_2 0 x0B580
#define AUD_A_DOWN_CLUSTER_3 0 x0B600
#define AUD_B_DOWN_CLUSTER_1 0 x0B680
#define AUD_B_DOWN_CLUSTER_2 0 x0B700
#define AUD_B_DOWN_CLUSTER_3 0 x0B780
#define AUD_C_DOWN_CLUSTER_1 0 x0B800
#define AUD_C_DOWN_CLUSTER_2 0 x0B880
#define AUD_C_DOWN_CLUSTER_3 0 x0B900
#define AUD_D_DOWN_CLUSTER_1 0 x0B980
#define AUD_D_DOWN_CLUSTER_2 0 x0BA00
#define AUD_D_DOWN_CLUSTER_3 0 x0BA80
#define TX_SRAM_POOL_FREE 0 x0BB00
#define TX_SRAM_END 0 x0C000
#define BYTES_TO_DWORDS(bcount) ((bcount) >> 2 )
#define BYTES_TO_QWORDS(bcount) ((bcount) >> 3 )
#define BYTES_TO_OWORDS(bcount) ((bcount) >> 4 )
#define VID_IQ_SIZE_DW BYTES_TO_DWORDS(VID_IQ_SIZE)
#define VID_CDT_SIZE_QW BYTES_TO_QWORDS(VID_CDT_SIZE)
#define VID_CLUSTER_SIZE_OW BYTES_TO_OWORDS(VID_CLUSTER_SIZE)
#define AUDIO_IQ_SIZE_DW BYTES_TO_DWORDS(AUDIO_IQ_SIZE)
#define AUDIO_CDT_SIZE_QW BYTES_TO_QWORDS(AUDIO_CDT_SIZE)
#define AUDIO_CLUSTER_SIZE_QW BYTES_TO_QWORDS(AUDIO_CLUSTER_SIZE)
#define MBIF_IQ_SIZE_DW BYTES_TO_DWORDS(MBIF_IQ_SIZE)
#define MBIF_CDT_SIZE_QW BYTES_TO_QWORDS(MBIF_CDT_SIZE)
#define MBIF_CLUSTER_SIZE_OW BYTES_TO_OWORDS(MBIF_CLUSTER_SIZE)
#endif
Messung V0.5 in Prozent C=94 H=93 G=93
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland