]> git.sesse.net Git - pistorm/commitdiff
Add license information to source
authorAndrew Hutchings <andrew@linuxjedi.co.uk>
Fri, 16 Apr 2021 08:06:27 +0000 (09:06 +0100)
committerAndrew Hutchings <andrew@linuxjedi.co.uk>
Fri, 16 Apr 2021 08:06:27 +0000 (09:06 +0100)
MIT license was chosen

45 files changed:
LICENSE [new file with mode: 0644]
buptest.c
config_file/config_file.c
config_file/config_file.h
emulator.c
emulator.h
gpio/ps_protocol.c
gpio/ps_protocol.h
input/input.c
input/input.h
m68kfpu.c
memory_mapped.c
platforms/amiga/Gayle.c
platforms/amiga/Gayle.h
platforms/amiga/amiga-autoconf.c
platforms/amiga/amiga-autoconf.h
platforms/amiga/amiga-platform.c
platforms/amiga/amiga-registers.c
platforms/amiga/amiga-registers.h
platforms/amiga/cdtv-dmac.c
platforms/amiga/hunk-reloc.c
platforms/amiga/net/net_driver_amiga/pi-net-amiga.c
platforms/amiga/net/pi-net-enums.h
platforms/amiga/net/pi-net.c
platforms/amiga/net/pi-net.h
platforms/amiga/piscsi/device_driver_amiga/makerom.c
platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga-2.c
platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga.c
platforms/amiga/piscsi/piscsi-enums.h
platforms/amiga/piscsi/piscsi.c
platforms/amiga/piscsi/piscsi.h
platforms/amiga/rtg/rtg-gfx.c
platforms/amiga/rtg/rtg-output.c
platforms/amiga/rtg/rtg.c
platforms/amiga/rtg/rtg.h
platforms/amiga/rtg/rtg_driver_amiga/boardinfo.h
platforms/amiga/rtg/rtg_driver_amiga/pigfx.c
platforms/amiga/rtg/rtg_driver_amiga/rtg_enums.h
platforms/amiga/rtg/rtg_driver_amiga/settings.h
platforms/dummy/dummy-platform.c
platforms/dummy/dummy-registers.c
platforms/platforms.c
platforms/platforms.h
platforms/shared/rtc.c
platforms/shared/rtc.h

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..d74ac45
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2021 PiStorm developers
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
index 0ad2239147dc3bd5df4ac97d27dc3566c2fda90a..90039be276729c518af974dd5fa9146f7e060265 100644 (file)
--- a/buptest.c
+++ b/buptest.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <assert.h>
 #include <dirent.h>
 #include <endian.h>
index 69ef9f0cbf9c3e9f6a4bf15fcdcb5e7cef738201..dab35087dfb4b484808223f7f9ac0fc9104e5a40 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "platforms/platforms.h"
 #include <stdio.h>
 #include <stdlib.h>
index 54931aece0cb27357bb73105a28defc72ecf2762..7ffacf9c6b0529f7a3586f5c256bf3caf475903c 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #ifndef _CONFIG_FILE_H
 #define _CONFIG_FILE_H
 
index 9c9af66117abeed3ae1d58b1df2075489648626f..0dac22a22304f9c81dcef51044a5d2570f4793dd 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "m68k.h"
 #include "emulator.h"
 #include "platforms/platforms.h"
