blob: e0770a5617e0898c420ee336847b4376dee1ad1a [file] [log] [blame]
Gwendal Grignou0da2c512015-01-08 15:36:03 -08001/*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public
4 * License v2 as published by the Free Software Foundation.
5 *
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 * General Public License for more details.
10 *
11 * You should have received a copy of the GNU General Public
12 * License along with this program; if not, write to the
13 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
14 * Boston, MA 021110-1307, USA.
15 */
16
17#ifndef _FFU_H_
18#define _FFU_H_
19
20#include <linux/types.h>
21
22/*
23 * eMMC5.0 Field Firmware Update (FFU) opcodes
24*/
25#define MMC_FFU_INVOKE_OP 302
26
27#define FFU_NAME_LEN 80 /* Name of the firmware file udev should find */
28
29enum mmc_ffu_hack_type {
30 MMC_OVERRIDE_FFU_ARG = 0,
31 MMC_HACK_LEN,
32};
33
34struct mmc_ffu_hack {
35 enum mmc_ffu_hack_type type;
36 __u64 value;
37};
38
39struct mmc_ffu_args {
40 char name[FFU_NAME_LEN];
41 __u32 hack_nb;
42 struct mmc_ffu_hack hack[0];
43};
44
45#endif /* _FFU_H_ */