linux/drivers/gpu/drm/omapdrm/omap_dmm_priv.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
 * Author: Rob Clark <[email protected]>
 *         Andy Gross <[email protected]>
 */

#ifndef OMAP_DMM_PRIV_H
#define OMAP_DMM_PRIV_H

#define DMM_REVISION
#define DMM_HWINFO
#define DMM_LISA_HWINFO
#define DMM_DMM_SYSCONFIG
#define DMM_LISA_LOCK
#define DMM_LISA_MAP__0
#define DMM_LISA_MAP__1
#define DMM_TILER_HWINFO
#define DMM_TILER_OR__0
#define DMM_TILER_OR__1
#define DMM_PAT_HWINFO
#define DMM_PAT_GEOMETRY
#define DMM_PAT_CONFIG
#define DMM_PAT_VIEW__0
#define DMM_PAT_VIEW__1
#define DMM_PAT_VIEW_MAP__0
#define DMM_PAT_VIEW_MAP_BASE
#define DMM_PAT_IRQ_EOI
#define DMM_PAT_IRQSTATUS_RAW
#define DMM_PAT_IRQSTATUS
#define DMM_PAT_IRQENABLE_SET
#define DMM_PAT_IRQENABLE_CLR
#define DMM_PAT_STATUS__0
#define DMM_PAT_STATUS__1
#define DMM_PAT_STATUS__2
#define DMM_PAT_STATUS__3
#define DMM_PAT_DESCR__0
#define DMM_PAT_DESCR__1
#define DMM_PAT_DESCR__2
#define DMM_PAT_DESCR__3
#define DMM_PEG_HWINFO
#define DMM_PEG_PRIO
#define DMM_PEG_PRIO_PAT

#define DMM_IRQSTAT_DST
#define DMM_IRQSTAT_LST
#define DMM_IRQSTAT_ERR_INV_DSC
#define DMM_IRQSTAT_ERR_INV_DATA
#define DMM_IRQSTAT_ERR_UPD_AREA
#define DMM_IRQSTAT_ERR_UPD_CTRL
#define DMM_IRQSTAT_ERR_UPD_DATA
#define DMM_IRQSTAT_ERR_LUT_MISS

#define DMM_IRQSTAT_ERR_MASK

#define DMM_PATSTATUS_READY
#define DMM_PATSTATUS_VALID
#define DMM_PATSTATUS_RUN
#define DMM_PATSTATUS_DONE
#define DMM_PATSTATUS_LINKED
#define DMM_PATSTATUS_BYPASSED
#define DMM_PATSTATUS_ERR_INV_DESCR
#define DMM_PATSTATUS_ERR_INV_DATA
#define DMM_PATSTATUS_ERR_UPD_AREA
#define DMM_PATSTATUS_ERR_UPD_CTRL
#define DMM_PATSTATUS_ERR_UPD_DATA
#define DMM_PATSTATUS_ERR_ACCESS

/* note: don't treat DMM_PATSTATUS_ERR_ACCESS as an error */
#define DMM_PATSTATUS_ERR



enum {};

struct pat_ctrl {};

struct pat {};

#define DMM_FIXED_RETRY_COUNT

/* create refill buffer big enough to refill all slots, plus 3 descriptors..
 * 3 descriptors is probably the worst-case for # of 2d-slices in a 1d area,
 * but I guess you don't hit that worst case at the same time as full area
 * refill
 */
#define DESCR_SIZE
#define REFILL_BUFFER_SIZE

/* For OMAP5, a fixed offset is added to all Y coordinates for 1D buffers.
 * This is used in programming to address the upper portion of the LUT
*/
#define OMAP5_LUT_OFFSET

struct dmm;

struct dmm_txn {};

struct refill_engine {};

struct dmm_platform_data {};

struct dmm {};

#endif