igc.h 759 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/* 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>

S
Sasha Neftin 已提交
25 26
#include "igc_hw.h"

27 28 29 30
/* main */
extern char igc_driver_name[];
extern char igc_driver_version[];

S
Sasha Neftin 已提交
31 32 33 34 35 36 37 38 39 40 41
/* 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;
};

42
#endif /* _IGC_H_ */