aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mv643xx.h
diff options
context:
space:
mode:
authorDale Farnsworth <dale@farnsworth.org>2006-01-27 03:18:01 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 11:11:16 -0500
commit01999873a455fe9104e91820c72849e608239928 (patch)
tree24695d2629535ed0ccfdaa26d028705bca0eaecf /include/linux/mv643xx.h
parentd0412d967032b9e147bcbacc9ff0c0342636cf2d (diff)
[PATCH] mv643xx_eth: Clean up platform_data configuration
We shouldn't expose the hardware register contents in platform_data. The only things we allow the user to configure are autoneg, speed, and duplex. Add specific platform_data fields for these values and remove the registers configs. Signed-off-by: Dale Farnsworth <dale@farnsworth.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/mv643xx.h')
-rw-r--r--include/linux/mv643xx.h24
1 files changed, 8 insertions, 16 deletions
diff --git a/include/linux/mv643xx.h b/include/linux/mv643xx.h
index 7ffbeac7d2bb..955d3069d727 100644
--- a/include/linux/mv643xx.h
+++ b/include/linux/mv643xx.h
@@ -1288,23 +1288,15 @@ struct mv64xxx_i2c_pdata {
1288#define MV643XX_ETH_NAME "mv643xx_eth" 1288#define MV643XX_ETH_NAME "mv643xx_eth"
1289 1289
1290struct mv643xx_eth_platform_data { 1290struct mv643xx_eth_platform_data {
1291 /*
1292 * Non-values for mac_addr, phy_addr, port_config, etc.
1293 * override the default value. Setting the corresponding
1294 * force_* field, causes the default value to be overridden
1295 * even when zero.
1296 */
1297 unsigned int force_phy_addr:1;
1298 unsigned int force_port_config:1;
1299 unsigned int force_port_config_extend:1;
1300 unsigned int force_port_sdma_config:1;
1301 unsigned int force_port_serial_control:1;
1302 int phy_addr;
1303 char *mac_addr; /* pointer to mac address */ 1291 char *mac_addr; /* pointer to mac address */
1304 u32 port_config; 1292 u16 force_phy_addr; /* force override if phy_addr == 0 */
1305 u32 port_config_extend; 1293 u16 phy_addr;
1306 u32 port_sdma_config; 1294
1307 u32 port_serial_control; 1295 /* If speed is 0, then speed and duplex are autonegotiated. */
1296 int speed; /* 0, SPEED_10, SPEED_100, SPEED_1000 */
1297 int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
1298
1299 /* non-zero values of the following fields override defaults */
1308 u32 tx_queue_size; 1300 u32 tx_queue_size;
1309 u32 rx_queue_size; 1301 u32 rx_queue_size;
1310 u32 tx_sram_addr; 1302 u32 tx_sram_addr;