-
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.
mv643xx_eth: Split off mv643xx_eth platform device data
The mv643xx ethernet silicon block is also found in a couple of other Marvell chips. As a first step towards splitting off the mv643xx_eth bits from the rest of the mv643xx bits, this patch splits the mv643xx ethernet platform device data struct in linux/mv643xx.h off into linux/mv643xx_eth.h, and includes the latter from the former. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Acked-by: Tzachi Perelstein <tzachi@marvell.com> Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
- Loading branch information
Lennert Buytenhek
authored and
Dale Farnsworth
committed
Oct 23, 2007
1 parent
e8b8c97
commit c4a6a2a
Showing
2 changed files
with
32 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* MV-643XX ethernet platform device data definition file. | ||
*/ | ||
#ifndef __LINUX_MV643XX_ETH_H | ||
#define __LINUX_MV643XX_ETH_H | ||
|
||
#define MV643XX_ETH_SHARED_NAME "mv643xx_eth_shared" | ||
#define MV643XX_ETH_NAME "mv643xx_eth" | ||
#define MV643XX_ETH_SHARED_REGS 0x2000 | ||
#define MV643XX_ETH_SHARED_REGS_SIZE 0x2000 | ||
|
||
struct mv643xx_eth_platform_data { | ||
int port_number; | ||
u16 force_phy_addr; /* force override if phy_addr == 0 */ | ||
u16 phy_addr; | ||
|
||
/* If speed is 0, then speed and duplex are autonegotiated. */ | ||
int speed; /* 0, SPEED_10, SPEED_100, SPEED_1000 */ | ||
int duplex; /* DUPLEX_HALF or DUPLEX_FULL */ | ||
|
||
/* non-zero values of the following fields override defaults */ | ||
u32 tx_queue_size; | ||
u32 rx_queue_size; | ||
u32 tx_sram_addr; | ||
u32 tx_sram_size; | ||
u32 rx_sram_addr; | ||
u32 rx_sram_size; | ||
u8 mac_addr[6]; /* mac address if non-zero*/ | ||
}; | ||
|
||
#endif /* __LINUX_MV643XX_ETH_H */ |