Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
52497499
Commit
52497499
authored
Jul 09, 2004
by
Christoph Hellwig
Committed by
Jeff Garzik
Jul 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove dead code from mv64340_eth
parent
01534a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
76 deletions
+0
-76
drivers/net/mv64340_eth.c
drivers/net/mv64340_eth.c
+0
-76
No files found.
drivers/net/mv64340_eth.c
View file @
52497499
...
...
@@ -1645,20 +1645,12 @@ MODULE_DESCRIPTION("Ethernet driver for Marvell MV64340");
/* locals */
/* PHY routines */
#ifdef MDD_CUT
static
void
ethernet_phy_set
(
unsigned
int
eth_port_num
,
int
phy_addr
);
#endif
static
int
ethernet_phy_get
(
unsigned
int
eth_port_num
);
/* Ethernet Port routines */
static
int
eth_port_uc_addr
(
unsigned
int
eth_port_num
,
unsigned
char
uc_nibble
,
int
option
);
#ifdef MDD_CUT
static
void
eth_b_copy
(
unsigned
int
src_addr
,
unsigned
int
dst_addr
,
int
byte_count
);
#endif
/*
* eth_port_init - Initialize the Ethernet port driver
*
...
...
@@ -1957,38 +1949,6 @@ static void eth_clear_mib_counters(unsigned int eth_port_num)
}
#ifdef MDD_CUT
/*
* ethernet_phy_set - Set the ethernet port PHY address.
*
* DESCRIPTION:
* This routine set the ethernet port PHY address according to given
* parameter.
*
* INPUT:
* unsigned int eth_port_num Ethernet Port number.
*
* OUTPUT:
* Set PHY Address Register with given PHY address parameter.
*
* RETURN:
* None.
*/
static
void
ethernet_phy_set
(
unsigned
int
eth_port_num
,
int
phy_addr
)
{
unsigned
int
reg_data
;
reg_data
=
MV_READ
(
MV64340_ETH_PHY_ADDR_REG
);
reg_data
&=
~
(
0x1F
<<
(
5
*
eth_port_num
));
reg_data
|=
(
phy_addr
<<
(
5
*
eth_port_num
));
MV_WRITE
(
MV64340_ETH_PHY_ADDR_REG
,
reg_data
);
return
;
}
#endif
/*
* ethernet_phy_get - Get the ethernet port PHY address.
*
...
...
@@ -2684,39 +2644,3 @@ static ETH_FUNC_RET_STATUS eth_rx_return_buff(struct mv64340_private * mp,
return
ETH_OK
;
}
#ifdef MDD_CUT
/*
* eth_b_copy - Copy bytes from source to destination
*
* DESCRIPTION:
* This function supports the eight bytes limitation on Tx buffer size.
* The routine will zero eight bytes starting from the destination address
* followed by copying bytes from the source address to the destination.
*
* INPUT:
* unsigned int src_addr 32 bit source address.
* unsigned int dst_addr 32 bit destination address.
* int byte_count Number of bytes to copy.
*
* OUTPUT:
* See description.
*
* RETURN:
* None.
*
*/
static
void
eth_b_copy
(
unsigned
int
src_addr
,
unsigned
int
dst_addr
,
int
byte_count
)
{
/* Zero the dst_addr area */
*
(
unsigned
int
*
)
dst_addr
=
0x0
;
while
(
byte_count
!=
0
)
{
*
(
char
*
)
dst_addr
=
*
(
char
*
)
src_addr
;
dst_addr
++
;
src_addr
++
;
byte_count
--
;
}
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment