fm10k: Add support for basic interaction with hardware
This patch adds the basic read/write operations for accessing the hardware. In addition to read read functionality the read functions also provide surprise remove detection in the event that the device either loses power or is removed. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
ae17db0ee5
commit
04a5aefbfb
@@ -27,7 +27,14 @@
|
||||
#include <linux/if_vlan.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include "fm10k_type.h"
|
||||
#include "fm10k_common.h"
|
||||
|
||||
struct fm10k_intfc {
|
||||
struct pci_dev *pdev;
|
||||
|
||||
struct fm10k_hw hw;
|
||||
u32 __iomem *uc_addr;
|
||||
};
|
||||
|
||||
/* main */
|
||||
extern char fm10k_driver_name[];
|
||||
|
Reference in New Issue
Block a user