]> git.sur5r.net Git - u-boot/blobdiff - include/fpga.h
phy: bcm6358-usbh: convert to use live dt
[u-boot] / include / fpga.h
index e0d12981b283ea93f9e4ef9fcf66076e4cc5bbda..f4440933531f41a5ac9a339119200a71bc968f20 100644 (file)
@@ -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 <linux/types.h>              /* for ulong typedef */
@@ -46,6 +45,7 @@ typedef struct {                /* typedef fpga_desc */
 typedef enum {
        BIT_FULL = 0,
        BIT_PARTIAL,
+       BIT_NONE = 0xFF,
 } bitstream_type;
 
 /* root function definitions */
@@ -53,6 +53,7 @@ void fpga_init(void);
 int fpga_add(fpga_type devtype, void *desc);
 int fpga_count(void);
 const fpga_desc *const fpga_get_desc(int devnum);
+int fpga_is_partial_data(int devnum, size_t img_len);
 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,