linux/drivers/dma/ptdma/ptdma-dev.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AMD Passthru DMA device driver
 * -- Based on the CCP driver
 *
 * Copyright (C) 2016,2021 Advanced Micro Devices, Inc.
 *
 * Author: Sanjay R Mehta <[email protected]>
 * Author: Gary R Hook <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/dma-mapping.h>
#include <linux/debugfs.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>

#include "ptdma.h"

/* Human-readable error strings */
static char *pt_error_codes[] =;

static void pt_log_error(struct pt_device *d, int e)
{}

void pt_start_queue(struct pt_cmd_queue *cmd_q)
{}

void pt_stop_queue(struct pt_cmd_queue *cmd_q)
{}

static int pt_core_execute_cmd(struct ptdma_desc *desc, struct pt_cmd_queue *cmd_q)
{}

int pt_core_perform_passthru(struct pt_cmd_queue *cmd_q,
			     struct pt_passthru_engine *pt_engine)
{}

static void pt_do_cmd_complete(unsigned long data)
{}

void pt_check_status_trans(struct pt_device *pt, struct pt_cmd_queue *cmd_q)
{}

static irqreturn_t pt_core_irq_handler(int irq, void *data)
{}

int pt_core_init(struct pt_device *pt)
{}

void pt_core_destroy(struct pt_device *pt)
{}