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
nexedi
linux
Commits
1fb0a6c8
Commit
1fb0a6c8
authored
Aug 19, 2006
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes' into upstream
parents
29917620
a76b044a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/net/wan/c101.c
drivers/net/wan/c101.c
+5
-4
No files found.
drivers/net/wan/c101.c
View file @
1fb0a6c8
...
@@ -118,7 +118,7 @@ static inline void openwin(card_t *card, u8 page)
...
@@ -118,7 +118,7 @@ static inline void openwin(card_t *card, u8 page)
static
inline
void
set_carrier
(
port_t
*
port
)
static
inline
void
set_carrier
(
port_t
*
port
)
{
{
if
(
!
sca_in
(
MSCI1_OFFSET
+
ST3
,
port
)
&
ST3_DCD
)
if
(
!
(
sca_in
(
MSCI1_OFFSET
+
ST3
,
port
)
&
ST3_DCD
)
)
netif_carrier_on
(
port_to_dev
(
port
));
netif_carrier_on
(
port_to_dev
(
port
));
else
else
netif_carrier_off
(
port_to_dev
(
port
));
netif_carrier_off
(
port_to_dev
(
port
));
...
@@ -127,10 +127,10 @@ static inline void set_carrier(port_t *port)
...
@@ -127,10 +127,10 @@ static inline void set_carrier(port_t *port)
static
void
sca_msci_intr
(
port_t
*
port
)
static
void
sca_msci_intr
(
port_t
*
port
)
{
{
u8
stat
=
sca_in
(
MSCI
1
_OFFSET
+
ST1
,
port
);
/* read MSCI ST1 status */
u8
stat
=
sca_in
(
MSCI
0
_OFFSET
+
ST1
,
port
);
/* read MSCI ST1 status */
/* Reset MSCI TX underrun status bit */
/* Reset MSCI TX underrun
and CDCD (ignored)
status bit */
sca_out
(
stat
&
ST1_UDRN
,
MSCI0_OFFSET
+
ST1
,
port
);
sca_out
(
stat
&
(
ST1_UDRN
|
ST1_CDCD
)
,
MSCI0_OFFSET
+
ST1
,
port
);
if
(
stat
&
ST1_UDRN
)
{
if
(
stat
&
ST1_UDRN
)
{
struct
net_device_stats
*
stats
=
hdlc_stats
(
port_to_dev
(
port
));
struct
net_device_stats
*
stats
=
hdlc_stats
(
port_to_dev
(
port
));
...
@@ -138,6 +138,7 @@ static void sca_msci_intr(port_t *port)
...
@@ -138,6 +138,7 @@ static void sca_msci_intr(port_t *port)
stats
->
tx_fifo_errors
++
;
stats
->
tx_fifo_errors
++
;
}
}
stat
=
sca_in
(
MSCI1_OFFSET
+
ST1
,
port
);
/* read MSCI1 ST1 status */
/* Reset MSCI CDCD status bit - uses ch#2 DCD input */
/* Reset MSCI CDCD status bit - uses ch#2 DCD input */
sca_out
(
stat
&
ST1_CDCD
,
MSCI1_OFFSET
+
ST1
,
port
);
sca_out
(
stat
&
ST1_CDCD
,
MSCI1_OFFSET
+
ST1
,
port
);
...
...
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