linux/drivers/gpu/drm/xe/xe_force_wake.c

// SPDX-License-Identifier: MIT
/*
 * Copyright © 2022 Intel Corporation
 */

#include "xe_force_wake.h"

#include <drm/drm_util.h>

#include "regs/xe_gt_regs.h"
#include "regs/xe_reg_defs.h"
#include "xe_gt.h"
#include "xe_gt_printk.h"
#include "xe_mmio.h"
#include "xe_sriov.h"

#define XE_FORCE_WAKE_ACK_TIMEOUT_MS

static const char *str_wake_sleep(bool wake)
{}

static void domain_init(struct xe_force_wake_domain *domain,
			enum xe_force_wake_domain_id id,
			struct xe_reg reg, struct xe_reg ack)
{}

void xe_force_wake_init_gt(struct xe_gt *gt, struct xe_force_wake *fw)
{}

void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw)
{}

static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake)
{}

static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake)
{}

static void domain_wake(struct xe_gt *gt, struct xe_force_wake_domain *domain)
{}

static int domain_wake_wait(struct xe_gt *gt,
			    struct xe_force_wake_domain *domain)
{}

static void domain_sleep(struct xe_gt *gt, struct xe_force_wake_domain *domain)
{}

static int domain_sleep_wait(struct xe_gt *gt,
			     struct xe_force_wake_domain *domain)
{}

#define for_each_fw_domain_masked(domain__, mask__, fw__, tmp__)

int xe_force_wake_get(struct xe_force_wake *fw,
		      enum xe_force_wake_domains domains)
{}

int xe_force_wake_put(struct xe_force_wake *fw,
		      enum xe_force_wake_domains domains)
{}