linux/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * VFIO platform driver specialized for Calxeda xgmac reset
 * reset code is inherited from calxeda xgmac native driver
 *
 * Copyright 2010-2011 Calxeda, Inc.
 * Copyright (c) 2015 Linaro Ltd.
 *              www.linaro.org
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>

#include "../vfio_platform_private.h"

#define DRIVER_VERSION
#define DRIVER_AUTHOR
#define DRIVER_DESC

/* XGMAC Register definitions */
#define XGMAC_CONTROL

/* DMA Control and Status Registers */
#define XGMAC_DMA_CONTROL
#define XGMAC_DMA_INTR_ENA

/* DMA Control register defines */
#define DMA_CONTROL_ST
#define DMA_CONTROL_SR

/* Common MAC defines */
#define MAC_ENABLE_TX
#define MAC_ENABLE_RX

static inline void xgmac_mac_disable(void __iomem *ioaddr)
{}

static int vfio_platform_calxedaxgmac_reset(struct vfio_platform_device *vdev)
{}

module_vfio_reset_handler("calxeda,hb-xgmac", vfio_platform_calxedaxgmac_reset);

MODULE_VERSION();
MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();