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
ed5dce04
Commit
ed5dce04
authored
Oct 18, 2004
by
Dominik Brodowski
Committed by
Russell King
Oct 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PCMCIA] 06-parse_tuple.diff
Add a wrapper around pcmcia_parse_tuple, and use pccard_parse_tuple in ds.c
parent
de385f7c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
drivers/pcmcia/cistpl.c
drivers/pcmcia/cistpl.c
+7
-1
drivers/pcmcia/cs.c
drivers/pcmcia/cs.c
+0
-1
drivers/pcmcia/ds.c
drivers/pcmcia/ds.c
+1
-1
include/pcmcia/cistpl.h
include/pcmcia/cistpl.h
+1
-0
No files found.
drivers/pcmcia/cistpl.c
View file @
ed5dce04
...
...
@@ -1313,7 +1313,7 @@ static int parse_format(tuple_t *tuple, cistpl_format_t *fmt)
/*====================================================================*/
int
pc
mcia_parse_tuple
(
client_handle_t
handle
,
tuple_t
*
tuple
,
cisparse_t
*
parse
)
int
pc
card_parse_tuple
(
tuple_t
*
tuple
,
cisparse_t
*
parse
)
{
int
ret
=
CS_SUCCESS
;
...
...
@@ -1394,6 +1394,7 @@ int pcmcia_parse_tuple(client_handle_t handle, tuple_t *tuple, cisparse_t *parse
}
return
ret
;
}
EXPORT_SYMBOL
(
pccard_parse_tuple
);
/*======================================================================
...
...
@@ -1530,3 +1531,8 @@ int pcmcia_get_tuple_data(client_handle_t handle, tuple_t *tuple)
}
EXPORT_SYMBOL
(
pcmcia_get_tuple_data
);
int
pcmcia_parse_tuple
(
client_handle_t
handle
,
tuple_t
*
tuple
,
cisparse_t
*
parse
)
{
return
pccard_parse_tuple
(
tuple
,
parse
);
}
EXPORT_SYMBOL
(
pcmcia_parse_tuple
);
drivers/pcmcia/cs.c
View file @
ed5dce04
...
...
@@ -2109,7 +2109,6 @@ EXPORT_SYMBOL(pcmcia_get_status);
EXPORT_SYMBOL
(
pcmcia_insert_card
);
EXPORT_SYMBOL
(
pcmcia_map_mem_page
);
EXPORT_SYMBOL
(
pcmcia_modify_configuration
);
EXPORT_SYMBOL
(
pcmcia_parse_tuple
);
EXPORT_SYMBOL
(
pcmcia_register_client
);
EXPORT_SYMBOL
(
pcmcia_release_configuration
);
EXPORT_SYMBOL
(
pcmcia_release_io
);
...
...
drivers/pcmcia/ds.c
View file @
ed5dce04
...
...
@@ -956,7 +956,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
break
;
case
DS_PARSE_TUPLE
:
buf
.
tuple
.
TupleData
=
buf
.
tuple_parse
.
data
;
ret
=
pc
mcia_parse_tuple
(
s
->
handle
,
&
buf
.
tuple
,
&
buf
.
tuple_parse
.
parse
);
ret
=
pc
card_parse_tuple
(
&
buf
.
tuple
,
&
buf
.
tuple_parse
.
parse
);
break
;
case
DS_RESET_CARD
:
ret
=
pcmcia_reset_card
(
s
->
handle
,
NULL
);
...
...
include/pcmcia/cistpl.h
View file @
ed5dce04
...
...
@@ -613,5 +613,6 @@ int pcmcia_replace_cis(struct pcmcia_socket *s, cisdump_t *cis);
int
pccard_get_next_tuple
(
struct
pcmcia_socket
*
s
,
unsigned
int
func
,
tuple_t
*
tuple
);
int
pccard_get_first_tuple
(
struct
pcmcia_socket
*
s
,
unsigned
int
function
,
tuple_t
*
tuple
);
int
pccard_get_tuple_data
(
struct
pcmcia_socket
*
s
,
tuple_t
*
tuple
);
int
pccard_parse_tuple
(
tuple_t
*
tuple
,
cisparse_t
*
parse
);
#endif
/* LINUX_CISTPL_H */
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