diff options
author | Aurora zuma automerger <aurora-zuma-automerger@google.com> | 2022-12-01 23:58:14 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-05 16:37:27 -0800 |
commit | 52c07f728e8f5b7d5ddb4878faf60912a2aaf8f8 (patch) | |
tree | fd52163f0e370aa117db2f6e0068271611326176 /gxp-mcu-fs.h | |
parent | 70e76ccdc0547f3e8f70c3238174ba0da695bb16 (diff) | |
download | zuma-52c07f728e8f5b7d5ddb4878faf60912a2aaf8f8.tar.gz |
gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android13-gs-pixel-5.15'
gxp: move mcu mmap handler to mcu-fs
Bug: 249918544
gxp: platforms adopt gxp-mcu-fs
Bug: 249918544 (repeat)
gxp: Allocate telemetry buffers during init
Bug: 247955426
gxp: introduce gxp-mcu-fs
Bug: 249918544 (repeat)
gxp: move client_has_vd check to client.c
Bug: 249918544 (repeat)
gxp: use entry point in elf header instead of fixed IOVA
Bug: 260647260
gxp: Add _legacy postfix to telemetry function
Bug: 247955426 (repeat)
gcip: Add remapped_data_{start,size} to image config
Bug: 257212385
GCIP_HEADERS_REV_ID: d065c7fb4db9182e11b3cfd0dec2b43395b4aa5c
gxp: Refactor LPM to accommodate new chips
Bug: 254168276
gxp: support PM_QOS_BTS reverse KCI
Bug: 239638427
gxp: introduce gxp_pm_update_pm_qos
Bug: 239638427 (repeat)
Revert "gxp: callisto: Correct DVFS numbers"
Bug: 260550440
gxp: callisto: Correct DVFS numbers
Bug: 258154981
GitOrigin-RevId: 0c75dad022b5969b956119fb9249ec7d9bf93d50
Change-Id: Ic7ca1f7edc389f2ee5470151e26a8ce8357d476d
Diffstat (limited to 'gxp-mcu-fs.h')
-rw-r--r-- | gxp-mcu-fs.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gxp-mcu-fs.h b/gxp-mcu-fs.h new file mode 100644 index 0000000..75b55c7 --- /dev/null +++ b/gxp-mcu-fs.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Common file system operations for devices with MCU support. + * + * Copyright (C) 2022 Google LLC + */ + +#ifndef __GXP_MCU_FS_H__ +#define __GXP_MCU_FS_H__ + +#include <linux/fs.h> +#include <linux/mm_types.h> + +/** + * gxp_mcu_ioctl() - Handles ioctl calls that are meaningful for devices with + * MCU support. + * + * Return: + * * -ENOTTY - The call is not handled - either the command is unrecognized + * or the driver is running in direct mode. + * * Otherwise - Returned by individual command handlers. + */ +long gxp_mcu_ioctl(struct file *file, uint cmd, ulong arg); + +/** + * gxp_mcu_mmap() - Handles mmap calls that are meaningful for devices with + * MCU support. + * + * Return: + * * -EOPNOTSUPP - The call is not handled - either the offset is unrecognized + * or the driver is running in direct mode. + * * Otherwise - Returned by individual command handlers. + */ +int gxp_mcu_mmap(struct file *file, struct vm_area_struct *vma); + +#endif /* __GXP_MCU_FS_H__ */ |