162306a36Sopenharmony_ci/* SPDX-License-Identifier: MIT */
262306a36Sopenharmony_ci#ifndef __NVIF_CL9097_H__
362306a36Sopenharmony_ci#define __NVIF_CL9097_H__
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR                                                  0x00
662306a36Sopenharmony_ci#define FERMI_A_ZBC_DEPTH                                                  0x01
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct fermi_a_zbc_color_v0 {
962306a36Sopenharmony_ci	__u8  version;
1062306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_ZERO                                      0x01
1162306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_UNORM_ONE                                 0x02
1262306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RF32_GF32_BF32_AF32                       0x04
1362306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_R16_G16_B16_A16                           0x08
1462306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RN16_GN16_BN16_AN16                       0x0c
1562306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RS16_GS16_BS16_AS16                       0x10
1662306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RU16_GU16_BU16_AU16                       0x14
1762306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RF16_GF16_BF16_AF16                       0x16
1862306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8R8G8B8                                  0x18
1962306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8RL8GL8BL8                               0x1c
2062306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A2B10G10R10                               0x20
2162306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AU2BU10GU10RU10                           0x24
2262306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8B8G8R8                                  0x28
2362306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8BL8GL8RL8                               0x2c
2462306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AN8BN8GN8RN8                              0x30
2562306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AS8BS8GS8RS8                              0x34
2662306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AU8BU8GU8RU8                              0x38
2762306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A2R10G10B10                               0x3c
2862306a36Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_BF10GF11RF11                              0x40
2962306a36Sopenharmony_ci	__u8  format;
3062306a36Sopenharmony_ci	__u8  index;
3162306a36Sopenharmony_ci	__u8  pad03[5];
3262306a36Sopenharmony_ci	__u32 ds[4];
3362306a36Sopenharmony_ci	__u32 l2[4];
3462306a36Sopenharmony_ci};
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_cistruct fermi_a_zbc_depth_v0 {
3762306a36Sopenharmony_ci	__u8  version;
3862306a36Sopenharmony_ci#define FERMI_A_ZBC_DEPTH_V0_FMT_FP32                                      0x01
3962306a36Sopenharmony_ci	__u8  format;
4062306a36Sopenharmony_ci	__u8  index;
4162306a36Sopenharmony_ci	__u8  pad03[5];
4262306a36Sopenharmony_ci	__u32 ds;
4362306a36Sopenharmony_ci	__u32 l2;
4462306a36Sopenharmony_ci};
4562306a36Sopenharmony_ci#endif
46