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
1808caff
Commit
1808caff
authored
May 21, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge of master.kernel.org:/home/rmk/linux-2.6-mmc.git
parents
3d15e4a3
912490db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
drivers/mmc/mmc_block.c
drivers/mmc/mmc_block.c
+4
-1
include/linux/mmc/protocol.h
include/linux/mmc/protocol.h
+27
-0
No files found.
drivers/mmc/mmc_block.c
View file @
1808caff
...
...
@@ -383,7 +383,10 @@ static int mmc_blk_probe(struct mmc_card *card)
struct
mmc_blk_data
*
md
;
int
err
;
if
(
card
->
csd
.
cmdclass
&
~
0x1ff
)
/*
* Check that the card supports the command class(es) we need.
*/
if
(
!
(
card
->
csd
.
cmdclass
&
CCC_BLOCK_READ
))
return
-
ENODEV
;
if
(
card
->
csd
.
read_blkbits
<
9
)
{
...
...
include/linux/mmc/protocol.h
View file @
1808caff
...
...
@@ -195,6 +195,33 @@ struct _mmc_csd {
#define MMC_VDD_35_36 0x00800000
/* VDD voltage 3.5 ~ 3.6 */
#define MMC_CARD_BUSY 0x80000000
/* Card Power up status bit */
/*
* Card Command Classes (CCC)
*/
#define CCC_BASIC (1<<0)
/* (0) Basic protocol functions */
/* (CMD0,1,2,3,4,7,9,10,12,13,15) */
#define CCC_STREAM_READ (1<<1)
/* (1) Stream read commands */
/* (CMD11) */
#define CCC_BLOCK_READ (1<<2)
/* (2) Block read commands */
/* (CMD16,17,18) */
#define CCC_STREAM_WRITE (1<<3)
/* (3) Stream write commands */
/* (CMD20) */
#define CCC_BLOCK_WRITE (1<<4)
/* (4) Block write commands */
/* (CMD16,24,25,26,27) */
#define CCC_ERASE (1<<5)
/* (5) Ability to erase blocks */
/* (CMD32,33,34,35,36,37,38,39) */
#define CCC_WRITE_PROT (1<<6)
/* (6) Able to write protect blocks */
/* (CMD28,29,30) */
#define CCC_LOCK_CARD (1<<7)
/* (7) Able to lock down card */
/* (CMD16,CMD42) */
#define CCC_APP_SPEC (1<<8)
/* (8) Application specific */
/* (CMD55,56,57,ACMD*) */
#define CCC_IO_MODE (1<<9)
/* (9) I/O mode */
/* (CMD5,39,40,52,53) */
#define CCC_SWITCH (1<<10)
/* (10) High speed switch */
/* (CMD6,34,35,36,37,50) */
/* (11) Reserved */
/* (CMD?) */
/*
* CSD field definitions
...
...
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