#include "drm.h"
#include "submit.h"
#include "uapi.h"
struct tegra_drm_firewall { … };
static int fw_next(struct tegra_drm_firewall *fw, u32 *word)
{ … }
static bool fw_check_addr_valid(struct tegra_drm_firewall *fw, u32 offset)
{ … }
static int fw_check_reg(struct tegra_drm_firewall *fw, u32 offset)
{ … }
static int fw_check_regs_seq(struct tegra_drm_firewall *fw, u32 offset,
u32 count, bool incr)
{ … }
static int fw_check_regs_mask(struct tegra_drm_firewall *fw, u32 offset,
u16 mask)
{ … }
static int fw_check_regs_imm(struct tegra_drm_firewall *fw, u32 offset)
{ … }
static int fw_check_class(struct tegra_drm_firewall *fw, u32 class)
{ … }
enum { … };
int tegra_drm_fw_validate(struct tegra_drm_client *client, u32 *data, u32 start,
u32 words, struct tegra_drm_submit_data *submit,
u32 *job_class)
{ … }