Browse Source

soft_3rdpart/codaj12: Add LGPL-2.1 OR BSD-3-Clause license.

Add LGPL-2.1 OR BSD-3-Clause license for C&M codaj12.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Samin Guo 1 year ago
parent
commit
2a8bfee6f1
40 changed files with 68 additions and 4 deletions
  1. 1 0
      codaj12/config.h
  2. 1 0
      codaj12/jdi/jdi.h
  3. 1 0
      codaj12/jdi/linux/driver/jmm.h
  4. 1 1
      codaj12/jdi/linux/driver/jpu-starfive.h
  5. 3 2
      codaj12/jdi/linux/driver/jpu.c
  6. 27 1
      codaj12/jdi/linux/driver/jpu.h
  7. 1 0
      codaj12/jdi/linux/jdi.c
  8. 1 0
      codaj12/jdi/mm.c
  9. 1 0
      codaj12/jdi/mm.h
  10. 1 0
      codaj12/jdi/nonos/jdi.c
  11. 1 0
      codaj12/jpuapi/jpuapi.c
  12. 1 0
      codaj12/jpuapi/jpuapi.h
  13. 1 0
      codaj12/jpuapi/jpuapifunc.c
  14. 1 0
      codaj12/jpuapi/jpuapifunc.h
  15. 1 0
      codaj12/jpuapi/jpuconfig.h
  16. 1 0
      codaj12/jpuapi/jputable.h
  17. 1 0
      codaj12/jpuapi/jputypes.h
  18. 1 0
      codaj12/jpuapi/regdefine.h
  19. 1 0
      codaj12/sample/helper/bitstreamfeeder.c
  20. 1 0
      codaj12/sample/helper/bitstreamwriter.c
  21. 1 0
      codaj12/sample/helper/bsfeeder_buffer_impl.c
  22. 1 0
      codaj12/sample/helper/bsfeeder_fixedsize_impl.c
  23. 1 0
      codaj12/sample/helper/bsfeeder_framesize_impl.c
  24. 1 0
      codaj12/sample/helper/bswriter_container_impl.c
  25. 1 0
      codaj12/sample/helper/cnm_fpga.c
  26. 1 0
      codaj12/sample/helper/cnm_fpga.h
  27. 1 0
      codaj12/sample/helper/datastructure.c
  28. 1 0
      codaj12/sample/helper/datastructure.h
  29. 1 0
      codaj12/sample/helper/jpuhelper.c
  30. 1 0
      codaj12/sample/helper/jpulog.c
  31. 1 0
      codaj12/sample/helper/jpulog.h
  32. 1 0
      codaj12/sample/helper/platform.c
  33. 1 0
      codaj12/sample/helper/platform.h
  34. 1 0
      codaj12/sample/helper/yuv_feeder.c
  35. 1 0
      codaj12/sample/helper/yuv_feeder.h
  36. 1 0
      codaj12/sample/main_helper.h
  37. 1 0
      codaj12/sample/main_jpg_dec_test.c
  38. 1 0
      codaj12/sample/main_jpg_enc_test.c
  39. 1 0
      codaj12/sample/main_multi_instance_test.c
  40. 1 0
      codaj12/sample/main_sim.c

+ 1 - 0
codaj12/config.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause */
 //------------------------------------------------------------------------------
 // File: config.h
 //

+ 1 - 0
codaj12/jdi/jdi.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jdi/linux/driver/jmm.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 #ifndef __CNM_JPU_MM_H__
 #define __CNM_JPU_MM_H__
 

+ 1 - 1
codaj12/jdi/linux/driver/jpu-starfive.h

@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause */
 /*
  * Copyright (C) 2021 StarFive Technology Co., Ltd.
  */

+ 3 - 2
codaj12/jdi/linux/driver/jpu.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  GPL-2.0+ OR BSD-3-Clause
 //--=========================================================================--
 //  This file is linux device driver for JPU.
 //-----------------------------------------------------------------------------
@@ -11,7 +12,7 @@
 //
 //       The entire notice above must be reproduced on all authorized
 //       copies.
-//
+//       Copyright (C) 2022 StarFive Technology Co., Ltd.
 //--=========================================================================-
 
 #include <linux/kernel.h>
@@ -1143,7 +1144,7 @@ static void __exit jpu_exit(void)
 
 MODULE_AUTHOR("A customer using C&M JPU, Inc.");
 MODULE_DESCRIPTION("JPU linux driver");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("Dual BSD/GPL");
 
 module_init(jpu_init);
 module_exit(jpu_exit);

+ 27 - 1
codaj12/jdi/linux/driver/jpu.h

@@ -1,4 +1,30 @@
-
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause */
+/*
+ * Copyright (c) 2022, Chips&Media
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Copyright (C) 2022 StarFive Technology Co., Ltd.
+*/
 
 #ifndef __JPU_DRV_H__
 #define __JPU_DRV_H__

+ 1 - 0
codaj12/jdi/linux/jdi.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jdi/mm.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jdi/mm.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jdi/nonos/jdi.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jpuapi.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jpuapi.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jpuapifunc.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jpuapifunc.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jpuconfig.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jputable.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/jputypes.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/jpuapi/regdefine.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/bitstreamfeeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /* 
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/bitstreamwriter.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /* 
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/bsfeeder_buffer_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>

+ 1 - 0
codaj12/sample/helper/bsfeeder_fixedsize_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /* 
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/bsfeeder_framesize_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /* 
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/bswriter_container_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /* 
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/cnm_fpga.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/cnm_fpga.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/datastructure.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/datastructure.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/jpuhelper.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/jpulog.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/jpulog.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/platform.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/platform.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/yuv_feeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/helper/yuv_feeder.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/main_helper.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/main_jpg_dec_test.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/main_jpg_enc_test.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/main_multi_instance_test.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.

+ 1 - 0
codaj12/sample/main_sim.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2018, Chips&Media
  * All rights reserved.