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
d5dc249c
Commit
d5dc249c
authored
Jan 10, 2004
by
Alexander Viro
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wan hdlc] hdlc_close() switched to net_device.
parent
24b84925
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
11 deletions
+10
-11
drivers/net/wan/c101.c
drivers/net/wan/c101.c
+1
-1
drivers/net/wan/dscc4.c
drivers/net/wan/dscc4.c
+2
-4
drivers/net/wan/farsync.c
drivers/net/wan/farsync.c
+1
-1
drivers/net/wan/hdlc_generic.c
drivers/net/wan/hdlc_generic.c
+2
-1
drivers/net/wan/n2.c
drivers/net/wan/n2.c
+1
-1
drivers/net/wan/pc300_drv.c
drivers/net/wan/pc300_drv.c
+1
-1
drivers/net/wan/wanxl.c
drivers/net/wan/wanxl.c
+1
-1
include/linux/hdlc.h
include/linux/hdlc.h
+1
-1
No files found.
drivers/net/wan/c101.c
View file @
d5dc249c
...
...
@@ -212,7 +212,7 @@ static int c101_close(struct net_device *dev)
sca_close
(
hdlc
);
writeb
(
0
,
port
->
win0base
+
C101_DTR
);
sca_out
(
CTL_NORTS
,
MSCI1_OFFSET
+
CTL
,
port
);
hdlc_close
(
hdlc
);
hdlc_close
(
dev
);
return
0
;
}
...
...
drivers/net/wan/dscc4.c
View file @
d5dc249c
...
...
@@ -1015,7 +1015,6 @@ static void dscc4_pci_reset(struct pci_dev *pdev, unsigned long ioaddr)
static
int
dscc4_open
(
struct
net_device
*
dev
)
{
struct
dscc4_dev_priv
*
dpriv
=
dscc4_priv
(
dev
);
hdlc_device
*
hdlc
=
&
dpriv
->
hdlc
;
struct
dscc4_pci_priv
*
ppriv
;
int
ret
=
-
EAGAIN
;
...
...
@@ -1103,7 +1102,7 @@ static int dscc4_open(struct net_device *dev)
scc_writel
(
0xffffffff
,
dpriv
,
dev
,
IMR
);
scc_patchl
(
PowerUp
|
Vis
,
0
,
dpriv
,
dev
,
CCR0
);
err_out:
hdlc_close
(
hdlc
);
hdlc_close
(
dev
);
err:
return
ret
;
}
...
...
@@ -1155,7 +1154,6 @@ static int dscc4_start_xmit(struct sk_buff *skb, struct net_device *dev)
static
int
dscc4_close
(
struct
net_device
*
dev
)
{
struct
dscc4_dev_priv
*
dpriv
=
dscc4_priv
(
dev
);
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
del_timer_sync
(
&
dpriv
->
timer
);
netif_stop_queue
(
dev
);
...
...
@@ -1166,7 +1164,7 @@ static int dscc4_close(struct net_device *dev)
dpriv
->
flags
|=
FakeReset
;
hdlc_close
(
hdlc
);
hdlc_close
(
dev
);
return
0
;
}
...
...
drivers/net/wan/farsync.c
View file @
d5dc249c
...
...
@@ -1325,7 +1325,7 @@ fst_close ( struct net_device *dev )
{
netif_stop_queue
(
dev
);
fst_closeport
(
dev_to_port
(
dev
));
hdlc_close
(
dev
_to_hdlc
(
dev
)
);
hdlc_close
(
dev
);
MOD_DEC_USE_COUNT
;
return
0
;
}
...
...
drivers/net/wan/hdlc_generic.c
View file @
d5dc249c
...
...
@@ -145,8 +145,9 @@ int hdlc_open(struct net_device *dev)
/* Must be called by hardware driver when HDLC device is being closed */
void
hdlc_close
(
hdlc_device
*
hdlc
)
void
hdlc_close
(
struct
net_device
*
dev
)
{
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
#ifdef DEBUG_LINK
printk
(
KERN_DEBUG
"hdlc_close carrier %i open %i
\n
"
,
hdlc
->
carrier
,
hdlc
->
open
);
...
...
drivers/net/wan/n2.c
View file @
d5dc249c
...
...
@@ -247,7 +247,7 @@ static int n2_close(struct net_device *dev)
sca_close
(
hdlc
);
mcr
|=
port
->
phy_node
?
DTR_PORT1
:
DTR_PORT0
;
/* set DTR OFF */
outb
(
mcr
,
io
+
N2_MCR
);
hdlc_close
(
hdlc
);
hdlc_close
(
dev
);
return
0
;
}
...
...
drivers/net/wan/pc300_drv.c
View file @
d5dc249c
...
...
@@ -3190,7 +3190,7 @@ int cpc_close(struct net_device *dev)
cpc_closech
(
d
);
CPC_UNLOCK
(
card
,
flags
);
hdlc_close
(
hdlc
);
hdlc_close
(
dev
);
if
(
hdlc
->
proto
.
id
==
IF_PROTO_PPP
)
{
d
->
if_ptr
=
NULL
;
}
...
...
drivers/net/wan/wanxl.c
View file @
d5dc249c
...
...
@@ -455,7 +455,7 @@ static int wanxl_close(struct net_device *dev)
unsigned
long
timeout
;
int
i
;
hdlc_close
(
hdlc
);
hdlc_close
(
dev
);
/* signal the card */
writel
(
1
<<
(
DOORBELL_TO_CARD_CLOSE_0
+
port
->
node
),
port
->
card
->
plx
+
PLX_DOORBELL_TO_CARD
);
...
...
include/linux/hdlc.h
View file @
d5dc249c
...
...
@@ -231,7 +231,7 @@ static __inline__ void debug_frame(const struct sk_buff *skb)
/* Must be called by hardware driver when HDLC device is being opened */
int
hdlc_open
(
struct
net_device
*
dev
);
/* Must be called by hardware driver when HDLC device is being closed */
void
hdlc_close
(
hdlc_device
*
hdlc
);
void
hdlc_close
(
struct
net_device
*
dev
);
/* Called by hardware driver when DCD line level changes */
void
hdlc_set_carrier
(
int
on
,
hdlc_device
*
hdlc
);
...
...
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