etnaviv: Introduce common etna_core_info

This struct will be used in different places outside of the gallium
driver.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28574>
This commit is contained in:
Christian Gmeiner 2024-02-28 09:08:07 +01:00 committed by Marge Bot
parent 1984712a8e
commit 3b150bcba8
4 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,7 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlignConsecutiveBitFields: true
ColumnLimit: 100
BreakStringLiterals: false

View File

@ -0,0 +1,13 @@
/*
* Copyright © 2024 Igalia S.L.
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <stdint.h>
struct etna_core_info {
uint32_t model;
uint32_t revision;
};

View File

@ -0,0 +1,9 @@
#
# Copyright © 2024 Igalia S.L.
# SPDX-License-Identifier: MIT
#
# Headers-only dependency
idep_etna_common = declare_dependency(
include_directories : include_directories('.'),
)

View File

@ -20,6 +20,7 @@
inc_etnaviv = include_directories(['.'])
subdir('common')
subdir('drm')
subdir('isa')