Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/device/src/device/handle_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ template <typename syscall_iface_t>
class handle_impl : public handle, private syscall_iface_t {
public:
/** Determines how descriptor should be treated. */
enum class mode {
enum class mode : uint8_t {
/** The descriptor is closed at destruction time. */
internal,
/** the descriptor is kept open at destruction time. */
Expand Down
2 changes: 1 addition & 1 deletion backend/device/src/device/hwcnt/sampler/base/backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class backend : public detail::backend, public reader, private syscall_iface_t {
~backend() override { get_syscall_iface().close(fd_); }

/** Sampler type. */
enum class sampler_type {
enum class sampler_type : uint8_t {
/** Manual sampler. */
manual,
/** Periodic sampler. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace sampler {
namespace vinstr {

/** Sample layout type. */
enum class sample_layout_type {
enum class sample_layout_type : uint8_t {
/** v4 layout type. */
v4,
/** v5 layout or newer.*/
Expand Down
2 changes: 1 addition & 1 deletion backend/device/src/device/ioctl/kbase/commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ constexpr auto iface_number = 0x80;
namespace command {

/** Commands describing kbase ioctl interface. */
enum command_type {
enum class command_type : uintptr_t {
/** Check version compatibility between JM kernel and userspace. */
version_check_jm = _IOWR(iface_number, 0x0, ::hwcpipe::device::ioctl::kbase::version_check),
/** Check version compatibility between CSF kernel and userspace. */
Expand Down
2 changes: 1 addition & 1 deletion backend/device/src/device/ioctl/kbase_pre_r21/commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ constexpr auto iface_number = 0x80;
namespace command {

/** Commands describing kbase_pre_r21 ioctl interface. */
enum command_type {
enum command_type : uintptr_t {
/** Check version compatibility between JM kernel and userspace. */
version_check = _IOWR(iface_number, 0x0, ::hwcpipe::device::ioctl::kbase_pre_r21::version_check_args),
/** Set kernel context creation flags. */
Expand Down
2 changes: 1 addition & 1 deletion backend/device/src/device/ioctl/kinstr_prfcnt/commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ constexpr auto iface_number = 0xbf;
namespace command {

/** Commands describing kinstr_prfcnt ioctl interface. */
enum command_type {
enum command_type : uintptr_t {
/** Issue command. */
issue_command = _IOW(iface_number, 0x0, ::hwcpipe::device::ioctl::kinstr_prfcnt::control_cmd),
/** Get sample. */
Expand Down
2 changes: 1 addition & 1 deletion backend/device/src/device/ioctl/vinstr/commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ constexpr auto iface_number = 0xbe;
namespace command {

/** Commands describing vinstr ioctl interface. */
enum command_type {
enum command_type : uintptr_t {
/** Get HW version. */
get_hwver = _IOR(iface_number, 0x0, uint32_t),
/** Get HWCNT dump buffer size. */
Expand Down
2 changes: 1 addition & 1 deletion backend/device/src/device/kbase_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace hwcpipe {
namespace device {

/** Kbase ioctl interface type. */
enum class ioctl_iface_type {
enum class ioctl_iface_type : uint32_t {
/** Pre R21 release Job manager kernel. */
jm_pre_r21,
/** Post R21 release Job manager kernel. */
Expand Down
3 changes: 2 additions & 1 deletion hwcpipe/include/hwcpipe/hwcpipe_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

#ifndef HWCPIPE_COUNTER_H
#define HWCPIPE_COUNTER_H
#include <cstdint>

// NOLINTBEGIN(readability-identifier-naming)
// all possible counters
typedef enum hwcpipe_counter {
typedef enum class hwcpipe_counter : uint16_t {
MaliGPUActiveCy,
MaliGPUIRQActiveCy,
MaliFragQueueJob,
Expand Down