From: Andrew Hutchings Date: Fri, 16 Apr 2021 08:06:27 +0000 (+0100) Subject: Add license information to source X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=10d5229b689aa1c7c86a6afe307cd4fbba7c3620;p=pistorm Add license information to source MIT license was chosen --- diff --git a/LICENSE b/LICENSE new file mode 100644 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. diff --git a/buptest.c b/buptest.c index 0ad2239..90039be 100644 --- a/buptest.c +++ b/buptest.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/config_file/config_file.c b/config_file/config_file.c index 69ef9f0..dab3508 100644 --- a/config_file/config_file.c +++ b/config_file/config_file.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "platforms/platforms.h" #include #include diff --git a/config_file/config_file.h b/config_file/config_file.h index 54931ae..7ffacf9 100644 --- a/config_file/config_file.h +++ b/config_file/config_file.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #ifndef _CONFIG_FILE_H #define _CONFIG_FILE_H diff --git a/emulator.c b/emulator.c index 9c9af66..0dac22a 100644 --- a/emulator.c +++ b/emulator.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "m68k.h" #include "emulator.h" #include "platforms/platforms.h" diff --git a/emulator.h b/emulator.h index f2849b1..6191a00 100644 --- a/emulator.h +++ b/emulator.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT /** * pistorm * emulator function declarations diff --git a/gpio/ps_protocol.c b/gpio/ps_protocol.c index 92ec2ff..cc21af6 100644 --- a/gpio/ps_protocol.c +++ b/gpio/ps_protocol.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + /* Original Copyright 2020 Claude Schwarz Code reorganized and rewritten by diff --git a/gpio/ps_protocol.h b/gpio/ps_protocol.h index ac34951..a4b0c25 100644 --- a/gpio/ps_protocol.h +++ b/gpio/ps_protocol.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + /* Code reorganized and rewritten by Niklas Ekström 2021 (https://github.com/niklasekstrom) diff --git a/input/input.c b/input/input.c index c9201f9..b5fe840 100644 --- a/input/input.c +++ b/input/input.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/input/input.h b/input/input.h index 87384e7..23dba2b 100644 --- a/input/input.h +++ b/input/input.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include enum keypress_type { diff --git a/m68kfpu.c b/m68kfpu.c index 75fc0f5..db7aef5 100644 --- a/m68kfpu.c +++ b/m68kfpu.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT #include #include #include diff --git a/memory_mapped.c b/memory_mapped.c index 95b2cc8..c3a02be 100644 --- a/memory_mapped.c +++ b/memory_mapped.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "config_file/config_file.h" #include "m68k.h" #include "platforms/amiga/Gayle.h" diff --git a/platforms/amiga/Gayle.c b/platforms/amiga/Gayle.c index 43f5205..bdfaaa7 100644 --- a/platforms/amiga/Gayle.c +++ b/platforms/amiga/Gayle.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + // // Gayle.c // Originally based on Omega's Gayle emulation, diff --git a/platforms/amiga/Gayle.h b/platforms/amiga/Gayle.h index 27151da..fb33fc0 100644 --- a/platforms/amiga/Gayle.h +++ b/platforms/amiga/Gayle.h @@ -1,3 +1,5 @@ +//SPDX-License-Identifier: MIT + // // Gayle.h // Omega diff --git a/platforms/amiga/amiga-autoconf.c b/platforms/amiga/amiga-autoconf.c index 55d46bb..3da54ad 100644 --- a/platforms/amiga/amiga-autoconf.c +++ b/platforms/amiga/amiga-autoconf.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "platforms/platforms.h" #include "amiga-autoconf.h" #include diff --git a/platforms/amiga/amiga-autoconf.h b/platforms/amiga/amiga-autoconf.h index b7484de..0ca3db5 100644 --- a/platforms/amiga/amiga-autoconf.h +++ b/platforms/amiga/amiga-autoconf.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "config_file/config_file.h" #define AC_Z2_BASE 0xE80000 diff --git a/platforms/amiga/amiga-platform.c b/platforms/amiga/amiga-platform.c index a5c8c09..819dd0f 100644 --- a/platforms/amiga/amiga-platform.c +++ b/platforms/amiga/amiga-platform.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/amiga-registers.c b/platforms/amiga/amiga-registers.c index 2d74fd6..056d4c9 100644 --- a/platforms/amiga/amiga-registers.c +++ b/platforms/amiga/amiga-registers.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "Gayle.h" #include "config_file/config_file.h" #include "amiga-registers.h" diff --git a/platforms/amiga/amiga-registers.h b/platforms/amiga/amiga-registers.h index a986866..81a3038 100644 --- a/platforms/amiga/amiga-registers.h +++ b/platforms/amiga/amiga-registers.h @@ -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); diff --git a/platforms/amiga/cdtv-dmac.c b/platforms/amiga/cdtv-dmac.c index f41adf1..8bbbcef 100644 --- a/platforms/amiga/cdtv-dmac.c +++ b/platforms/amiga/cdtv-dmac.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/hunk-reloc.c b/platforms/amiga/hunk-reloc.c index 4869600..70d7e2b 100644 --- a/platforms/amiga/hunk-reloc.c +++ b/platforms/amiga/hunk-reloc.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/net/net_driver_amiga/pi-net-amiga.c b/platforms/amiga/net/net_driver_amiga/pi-net-amiga.c index b7517a2..b110e47 100644 --- a/platforms/amiga/net/net_driver_amiga/pi-net-amiga.c +++ b/platforms/amiga/net/net_driver_amiga/pi-net-amiga.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/net/pi-net-enums.h b/platforms/amiga/net/pi-net-enums.h index c7ba857..baa1b36 100644 --- a/platforms/amiga/net/pi-net-enums.h +++ b/platforms/amiga/net/pi-net-enums.h @@ -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 +}; diff --git a/platforms/amiga/net/pi-net.c b/platforms/amiga/net/pi-net.c index 8eec08c..de3650f 100644 --- a/platforms/amiga/net/pi-net.c +++ b/platforms/amiga/net/pi-net.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/net/pi-net.h b/platforms/amiga/net/pi-net.h index 6b101a9..5bf64e3 100644 --- a/platforms/amiga/net/pi-net.h +++ b/platforms/amiga/net/pi-net.h @@ -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); diff --git a/platforms/amiga/piscsi/device_driver_amiga/makerom.c b/platforms/amiga/piscsi/device_driver_amiga/makerom.c index e63c777..8798d85 100644 --- a/platforms/amiga/piscsi/device_driver_amiga/makerom.c +++ b/platforms/amiga/piscsi/device_driver_amiga/makerom.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga-2.c b/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga-2.c index 2214566..8f4aba0 100644 --- a/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga-2.c +++ b/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga-2.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga.c b/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga.c index be3738e..d8a6dc0 100644 --- a/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga.c +++ b/platforms/amiga/piscsi/device_driver_amiga/piscsi-amiga.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + /* * Based on: * Amiga ZZ9000 USB Storage Driver (ZZ9000USBStorage.device) diff --git a/platforms/amiga/piscsi/piscsi-enums.h b/platforms/amiga/piscsi/piscsi-enums.h index 9fc9bd8..9cffcdd 100644 --- a/platforms/amiga/piscsi/piscsi-enums.h +++ b/platforms/amiga/piscsi/piscsi-enums.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #define NUM_UNITS 7 #define PISCSI_OFFSET 0x80000000 #define PISCSI_REGSIZE 0x00010000 diff --git a/platforms/amiga/piscsi/piscsi.c b/platforms/amiga/piscsi/piscsi.c index cf9c696..5198341 100644 --- a/platforms/amiga/piscsi/piscsi.c +++ b/platforms/amiga/piscsi/piscsi.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/piscsi/piscsi.h b/platforms/amiga/piscsi/piscsi.h index 7c008d4..c804adb 100644 --- a/platforms/amiga/piscsi/piscsi.h +++ b/platforms/amiga/piscsi/piscsi.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include "platforms/amiga/hunk-reloc.h" diff --git a/platforms/amiga/rtg/rtg-gfx.c b/platforms/amiga/rtg/rtg-gfx.c index 959ab16..fbc2fc6 100644 --- a/platforms/amiga/rtg/rtg-gfx.c +++ b/platforms/amiga/rtg/rtg-gfx.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/rtg/rtg-output.c b/platforms/amiga/rtg/rtg-output.c index 133ba86..35101e1 100644 --- a/platforms/amiga/rtg/rtg-output.c +++ b/platforms/amiga/rtg/rtg-output.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "emulator.h" #include "rtg.h" diff --git a/platforms/amiga/rtg/rtg.c b/platforms/amiga/rtg/rtg.c index 78cc9fa..6a1963a 100644 --- a/platforms/amiga/rtg/rtg.c +++ b/platforms/amiga/rtg/rtg.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/amiga/rtg/rtg.h b/platforms/amiga/rtg/rtg.h index bd1546a..f8bdf11 100644 --- a/platforms/amiga/rtg/rtg.h +++ b/platforms/amiga/rtg/rtg.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #define PIGFX_RTG_BASE 0x70000000 #define PIGFX_REG_SIZE 0x00010000 #define PIGFX_RTG_SIZE 0x02000000 diff --git a/platforms/amiga/rtg/rtg_driver_amiga/boardinfo.h b/platforms/amiga/rtg/rtg_driver_amiga/boardinfo.h index 0d6e56e..c2daa55 100644 --- a/platforms/amiga/rtg/rtg_driver_amiga/boardinfo.h +++ b/platforms/amiga/rtg/rtg_driver_amiga/boardinfo.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #ifndef boardinfo_H #define boardinfo_H diff --git a/platforms/amiga/rtg/rtg_driver_amiga/pigfx.c b/platforms/amiga/rtg/rtg_driver_amiga/pigfx.c index c9d7051..37c75b0 100644 --- a/platforms/amiga/rtg/rtg_driver_amiga/pigfx.c +++ b/platforms/amiga/rtg/rtg_driver_amiga/pigfx.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + // PiStorm RTG driver, VBCC edition. // Based in part on the ZZ9000 RTG driver. diff --git a/platforms/amiga/rtg/rtg_driver_amiga/rtg_enums.h b/platforms/amiga/rtg/rtg_driver_amiga/rtg_enums.h index 36fa61b..6ee3a27 100644 --- a/platforms/amiga/rtg/rtg_driver_amiga/rtg_enums.h +++ b/platforms/amiga/rtg/rtg_driver_amiga/rtg_enums.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + // "Register" offsets for sending data to the RTG. enum pi_regs { RTG_COMMAND = 0x00, diff --git a/platforms/amiga/rtg/rtg_driver_amiga/settings.h b/platforms/amiga/rtg/rtg_driver_amiga/settings.h index 253b8b2..44973fa 100644 --- a/platforms/amiga/rtg/rtg_driver_amiga/settings.h +++ b/platforms/amiga/rtg/rtg_driver_amiga/settings.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #ifndef settings_H #define settings_H diff --git a/platforms/dummy/dummy-platform.c b/platforms/dummy/dummy-platform.c index 0a4e177..0133933 100644 --- a/platforms/dummy/dummy-platform.c +++ b/platforms/dummy/dummy-platform.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include diff --git a/platforms/dummy/dummy-registers.c b/platforms/dummy/dummy-registers.c index b9c4dea..adff4e0 100644 --- a/platforms/dummy/dummy-registers.c +++ b/platforms/dummy/dummy-registers.c @@ -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) {} diff --git a/platforms/platforms.c b/platforms/platforms.c index c28004e..4d301b4 100644 --- a/platforms/platforms.c +++ b/platforms/platforms.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "platforms.h" #include #include @@ -57,4 +59,4 @@ struct platform_config *make_platform_config(char *name, char *subsys) { } return cfg; -} \ No newline at end of file +} diff --git a/platforms/platforms.h b/platforms/platforms.h index e9d2cdb..62dd044 100644 --- a/platforms/platforms.h +++ b/platforms/platforms.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include "config_file/config_file.h" enum base_platforms { diff --git a/platforms/shared/rtc.c b/platforms/shared/rtc.c index 2e07493..01da51a 100644 --- a/platforms/shared/rtc.c +++ b/platforms/shared/rtc.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/platforms/shared/rtc.h b/platforms/shared/rtc.h index 107ae93..98b189a 100644 --- a/platforms/shared/rtc.h +++ b/platforms/shared/rtc.h @@ -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 +};