X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Ffpga.h;h=195f0bdd57a98b1c3404b7d33b31bc53f986969a;hb=d99894dd3a713ea6226ac39a7e332b55cf8aca49;hp=4d6da790b76a1a6a29f276cf8eaef32550c5c371;hpb=76cc372879e2f2f0467e8a3875f097d189647793;p=u-boot diff --git a/include/fpga.h b/include/fpga.h index 4d6da790b7..195f0bdd57 100644 --- a/include/fpga.h +++ b/include/fpga.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2002 * Rich Ireland, Enterasys Networks, rireland@enterasys.com. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include /* for ulong typedef */ @@ -21,6 +20,9 @@ /* device numbers must be non-negative */ #define FPGA_INVALID_DEVICE -1 +#define FPGA_ENC_USR_KEY 1 +#define FPGA_NO_ENC_OR_NO_AUTH 2 + /* root data type defintions */ typedef enum { /* typedef fpga_type */ fpga_min_type, /* range check value */ @@ -43,6 +45,12 @@ typedef struct { /* typedef fpga_desc */ int fstype; } fpga_fs_info; +struct fpga_secure_info { + u8 *userkey_addr; + u8 authflag; + u8 encflag; +}; + typedef enum { BIT_FULL = 0, BIT_PARTIAL, @@ -59,6 +67,8 @@ int fpga_load(int devnum, const void *buf, size_t bsize, bitstream_type bstype); int fpga_fsload(int devnum, const void *buf, size_t size, fpga_fs_info *fpga_fsinfo); +int fpga_loads(int devnum, const void *buf, size_t size, + struct fpga_secure_info *fpga_sec_info); int fpga_loadbitstream(int devnum, char *fpgadata, size_t size, bitstream_type bstype); int fpga_dump(int devnum, const void *buf, size_t bsize);