This patch adds basic template for Marvell OcteonTX2's CGX ethernet interface driver. Just the probe. RVU AF driver will use APIs exported by this driver for various things like PF to physical interface mapping, loopback mode, interface stats etc. Hence marged both drivers into a single module. Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
23 lines
516 B
C
23 lines
516 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
* Marvell OcteonTx2 CGX driver
|
|
*
|
|
* Copyright (C) 2018 Marvell International Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef CGX_H
|
|
#define CGX_H
|
|
|
|
/* PCI device IDs */
|
|
#define PCI_DEVID_OCTEONTX2_CGX 0xA059
|
|
|
|
/* PCI BAR nos */
|
|
#define PCI_CFG_REG_BAR_NUM 0
|
|
|
|
extern struct pci_driver cgx_driver;
|
|
|
|
#endif /* CGX_H */
|