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:
Alexander Duyck
2014-09-20 19:46:45 -04:00
committed by Jeff Kirsher
parent ae17db0ee5
commit 04a5aefbfb
3 changed files with 82 additions and 1 deletions

View File

@@ -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[];