/* SPDX-License-Identifier: MIT */ /* * Copyright © 2023 Intel Corporation */ #ifndef _XE_PAT_H_ #define _XE_PAT_H_ #include <linux/types.h> struct drm_printer; struct xe_device; struct xe_gt; /** * struct xe_pat_table_entry - The pat_index encoding and other meta information. */ struct xe_pat_table_entry { … }; /** * xe_pat_init_early - SW initialization, setting up data based on device * @xe: xe device */ void xe_pat_init_early(struct xe_device *xe); /** * xe_pat_init - Program HW PAT table * @gt: GT structure */ void xe_pat_init(struct xe_gt *gt); /** * xe_pat_dump - Dump PAT table * @gt: GT structure * @p: Printer to dump info to */ void xe_pat_dump(struct xe_gt *gt, struct drm_printer *p); /** * xe_pat_index_get_coh_mode - Extract the coherency mode for the given * pat_index. * @xe: xe device * @pat_index: The pat_index to query */ u16 xe_pat_index_get_coh_mode(struct xe_device *xe, u16 pat_index); #endif