forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stmmac: add the experimental PCI support
This patch adds the PCI support (as EXPERIMENTAL) this has been also tested on XLINX XC2V3000 FF1152AMT0221 D1215994A VIRTEX FPGA board. To support the PCI bus the main part has been reworked and both the platform and the PCI specific parts have been moved into different files. Signed-off-by: Rayagond Kokatanur <[email protected]> Signed-off-by: Giuseppe Cavallaro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
9 changed files
with
612 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,11 @@ | |
Author: Giuseppe Cavallaro <[email protected]> | ||
*******************************************************************************/ | ||
|
||
#include <linux/etherdevice.h> | ||
#include <linux/netdevice.h> | ||
#include <linux/phy.h> | ||
#include <linux/module.h> | ||
#include <linux/init.h> | ||
#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | ||
#define STMMAC_VLAN_TAG_USED | ||
#include <linux/if_vlan.h> | ||
|
@@ -315,5 +319,8 @@ extern void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6], | |
unsigned int high, unsigned int low); | ||
extern void stmmac_get_mac_addr(void __iomem *ioaddr, unsigned char *addr, | ||
unsigned int high, unsigned int low); | ||
|
||
extern void stmmac_set_mac(void __iomem *ioaddr, bool enable); | ||
|
||
extern void dwmac_dma_flush_tx_fifo(void __iomem *ioaddr); | ||
extern const struct stmmac_ring_mode_ops ring_mode_ops; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ | |
Author: Giuseppe Cavallaro <[email protected]> | ||
*******************************************************************************/ | ||
|
||
#define DRV_MODULE_VERSION "Oct_2011" | ||
#define STMMAC_RESOURCE_NAME "stmmaceth" | ||
#define DRV_MODULE_VERSION "Dec_2011" | ||
#include <linux/stmmac.h> | ||
#include <linux/phy.h> | ||
#include "common.h" | ||
|
@@ -82,8 +83,18 @@ struct stmmac_priv { | |
int hw_cap_support; | ||
}; | ||
|
||
extern int phyaddr; | ||
|
||
extern int stmmac_mdio_unregister(struct net_device *ndev); | ||
extern int stmmac_mdio_register(struct net_device *ndev); | ||
extern void stmmac_set_ethtool_ops(struct net_device *netdev); | ||
extern const struct stmmac_desc_ops enh_desc_ops; | ||
extern const struct stmmac_desc_ops ndesc_ops; | ||
|
||
int stmmac_freeze(struct net_device *ndev); | ||
int stmmac_restore(struct net_device *ndev); | ||
int stmmac_resume(struct net_device *ndev); | ||
int stmmac_suspend(struct net_device *ndev); | ||
int stmmac_dvr_remove(struct net_device *ndev); | ||
struct stmmac_priv *stmmac_dvr_probe(struct device *device, | ||
struct plat_stmmacenet_data *plat_dat); |
Oops, something went wrong.