mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Redesign DCE KMD drive state machine to handle new PM events. Bug 3583331 Change-Id: I89adcfa2f311a9a1e86b70e14821468203365266 Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2673665 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Arun Swain <arswain@nvidia.com> GVS: Gerrit_Virtual_Submit
31 lines
903 B
C
31 lines
903 B
C
/*
|
|
* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#ifndef DCE_WORKQUEUE_H
|
|
#define DCE_WORKQUEUE_H
|
|
|
|
#include <linux/workqueue.h>
|
|
|
|
struct dce_work_struct {
|
|
struct tegra_dce *d;
|
|
struct work_struct work;
|
|
void (*dce_work_fn)(struct tegra_dce *d);
|
|
};
|
|
|
|
int dce_init_work(struct tegra_dce *d,
|
|
struct dce_work_struct *work,
|
|
void (*work_fn)(struct tegra_dce *d));
|
|
void dce_schedule_work(struct dce_work_struct *work);
|
|
|
|
#endif
|