// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Aeroflex Gaisler GRETH 10/100/1G Ethernet MAC.
*
* 2005-2010 (c) Aeroflex Gaisler AB
*
* This driver supports GRETH 10/100 and GRETH 10/100/1G Ethernet MACs
* available in the GRLIB VHDL IP core library.
*
* Full documentation of both cores can be found here:
* http://www.gaisler.com/products/grlib/grip.pdf
*
* The Gigabit version supports scatter/gather DMA, any alignment of
* buffers and checksum offloading.
*
* Contributors: Kristoffer Glembo
* Daniel Hellstrom
* Marko Isomaki
*/
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/uaccess.h>
#include