mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvadsp: Fix build issues and enable
Fix build issues for nvadsp in OOT kernel and enable the build.
- Below files copied from kernel/nvidia/include/linux/
- tegra_nvadsp.h (72af3e78a6aff0fa250e9fd36b8414264d0e4c9a)
- tegra-firmwares.h (700223e52f49f300664dd91335fa11111af733aa)
- tegra-hsp.h (988be8f05033e1d728e046e918b506d829106082)
- Below file copied from kernel/nvidia/include/uapi/misc/
- adsp_console_ioctl.h (72af3e78a6aff0fa250e9fd36b8414264d0e4c9a)
- Functions that needs additional AGIC APIs not supported in upstream
are pushed under macro CONFIG_AGIC_EXT_APIS
- T210 chip_data and references removed
Bug 4164138
Bug 3682950
Change-Id: I5dfb570e578ca3631896de7350cea66698612568
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2971924
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
119c4f87e2
commit
d5138e1c58
46
include/uapi/misc/adsp_console_ioctl.h
Normal file
46
include/uapi/misc/adsp_console_ioctl.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/**
|
||||
* Copyright (c) 2016-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __UAPI_ADSP_CNSL_IOCTL_H
|
||||
#define __UAPI_ADSP_CNSL_IOCTL_H
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#if !defined(NVADSP_NAME_SZ)
|
||||
#define NVADSP_NAME_SZ 128
|
||||
#endif
|
||||
|
||||
#define NVADSP_NAME_SZ_MAX (NVADSP_NAME_SZ - 1)
|
||||
|
||||
#if !defined(ARGV_SIZE_IN_WORDS)
|
||||
#define ARGV_SIZE_IN_WORDS 128
|
||||
#endif
|
||||
|
||||
#define NV_ADSP_CONSOLE_MAGIC 'q'
|
||||
|
||||
struct adsp_consol_run_app_arg_t {
|
||||
uint32_t core_id;
|
||||
char app_name[NVADSP_NAME_SZ];
|
||||
char app_path[NVADSP_NAME_SZ];
|
||||
uint32_t args[ARGV_SIZE_IN_WORDS + 1];
|
||||
uint64_t ctx1;
|
||||
uint64_t ctx2;
|
||||
};
|
||||
|
||||
#define ADSP_CNSL_LOAD _IO(NV_ADSP_CONSOLE_MAGIC, 0x01)
|
||||
#define ADSP_CNSL_CLR_BUFFER _IO(NV_ADSP_CONSOLE_MAGIC, 0x02)
|
||||
#define ADSP_CNSL_PUT_DATA _IOW(NV_ADSP_CONSOLE_MAGIC, 0x03, uint32_t *)
|
||||
#define ADSP_CNSL_RUN_APP _IOWR(NV_ADSP_CONSOLE_MAGIC, 0x04,\
|
||||
struct adsp_consol_run_app_arg_t *)
|
||||
#define ADSP_CNSL_STOP_APP _IOWR(NV_ADSP_CONSOLE_MAGIC, 0x05,\
|
||||
struct adsp_consol_run_app_arg_t *)
|
||||
#define ADSP_CNSL_OPN_MBX _IOW(NV_ADSP_CONSOLE_MAGIC, 0x06, void *)
|
||||
#define ADSP_CNSL_CLOSE_MBX _IO(NV_ADSP_CONSOLE_MAGIC, 0x07)
|
||||
#define ADSP_CNSL_PUT_MBX _IOW(NV_ADSP_CONSOLE_MAGIC, 0x08, uint32_t *)
|
||||
#define ADSP_CNSL_GET_MBX _IOR(NV_ADSP_CONSOLE_MAGIC, 0x09, uint32_t *)
|
||||
#define ADSP_CNSL_SUSPEND _IO(NV_ADSP_CONSOLE_MAGIC, 0x0a)
|
||||
#define ADSP_CNSL_STOP _IO(NV_ADSP_CONSOLE_MAGIC, 0x0b)
|
||||
#define ADSP_CNSL_RESUME _IO(NV_ADSP_CONSOLE_MAGIC, 0x0c)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user