-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unsik Kim
authored and
Jens Axboe
committed
Jun 16, 2009
1 parent
a1047e7
commit d49dd5b
Showing
3 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e475bba2fdee9c3dbfe25f026f8fb8de69508ad2 | ||
refs/heads/master: 5ced504b1bd1979378de35c56aa5d3d79fb5033f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* include/linux/mg_disk.c | ||
* | ||
* Private data for mflash platform driver | ||
* | ||
* (c) 2008 mGine Co.,LTD | ||
* (c) 2008 unsik Kim <donari75@gmail.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __MG_DISK_H__ | ||
#define __MG_DISK_H__ | ||
|
||
/* name for platform device */ | ||
#define MG_DEV_NAME "mg_disk" | ||
|
||
/* names of GPIO resource */ | ||
#define MG_RST_PIN "mg_rst" | ||
/* except MG_BOOT_DEV, reset-out pin should be assigned */ | ||
#define MG_RSTOUT_PIN "mg_rstout" | ||
|
||
/* device attribution */ | ||
/* use mflash as boot device */ | ||
#define MG_BOOT_DEV (1 << 0) | ||
/* use mflash as storage device */ | ||
#define MG_STORAGE_DEV (1 << 1) | ||
/* same as MG_STORAGE_DEV, but bootloader already done reset sequence */ | ||
#define MG_STORAGE_DEV_SKIP_RST (1 << 2) | ||
|
||
/* private driver data */ | ||
struct mg_drv_data { | ||
/* disk resource */ | ||
u32 use_polling; | ||
|
||
/* device attribution */ | ||
u32 dev_attr; | ||
|
||
/* internally used */ | ||
void *host; | ||
}; | ||
|
||
#endif |