index f2849b1c62b61975871b83c9b351a633397958ec..6191a008c3f65dcde148ee14e528f1beaa3fc9dd 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: MIT
 /**
  * pistorm
  * emulator function declarations
index 92ec2ffcfdf041466e5dd3f78ad32c425820d1d4..cc21af6c27b35b268b78fffc460e4fa4d1241709 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 /*
   Original Copyright 2020 Claude Schwarz
   Code reorganized and rewritten by
index ac3495186713825c391449808f4c7cc8f841f3fd..a4b0c254d7419efb19ca54f4e5bf7ccbe9e32575 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 /*
     Code reorganized and rewritten by 
     Niklas Ekström 2021 (https://github.com/niklasekstrom)
index c9201f98540b936d0dd46573ce75716c4358b71e..b5fe8401627130f7954fa4f6d99b47b0d0dafe61 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <linux/input.h>
 #include <sys/ioctl.h>
 #include <pthread.h>
index 87384e726bc5daf797125162199021edc59ef963..23dba2b0eed28f25222f18f2ab1d06eac3b4e5aa 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdint.h>
 
 enum keypress_type {
index 75fc0f5792180e864085f07cea4ccc116560265d..db7aef59aed2d84cefa2c4eeeca9ec78b35b6199 100644 (file)
--- a/m68kfpu.c
+++ b/m68kfpu.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: MIT
 #include <math.h>
 #include <stdio.h>
 #include <stdarg.h>
index 95b2cc85299c75d41a4f1307ab551255a5b010c2..c3a02be902f0163df9ddc7887f009c174270c4a4 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "config_file/config_file.h"
 #include "m68k.h"
 #include "platforms/amiga/Gayle.h"
index 43f5205ced7b826f2d9377beeac75cdfb716d1f4..bdfaaa72be46ca614ff6af9b400789b173a8db4a 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 //
 //  Gayle.c
 //  Originally based on Omega's Gayle emulation,
index 27151da8b814da86b3981abbc477fbe30563bf64..fb33fc09dc8b7234fdde9fa32736b923675b4625 100644 (file)
@@ -1,3 +1,5 @@
+//SPDX-License-Identifier: MIT
+
 //
 //  Gayle.h
 //  Omega
index 55d46bb0472891a5353e9ebbb4b8270a07382a33..3da54adc267f284ac1140113abc391e8b066273b 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "platforms/platforms.h"
 #include "amiga-autoconf.h"
 #include <stdio.h>
index b7484dec329a8c25df8b04e0f121b14a5c53b2dc..0ca3db54ccc89210675eea5423a688569270a284 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "config_file/config_file.h"
 
 #define AC_Z2_BASE 0xE80000
index a5c8c095cae8c49d867f3513ca9223d545c760e7..819dd0fdc1da7c7ded00f26818677ae3fee3eefc 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 2d74fd6fe4f945e2f50db72d026fe1a4805378d4..056d4c9dfdbe15f6f675bb4a2a991631d7917bb1 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "Gayle.h"
 #include "config_file/config_file.h"
 #include "amiga-registers.h"
index a9868661e08567660a9f6d3ed566c6263f51d4c5..81a303869cd66db4ddb9b1b0a77c6bfdc48476fb 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 void configure_rtc_emulation_amiga(uint8_t enabled);
 void set_hard_drive_image_file_amiga(uint8_t index, char *filename);
 int custom_read_amiga(struct emulator_config *cfg, unsigned int addr, unsigned int *val, unsigned char type);
index f41adf1ebc29b7c4dcd72c4203c09938e8af4459..8bbbcef38fea624dbe779d67b4f1315dedb5241d 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
index 4869600f95571b6515a4dae8580fc20afd6db0dc..70d7e2befc47d32f3ae50c537b7a975f268918e3 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
index b7517a2c23f608732b4f9f8763c5a390265c2253..b110e476acf1fe65f5bfb99aef343c623ac54dd6 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <exec/resident.h>
 #include <exec/memory.h>
 #include <exec/alerts.h>
index c7ba8576ebe4b0415707d67c74e91b2cec1abfd9..baa1b366fad0dcd6bec394743c93dd19fbcd4ce4 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #define PINET_OFFSET  0x80010000
 #define PINET_REGSIZE 0x00010000
 #define PINET_UPPER   0x80020000
@@ -21,4 +23,4 @@ enum pinet_cmds {
     PINET_CMD_ADDR3     = 0x18,
     PINET_CMD_ADDR4     = 0x1C,
     PINET_CMD_FRAME     = 0x1000,
-};
\ No newline at end of file
+};
index 8eec08c86150552b37527a2676dc46c73bafc6dc..de3650f5c6793006fbdc072786fac30829bb4343 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <fcntl.h>
index 6b101a92a201aa1240b471234be9a86b4c9c64d4..5bf64e3bbe1effc2b4628b2f83c1bfae0b2e14a1 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 void pinet_init(char *dev);
 void handle_pinet_write(uint32_t addr, uint32_t val, uint8_t type);
 uint32_t handle_pinet_read(uint32_t addr, uint8_t type);
index e63c777c796de7f088f4e503efac892b5598b69f..8798d8561874438bbb71fbccd4f5d6e219c3ee03 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
index 22145661add7f6703ebc25f029fbd78631a1535e..8f4aba083d56094a12c95030cd150eba31f030e9 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <exec/resident.h>
 #include <exec/errors.h>
 #include <exec/memory.h>
index be3738e5ee16a3058ab79d3203766c4bbc842745..d8a6dc0c25b5036f576b7cf213e292ef0e3d94bf 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 /*
  * Based on:
  * Amiga ZZ9000 USB Storage Driver (ZZ9000USBStorage.device)
index 9fc9bd8732fd5529cc981c3defe22cf4bbbc4092..9cffcddbda5511261fd3eabcf57bf23c993b5e1e 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #define NUM_UNITS 7
 #define PISCSI_OFFSET  0x80000000
 #define PISCSI_REGSIZE 0x00010000
index cf9c696d006ad250d524d8a3e4585c3fb892ba4d..5198341e890a55cefef6c828b707f4f349854b02 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
index 7c008d45b3e0e10186df7c73227c55779b83ec73..c804adbe065b38952f4f7530f7d4373cbf098134 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdint.h>
 
 #include "platforms/amiga/hunk-reloc.h"
index 959ab164328693cc2f33ef877c2abc5c08e04db3..fbc2fc60c3eeb556a874486c1abdeb13f0820f7b 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
index 133ba865de2202ddb24f114eedf58ab1c752db9e..35101e1933b60f48f52acdaedf2aae6f6016fff6 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "emulator.h"
 #include "rtg.h"
 
index 78cc9fa65524ce20b923f41c5233b301b30a69fb..6a1963a5060a5a1fb2889ddab191612b95214438 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdint.h>
 #include <endian.h>
 #include <stdio.h>
index bd1546a8259c8344f5e30e0706c87ef9d1a6ed7c..f8bdf11f98078db115281c75e9787863ff92114d 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #define PIGFX_RTG_BASE     0x70000000
 #define PIGFX_REG_SIZE     0x00010000
 #define PIGFX_RTG_SIZE     0x02000000
index 0d6e56ecc545d44104e5ae754bb2c73eeb3f563a..c2daa557c2824a8d0b9f18436cfde87bdf17585f 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #ifndef boardinfo_H
 #define boardinfo_H
 
index c9d705106a793834402485349043ca58612613fa..37c75b0d00a1d9fd9645596ace9ac5efa0ae9580 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 // PiStorm RTG driver, VBCC edition.
 // Based in part on the ZZ9000 RTG driver.
 
index 36fa61b736cefb9594ba2813cfef244fbfa03fdc..6ee3a273afceee158c50ea8353da81bb72d717b9 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 // "Register" offsets for sending data to the RTG.
 enum pi_regs {
   RTG_COMMAND = 0x00,
index 253b8b2d1010a6d3f54510a35b3febd6e36694f4..44973fa08678a9bd86829f599fdb8e5071ce62a3 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #ifndef settings_H
 #define settings_H
 
index 0a4e177d3f01998395ec0d0b9d4d4ae2e18fe2ae..01339337165dfd7af376ecb94730f9d92c904b6f 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdlib.h>
 #include <string.h>
 
index b9c4dea03b24ad9ea838d62d77332f8b6e9da5c8..adff4e0a51c8f361503fe06de88657b8dcf22cd6 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 int handle_register_read_dummy(unsigned int addr, unsigned char type, unsigned int *val) {
     if (addr) {}
     if (type) {}
index c28004edbe423afd47abda4feb4d1eec2a42f562..4d301b4f085edefcc47a19f227624f49b1db2f04 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "platforms.h"
 #include <stdio.h>
 #include <stdlib.h>
@@ -57,4 +59,4 @@ struct platform_config *make_platform_config(char *name, char *subsys) {
     }
 
     return cfg;
-}
\ No newline at end of file
+}
index e9d2cdb1e4a3b07636693807c422d4938cef942d..62dd04473d0d92d043169e57389a2392309a95eb 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include "config_file/config_file.h"
 
 enum base_platforms {
index 2e07493bbdf2a35afea06ebb33d40e4d863a081d..01da51af7c648fe707f13df98799ff1d0596bd78 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <time.h>
 #include <stdio.h>
 #include <stdint.h>
index 107ae9377e754aa5457ace23762cb294c4238d55..98b189ab482f7be75de3668f5cfff4632e11b421 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 void put_rtc_byte(uint32_t address_, uint8_t value, uint8_t rtc_type);
 uint8_t get_rtc_byte(uint32_t address_, uint8_t rtc_type);
 
@@ -5,4 +7,4 @@ enum rtc_types {
     RTC_TYPE_MSM,
     RTC_TYPE_RICOH,
     RTC_TYPE_NONE,
-};
\ No newline at end of file
+};