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
03edef3c
Commit
03edef3c
authored
Aug 16, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.5-pcmcia
into home.osdl.org:/home/torvalds/v2.5/linux
parents
e8a3edfc
6e8e9d80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
17 deletions
+8
-17
drivers/net/wireless/atmel_cs.c
drivers/net/wireless/atmel_cs.c
+8
-16
include/pcmcia/ds.h
include/pcmcia/ds.h
+0
-1
No files found.
drivers/net/wireless/atmel_cs.c
View file @
03edef3c
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include <linux/ptrace.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/netdevice.h>
#include <linux/netdevice.h>
#include <linux/moduleparam.h>
#include <linux/moduleparam.h>
#include <linux/device.h>
#include <linux/device.h>
...
@@ -108,7 +107,7 @@ void stop_atmel_card( struct net_device *, int );
...
@@ -108,7 +107,7 @@ void stop_atmel_card( struct net_device *, int );
int
reset_atmel_card
(
struct
net_device
*
);
int
reset_atmel_card
(
struct
net_device
*
);
static
void
atmel_config
(
dev_link_t
*
link
);
static
void
atmel_config
(
dev_link_t
*
link
);
static
void
atmel_release
(
u_long
arg
);
static
void
atmel_release
(
dev_link_t
*
link
);
static
int
atmel_event
(
event_t
event
,
int
priority
,
static
int
atmel_event
(
event_t
event
,
int
priority
,
event_callback_args_t
*
args
);
event_callback_args_t
*
args
);
...
@@ -222,9 +221,6 @@ static dev_link_t *atmel_attach(void)
...
@@ -222,9 +221,6 @@ static dev_link_t *atmel_attach(void)
return
NULL
;
return
NULL
;
}
}
memset
(
link
,
0
,
sizeof
(
struct
dev_link_t
));
memset
(
link
,
0
,
sizeof
(
struct
dev_link_t
));
init_timer
(
&
link
->
release
);
link
->
release
.
function
=
&
atmel_release
;
link
->
release
.
data
=
(
u_long
)
link
;
/* Interrupt setup */
/* Interrupt setup */
link
->
irq
.
Attributes
=
IRQ_TYPE_EXCLUSIVE
;
link
->
irq
.
Attributes
=
IRQ_TYPE_EXCLUSIVE
;
...
@@ -300,9 +296,8 @@ static void atmel_detach(dev_link_t *link)
...
@@ -300,9 +296,8 @@ static void atmel_detach(dev_link_t *link)
if
(
*
linkp
==
NULL
)
if
(
*
linkp
==
NULL
)
return
;
return
;
del_timer
(
&
link
->
release
);
if
(
link
->
state
&
DEV_CONFIG
)
{
if
(
link
->
state
&
DEV_CONFIG
)
{
atmel_release
(
(
int
)
link
);
atmel_release
(
link
);
if
(
link
->
state
&
DEV_STALE_CONFIG
)
{
if
(
link
->
state
&
DEV_STALE_CONFIG
)
{
link
->
state
|=
DEV_STALE_LINK
;
link
->
state
|=
DEV_STALE_LINK
;
return
;
return
;
...
@@ -605,9 +600,8 @@ static void atmel_config(dev_link_t *link)
...
@@ -605,9 +600,8 @@ static void atmel_config(dev_link_t *link)
cs_failed:
cs_failed:
cs_error
(
link
->
handle
,
last_fn
,
last_ret
);
cs_error
(
link
->
handle
,
last_fn
,
last_ret
);
atmel_release
((
u_long
)
link
);
atmel_release
(
link
);
}
}
/* atmel_config */
/*======================================================================
/*======================================================================
...
@@ -617,9 +611,8 @@ static void atmel_config(dev_link_t *link)
...
@@ -617,9 +611,8 @@ static void atmel_config(dev_link_t *link)
======================================================================*/
======================================================================*/
static
void
atmel_release
(
u_long
arg
)
static
void
atmel_release
(
dev_link_t
*
link
)
{
{
dev_link_t
*
link
=
(
dev_link_t
*
)
arg
;
struct
net_device
*
dev
=
((
local_info_t
*
)
link
->
priv
)
->
eth_dev
;
struct
net_device
*
dev
=
((
local_info_t
*
)
link
->
priv
)
->
eth_dev
;
DEBUG
(
0
,
"atmel_release(0x%p)
\n
"
,
link
);
DEBUG
(
0
,
"atmel_release(0x%p)
\n
"
,
link
);
...
@@ -638,8 +631,7 @@ static void atmel_release(u_long arg)
...
@@ -638,8 +631,7 @@ static void atmel_release(u_long arg)
if
(
link
->
irq
.
AssignedIRQ
)
if
(
link
->
irq
.
AssignedIRQ
)
CardServices
(
ReleaseIRQ
,
link
->
handle
,
&
link
->
irq
);
CardServices
(
ReleaseIRQ
,
link
->
handle
,
&
link
->
irq
);
link
->
state
&=
~
DEV_CONFIG
;
link
->
state
&=
~
DEV_CONFIG
;
}
}
/* atmel_release */
/*======================================================================
/*======================================================================
...
@@ -666,7 +658,7 @@ static int atmel_event(event_t event, int priority,
...
@@ -666,7 +658,7 @@ static int atmel_event(event_t event, int priority,
link
->
state
&=
~
DEV_PRESENT
;
link
->
state
&=
~
DEV_PRESENT
;
if
(
link
->
state
&
DEV_CONFIG
)
{
if
(
link
->
state
&
DEV_CONFIG
)
{
netif_device_detach
(
local
->
eth_dev
);
netif_device_detach
(
local
->
eth_dev
);
mod_timer
(
&
link
->
release
,
jiffies
+
HZ
/
20
);
atmel_release
(
link
);
}
}
break
;
break
;
case
CS_EVENT_CARD_INSERTION
:
case
CS_EVENT_CARD_INSERTION
:
...
@@ -718,7 +710,7 @@ static void atmel_cs_cleanup(void)
...
@@ -718,7 +710,7 @@ static void atmel_cs_cleanup(void)
/* XXX: this really needs to move into generic code.. */
/* XXX: this really needs to move into generic code.. */
while
(
dev_list
!=
NULL
)
{
while
(
dev_list
!=
NULL
)
{
if
(
dev_list
->
state
&
DEV_CONFIG
)
if
(
dev_list
->
state
&
DEV_CONFIG
)
atmel_release
(
(
u_long
)
dev_list
);
atmel_release
(
dev_list
);
atmel_detach
(
dev_list
);
atmel_detach
(
dev_list
);
}
}
}
}
...
...
include/pcmcia/ds.h
View file @
03edef3c
...
@@ -118,7 +118,6 @@ typedef struct dev_link_t {
...
@@ -118,7 +118,6 @@ typedef struct dev_link_t {
dev_node_t
*
dev
;
dev_node_t
*
dev
;
u_int
state
,
open
;
u_int
state
,
open
;
wait_queue_head_t
pending
;
wait_queue_head_t
pending
;
struct
timer_list
release
;
client_handle_t
handle
;
client_handle_t
handle
;
io_req_t
io
;
io_req_t
io
;
irq_req_t
irq
;
irq_req_t
irq
;
...
...
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