2018-10-11 15:17:08 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (c) 2018 Intel Corporation */
|
|
|
|
|
|
|
|
#ifndef _IGC_H_
|
|
|
|
#define _IGC_H_
|
|
|
|
|
|
|
|
#include <linux/kobject.h>
|
|
|
|
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#include <linux/vmalloc.h>
|
|
|
|
|
|
|
|
#include <linux/ethtool.h>
|
|
|
|
|
|
|
|
#include <linux/sctp.h>
|
|
|
|
|
|
|
|
#define IGC_ERR(args...) pr_err("igc: " args)
|
|
|
|
|
|
|
|
#define PFX "igc: "
|
|
|
|
|
|
|
|
#include <linux/timecounter.h>
|
|
|
|
#include <linux/net_tstamp.h>
|
|
|
|
#include <linux/ptp_clock_kernel.h>
|
|
|
|
|
2018-10-11 15:17:10 +08:00
|
|
|
#include "igc_hw.h"
|
|
|
|
|
2018-10-11 15:17:08 +08:00
|
|
|
/* main */
|
|
|
|
extern char igc_driver_name[];
|
|
|
|
extern char igc_driver_version[];
|
|
|
|
|
2018-10-11 15:17:10 +08:00
|
|
|
/* Board specific private data structure */
|
|
|
|
struct igc_adapter {
|
|
|
|
u8 __iomem *io_addr;
|
|
|
|
|
|
|
|
/* OS defined structs */
|
|
|
|
struct pci_dev *pdev;
|
|
|
|
|
|
|
|
/* structs defined in igc_hw.h */
|
|
|
|
struct igc_hw hw;
|
|
|
|
};
|
|
|
|
|
2018-10-11 15:17:08 +08:00
|
|
|
#endif /* _IGC_H_ */
|