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
8e9c238c
Commit
8e9c238c
authored
Jan 09, 2006
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/rmk/linux-2.6-mmc
parents
f17578de
7225b3fd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
282 additions
and
266 deletions
+282
-266
drivers/mmc/mmc.c
drivers/mmc/mmc.c
+1
-0
drivers/mmc/mmc_block.c
drivers/mmc/mmc_block.c
+7
-1
drivers/mmc/wbsd.c
drivers/mmc/wbsd.c
+270
-263
include/linux/mmc/mmc.h
include/linux/mmc/mmc.h
+4
-2
No files found.
drivers/mmc/mmc.c
View file @
8e9c238c
...
@@ -495,6 +495,7 @@ static void mmc_decode_cid(struct mmc_card *card)
...
@@ -495,6 +495,7 @@ static void mmc_decode_cid(struct mmc_card *card)
case
2
:
/* MMC v2.0 - v2.2 */
case
2
:
/* MMC v2.0 - v2.2 */
case
3
:
/* MMC v3.1 - v3.3 */
case
3
:
/* MMC v3.1 - v3.3 */
case
4
:
/* MMC v4 */
card
->
cid
.
manfid
=
UNSTUFF_BITS
(
resp
,
120
,
8
);
card
->
cid
.
manfid
=
UNSTUFF_BITS
(
resp
,
120
,
8
);
card
->
cid
.
oemid
=
UNSTUFF_BITS
(
resp
,
104
,
16
);
card
->
cid
.
oemid
=
UNSTUFF_BITS
(
resp
,
104
,
16
);
card
->
cid
.
prod_name
[
0
]
=
UNSTUFF_BITS
(
resp
,
96
,
8
);
card
->
cid
.
prod_name
[
0
]
=
UNSTUFF_BITS
(
resp
,
96
,
8
);
...
...
drivers/mmc/mmc_block.c
View file @
8e9c238c
...
@@ -187,7 +187,13 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
...
@@ -187,7 +187,13 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
brq
.
data
.
flags
|=
MMC_DATA_WRITE
;
brq
.
data
.
flags
|=
MMC_DATA_WRITE
;
brq
.
data
.
blocks
=
1
;
brq
.
data
.
blocks
=
1
;
}
}
brq
.
mrq
.
stop
=
brq
.
data
.
blocks
>
1
?
&
brq
.
stop
:
NULL
;
if
(
brq
.
data
.
blocks
>
1
)
{
brq
.
data
.
flags
|=
MMC_DATA_MULTI
;
brq
.
mrq
.
stop
=
&
brq
.
stop
;
}
else
{
brq
.
mrq
.
stop
=
NULL
;
}
brq
.
data
.
sg
=
mq
->
sg
;
brq
.
data
.
sg
=
mq
->
sg
;
brq
.
data
.
sg_len
=
blk_rq_map_sg
(
req
->
q
,
req
,
brq
.
data
.
sg
);
brq
.
data
.
sg_len
=
blk_rq_map_sg
(
req
->
q
,
req
,
brq
.
data
.
sg
);
...
...
drivers/mmc/wbsd.c
View file @
8e9c238c
This diff is collapsed.
Click to expand it.
include/linux/mmc/mmc.h
View file @
8e9c238c
...
@@ -27,14 +27,15 @@ struct mmc_command {
...
@@ -27,14 +27,15 @@ struct mmc_command {
#define MMC_RSP_MASK (3 << 0)
#define MMC_RSP_MASK (3 << 0)
#define MMC_RSP_CRC (1 << 3)
/* expect valid crc */
#define MMC_RSP_CRC (1 << 3)
/* expect valid crc */
#define MMC_RSP_BUSY (1 << 4)
/* card may send busy */
#define MMC_RSP_BUSY (1 << 4)
/* card may send busy */
#define MMC_RSP_OPCODE (1 << 5)
/* response contains opcode */
/*
/*
* These are the response types, and correspond to valid bit
* These are the response types, and correspond to valid bit
* patterns of the above flags. One additional valid pattern
* patterns of the above flags. One additional valid pattern
* is all zeros, which means we don't expect a response.
* is all zeros, which means we don't expect a response.
*/
*/
#define MMC_RSP_R1 (MMC_RSP_SHORT|MMC_RSP_CRC)
#define MMC_RSP_R1 (MMC_RSP_SHORT|MMC_RSP_CRC
|MMC_RSP_OPCODE
)
#define MMC_RSP_R1B (MMC_RSP_SHORT|MMC_RSP_CRC|MMC_RSP_BUSY)
#define MMC_RSP_R1B (MMC_RSP_SHORT|MMC_RSP_CRC|MMC_RSP_
OPCODE|MMC_RSP_
BUSY)
#define MMC_RSP_R2 (MMC_RSP_LONG|MMC_RSP_CRC)
#define MMC_RSP_R2 (MMC_RSP_LONG|MMC_RSP_CRC)
#define MMC_RSP_R3 (MMC_RSP_SHORT)
#define MMC_RSP_R3 (MMC_RSP_SHORT)
#define MMC_RSP_R6 (MMC_RSP_SHORT|MMC_RSP_CRC)
#define MMC_RSP_R6 (MMC_RSP_SHORT|MMC_RSP_CRC)
...
@@ -64,6 +65,7 @@ struct mmc_data {
...
@@ -64,6 +65,7 @@ struct mmc_data {
#define MMC_DATA_WRITE (1 << 8)
#define MMC_DATA_WRITE (1 << 8)
#define MMC_DATA_READ (1 << 9)
#define MMC_DATA_READ (1 << 9)
#define MMC_DATA_STREAM (1 << 10)
#define MMC_DATA_STREAM (1 << 10)
#define MMC_DATA_MULTI (1 << 11)
unsigned
int
bytes_xfered
;
unsigned
int
bytes_xfered
;
...
...
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