Permalink
Browse files

added GPLv2 header to source files.

  • Loading branch information...
1 parent 5bc4101 commit 8d2c2e0fa056ed7f7dc2588d5d635e35d2a3cbeb @gkaindl committed Jun 16, 2013
View
20 Makefile
@@ -1,5 +1,21 @@
-# Makefile for compiling Kernel
-# modules on the fly.
+# rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+# Copyright (C) 2013 Georg Kaindl
+#
+# This file is part of rfm12b-linux.
+#
+# rfm12b-linux is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# rfm12b-linux is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+#
obj-m += rfm12b.o
View
19 platform/plat_beaglebone.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if !defined(__RFM12_PLAT_BEAGLEBONE_H__)
#define __RFM12_PLAT_BEAGLEBONE_H__
View
19 platform/plat_raspberrypi.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if !defined(__RFM12_PLAT_RASPBERRYPI_H__)
#define __RFM12_PLAT_RASPBERRYPI_H__
View
19 platform/plat_spi.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if !defined(__RFM12_PLAT_SPI_H__)
#define __RFM12_PLAT_SPI_H__
View
25 platform/platform.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if !defined(__PLATFORM_H__)
#define __PLATFORM_H__
@@ -20,9 +39,9 @@ static int
platform_irq_cleanup(void* identifier);
struct spi_rfm12_board_config {
- u16 irq_pin;
- u16 spi_bus;
- u16 spi_cs;
+ u16 irq_pin;
+ u16 spi_bus;
+ u16 spi_cs;
};
struct rfm12_data;
View
21 rfm12b.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
@@ -1648,7 +1667,7 @@ module_init(rfm12_init_module);
module_exit(rfm12_cleanup_module);
MODULE_LICENSE("GPL v2");
-MODULE_AUTHOR("Georg Kaindl <gkaindl (AT) mac.com>");
+MODULE_AUTHOR("Georg Kaindl <gkaindl --AT-- mac.com>");
MODULE_DESCRIPTION("kernel driver for the rfm12b digital radio module");
MODULE_VERSION("0.0.1");
View
19 rfm12b_config.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if !defined(__RFM12B_CONFIG_H__)
#define __RFM12B_CONFIG_H__
View
19 rfm12b_ioctl.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if !defined(__RFM12B_IOCTL_H__)
#define __RFM12B_IOCTL_H__
#include <linux/ioctl.h>
View
25 rfm12b_jeenode.h
@@ -1,3 +1,28 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/*
+ This file includes a couple of macros useful when using the driver
+ in Jee-compatible mode (see the docs for RFM12B_DEFAULT_JEE_ID
+ in rfm12b_config.h).
+*/
+
#if !defined(__RFM12B_JEENODE_H__)
#define __RFM12B_JEENODE_H__
View
18 test/Makefile
@@ -1,3 +1,21 @@
+# rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+# Copyright (C) 2013 Georg Kaindl
+#
+# This file is part of rfm12b-linux.
+#
+# rfm12b-linux is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# rfm12b-linux is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+
TESTS = rfm12b_read rfm12b_write rfm12b_echo rfm12b_chat rfm12b_jeenode
SRC = common/common.c
OBJ = $(SRC:.c=.o)
View
19 test/common/common.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <fcntl.h>
#include <stdio.h>
View
19 test/common/common.h
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#if defined(__COMMON_H__)
#define __COMMON_H__
View
19 test/rfm12b_chat/rfm12b_chat.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
View
19 test/rfm12b_echo/rfm12b_echo.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
View
19 test/rfm12b_jeenode/rfm12b_jeenode.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
View
19 test/rfm12b_read/rfm12b_read.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
View
19 test/rfm12b_write/rfm12b_write.c
@@ -1,3 +1,22 @@
+/* rfm12b-linux: linux kernel driver for the rfm12(b) RF module by HopeRF
+* Copyright (C) 2013 Georg Kaindl
+*
+* This file is part of rfm12b-linux.
+*
+* rfm12b-linux is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 2 of the License, or
+* (at your option) any later version.
+*
+* rfm12b-linux is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with rfm12b-linux. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdio.h>
#include <fcntl.h>
#include <string.h>

0 comments on commit 8d2c2e0

Please sign in to comment.