Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
31f75462
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
31f75462
编写于
7月 21, 2014
作者:
B
Brian Norris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mtd: use __packed shorthand
Signed-off-by:
N
Brian Norris
<
computersforpeace@gmail.com
>
上级
1001ff7a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
13 deletion
+13
-13
drivers/mtd/mtdswap.c
drivers/mtd/mtdswap.c
+1
-1
drivers/mtd/nand/sm_common.h
drivers/mtd/nand/sm_common.h
+1
-1
include/linux/mtd/cfi.h
include/linux/mtd/cfi.h
+11
-11
未找到文件。
drivers/mtd/mtdswap.c
浏览文件 @
31f75462
...
...
@@ -145,7 +145,7 @@ struct mtdswap_dev {
struct
mtdswap_oobdata
{
__le16
magic
;
__le32
count
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
#define MTDSWAP_MAGIC_CLEAN 0x2095
#define MTDSWAP_MAGIC_DIRTY (MTDSWAP_MAGIC_CLEAN + 1)
...
...
drivers/mtd/nand/sm_common.h
浏览文件 @
31f75462
...
...
@@ -18,7 +18,7 @@ struct sm_oob {
uint8_t
ecc2
[
3
];
uint8_t
lba_copy2
[
2
];
uint8_t
ecc1
[
3
];
}
__
attribute__
((
packed
))
;
}
__
packed
;
/* one sector is always 512 bytes, but it can consist of two nand pages */
...
...
include/linux/mtd/cfi.h
浏览文件 @
31f75462
...
...
@@ -153,7 +153,7 @@ struct cfi_ident {
uint16_t
MaxBufWriteSize
;
uint8_t
NumEraseRegions
;
uint32_t
EraseRegionInfo
[
0
];
/* Not host ordered */
}
__
attribute__
((
packed
))
;
}
__
packed
;
/* Extended Query Structure for both PRI and ALT */
...
...
@@ -161,7 +161,7 @@ struct cfi_extquery {
uint8_t
pri
[
3
];
uint8_t
MajorVersion
;
uint8_t
MinorVersion
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
/* Vendor-Specific PRI for Intel/Sharp Extended Command Set (0x0001) */
...
...
@@ -180,7 +180,7 @@ struct cfi_pri_intelext {
uint8_t
FactProtRegSize
;
uint8_t
UserProtRegSize
;
uint8_t
extra
[
0
];
}
__
attribute__
((
packed
))
;
}
__
packed
;
struct
cfi_intelext_otpinfo
{
uint32_t
ProtRegAddr
;
...
...
@@ -188,7 +188,7 @@ struct cfi_intelext_otpinfo {
uint8_t
FactProtRegSize
;
uint16_t
UserGroups
;
uint8_t
UserProtRegSize
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
struct
cfi_intelext_blockinfo
{
uint16_t
NumIdentBlocks
;
...
...
@@ -196,7 +196,7 @@ struct cfi_intelext_blockinfo {
uint16_t
MinBlockEraseCycles
;
uint8_t
BitsPerCell
;
uint8_t
BlockCap
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
struct
cfi_intelext_regioninfo
{
uint16_t
NumIdentPartitions
;
...
...
@@ -205,7 +205,7 @@ struct cfi_intelext_regioninfo {
uint8_t
NumOpAllowedSimEraMode
;
uint8_t
NumBlockTypes
;
struct
cfi_intelext_blockinfo
BlockTypes
[
1
];
}
__
attribute__
((
packed
))
;
}
__
packed
;
struct
cfi_intelext_programming_regioninfo
{
uint8_t
ProgRegShift
;
...
...
@@ -214,7 +214,7 @@ struct cfi_intelext_programming_regioninfo {
uint8_t
Reserved2
;
uint8_t
ControlInvalid
;
uint8_t
Reserved3
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
/* Vendor-Specific PRI for AMD/Fujitsu Extended Command Set (0x0002) */
...
...
@@ -233,7 +233,7 @@ struct cfi_pri_amdstd {
uint8_t
VppMin
;
uint8_t
VppMax
;
uint8_t
TopBottom
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
/* Vendor-Specific PRI for Atmel chips (command set 0x0002) */
...
...
@@ -245,18 +245,18 @@ struct cfi_pri_atmel {
uint8_t
BottomBoot
;
uint8_t
BurstMode
;
uint8_t
PageMode
;
}
__
attribute__
((
packed
))
;
}
__
packed
;
struct
cfi_pri_query
{
uint8_t
NumFields
;
uint32_t
ProtField
[
1
];
/* Not host ordered */
}
__
attribute__
((
packed
))
;
}
__
packed
;
struct
cfi_bri_query
{
uint8_t
PageModeReadCap
;
uint8_t
NumFields
;
uint32_t
ConfField
[
1
];
/* Not host ordered */
}
__
attribute__
((
packed
))
;
}
__
packed
;
#define P_ID_NONE 0x0000
#define P_ID_INTEL_EXT 0x0001
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录