summaryrefslogtreecommitdiffstats
path: root/Usb-Driver
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2016-06-21 14:14:04 +0200
committerChristian Gromm <christian.gromm@microchip.com>2016-06-21 14:14:04 +0200
commit860b3c0ccfb2756b8ed77523048952011b74a212 (patch)
treee0672fb5cf923dcf0a4a48a62a69011e1b72976a /Usb-Driver
parent742bace60b9c0a0f583d8afe1097d029f468fa03 (diff)
src: can-lin: initial source import
This patch adds the sources needed for the HVAC and iDrive applications. Change-Id: I53148a5d11c34787dd11295939bbaf8702c64dcb Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'Usb-Driver')
-rw-r--r--Usb-Driver/.mocca-usb.ko.cmd1
-rw-r--r--Usb-Driver/.mocca-usb.mod.o.cmd414
-rw-r--r--Usb-Driver/.mocca-usb.o.cmd651
-rw-r--r--Usb-Driver/Makefile42
-rw-r--r--Usb-Driver/Module.symvers0
-rwxr-xr-xUsb-Driver/crosscompile.sh14
-rw-r--r--Usb-Driver/mocca-usb.c391
-rw-r--r--Usb-Driver/mocca-usb.kobin0 -> 8050 bytes
-rw-r--r--Usb-Driver/mocca-usb.mod.c27
-rw-r--r--Usb-Driver/mocca-usb.mod.obin0 -> 2008 bytes
-rw-r--r--Usb-Driver/mocca-usb.obin0 -> 6724 bytes
-rw-r--r--Usb-Driver/modules.order0
-rw-r--r--Usb-Driver/test-mocca.c68
-rw-r--r--Usb-Driver/ubuntu-make16
14 files changed, 1624 insertions, 0 deletions
diff --git a/Usb-Driver/.mocca-usb.ko.cmd b/Usb-Driver/.mocca-usb.ko.cmd
new file mode 100644
index 0000000..3acbd8f
--- /dev/null
+++ b/Usb-Driver/.mocca-usb.ko.cmd
@@ -0,0 +1 @@
+cmd_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.ko := /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld -EL -r -T /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/scripts/module-common.lds --build-id -o /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.ko /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o
diff --git a/Usb-Driver/.mocca-usb.mod.o.cmd b/Usb-Driver/.mocca-usb.mod.o.cmd
new file mode 100644
index 0000000..41eba10
--- /dev/null
+++ b/Usb-Driver/.mocca-usb.mod.o.cmd
@@ -0,0 +1,414 @@
+cmd_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o := /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -Wall -Wp,-MD,/home/x/appsteam/mocca-example/Usb-Driver/.mocca-usb.mod.o.d -nostdinc -isystem /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/include -I/home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi -Iinclude/generated/uapi -include /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(mocca_usb.mod)" -D"KBUILD_MODNAME=KBUILD_STR(mocca_usb)" -DMODULE -c -o /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.c
+
+source_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o := /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.c
+
+deps_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o := \
+ $(wildcard include/config/module/unload.h) \
+ include/linux/module.h \
+ $(wildcard include/config/sysfs.h) \
+ $(wildcard include/config/modules.h) \
+ $(wildcard include/config/unused/symbols.h) \
+ $(wildcard include/config/module/sig.h) \
+ $(wildcard include/config/generic/bug.h) \
+ $(wildcard include/config/kallsyms.h) \
+ $(wildcard include/config/smp.h) \
+ $(wildcard include/config/tracepoints.h) \
+ $(wildcard include/config/tracing.h) \
+ $(wildcard include/config/event/tracing.h) \
+ $(wildcard include/config/ftrace/mcount/record.h) \
+ $(wildcard include/config/constructors.h) \
+ $(wildcard include/config/debug/set/module/ronx.h) \
+ include/linux/list.h \
+ $(wildcard include/config/debug/list.h) \
+ include/linux/types.h \
+ $(wildcard include/config/uid16.h) \
+ $(wildcard include/config/lbdaf.h) \
+ $(wildcard include/config/arch/dma/addr/t/64bit.h) \
+ $(wildcard include/config/phys/addr/t/64bit.h) \
+ $(wildcard include/config/64bit.h) \
+ include/uapi/linux/types.h \
+ arch/arm/include/generated/asm/types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/types.h \
+ include/asm-generic/int-ll64.h \
+ include/uapi/asm-generic/int-ll64.h \
+ arch/arm/include/generated/asm/bitsperlong.h \
+ include/asm-generic/bitsperlong.h \
+ include/uapi/asm-generic/bitsperlong.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/posix_types.h \
+ include/linux/stddef.h \
+ include/uapi/linux/stddef.h \
+ include/linux/compiler.h \
+ $(wildcard include/config/sparse/rcu/pointer.h) \
+ $(wildcard include/config/trace/branch/profiling.h) \
+ $(wildcard include/config/profile/all/branches.h) \
+ $(wildcard include/config/enable/must/check.h) \
+ $(wildcard include/config/enable/warn/deprecated.h) \
+ $(wildcard include/config/kprobes.h) \
+ include/linux/compiler-gcc.h \
+ $(wildcard include/config/arch/supports/optimized/inlining.h) \
+ $(wildcard include/config/optimize/inlining.h) \
+ include/linux/compiler-gcc4.h \
+ $(wildcard include/config/arch/use/builtin/bswap.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/posix_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/posix_types.h \
+ include/linux/poison.h \
+ $(wildcard include/config/illegal/pointer/value.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/const.h \
+ include/linux/stat.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/stat.h \
+ include/uapi/linux/stat.h \
+ include/linux/time.h \
+ $(wildcard include/config/arch/uses/gettimeoffset.h) \
+ include/linux/cache.h \
+ $(wildcard include/config/arch/has/cache/line/size.h) \
+ include/linux/kernel.h \
+ $(wildcard include/config/preempt/voluntary.h) \
+ $(wildcard include/config/debug/atomic/sleep.h) \
+ $(wildcard include/config/prove/locking.h) \
+ $(wildcard include/config/ring/buffer.h) \
+ /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/include/stdarg.h \
+ include/linux/linkage.h \
+ include/linux/stringify.h \
+ include/linux/export.h \
+ $(wildcard include/config/have/underscore/symbol/prefix.h) \
+ $(wildcard include/config/modversions.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/linkage.h \
+ include/linux/bitops.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/bitops.h \
+ include/linux/irqflags.h \
+ $(wildcard include/config/trace/irqflags.h) \
+ $(wildcard include/config/irqsoff/tracer.h) \
+ $(wildcard include/config/preempt/tracer.h) \
+ $(wildcard include/config/trace/irqflags/support.h) \
+ include/linux/typecheck.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/irqflags.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/ptrace.h \
+ $(wildcard include/config/arm/thumb.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/ptrace.h \
+ $(wildcard include/config/cpu/endian/be8.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/hwcap.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/hwcap.h \
+ include/asm-generic/bitops/non-atomic.h \
+ include/asm-generic/bitops/fls64.h \
+ include/asm-generic/bitops/sched.h \
+ include/asm-generic/bitops/hweight.h \
+ include/asm-generic/bitops/arch_hweight.h \
+ include/asm-generic/bitops/const_hweight.h \
+ include/asm-generic/bitops/lock.h \
+ include/asm-generic/bitops/le.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/byteorder.h \
+ include/linux/byteorder/little_endian.h \
+ include/uapi/linux/byteorder/little_endian.h \
+ include/linux/swab.h \
+ include/uapi/linux/swab.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/swab.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/swab.h \
+ include/linux/byteorder/generic.h \
+ include/asm-generic/bitops/ext2-atomic-setbit.h \
+ include/linux/log2.h \
+ $(wildcard include/config/arch/has/ilog2/u32.h) \
+ $(wildcard include/config/arch/has/ilog2/u64.h) \
+ include/linux/printk.h \
+ $(wildcard include/config/early/printk.h) \
+ $(wildcard include/config/printk.h) \
+ $(wildcard include/config/dynamic/debug.h) \
+ include/linux/init.h \
+ $(wildcard include/config/broken/rodata.h) \
+ include/linux/kern_levels.h \
+ include/linux/dynamic_debug.h \
+ include/linux/string.h \
+ $(wildcard include/config/binary/printf.h) \
+ include/uapi/linux/string.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/string.h \
+ include/linux/errno.h \
+ include/uapi/linux/errno.h \
+ arch/arm/include/generated/asm/errno.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/errno.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/errno-base.h \
+ include/uapi/linux/kernel.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/sysinfo.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/div64.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/compiler.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/bug.h \
+ $(wildcard include/config/bug.h) \
+ $(wildcard include/config/thumb2/kernel.h) \
+ $(wildcard include/config/debug/bugverbose.h) \
+ $(wildcard include/config/arm/lpae.h) \
+ include/asm-generic/bug.h \
+ $(wildcard include/config/generic/bug/relative/pointers.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/cache.h \
+ $(wildcard include/config/arm/l1/cache/shift.h) \
+ $(wildcard include/config/aeabi.h) \
+ include/linux/seqlock.h \
+ include/linux/spinlock.h \
+ $(wildcard include/config/debug/spinlock.h) \
+ $(wildcard include/config/generic/lockbreak.h) \
+ $(wildcard include/config/preempt.h) \
+ $(wildcard include/config/debug/lock/alloc.h) \
+ include/linux/preempt.h \
+ $(wildcard include/config/debug/preempt.h) \
+ $(wildcard include/config/context/tracking.h) \
+ $(wildcard include/config/preempt/count.h) \
+ $(wildcard include/config/preempt/notifiers.h) \
+ include/linux/thread_info.h \
+ $(wildcard include/config/compat.h) \
+ $(wildcard include/config/debug/stack/usage.h) \
+ include/linux/bug.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/thread_info.h \
+ $(wildcard include/config/crunch.h) \
+ $(wildcard include/config/arm/thumbee.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/fpstate.h \
+ $(wildcard include/config/vfpv3.h) \
+ $(wildcard include/config/iwmmxt.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/domain.h \
+ $(wildcard include/config/io/36.h) \
+ $(wildcard include/config/cpu/use/domains.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/barrier.h \
+ $(wildcard include/config/cpu/32v6k.h) \
+ $(wildcard include/config/cpu/xsc3.h) \
+ $(wildcard include/config/cpu/fa526.h) \
+ $(wildcard include/config/arch/has/barriers.h) \
+ $(wildcard include/config/arm/dma/mem/bufferable.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/outercache.h \
+ $(wildcard include/config/outer/cache/sync.h) \
+ $(wildcard include/config/outer/cache.h) \
+ include/linux/bottom_half.h \
+ include/linux/spinlock_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/spinlock_types.h \
+ include/linux/lockdep.h \
+ $(wildcard include/config/lockdep.h) \
+ $(wildcard include/config/lock/stat.h) \
+ $(wildcard include/config/prove/rcu.h) \
+ include/linux/rwlock_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/spinlock.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/processor.h \
+ $(wildcard include/config/have/hw/breakpoint.h) \
+ $(wildcard include/config/mmu.h) \
+ $(wildcard include/config/arm/errata/754327.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/hw_breakpoint.h \
+ include/linux/rwlock.h \
+ include/linux/spinlock_api_smp.h \
+ $(wildcard include/config/inline/spin/lock.h) \
+ $(wildcard include/config/inline/spin/lock/bh.h) \
+ $(wildcard include/config/inline/spin/lock/irq.h) \
+ $(wildcard include/config/inline/spin/lock/irqsave.h) \
+ $(wildcard include/config/inline/spin/trylock.h) \
+ $(wildcard include/config/inline/spin/trylock/bh.h) \
+ $(wildcard include/config/uninline/spin/unlock.h) \
+ $(wildcard include/config/inline/spin/unlock/bh.h) \
+ $(wildcard include/config/inline/spin/unlock/irq.h) \
+ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \
+ include/linux/rwlock_api_smp.h \
+ $(wildcard include/config/inline/read/lock.h) \
+ $(wildcard include/config/inline/write/lock.h) \
+ $(wildcard include/config/inline/read/lock/bh.h) \
+ $(wildcard include/config/inline/write/lock/bh.h) \
+ $(wildcard include/config/inline/read/lock/irq.h) \
+ $(wildcard include/config/inline/write/lock/irq.h) \
+ $(wildcard include/config/inline/read/lock/irqsave.h) \
+ $(wildcard include/config/inline/write/lock/irqsave.h) \
+ $(wildcard include/config/inline/read/trylock.h) \
+ $(wildcard include/config/inline/write/trylock.h) \
+ $(wildcard include/config/inline/read/unlock.h) \
+ $(wildcard include/config/inline/write/unlock.h) \
+ $(wildcard include/config/inline/read/unlock/bh.h) \
+ $(wildcard include/config/inline/write/unlock/bh.h) \
+ $(wildcard include/config/inline/read/unlock/irq.h) \
+ $(wildcard include/config/inline/write/unlock/irq.h) \
+ $(wildcard include/config/inline/read/unlock/irqrestore.h) \
+ $(wildcard include/config/inline/write/unlock/irqrestore.h) \
+ include/linux/atomic.h \
+ $(wildcard include/config/arch/has/atomic/or.h) \
+ $(wildcard include/config/generic/atomic64.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/atomic.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/cmpxchg.h \
+ $(wildcard include/config/cpu/sa1100.h) \
+ $(wildcard include/config/cpu/sa110.h) \
+ $(wildcard include/config/cpu/v6.h) \
+ include/asm-generic/cmpxchg-local.h \
+ include/asm-generic/atomic-long.h \
+ include/linux/math64.h \
+ include/uapi/linux/time.h \
+ include/linux/uidgid.h \
+ $(wildcard include/config/uidgid/strict/type/checks.h) \
+ $(wildcard include/config/user/ns.h) \
+ include/linux/highuid.h \
+ include/linux/kmod.h \
+ include/linux/gfp.h \
+ $(wildcard include/config/numa.h) \
+ $(wildcard include/config/highmem.h) \
+ $(wildcard include/config/zone/dma.h) \
+ $(wildcard include/config/zone/dma32.h) \
+ $(wildcard include/config/pm/sleep.h) \
+ $(wildcard include/config/cma.h) \
+ include/linux/mmzone.h \
+ $(wildcard include/config/force/max/zoneorder.h) \
+ $(wildcard include/config/memory/isolation.h) \
+ $(wildcard include/config/memcg.h) \
+ $(wildcard include/config/compaction.h) \
+ $(wildcard include/config/memory/hotplug.h) \
+ $(wildcard include/config/sparsemem.h) \
+ $(wildcard include/config/have/memblock/node/map.h) \
+ $(wildcard include/config/discontigmem.h) \
+ $(wildcard include/config/flat/node/mem/map.h) \
+ $(wildcard include/config/no/bootmem.h) \
+ $(wildcard include/config/numa/balancing.h) \
+ $(wildcard include/config/have/memory/present.h) \
+ $(wildcard include/config/have/memoryless/nodes.h) \
+ $(wildcard include/config/need/node/memmap/size.h) \
+ $(wildcard include/config/need/multiple/nodes.h) \
+ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \
+ $(wildcard include/config/flatmem.h) \
+ $(wildcard include/config/sparsemem/extreme.h) \
+ $(wildcard include/config/have/arch/pfn/valid.h) \
+ $(wildcard include/config/nodes/span/other/nodes.h) \
+ $(wildcard include/config/holes/in/zone.h) \
+ $(wildcard include/config/arch/has/holes/memorymodel.h) \
+ include/linux/wait.h \
+ arch/arm/include/generated/asm/current.h \
+ include/asm-generic/current.h \
+ include/uapi/linux/wait.h \
+ include/linux/threads.h \
+ $(wildcard include/config/nr/cpus.h) \
+ $(wildcard include/config/base/small.h) \
+ include/linux/numa.h \
+ $(wildcard include/config/nodes/shift.h) \
+ include/linux/nodemask.h \
+ $(wildcard include/config/movable/node.h) \
+ include/linux/bitmap.h \
+ include/linux/pageblock-flags.h \
+ $(wildcard include/config/hugetlb/page.h) \
+ $(wildcard include/config/hugetlb/page/size/variable.h) \
+ include/linux/page-flags-layout.h \
+ $(wildcard include/config/sparsemem/vmemmap.h) \
+ include/generated/bounds.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/page.h \
+ $(wildcard include/config/cpu/copy/v4wt.h) \
+ $(wildcard include/config/cpu/copy/v4wb.h) \
+ $(wildcard include/config/cpu/copy/feroceon.h) \
+ $(wildcard include/config/cpu/copy/fa.h) \
+ $(wildcard include/config/cpu/xscale.h) \
+ $(wildcard include/config/cpu/copy/v6.h) \
+ $(wildcard include/config/kuser/helpers.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/glue.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/pgtable-3level-types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/memory.h \
+ $(wildcard include/config/need/mach/memory/h.h) \
+ $(wildcard include/config/page/offset.h) \
+ $(wildcard include/config/dram/size.h) \
+ $(wildcard include/config/dram/base.h) \
+ $(wildcard include/config/have/tcm.h) \
+ $(wildcard include/config/arm/patch/phys/virt.h) \
+ $(wildcard include/config/phys/offset.h) \
+ $(wildcard include/config/virt/to/bus.h) \
+ include/linux/sizes.h \
+ include/asm-generic/memory_model.h \
+ include/asm-generic/getorder.h \
+ include/linux/memory_hotplug.h \
+ $(wildcard include/config/memory/hotremove.h) \
+ $(wildcard include/config/have/arch/nodedata/extension.h) \
+ $(wildcard include/config/have/bootmem/info/node.h) \
+ include/linux/notifier.h \
+ include/linux/mutex.h \
+ $(wildcard include/config/debug/mutexes.h) \
+ $(wildcard include/config/mutex/spin/on/owner.h) \
+ $(wildcard include/config/have/arch/mutex/cpu/relax.h) \
+ include/linux/rwsem.h \
+ $(wildcard include/config/rwsem/generic/spinlock.h) \
+ include/linux/rwsem-spinlock.h \
+ include/linux/srcu.h \
+ include/linux/rcupdate.h \
+ $(wildcard include/config/rcu/torture/test.h) \
+ $(wildcard include/config/tree/rcu.h) \
+ $(wildcard include/config/tree/preempt/rcu.h) \
+ $(wildcard include/config/rcu/trace.h) \
+ $(wildcard include/config/preempt/rcu.h) \
+ $(wildcard include/config/rcu/user/qs.h) \
+ $(wildcard include/config/tiny/rcu.h) \
+ $(wildcard include/config/tiny/preempt/rcu.h) \
+ $(wildcard include/config/debug/objects/rcu/head.h) \
+ $(wildcard include/config/hotplug/cpu.h) \
+ $(wildcard include/config/rcu/nocb/cpu.h) \
+ include/linux/cpumask.h \
+ $(wildcard include/config/cpumask/offstack.h) \
+ $(wildcard include/config/debug/per/cpu/maps.h) \
+ $(wildcard include/config/disable/obsolete/cpumask/functions.h) \
+ include/linux/completion.h \
+ include/linux/debugobjects.h \
+ $(wildcard include/config/debug/objects.h) \
+ $(wildcard include/config/debug/objects/free.h) \
+ include/linux/rcutree.h \
+ include/linux/workqueue.h \
+ $(wildcard include/config/debug/objects/work.h) \
+ $(wildcard include/config/freezer.h) \
+ include/linux/timer.h \
+ $(wildcard include/config/timer/stats.h) \
+ $(wildcard include/config/debug/objects/timers.h) \
+ include/linux/ktime.h \
+ $(wildcard include/config/ktime/scalar.h) \
+ include/linux/jiffies.h \
+ include/linux/timex.h \
+ include/uapi/linux/timex.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/param.h \
+ arch/arm/include/generated/asm/param.h \
+ include/asm-generic/param.h \
+ $(wildcard include/config/hz.h) \
+ include/uapi/asm-generic/param.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/timex.h \
+ $(wildcard include/config/arch/multiplatform.h) \
+ include/linux/topology.h \
+ $(wildcard include/config/sched/smt.h) \
+ $(wildcard include/config/sched/mc.h) \
+ $(wildcard include/config/sched/book.h) \
+ $(wildcard include/config/use/percpu/numa/node/id.h) \
+ include/linux/smp.h \
+ $(wildcard include/config/use/generic/smp/helpers.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/smp.h \
+ include/linux/percpu.h \
+ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \
+ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \
+ $(wildcard include/config/have/setup/per/cpu/area.h) \
+ include/linux/pfn.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/percpu.h \
+ include/asm-generic/percpu.h \
+ include/linux/percpu-defs.h \
+ $(wildcard include/config/debug/force/weak/per/cpu.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/topology.h \
+ $(wildcard include/config/arm/cpu/topology.h) \
+ include/asm-generic/topology.h \
+ include/linux/mmdebug.h \
+ $(wildcard include/config/debug/vm.h) \
+ $(wildcard include/config/debug/virtual.h) \
+ include/linux/sysctl.h \
+ $(wildcard include/config/sysctl.h) \
+ include/linux/rbtree.h \
+ include/uapi/linux/sysctl.h \
+ include/linux/elf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/elf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/user.h \
+ include/uapi/linux/elf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/elf-em.h \
+ include/linux/kobject.h \
+ include/linux/sysfs.h \
+ include/linux/kobject_ns.h \
+ include/linux/kref.h \
+ include/linux/moduleparam.h \
+ $(wildcard include/config/alpha.h) \
+ $(wildcard include/config/ia64.h) \
+ $(wildcard include/config/ppc64.h) \
+ include/linux/tracepoint.h \
+ include/linux/static_key.h \
+ include/linux/jump_label.h \
+ $(wildcard include/config/jump/label.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/module.h \
+ $(wildcard include/config/arm/unwind.h) \
+ include/asm-generic/module.h \
+ $(wildcard include/config/have/mod/arch/specific.h) \
+ $(wildcard include/config/modules/use/elf/rel.h) \
+ $(wildcard include/config/modules/use/elf/rela.h) \
+ include/linux/vermagic.h \
+ include/generated/utsrelease.h \
+
+/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o: $(deps_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o)
+
+$(deps_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.mod.o):
diff --git a/Usb-Driver/.mocca-usb.o.cmd b/Usb-Driver/.mocca-usb.o.cmd
new file mode 100644
index 0000000..0eddbcd
--- /dev/null
+++ b/Usb-Driver/.mocca-usb.o.cmd
@@ -0,0 +1,651 @@
+cmd_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o := /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -Wall -Wp,-MD,/home/x/appsteam/mocca-example/Usb-Driver/.mocca-usb.o.d -nostdinc -isystem /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/include -I/home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi -Iinclude/generated/uapi -include /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(mocca_usb)" -D"KBUILD_MODNAME=KBUILD_STR(mocca_usb)" -c -o /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.c
+
+source_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o := /home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.c
+
+deps_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o := \
+ include/linux/kernel.h \
+ $(wildcard include/config/lbdaf.h) \
+ $(wildcard include/config/preempt/voluntary.h) \
+ $(wildcard include/config/debug/atomic/sleep.h) \
+ $(wildcard include/config/prove/locking.h) \
+ $(wildcard include/config/ring/buffer.h) \
+ $(wildcard include/config/tracing.h) \
+ $(wildcard include/config/ftrace/mcount/record.h) \
+ /home/x/R-Car-AGL/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/include/stdarg.h \
+ include/linux/linkage.h \
+ include/linux/compiler.h \
+ $(wildcard include/config/sparse/rcu/pointer.h) \
+ $(wildcard include/config/trace/branch/profiling.h) \
+ $(wildcard include/config/profile/all/branches.h) \
+ $(wildcard include/config/enable/must/check.h) \
+ $(wildcard include/config/enable/warn/deprecated.h) \
+ $(wildcard include/config/kprobes.h) \
+ include/linux/compiler-gcc.h \
+ $(wildcard include/config/arch/supports/optimized/inlining.h) \
+ $(wildcard include/config/optimize/inlining.h) \
+ include/linux/compiler-gcc4.h \
+ $(wildcard include/config/arch/use/builtin/bswap.h) \
+ include/linux/stringify.h \
+ include/linux/export.h \
+ $(wildcard include/config/have/underscore/symbol/prefix.h) \
+ $(wildcard include/config/modules.h) \
+ $(wildcard include/config/modversions.h) \
+ $(wildcard include/config/unused/symbols.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/linkage.h \
+ include/linux/stddef.h \
+ include/uapi/linux/stddef.h \
+ include/linux/types.h \
+ $(wildcard include/config/uid16.h) \
+ $(wildcard include/config/arch/dma/addr/t/64bit.h) \
+ $(wildcard include/config/phys/addr/t/64bit.h) \
+ $(wildcard include/config/64bit.h) \
+ include/uapi/linux/types.h \
+ arch/arm/include/generated/asm/types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/types.h \
+ include/asm-generic/int-ll64.h \
+ include/uapi/asm-generic/int-ll64.h \
+ arch/arm/include/generated/asm/bitsperlong.h \
+ include/asm-generic/bitsperlong.h \
+ include/uapi/asm-generic/bitsperlong.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/posix_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/posix_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/posix_types.h \
+ include/linux/bitops.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/bitops.h \
+ $(wildcard include/config/smp.h) \
+ include/linux/irqflags.h \
+ $(wildcard include/config/trace/irqflags.h) \
+ $(wildcard include/config/irqsoff/tracer.h) \
+ $(wildcard include/config/preempt/tracer.h) \
+ $(wildcard include/config/trace/irqflags/support.h) \
+ include/linux/typecheck.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/irqflags.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/ptrace.h \
+ $(wildcard include/config/arm/thumb.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/ptrace.h \
+ $(wildcard include/config/cpu/endian/be8.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/hwcap.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/hwcap.h \
+ include/asm-generic/bitops/non-atomic.h \
+ include/asm-generic/bitops/fls64.h \
+ include/asm-generic/bitops/sched.h \
+ include/asm-generic/bitops/hweight.h \
+ include/asm-generic/bitops/arch_hweight.h \
+ include/asm-generic/bitops/const_hweight.h \
+ include/asm-generic/bitops/lock.h \
+ include/asm-generic/bitops/le.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/byteorder.h \
+ include/linux/byteorder/little_endian.h \
+ include/uapi/linux/byteorder/little_endian.h \
+ include/linux/swab.h \
+ include/uapi/linux/swab.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/swab.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/swab.h \
+ include/linux/byteorder/generic.h \
+ include/asm-generic/bitops/ext2-atomic-setbit.h \
+ include/linux/log2.h \
+ $(wildcard include/config/arch/has/ilog2/u32.h) \
+ $(wildcard include/config/arch/has/ilog2/u64.h) \
+ include/linux/printk.h \
+ $(wildcard include/config/early/printk.h) \
+ $(wildcard include/config/printk.h) \
+ $(wildcard include/config/dynamic/debug.h) \
+ include/linux/init.h \
+ $(wildcard include/config/broken/rodata.h) \
+ include/linux/kern_levels.h \
+ include/linux/dynamic_debug.h \
+ include/linux/string.h \
+ $(wildcard include/config/binary/printf.h) \
+ include/uapi/linux/string.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/string.h \
+ include/linux/errno.h \
+ include/uapi/linux/errno.h \
+ arch/arm/include/generated/asm/errno.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/errno.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/errno-base.h \
+ include/uapi/linux/kernel.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/sysinfo.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/div64.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/compiler.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/bug.h \
+ $(wildcard include/config/bug.h) \
+ $(wildcard include/config/thumb2/kernel.h) \
+ $(wildcard include/config/debug/bugverbose.h) \
+ $(wildcard include/config/arm/lpae.h) \
+ include/asm-generic/bug.h \
+ $(wildcard include/config/generic/bug.h) \
+ $(wildcard include/config/generic/bug/relative/pointers.h) \
+ include/linux/slab.h \
+ $(wildcard include/config/slab/debug.h) \
+ $(wildcard include/config/debug/objects.h) \
+ $(wildcard include/config/kmemcheck.h) \
+ $(wildcard include/config/failslab.h) \
+ $(wildcard include/config/slob.h) \
+ $(wildcard include/config/slab.h) \
+ $(wildcard include/config/zone/dma.h) \
+ $(wildcard include/config/slub.h) \
+ $(wildcard include/config/numa.h) \
+ $(wildcard include/config/debug/slab.h) \
+ include/linux/gfp.h \
+ $(wildcard include/config/highmem.h) \
+ $(wildcard include/config/zone/dma32.h) \
+ $(wildcard include/config/pm/sleep.h) \
+ $(wildcard include/config/cma.h) \
+ include/linux/mmzone.h \
+ $(wildcard include/config/force/max/zoneorder.h) \
+ $(wildcard include/config/memory/isolation.h) \
+ $(wildcard include/config/memcg.h) \
+ $(wildcard include/config/compaction.h) \
+ $(wildcard include/config/memory/hotplug.h) \
+ $(wildcard include/config/sparsemem.h) \
+ $(wildcard include/config/have/memblock/node/map.h) \
+ $(wildcard include/config/discontigmem.h) \
+ $(wildcard include/config/flat/node/mem/map.h) \
+ $(wildcard include/config/no/bootmem.h) \
+ $(wildcard include/config/numa/balancing.h) \
+ $(wildcard include/config/have/memory/present.h) \
+ $(wildcard include/config/have/memoryless/nodes.h) \
+ $(wildcard include/config/need/node/memmap/size.h) \
+ $(wildcard include/config/need/multiple/nodes.h) \
+ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \
+ $(wildcard include/config/flatmem.h) \
+ $(wildcard include/config/sparsemem/extreme.h) \
+ $(wildcard include/config/have/arch/pfn/valid.h) \
+ $(wildcard include/config/nodes/span/other/nodes.h) \
+ $(wildcard include/config/holes/in/zone.h) \
+ $(wildcard include/config/arch/has/holes/memorymodel.h) \
+ include/linux/spinlock.h \
+ $(wildcard include/config/debug/spinlock.h) \
+ $(wildcard include/config/generic/lockbreak.h) \
+ $(wildcard include/config/preempt.h) \
+ $(wildcard include/config/debug/lock/alloc.h) \
+ include/linux/preempt.h \
+ $(wildcard include/config/debug/preempt.h) \
+ $(wildcard include/config/context/tracking.h) \
+ $(wildcard include/config/preempt/count.h) \
+ $(wildcard include/config/preempt/notifiers.h) \
+ include/linux/thread_info.h \
+ $(wildcard include/config/compat.h) \
+ $(wildcard include/config/debug/stack/usage.h) \
+ include/linux/bug.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/thread_info.h \
+ $(wildcard include/config/crunch.h) \
+ $(wildcard include/config/arm/thumbee.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/fpstate.h \
+ $(wildcard include/config/vfpv3.h) \
+ $(wildcard include/config/iwmmxt.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/domain.h \
+ $(wildcard include/config/io/36.h) \
+ $(wildcard include/config/cpu/use/domains.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/barrier.h \
+ $(wildcard include/config/cpu/32v6k.h) \
+ $(wildcard include/config/cpu/xsc3.h) \
+ $(wildcard include/config/cpu/fa526.h) \
+ $(wildcard include/config/arch/has/barriers.h) \
+ $(wildcard include/config/arm/dma/mem/bufferable.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/outercache.h \
+ $(wildcard include/config/outer/cache/sync.h) \
+ $(wildcard include/config/outer/cache.h) \
+ include/linux/list.h \
+ $(wildcard include/config/debug/list.h) \
+ include/linux/poison.h \
+ $(wildcard include/config/illegal/pointer/value.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/const.h \
+ include/linux/bottom_half.h \
+ include/linux/spinlock_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/spinlock_types.h \
+ include/linux/lockdep.h \
+ $(wildcard include/config/lockdep.h) \
+ $(wildcard include/config/lock/stat.h) \
+ $(wildcard include/config/prove/rcu.h) \
+ include/linux/rwlock_types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/spinlock.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/processor.h \
+ $(wildcard include/config/have/hw/breakpoint.h) \
+ $(wildcard include/config/mmu.h) \
+ $(wildcard include/config/arm/errata/754327.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/hw_breakpoint.h \
+ include/linux/rwlock.h \
+ include/linux/spinlock_api_smp.h \
+ $(wildcard include/config/inline/spin/lock.h) \
+ $(wildcard include/config/inline/spin/lock/bh.h) \
+ $(wildcard include/config/inline/spin/lock/irq.h) \
+ $(wildcard include/config/inline/spin/lock/irqsave.h) \
+ $(wildcard include/config/inline/spin/trylock.h) \
+ $(wildcard include/config/inline/spin/trylock/bh.h) \
+ $(wildcard include/config/uninline/spin/unlock.h) \
+ $(wildcard include/config/inline/spin/unlock/bh.h) \
+ $(wildcard include/config/inline/spin/unlock/irq.h) \
+ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \
+ include/linux/rwlock_api_smp.h \
+ $(wildcard include/config/inline/read/lock.h) \
+ $(wildcard include/config/inline/write/lock.h) \
+ $(wildcard include/config/inline/read/lock/bh.h) \
+ $(wildcard include/config/inline/write/lock/bh.h) \
+ $(wildcard include/config/inline/read/lock/irq.h) \
+ $(wildcard include/config/inline/write/lock/irq.h) \
+ $(wildcard include/config/inline/read/lock/irqsave.h) \
+ $(wildcard include/config/inline/write/lock/irqsave.h) \
+ $(wildcard include/config/inline/read/trylock.h) \
+ $(wildcard include/config/inline/write/trylock.h) \
+ $(wildcard include/config/inline/read/unlock.h) \
+ $(wildcard include/config/inline/write/unlock.h) \
+ $(wildcard include/config/inline/read/unlock/bh.h) \
+ $(wildcard include/config/inline/write/unlock/bh.h) \
+ $(wildcard include/config/inline/read/unlock/irq.h) \
+ $(wildcard include/config/inline/write/unlock/irq.h) \
+ $(wildcard include/config/inline/read/unlock/irqrestore.h) \
+ $(wildcard include/config/inline/write/unlock/irqrestore.h) \
+ include/linux/atomic.h \
+ $(wildcard include/config/arch/has/atomic/or.h) \
+ $(wildcard include/config/generic/atomic64.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/atomic.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/cmpxchg.h \
+ $(wildcard include/config/cpu/sa1100.h) \
+ $(wildcard include/config/cpu/sa110.h) \
+ $(wildcard include/config/cpu/v6.h) \
+ include/asm-generic/cmpxchg-local.h \
+ include/asm-generic/atomic-long.h \
+ include/linux/wait.h \
+ arch/arm/include/generated/asm/current.h \
+ include/asm-generic/current.h \
+ include/uapi/linux/wait.h \
+ include/linux/cache.h \
+ $(wildcard include/config/arch/has/cache/line/size.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/cache.h \
+ $(wildcard include/config/arm/l1/cache/shift.h) \
+ $(wildcard include/config/aeabi.h) \
+ include/linux/threads.h \
+ $(wildcard include/config/nr/cpus.h) \
+ $(wildcard include/config/base/small.h) \
+ include/linux/numa.h \
+ $(wildcard include/config/nodes/shift.h) \
+ include/linux/seqlock.h \
+ include/linux/nodemask.h \
+ $(wildcard include/config/movable/node.h) \
+ include/linux/bitmap.h \
+ include/linux/pageblock-flags.h \
+ $(wildcard include/config/hugetlb/page.h) \
+ $(wildcard include/config/hugetlb/page/size/variable.h) \
+ include/linux/page-flags-layout.h \
+ $(wildcard include/config/sparsemem/vmemmap.h) \
+ include/generated/bounds.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/page.h \
+ $(wildcard include/config/cpu/copy/v4wt.h) \
+ $(wildcard include/config/cpu/copy/v4wb.h) \
+ $(wildcard include/config/cpu/copy/feroceon.h) \
+ $(wildcard include/config/cpu/copy/fa.h) \
+ $(wildcard include/config/cpu/xscale.h) \
+ $(wildcard include/config/cpu/copy/v6.h) \
+ $(wildcard include/config/kuser/helpers.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/glue.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/pgtable-3level-types.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/memory.h \
+ $(wildcard include/config/need/mach/memory/h.h) \
+ $(wildcard include/config/page/offset.h) \
+ $(wildcard include/config/dram/size.h) \
+ $(wildcard include/config/dram/base.h) \
+ $(wildcard include/config/have/tcm.h) \
+ $(wildcard include/config/arm/patch/phys/virt.h) \
+ $(wildcard include/config/phys/offset.h) \
+ $(wildcard include/config/virt/to/bus.h) \
+ include/linux/sizes.h \
+ include/asm-generic/memory_model.h \
+ include/asm-generic/getorder.h \
+ include/linux/memory_hotplug.h \
+ $(wildcard include/config/memory/hotremove.h) \
+ $(wildcard include/config/have/arch/nodedata/extension.h) \
+ $(wildcard include/config/have/bootmem/info/node.h) \
+ include/linux/notifier.h \
+ include/linux/mutex.h \
+ $(wildcard include/config/debug/mutexes.h) \
+ $(wildcard include/config/mutex/spin/on/owner.h) \
+ $(wildcard include/config/have/arch/mutex/cpu/relax.h) \
+ include/linux/rwsem.h \
+ $(wildcard include/config/rwsem/generic/spinlock.h) \
+ include/linux/rwsem-spinlock.h \
+ include/linux/srcu.h \
+ include/linux/rcupdate.h \
+ $(wildcard include/config/rcu/torture/test.h) \
+ $(wildcard include/config/tree/rcu.h) \
+ $(wildcard include/config/tree/preempt/rcu.h) \
+ $(wildcard include/config/rcu/trace.h) \
+ $(wildcard include/config/preempt/rcu.h) \
+ $(wildcard include/config/rcu/user/qs.h) \
+ $(wildcard include/config/tiny/rcu.h) \
+ $(wildcard include/config/tiny/preempt/rcu.h) \
+ $(wildcard include/config/debug/objects/rcu/head.h) \
+ $(wildcard include/config/hotplug/cpu.h) \
+ $(wildcard include/config/rcu/nocb/cpu.h) \
+ include/linux/cpumask.h \
+ $(wildcard include/config/cpumask/offstack.h) \
+ $(wildcard include/config/debug/per/cpu/maps.h) \
+ $(wildcard include/config/disable/obsolete/cpumask/functions.h) \
+ include/linux/completion.h \
+ include/linux/debugobjects.h \
+ $(wildcard include/config/debug/objects/free.h) \
+ include/linux/rcutree.h \
+ include/linux/workqueue.h \
+ $(wildcard include/config/debug/objects/work.h) \
+ $(wildcard include/config/freezer.h) \
+ $(wildcard include/config/sysfs.h) \
+ include/linux/timer.h \
+ $(wildcard include/config/timer/stats.h) \
+ $(wildcard include/config/debug/objects/timers.h) \
+ include/linux/ktime.h \
+ $(wildcard include/config/ktime/scalar.h) \
+ include/linux/time.h \
+ $(wildcard include/config/arch/uses/gettimeoffset.h) \
+ include/linux/math64.h \
+ include/uapi/linux/time.h \
+ include/linux/jiffies.h \
+ include/linux/timex.h \
+ include/uapi/linux/timex.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/param.h \
+ arch/arm/include/generated/asm/param.h \
+ include/asm-generic/param.h \
+ $(wildcard include/config/hz.h) \
+ include/uapi/asm-generic/param.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/timex.h \
+ $(wildcard include/config/arch/multiplatform.h) \
+ include/linux/topology.h \
+ $(wildcard include/config/sched/smt.h) \
+ $(wildcard include/config/sched/mc.h) \
+ $(wildcard include/config/sched/book.h) \
+ $(wildcard include/config/use/percpu/numa/node/id.h) \
+ include/linux/smp.h \
+ $(wildcard include/config/use/generic/smp/helpers.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/smp.h \
+ include/linux/percpu.h \
+ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \
+ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \
+ $(wildcard include/config/have/setup/per/cpu/area.h) \
+ include/linux/pfn.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/percpu.h \
+ include/asm-generic/percpu.h \
+ include/linux/percpu-defs.h \
+ $(wildcard include/config/debug/force/weak/per/cpu.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/topology.h \
+ $(wildcard include/config/arm/cpu/topology.h) \
+ include/asm-generic/topology.h \
+ include/linux/mmdebug.h \
+ $(wildcard include/config/debug/vm.h) \
+ $(wildcard include/config/debug/virtual.h) \
+ include/linux/slab_def.h \
+ $(wildcard include/config/memcg/kmem.h) \
+ include/linux/module.h \
+ $(wildcard include/config/module/sig.h) \
+ $(wildcard include/config/kallsyms.h) \
+ $(wildcard include/config/tracepoints.h) \
+ $(wildcard include/config/event/tracing.h) \
+ $(wildcard include/config/module/unload.h) \
+ $(wildcard include/config/constructors.h) \
+ $(wildcard include/config/debug/set/module/ronx.h) \
+ include/linux/stat.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/stat.h \
+ include/uapi/linux/stat.h \
+ include/linux/uidgid.h \
+ $(wildcard include/config/uidgid/strict/type/checks.h) \
+ $(wildcard include/config/user/ns.h) \
+ include/linux/highuid.h \
+ include/linux/kmod.h \
+ include/linux/sysctl.h \
+ $(wildcard include/config/sysctl.h) \
+ include/linux/rbtree.h \
+ include/uapi/linux/sysctl.h \
+ include/linux/elf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/elf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/user.h \
+ include/uapi/linux/elf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/elf-em.h \
+ include/linux/kobject.h \
+ include/linux/sysfs.h \
+ include/linux/kobject_ns.h \
+ include/linux/kref.h \
+ include/linux/moduleparam.h \
+ $(wildcard include/config/alpha.h) \
+ $(wildcard include/config/ia64.h) \
+ $(wildcard include/config/ppc64.h) \
+ include/linux/tracepoint.h \
+ include/linux/static_key.h \
+ include/linux/jump_label.h \
+ $(wildcard include/config/jump/label.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/module.h \
+ $(wildcard include/config/arm/unwind.h) \
+ include/asm-generic/module.h \
+ $(wildcard include/config/have/mod/arch/specific.h) \
+ $(wildcard include/config/modules/use/elf/rel.h) \
+ $(wildcard include/config/modules/use/elf/rela.h) \
+ include/linux/uaccess.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/uaccess.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/unified.h \
+ $(wildcard include/config/arm/asm/unified.h) \
+ include/linux/usb.h \
+ $(wildcard include/config/usb/mon.h) \
+ $(wildcard include/config/pm.h) \
+ $(wildcard include/config/acpi.h) \
+ $(wildcard include/config/pm/runtime.h) \
+ include/linux/mod_devicetable.h \
+ include/linux/uuid.h \
+ include/uapi/linux/uuid.h \
+ include/linux/usb/ch9.h \
+ include/uapi/linux/usb/ch9.h \
+ $(wildcard include/config/size.h) \
+ $(wildcard include/config/att/one.h) \
+ $(wildcard include/config/att/selfpower.h) \
+ $(wildcard include/config/att/wakeup.h) \
+ $(wildcard include/config/att/battery.h) \
+ include/linux/delay.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/delay.h \
+ include/linux/interrupt.h \
+ $(wildcard include/config/generic/hardirqs.h) \
+ $(wildcard include/config/irq/forced/threading.h) \
+ $(wildcard include/config/generic/irq/probe.h) \
+ $(wildcard include/config/proc/fs.h) \
+ include/linux/irqreturn.h \
+ include/linux/irqnr.h \
+ include/uapi/linux/irqnr.h \
+ include/linux/hardirq.h \
+ include/linux/ftrace_irq.h \
+ $(wildcard include/config/ftrace/nmi/enter.h) \
+ include/linux/vtime.h \
+ $(wildcard include/config/virt/cpu/accounting.h) \
+ $(wildcard include/config/virt/cpu/accounting/native.h) \
+ $(wildcard include/config/virt/cpu/accounting/gen.h) \
+ $(wildcard include/config/irq/time/accounting.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/hardirq.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/irq.h \
+ $(wildcard include/config/sparse/irq.h) \
+ $(wildcard include/config/multi/irq/handler.h) \
+ include/linux/irq_cpustat.h \
+ include/linux/hrtimer.h \
+ $(wildcard include/config/high/res/timers.h) \
+ $(wildcard include/config/timerfd.h) \
+ include/linux/timerqueue.h \
+ include/linux/device.h \
+ $(wildcard include/config/debug/devres.h) \
+ $(wildcard include/config/pinctrl.h) \
+ $(wildcard include/config/dma/cma.h) \
+ $(wildcard include/config/devtmpfs.h) \
+ $(wildcard include/config/sysfs/deprecated.h) \
+ include/linux/ioport.h \
+ include/linux/klist.h \
+ include/linux/pinctrl/devinfo.h \
+ include/linux/pinctrl/consumer.h \
+ include/linux/err.h \
+ include/linux/seq_file.h \
+ include/linux/pinctrl/pinctrl-state.h \
+ include/linux/pm.h \
+ $(wildcard include/config/vt/console/sleep.h) \
+ $(wildcard include/config/pm/clk.h) \
+ $(wildcard include/config/pm/generic/domains.h) \
+ include/linux/ratelimit.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/device.h \
+ $(wildcard include/config/dmabounce.h) \
+ $(wildcard include/config/iommu/api.h) \
+ $(wildcard include/config/arm/dma/use/iommu.h) \
+ $(wildcard include/config/arch/omap.h) \
+ include/linux/pm_wakeup.h \
+ include/linux/fs.h \
+ $(wildcard include/config/fs/posix/acl.h) \
+ $(wildcard include/config/security.h) \
+ $(wildcard include/config/quota.h) \
+ $(wildcard include/config/fsnotify.h) \
+ $(wildcard include/config/ima.h) \
+ $(wildcard include/config/epoll.h) \
+ $(wildcard include/config/debug/writecount.h) \
+ $(wildcard include/config/file/locking.h) \
+ $(wildcard include/config/auditsyscall.h) \
+ $(wildcard include/config/block.h) \
+ $(wildcard include/config/fs/xip.h) \
+ $(wildcard include/config/migration.h) \
+ include/linux/kdev_t.h \
+ include/uapi/linux/kdev_t.h \
+ include/linux/dcache.h \
+ include/linux/rculist.h \
+ include/linux/rculist_bl.h \
+ include/linux/list_bl.h \
+ include/linux/bit_spinlock.h \
+ include/linux/path.h \
+ include/linux/radix-tree.h \
+ include/linux/pid.h \
+ include/linux/capability.h \
+ include/uapi/linux/capability.h \
+ include/linux/semaphore.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/fiemap.h \
+ include/linux/shrinker.h \
+ include/linux/migrate_mode.h \
+ include/linux/percpu-rwsem.h \
+ include/linux/blk_types.h \
+ $(wildcard include/config/blk/cgroup.h) \
+ $(wildcard include/config/blk/dev/integrity.h) \
+ include/uapi/linux/fs.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/limits.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/ioctl.h \
+ arch/arm/include/generated/asm/ioctl.h \
+ include/asm-generic/ioctl.h \
+ include/uapi/asm-generic/ioctl.h \
+ include/linux/quota.h \
+ $(wildcard include/config/quota/netlink/interface.h) \
+ include/linux/percpu_counter.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/linux/dqblk_xfs.h \
+ include/linux/dqblk_v1.h \
+ include/linux/dqblk_v2.h \
+ include/linux/dqblk_qtree.h \
+ include/linux/projid.h \
+ include/uapi/linux/quota.h \
+ include/linux/nfs_fs_i.h \
+ include/linux/fcntl.h \
+ include/uapi/linux/fcntl.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/fcntl.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/fcntl.h \
+ include/linux/sched.h \
+ $(wildcard include/config/sched/debug.h) \
+ $(wildcard include/config/no/hz/common.h) \
+ $(wildcard include/config/lockup/detector.h) \
+ $(wildcard include/config/core/dump/default/elf/headers.h) \
+ $(wildcard include/config/sched/autogroup.h) \
+ $(wildcard include/config/bsd/process/acct.h) \
+ $(wildcard include/config/taskstats.h) \
+ $(wildcard include/config/audit.h) \
+ $(wildcard include/config/cgroups.h) \
+ $(wildcard include/config/inotify/user.h) \
+ $(wildcard include/config/fanotify.h) \
+ $(wildcard include/config/posix/mqueue.h) \
+ $(wildcard include/config/keys.h) \
+ $(wildcard include/config/perf/events.h) \
+ $(wildcard include/config/schedstats.h) \
+ $(wildcard include/config/task/delay/acct.h) \
+ $(wildcard include/config/fair/group/sched.h) \
+ $(wildcard include/config/rt/group/sched.h) \
+ $(wildcard include/config/cgroup/sched.h) \
+ $(wildcard include/config/blk/dev/io/trace.h) \
+ $(wildcard include/config/rcu/boost.h) \
+ $(wildcard include/config/compat/brk.h) \
+ $(wildcard include/config/cc/stackprotector.h) \
+ $(wildcard include/config/sysvipc.h) \
+ $(wildcard include/config/detect/hung/task.h) \
+ $(wildcard include/config/rt/mutexes.h) \
+ $(wildcard include/config/task/xacct.h) \
+ $(wildcard include/config/cpusets.h) \
+ $(wildcard include/config/futex.h) \
+ $(wildcard include/config/fault/injection.h) \
+ $(wildcard include/config/latencytop.h) \
+ $(wildcard include/config/function/graph/tracer.h) \
+ $(wildcard include/config/uprobes.h) \
+ $(wildcard include/config/bcache.h) \
+ $(wildcard include/config/have/unstable/sched/clock.h) \
+ $(wildcard include/config/no/hz/full.h) \
+ $(wildcard include/config/stack/growsup.h) \
+ $(wildcard include/config/mm/owner.h) \
+ include/uapi/linux/sched.h \
+ include/linux/mm_types.h \
+ $(wildcard include/config/split/ptlock/cpus.h) \
+ $(wildcard include/config/have/cmpxchg/double.h) \
+ $(wildcard include/config/have/aligned/struct/page.h) \
+ $(wildcard include/config/want/page/debug/flags.h) \
+ $(wildcard include/config/aio.h) \
+ $(wildcard include/config/mmu/notifier.h) \
+ $(wildcard include/config/transparent/hugepage.h) \
+ include/linux/auxvec.h \
+ include/uapi/linux/auxvec.h \
+ arch/arm/include/generated/asm/auxvec.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/auxvec.h \
+ include/linux/page-debug-flags.h \
+ $(wildcard include/config/page/poisoning.h) \
+ $(wildcard include/config/page/guard.h) \
+ $(wildcard include/config/page/debug/something/else.h) \
+ include/linux/uprobes.h \
+ $(wildcard include/config/arch/supports/uprobes.h) \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/mmu.h \
+ $(wildcard include/config/cpu/has/asid.h) \
+ arch/arm/include/generated/asm/cputime.h \
+ include/asm-generic/cputime.h \
+ include/asm-generic/cputime_jiffies.h \
+ include/linux/sem.h \
+ include/uapi/linux/sem.h \
+ include/linux/ipc.h \
+ include/uapi/linux/ipc.h \
+ arch/arm/include/generated/asm/ipcbuf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/ipcbuf.h \
+ arch/arm/include/generated/asm/sembuf.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/sembuf.h \
+ include/linux/signal.h \
+ $(wildcard include/config/old/sigaction.h) \
+ include/uapi/linux/signal.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/asm/signal.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/signal.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/include/uapi/asm-generic/signal-defs.h \
+ /home/x/R-Car-AGL/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/package/usr/src/kernel/arch/arm/include/uapi/asm/sigcontext.h \
+ arch/arm/include/generated/asm/siginfo.h \
+ include/asm-generic/siginfo.h \
+ include/uapi/asm-generic/siginfo.h \
+ include/linux/proportions.h \
+ include/linux/seccomp.h \
+ $(wildcard include/config/seccomp.h) \
+ $(wildcard include/config/seccomp/filter.h) \
+ include/uapi/linux/seccomp.h \
+ include/linux/rtmutex.h \
+ $(wildcard include/config/debug/rt/mutexes.h) \
+ include/linux/plist.h \
+ $(wildcard include/config/debug/pi/list.h) \
+ include/linux/resource.h \
+ include/uapi/linux/resource.h \
+ arch/arm/include/generated/asm/resource.h \
+ include/asm-generic/resource.h \
+ include/uapi/asm-generic/resource.h \
+ include/linux/task_io_accounting.h \
+ $(wildcard include/config/task/io/accounting.h) \
+ include/linux/latencytop.h \
+ include/linux/cred.h \
+ $(wildcard include/config/debug/credentials.h) \
+ include/linux/key.h \
+ include/linux/selinux.h \
+ $(wildcard include/config/security/selinux.h) \
+ include/linux/llist.h \
+ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \
+ include/linux/pm_runtime.h \
+
+/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o: $(deps_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o)
+
+$(deps_/home/x/appsteam/mocca-example/Usb-Driver/mocca-usb.o):
diff --git a/Usb-Driver/Makefile b/Usb-Driver/Makefile
new file mode 100644
index 0000000..406b187
--- /dev/null
+++ b/Usb-Driver/Makefile
@@ -0,0 +1,42 @@
+# set your module name here
+# provide the following files
+#
+# MODULENAME.c the driver
+# MODULENAME.h the include file
+# MODULENAME_test.c the driver test program
+# MODULENAME_test.sh the driver test script
+#
+MODULENAME := mocca-usb
+### should not need to change stuff below ######################
+
+
+# KDIR := /lib/modules/$(shell uname -r)/build
+#KDIR := /home/me/arm/linux-2.6.35.9/
+PWD := $(shell pwd)
+CC := ${CROSS_COMPILE}gcc -Wall
+
+ifeq ($(KERNELRELEASE),)
+all:
+ $(MAKE) V=0 -C $(KDIR) SUBDIRS=$(PWD) modules
+else
+ obj-m := $(MODULENAME).o
+endif
+
+
+load: all
+ ssh root@10.0.0.3 'echo 0x46 > /sys/bus/i2c/devices/i2c-0/delete_device; rmmod /home/matrix/$(MODULENAME).ko'
+ scp $(MODULENAME).ko root@10.0.0.3:/home/matrix
+ ssh root@10.0.0.3 'insmod /home/matrix/$(MODULENAME).ko; echo k2l-i2c-0 0x46 > /sys/bus/i2c/devices/i2c-0/new_device'
+
+unload:
+ ssh root@10.0.0.3 'echo 0x46 > /sys/bus/i2c/devices/i2c-0/delete_device; rmmod /home/matrix/$(MODULENAME).ko'
+
+test: all
+
+clean:
+ -rm -f *.o *.ko modules.order Module.symvers *.mod.c .*.cmd $(MODULENAME)_test
+ -rm -rf .tmp_versions
+
+copy:
+ scp $(MODULENAME).ko root@10.0.0.3:/home/matrix
+
diff --git a/Usb-Driver/Module.symvers b/Usb-Driver/Module.symvers
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Usb-Driver/Module.symvers
diff --git a/Usb-Driver/crosscompile.sh b/Usb-Driver/crosscompile.sh
new file mode 100755
index 0000000..3dddf85
--- /dev/null
+++ b/Usb-Driver/crosscompile.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+export CROSS_COMPILE=$AGL_TOP/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
+export ARCH=arm
+export CC=${CROSS_COMPILE}gcc
+export KDIR=$AGL_TOP/build/tmp/work/porter-poky-linux-gnueabi/linux-renesas/3.10+gitb8ca8c397343f4233f9f68fc3a5bf8e1c9b88251-r0/git
+export CXX_FLAGS=""
+export BOOST_ROOT="$AGL_TOP/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/boost/1.56.0-r0"
+export LIBRARY_PATH=""
+export CPATH=""
+export INCLUDE_PATH=""
+export LIBRARIES_FLAGS=""
+
+
diff --git a/Usb-Driver/mocca-usb.c b/Usb-Driver/mocca-usb.c
new file mode 100644
index 0000000..1a6793c
--- /dev/null
+++ b/Usb-Driver/mocca-usb.c
@@ -0,0 +1,391 @@
+/*
+ * USB Skeleton driver - 2.2
+ *
+ * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com)
+ *
+ * This program 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, version 2.
+ *
+ * This driver is based on the 2.6.3 version of drivers/usb/usb-skeleton.c
+ * but has been rewritten to be easier to read and use.
+ *
+ */
+
+#include <linux/kernel.h>
+#include <linux/errno.h>
+#include <linux/init.h>
+#include <linux/slab.h>
+#include <linux/module.h>
+#include <linux/kref.h>
+#include <linux/uaccess.h>
+#include <linux/usb.h>
+#include <linux/mutex.h>
+#include <linux/spinlock.h>
+
+
+/* Define these values to match your devices */
+#define USB_MOCCA_VENDOR_ID 0x184f
+#define USB_MOCCA_PRODUCT_ID_1 0x0007
+#define USB_MOCCA_PRODUCT_ID_2 0x0008
+#define USB_MOCCA_PRODUCT_ID_3 0x0009
+#define USB_MOCCA_PRODUCT_ID_4 0x0010
+#define USB_MOCCA_PRODUCT_ID_5 0x0011
+#define USB_MOCCA_PRODUCT_ID_6 0x0012
+
+/* table of devices that work with this driver */
+static const struct usb_device_id mocca_table[] = {
+ { USB_DEVICE(USB_MOCCA_VENDOR_ID, USB_MOCCA_PRODUCT_ID_1) },
+ { USB_DEVICE(USB_MOCCA_VENDOR_ID, USB_MOCCA_PRODUCT_ID_2) },
+ { USB_DEVICE(USB_MOCCA_VENDOR_ID, USB_MOCCA_PRODUCT_ID_3) },
+ { USB_DEVICE(USB_MOCCA_VENDOR_ID, USB_MOCCA_PRODUCT_ID_4) },
+ { USB_DEVICE(USB_MOCCA_VENDOR_ID, USB_MOCCA_PRODUCT_ID_5) },
+ { USB_DEVICE(USB_MOCCA_VENDOR_ID, USB_MOCCA_PRODUCT_ID_6) },
+ { } /* Terminating entry */
+};
+MODULE_DEVICE_TABLE (usb, mocca_table);
+
+
+/* Get a minor range for your devices from the usb maintainer */
+#define USB_MOCCA_MINOR_BASE 221 /*TODO: change this minor number */
+
+/* our private defines. if this grows any larger, use your own .h file */
+#define MAX_TRANSFER ( PAGE_SIZE - 512 )
+#define WRITES_IN_FLIGHT 8
+
+/* Structure to hold all of our device specific stuff */
+struct mocca_skel {
+ struct usb_device * udev; /* the usb device for this device */
+ struct usb_interface * interface; /* the interface for this device */
+ struct semaphore limit_sem; /* limiting the number of writes in progress */
+ unsigned char * bulk_in_buffer; /* the buffer to receive data */
+ size_t bulk_in_size; /* the size of the receive buffer */
+ __u8 bulk_in_endpointAddr; /* the address of the bulk in endpoint */
+ __u8 bulk_out_endpointAddr; /* the address of the bulk out endpoint */
+ struct kref kref;
+};
+#define to_mocca_dev(d) container_of(d, struct mocca_skel, kref)
+
+static struct usb_driver mocca_driver;
+static spinlock_t spinLock;
+
+static void mocca_delete(struct kref *kref)
+{
+ struct mocca_skel *dev = to_mocca_dev(kref);
+
+ usb_put_dev(dev->udev);
+ kfree (dev->bulk_in_buffer);
+ kfree (dev);
+}
+
+static int mocca_open(struct inode *inode, struct file *file)
+{
+ struct mocca_skel *dev;
+ struct usb_interface *interface;
+ int subminor;
+ int retval = 0;
+
+ subminor = iminor(inode);
+
+ interface = usb_find_interface(&mocca_driver, subminor);
+ if (!interface) {
+ printk(KERN_ERR "%s - error, can't find device for minor %d",
+ __FUNCTION__, subminor);
+ retval = -ENODEV;
+ goto exit;
+ }
+
+ dev = usb_get_intfdata(interface);
+ if (!dev) {
+ retval = -ENODEV;
+ goto exit;
+ }
+
+ /* increment our usage count for the device */
+ kref_get(&dev->kref);
+
+ /* save our object in the file's private structure */
+ file->private_data = dev;
+
+exit:
+ return retval;
+}
+
+static int mocca_release(struct inode *inode, struct file *file)
+{
+ struct mocca_skel *dev;
+
+ dev = (struct mocca_skel *)file->private_data;
+ if (dev == NULL)
+ return -ENODEV;
+
+ /* decrement the count on our device */
+ kref_put(&dev->kref, mocca_delete);
+ return 0;
+}
+
+static ssize_t mocca_read(struct file *file, char *buffer, size_t count, loff_t *ppos)
+{
+ struct mocca_skel *dev;
+ int retval = 0;
+ int bytes_read;
+
+ dev = (struct mocca_skel *)file->private_data;
+
+ /* do a blocking bulk read to get data from the device */
+ retval = usb_bulk_msg(dev->udev,
+ usb_rcvbulkpipe(dev->udev, dev->bulk_in_endpointAddr),
+ dev->bulk_in_buffer,
+ min(dev->bulk_in_size, count),
+ &bytes_read, 10000);
+
+ /* if the read was successful, copy the data to userspace */
+ if (!retval) {
+ if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read))
+ retval = -EFAULT;
+ else
+ retval = bytes_read;
+ }
+
+ return retval;
+}
+
+static void mocca_write_bulk_callback(struct urb *urb)
+{
+ struct mocca_skel *dev;
+
+ dev = (struct mocca_skel *)urb->context;
+
+ /* sync/async unlink faults aren't errors */
+ if (urb->status &&
+ !(urb->status == -ENOENT ||
+ urb->status == -ECONNRESET ||
+ urb->status == -ESHUTDOWN)) {
+ printk(KERN_ERR "%s - nonzero write bulk status received: %d",
+ __FUNCTION__, urb->status);
+ }
+
+ /* free up our allocated buffer */
+ usb_free_coherent(urb->dev, urb->transfer_buffer_length,
+ urb->transfer_buffer, urb->transfer_dma);
+ up(&dev->limit_sem);
+}
+
+static ssize_t mocca_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos)
+{
+ struct mocca_skel *dev;
+ int retval = 0;
+ struct urb *urb = NULL;
+ char *buf = NULL;
+ size_t writesize = min(count, (size_t)MAX_TRANSFER);
+
+ dev = (struct mocca_skel *)file->private_data;
+
+ /* verify that we actually have some data to write */
+ if (count == 0)
+ goto exit;
+
+ /* limit the number of URBs in flight to stop a user from using up all RAM */
+ if (down_interruptible(&dev->limit_sem)) {
+ retval = -ERESTARTSYS;
+ goto exit;
+ }
+
+ /* create a urb, and a buffer for it, and copy the data to the urb */
+ urb = usb_alloc_urb(0, GFP_KERNEL);
+ if (!urb) {
+ retval = -ENOMEM;
+ goto error;
+ }
+
+ buf = usb_alloc_coherent(dev->udev, writesize, GFP_KERNEL, &urb->transfer_dma);
+ if (!buf) {
+ retval = -ENOMEM;
+ goto error;
+ }
+
+ if (copy_from_user(buf, user_buffer, writesize)) {
+ retval = -EFAULT;
+ goto error;
+ }
+
+ /* initialize the urb properly */
+ usb_fill_bulk_urb(urb, dev->udev,
+ usb_sndbulkpipe(dev->udev, dev->bulk_out_endpointAddr),
+ buf, writesize, mocca_write_bulk_callback, dev);
+ urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
+
+ /* send the data out the bulk port */
+ retval = usb_submit_urb(urb, GFP_KERNEL);
+ if (retval) {
+ printk(KERN_ERR "%s - failed submitting write urb, error %d", __FUNCTION__, retval);
+ goto error;
+ }
+
+ /* release our reference to this urb, the USB core will eventually free it entirely */
+ usb_free_urb(urb);
+
+exit:
+ return writesize;
+
+error:
+ usb_free_coherent(dev->udev, writesize, buf, urb->transfer_dma);
+ usb_free_urb(urb);
+ up(&dev->limit_sem);
+ return retval;
+}
+
+static struct file_operations mocca_fops = {
+ .owner = THIS_MODULE,
+ .read = mocca_read,
+ .write = mocca_write,
+ .open = mocca_open,
+ .release = mocca_release,
+};
+
+/*
+ * usb class driver info in order to get a minor number from the usb core,
+ * and to have the device registered with the driver core
+ */
+static struct usb_class_driver mocca_class = {
+ .name = "mocca%d",
+ .fops = &mocca_fops,
+ .minor_base = USB_MOCCA_MINOR_BASE,
+};
+
+static int mocca_probe(struct usb_interface *interface, const struct usb_device_id *id)
+{
+ struct mocca_skel *dev = NULL;
+ struct usb_host_interface *iface_desc;
+ struct usb_endpoint_descriptor *endpoint;
+ size_t buffer_size;
+ int i;
+ int retval = -ENOMEM;
+
+ spin_lock_init(&spinLock);
+
+ /* allocate memory for our device state and initialize it */
+ dev = kzalloc(sizeof(*dev), GFP_KERNEL);
+ if (dev == NULL) {
+ printk(KERN_ERR "Out of memory");
+ goto error;
+ }
+ kref_init(&dev->kref);
+ sema_init(&dev->limit_sem, WRITES_IN_FLIGHT);
+
+ dev->udev = usb_get_dev(interface_to_usbdev(interface));
+ dev->interface = interface;
+
+ /* set up the endpoint information */
+ /* use only the first bulk-in and bulk-out endpoints */
+ iface_desc = interface->cur_altsetting;
+ for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) {
+ endpoint = &iface_desc->endpoint[i].desc;
+
+ if (!dev->bulk_in_endpointAddr &&
+ ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK)
+ == USB_DIR_IN) &&
+ ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
+ == USB_ENDPOINT_XFER_BULK)) {
+ /* we found a bulk in endpoint */
+ buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
+ dev->bulk_in_size = buffer_size;
+ dev->bulk_in_endpointAddr = endpoint->bEndpointAddress;
+ dev->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL);
+ if (!dev->bulk_in_buffer) {
+ printk(KERN_ERR "Could not allocate bulk_in_buffer");
+ goto error;
+ }
+ printk(KERN_INFO "Found bulk-in pipe, adress: %x, max packet size: %d", endpoint->bEndpointAddress, endpoint->wMaxPacketSize);
+ }
+
+ if (!dev->bulk_out_endpointAddr &&
+ ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK)
+ == USB_DIR_OUT) &&
+ ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
+ == USB_ENDPOINT_XFER_BULK)) {
+ /* we found a bulk out endpoint */
+ dev->bulk_out_endpointAddr = endpoint->bEndpointAddress;
+ printk(KERN_INFO "Found bulk-out pipe, adress: %x, max packet size: %d", endpoint->bEndpointAddress, endpoint->wMaxPacketSize);
+ }
+ }
+ if (!(dev->bulk_in_endpointAddr && dev->bulk_out_endpointAddr)) {
+ printk(KERN_ERR "Could not find both bulk-in and bulk-out endpoints");
+ goto error;
+ }
+
+ /* save our data pointer in this interface device */
+ usb_set_intfdata(interface, dev);
+
+ /* we can register the device now, as it is ready */
+ retval = usb_register_dev(interface, &mocca_class);
+ if (retval) {
+ /* something prevented us from registering this driver */
+ printk(KERN_ERR "Not able to get a minor for this device.");
+ usb_set_intfdata(interface, NULL);
+ goto error;
+ }
+
+ /* let the user know what node this device is now attached to */
+ dev_info(&interface->dev,
+ "K2L MOCCA device now attached to mocca%d",
+ interface->minor);
+ return 0;
+
+error:
+ if (dev)
+ kref_put(&dev->kref, mocca_delete);
+ return retval;
+}
+
+static void mocca_disconnect(struct usb_interface *interface)
+{
+ struct mocca_skel *dev;
+ int minor = interface->minor;
+
+ /* prevent mocca_open() from racing mocca_disconnect() */
+ spin_lock(&spinLock);
+
+ dev = usb_get_intfdata(interface);
+ usb_set_intfdata(interface, NULL);
+
+ /* give back our minor */
+ usb_deregister_dev(interface, &mocca_class);
+
+ spin_unlock(&spinLock);
+
+ /* decrement our usage count */
+ kref_put(&dev->kref, mocca_delete);
+
+ dev_info(&interface->dev, "K2L MOCCA device #%d now disconnected", minor);
+}
+
+static struct usb_driver mocca_driver = {
+ .name = "k2l-mocca",
+ .probe = mocca_probe,
+ .disconnect = mocca_disconnect,
+ .id_table = mocca_table,
+};
+
+static int __init usb_mocca_init(void)
+{
+ int result;
+
+ /* register this driver with the USB subsystem */
+ result = usb_register(&mocca_driver);
+ if (result)
+ printk(KERN_ERR "usb_register failed. Error number %d", result);
+
+ return result;
+}
+
+static void __exit usb_mocca_exit(void)
+{
+ /* deregister this driver with the USB subsystem */
+ usb_deregister(&mocca_driver);
+}
+
+module_init (usb_mocca_init);
+module_exit (usb_mocca_exit);
+
+MODULE_LICENSE("GPL");
diff --git a/Usb-Driver/mocca-usb.ko b/Usb-Driver/mocca-usb.ko
new file mode 100644
index 0000000..014666f
--- /dev/null
+++ b/Usb-Driver/mocca-usb.ko
Binary files differ
diff --git a/Usb-Driver/mocca-usb.mod.c b/Usb-Driver/mocca-usb.mod.c
new file mode 100644
index 0000000..4f31c72
--- /dev/null
+++ b/Usb-Driver/mocca-usb.mod.c
@@ -0,0 +1,27 @@
+#include <linux/module.h>
+#include <linux/vermagic.h>
+#include <linux/compiler.h>
+
+MODULE_INFO(vermagic, VERMAGIC_STRING);
+
+struct module __this_module
+__attribute__((section(".gnu.linkonce.this_module"))) = {
+ .name = KBUILD_MODNAME,
+ .init = init_module,
+#ifdef CONFIG_MODULE_UNLOAD
+ .exit = cleanup_module,
+#endif
+ .arch = MODULE_ARCH_INIT,
+};
+
+static const char __module_depends[]
+__used
+__attribute__((section(".modinfo"))) =
+"depends=";
+
+MODULE_ALIAS("usb:v184Fp0007d*dc*dsc*dp*ic*isc*ip*in*");
+MODULE_ALIAS("usb:v184Fp0008d*dc*dsc*dp*ic*isc*ip*in*");
+MODULE_ALIAS("usb:v184Fp0009d*dc*dsc*dp*ic*isc*ip*in*");
+MODULE_ALIAS("usb:v184Fp0010d*dc*dsc*dp*ic*isc*ip*in*");
+MODULE_ALIAS("usb:v184Fp0011d*dc*dsc*dp*ic*isc*ip*in*");
+MODULE_ALIAS("usb:v184Fp0012d*dc*dsc*dp*ic*isc*ip*in*");
diff --git a/Usb-Driver/mocca-usb.mod.o b/Usb-Driver/mocca-usb.mod.o
new file mode 100644
index 0000000..849eb34
--- /dev/null
+++ b/Usb-Driver/mocca-usb.mod.o
Binary files differ
diff --git a/Usb-Driver/mocca-usb.o b/Usb-Driver/mocca-usb.o
new file mode 100644
index 0000000..6a1dcb1
--- /dev/null
+++ b/Usb-Driver/mocca-usb.o
Binary files differ
diff --git a/Usb-Driver/modules.order b/Usb-Driver/modules.order
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Usb-Driver/modules.order
diff --git a/Usb-Driver/test-mocca.c b/Usb-Driver/test-mocca.c
new file mode 100644
index 0000000..70c4760
--- /dev/null
+++ b/Usb-Driver/test-mocca.c
@@ -0,0 +1,68 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <pthread.h>
+
+uint8_t relayOn[] = {
+ 0x04, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x13,
+ 0x02, 0x0b, 0x70, 0x07, 0x00, 0x00, 0x01, 0x00
+};
+
+uint8_t relayOff[] = {
+ 0x04, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x13,
+ 0x02, 0x0b, 0x70, 0x07, 0x00, 0x00, 0x00, 0x00
+};
+
+uint8_t readBuffer[1024];
+
+static int32_t repeat = 10;
+static pthread_t readingThread;
+static bool allowRun = true;
+static int fd = -1;
+
+void* executeReading ( void* arg )
+{
+ uint32_t bytesRead;
+ uint32_t i;
+
+ while ( allowRun ) {
+ bytesRead = read ( fd, readBuffer, sizeof ( readBuffer ) );
+ if ( bytesRead > 0 ) {
+ printf ( "Received bytes (hex): " );
+ for ( i = 0; i < bytesRead; i++ ) {
+ printf ( "%02X ", readBuffer[i] );
+ }
+ printf ( "\n" );
+ }
+ }
+ pthread_exit ( 0 );
+}
+
+int main ( int argc, char* argv[] )
+{
+ int ret;
+ if ( ( fd = open ( "/dev/mocca0", O_RDWR|O_SYNC ) ) < 0 ) {
+ printf ( "Failed to open mocca0 device\n" );
+ exit ( -4 );
+ }
+ ret = pthread_create ( &readingThread, NULL, executeReading, NULL );
+ if ( ret ) {
+ printf ( "Failed to start reader thread\n" );
+ } else {
+ while ( --repeat >= 0 ) {
+ write ( fd, relayOn, sizeof ( relayOn ) );
+ usleep ( 1000000 );
+ write ( fd, relayOff, sizeof ( relayOff ) );
+ usleep ( 1000000 );
+ }
+ }
+ allowRun = false;
+
+ close ( fd );
+ return 0;
+}
diff --git a/Usb-Driver/ubuntu-make b/Usb-Driver/ubuntu-make
new file mode 100644
index 0000000..d4b85af
--- /dev/null
+++ b/Usb-Driver/ubuntu-make
@@ -0,0 +1,16 @@
+obj-m := mocc$(MAKE) V=0 -C $(KDIR) SUBDIRS=$(PWD) modules $(PROJECT_C_FLAGS)
+
+PWD = $(shell pwd)
+
+default:
+ @echo --------------------------------------
+ @echo pwd = $(PWD)
+ @echo CURRENT = $(CURRENT)
+ @echo KDIR = $(KDIR)
+ make -C $(KDIR) SUBDIRS=$(PWD) modules
+
+test:
+ gcc test-mocca.c -o test-mocca -lpthread
+
+clean:
+ -rm -f *.o *.ko .*.cmd .*.flags *.mod.c