
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>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* Intel Ethernet Switch Host Interface Driver
|
|
* Copyright(c) 2013 - 2014 Intel Corporation.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* The full GNU General Public License is included in this distribution in
|
|
* the file called "COPYING".
|
|
*
|
|
* Contact Information:
|
|
* e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
|
|
* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
|
|
*/
|
|
|
|
#ifndef _FM10K_H_
|
|
#define _FM10K_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/etherdevice.h>
|
|
#include <linux/rtnetlink.h>
|
|
#include <linux/if_vlan.h>
|
|
#include <linux/pci.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[];
|
|
extern const char fm10k_driver_version[];
|
|
|
|
/* PCI */
|
|
int fm10k_register_pci_driver(void);
|
|
void fm10k_unregister_pci_driver(void);
|
|
#endif /* _FM10K_H_ */
|