mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-23 20:07:25 -04:00
Add request/response structures and helper functions to query system controller to get error counter value. Reviewed-by: Raag Jadav <raag.jadav@intel.com> Link: https://patch.msgid.link/20260618060633.2790109-10-riana.tauro@intel.com Signed-off-by: Riana Tauro <riana.tauro@intel.com>
35 lines
934 B
C
35 lines
934 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2026 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_SYSCTRL_MAILBOX_H_
|
|
#define _XE_SYSCTRL_MAILBOX_H_
|
|
|
|
#include <linux/bitfield.h>
|
|
#include <linux/types.h>
|
|
|
|
#include "abi/xe_sysctrl_abi.h"
|
|
|
|
struct xe_sysctrl;
|
|
struct xe_sysctrl_mailbox_command;
|
|
|
|
#define XE_SYSCTRL_APP_HDR_GROUP_ID(hdr) \
|
|
FIELD_GET(APP_HDR_GROUP_ID_MASK, (hdr)->data)
|
|
|
|
#define XE_SYSCTRL_APP_HDR_COMMAND(hdr) \
|
|
FIELD_GET(APP_HDR_COMMAND_MASK, (hdr)->data)
|
|
|
|
#define XE_SYSCTRL_APP_HDR_VERSION(hdr) \
|
|
FIELD_GET(APP_HDR_VERSION_MASK, (hdr)->data)
|
|
|
|
void xe_sysctrl_create_command(struct xe_sysctrl_mailbox_command *command, u8 group_id, u8 cmd_id,
|
|
void *request, size_t request_len, void *response,
|
|
size_t response_len);
|
|
void xe_sysctrl_mailbox_init(struct xe_sysctrl *sc);
|
|
int xe_sysctrl_send_command(struct xe_sysctrl *sc,
|
|
struct xe_sysctrl_mailbox_command *cmd,
|
|
size_t *rdata_len);
|
|
|
|
#endif
|