From: notaz Date: Sun, 15 Mar 2009 17:48:13 +0000 (+0000) Subject: rename and add license X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa45c6d9d1be59d152ce7775297436fba6d15de4;p=megadrive.git rename and add license --- diff --git a/mx/linux/Makefile b/mx/linux/Makefile index d4fe5c7..0ba9893 100644 --- a/mx/linux/Makefile +++ b/mx/linux/Makefile @@ -3,7 +3,7 @@ CC ?= $(CROSS)gcc CFLAGS += -Wall -O2 -ggdb LDFLAGS += -lusb -TARGET = main +TARGET = mx_flasher all: $(TARGET) diff --git a/mx/linux/main.c b/mx/linux/mx_flasher.c similarity index 94% rename from mx/linux/main.c rename to mx/linux/mx_flasher.c index 9f9fdbe..e831d3c 100644 --- a/mx/linux/main.c +++ b/mx/linux/mx_flasher.c @@ -1,4 +1,29 @@ -/* FIXME: RAM odd */ +/* + * Copyright (c) 2009, Gražvydas Ignotas + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of the organization nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED ''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 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. + */ #include #include #include @@ -20,7 +45,7 @@ static const struct { { 0x03eb, 0x202d, "32MX+UF Game Device" }, }; -#define VERSION "0.8" +#define VERSION "0.9" #define IO_BLK_SIZE 0x2000 /* 8K */ #define IO_RAM_BLK_SIZE 256