/pcivme-3.2/driver/pcivme.ko |
Cannot display: file marked as a binary type.
|
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: pcivme-3.2/driver/fops.h |
=================================================================== |
--- pcivme-3.2/driver/fops.h (revision 9) |
+++ pcivme-3.2/driver/fops.h (nonexistent) |
@@ -1,59 +0,0 @@ |
-#ifndef __FOPS_H__ |
-#define __FOPS_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// fops.h -- the file operations header for the PCIVME PCI to VME Interface |
-// |
-// $Log: fops.h,v $ |
-// Revision 1.4 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.3 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.2 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.1.1.1 2002/10/09 19:36:30 klaus |
-// initial import |
-// |
-//**************************************************************************** |
- |
-/*--- INCLUDES ----------------------------------------------------------------------------*/ |
-#include <linux/fs.h> |
- |
-/*--- TYPEDEFS ----------------------------------------------------------------------------*/ |
- |
-/*--- PROTOTYPES --------------------------------------------------------------------------*/ |
-extern struct file_operations pcivme_fops; |
- |
-#endif // __FOPS_H__ |
Index: pcivme-3.2/driver/askpci.h |
=================================================================== |
--- pcivme-3.2/driver/askpci.h (revision 9) |
+++ pcivme-3.2/driver/askpci.h (nonexistent) |
@@ -1,67 +0,0 @@ |
-#ifndef __ASKPCI_H__ |
-#define __ASKPCI_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// askpci.h - definitions for basic access functions of pci information |
-// |
-// $Log: askpci.h,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-/*--- INCLUDES -------------------------------------------------------------------------*/ |
-#include <linux/version.h> |
-#include <linux/pci.h> |
-#include <asm/types.h> |
-#include <linux/list.h> |
- |
-#include "main.h" |
- |
-/*--- TYPEDEFS -------------------------------------------------------------------------*/ |
- |
-/*--- PROTOTYPES -------------------------------------------------------------------------*/ |
-int GetPCIConfig(DRIVER_OBJ *drv, u16 device_id, u16 vendor_id, u16 subsys_id, u16 subven_id); |
-void DeletePCIConfig(DRIVER_OBJ *drv); |
- |
-#endif /* __ASKPCI_H__ */ |
- |
- |
Index: pcivme-3.2/driver/.pcivme.o.cmd |
=================================================================== |
--- pcivme-3.2/driver/.pcivme.o.cmd (revision 9) |
+++ pcivme-3.2/driver/.pcivme.o.cmd (nonexistent) |
@@ -1 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/pcivme.o := ld -m elf_i386 -r -o /home/f9daq/pcivme-3.2/driver/pcivme.o /home/f9daq/pcivme-3.2/driver/./main.o /home/f9daq/pcivme-3.2/driver/./askpci.o /home/f9daq/pcivme-3.2/driver/./plxbug.o /home/f9daq/pcivme-3.2/driver/./fops.o |
Index: pcivme-3.2/driver/.main.o.cmd |
=================================================================== |
--- pcivme-3.2/driver/.main.o.cmd (revision 9) |
+++ pcivme-3.2/driver/.main.o.cmd (nonexistent) |
@@ -1,787 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/./main.o := gcc -Wp,-MD,/home/f9daq/pcivme-3.2/driver/./.main.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6/include -I/usr/src/linux-headers-3.5.0-28-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-headers-3.5.0-28-generic/include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I. -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(main)" -D"KBUILD_MODNAME=KBUILD_STR(pcivme)" -c -o /home/f9daq/pcivme-3.2/driver/./.tmp_main.o /home/f9daq/pcivme-3.2/driver/./main.c |
- |
-source_/home/f9daq/pcivme-3.2/driver/./main.o := /home/f9daq/pcivme-3.2/driver/./main.c |
- |
-deps_/home/f9daq/pcivme-3.2/driver/./main.o := \ |
- /home/f9daq/pcivme-3.2/driver/./common.h \ |
- $(wildcard include/config/modversions.h) \ |
- include/linux/version.h \ |
- include/config/modversions.h \ |
- include/linux/module.h \ |
- $(wildcard include/config/sysfs.h) \ |
- $(wildcard include/config/modules.h) \ |
- $(wildcard include/config/unused/symbols.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/module/unload.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/types.h \ |
- include/asm-generic/types.h \ |
- include/asm-generic/int-ll64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitsperlong.h \ |
- include/asm-generic/bitsperlong.h \ |
- include/linux/posix_types.h \ |
- include/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) \ |
- include/linux/compiler-gcc.h \ |
- $(wildcard include/config/arch/supports/optimized/inlining.h) \ |
- $(wildcard include/config/optimize/inlining.h) \ |
- include/linux/compiler-gcc4.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types.h \ |
- $(wildcard include/config/x86/32.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types_32.h \ |
- include/asm-generic/posix_types.h \ |
- include/linux/poison.h \ |
- $(wildcard include/config/illegal/pointer/value.h) \ |
- include/linux/const.h \ |
- include/linux/stat.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/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) \ |
- $(wildcard include/config/numa.h) \ |
- $(wildcard include/config/compaction.h) \ |
- include/linux/sysinfo.h \ |
- /usr/lib/gcc/i686-linux-gnu/4.6/include/stdarg.h \ |
- include/linux/linkage.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/linkage.h \ |
- $(wildcard include/config/x86/64.h) \ |
- $(wildcard include/config/x86/alignment/16.h) \ |
- include/linux/stringify.h \ |
- include/linux/bitops.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitops.h \ |
- $(wildcard include/config/x86/cmov.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/alternative.h \ |
- $(wildcard include/config/paravirt.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/asm.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpufeature.h \ |
- $(wildcard include/config/x86/invlpg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/required-features.h \ |
- $(wildcard include/config/x86/minimum/cpu/family.h) \ |
- $(wildcard include/config/math/emulation.h) \ |
- $(wildcard include/config/x86/pae.h) \ |
- $(wildcard include/config/x86/cmpxchg64.h) \ |
- $(wildcard include/config/x86/use/3dnow.h) \ |
- $(wildcard include/config/x86/p6/nop.h) \ |
- include/asm-generic/bitops/fls64.h \ |
- include/asm-generic/bitops/find.h \ |
- $(wildcard include/config/generic/find/first/bit.h) \ |
- include/asm-generic/bitops/sched.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/arch_hweight.h \ |
- include/asm-generic/bitops/const_hweight.h \ |
- include/asm-generic/bitops/le.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/byteorder.h \ |
- include/linux/byteorder/little_endian.h \ |
- include/linux/swab.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swab.h \ |
- $(wildcard include/config/x86/bswap.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/typecheck.h \ |
- include/linux/printk.h \ |
- $(wildcard include/config/printk.h) \ |
- $(wildcard include/config/dynamic/debug.h) \ |
- include/linux/init.h \ |
- $(wildcard include/config/hotplug.h) \ |
- include/linux/dynamic_debug.h \ |
- include/linux/string.h \ |
- $(wildcard include/config/binary/printf.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string_32.h \ |
- $(wildcard include/config/kmemcheck.h) \ |
- include/linux/errno.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/errno.h \ |
- include/asm-generic/errno.h \ |
- include/asm-generic/errno-base.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/div64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cache.h \ |
- $(wildcard include/config/x86/l1/cache/shift.h) \ |
- $(wildcard include/config/x86/internode/cache/shift.h) \ |
- $(wildcard include/config/x86/vsmp.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/preempt/tracer.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bug.h \ |
- $(wildcard include/config/bug.h) \ |
- $(wildcard include/config/debug/bugverbose.h) \ |
- include/asm-generic/bug.h \ |
- $(wildcard include/config/generic/bug/relative/pointers.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/thread_info.h \ |
- $(wildcard include/config/ia32/emulation.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32_types.h \ |
- $(wildcard include/config/highmem4g.h) \ |
- $(wildcard include/config/highmem64g.h) \ |
- $(wildcard include/config/page/offset.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32.h \ |
- $(wildcard include/config/hugetlb/page.h) \ |
- $(wildcard include/config/debug/virtual.h) \ |
- $(wildcard include/config/flatmem.h) \ |
- $(wildcard include/config/x86/3dnow.h) \ |
- include/asm-generic/memory_model.h \ |
- $(wildcard include/config/discontigmem.h) \ |
- $(wildcard include/config/sparsemem/vmemmap.h) \ |
- $(wildcard include/config/sparsemem.h) \ |
- include/asm-generic/getorder.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor.h \ |
- $(wildcard include/config/cc/stackprotector.h) \ |
- $(wildcard include/config/m386.h) \ |
- $(wildcard include/config/m486.h) \ |
- $(wildcard include/config/x86/debugctlmsr.h) \ |
- $(wildcard include/config/cpu/sup/amd.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor-flags.h \ |
- $(wildcard include/config/vm86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vm86.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/segment.h \ |
- $(wildcard include/config/x86/32/lazy/gs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt_types.h \ |
- $(wildcard include/config/x86/local/apic.h) \ |
- $(wildcard include/config/paravirt/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc_defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/kmap_types.h \ |
- $(wildcard include/config/debug/highmem.h) \ |
- include/asm-generic/kmap_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_types.h \ |
- $(wildcard include/config/compat/vdso.h) \ |
- $(wildcard include/config/proc/fs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- $(wildcard include/config/highmem.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level_types.h \ |
- include/asm-generic/pgtable-nopud.h \ |
- include/asm-generic/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/math_emu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sigcontext.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/current.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/percpu.h \ |
- $(wildcard include/config/x86/64/smp.h) \ |
- include/asm-generic/percpu.h \ |
- $(wildcard include/config/have/setup/per/cpu/area.h) \ |
- include/linux/threads.h \ |
- $(wildcard include/config/nr/cpus.h) \ |
- $(wildcard include/config/base/small.h) \ |
- include/linux/percpu-defs.h \ |
- $(wildcard include/config/debug/force/weak/per/cpu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr-index.h \ |
- include/linux/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ioctl.h \ |
- include/asm-generic/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpumask.h \ |
- include/linux/cpumask.h \ |
- $(wildcard include/config/cpumask/offstack.h) \ |
- $(wildcard include/config/hotplug/cpu.h) \ |
- $(wildcard include/config/debug/per/cpu/maps.h) \ |
- $(wildcard include/config/disable/obsolete/cpumask/functions.h) \ |
- include/linux/bitmap.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt.h \ |
- $(wildcard include/config/transparent/hugepage.h) \ |
- $(wildcard include/config/paravirt/spinlocks.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/nops.h \ |
- $(wildcard include/config/mk7.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/special_insns.h \ |
- include/linux/personality.h \ |
- include/linux/math64.h \ |
- include/linux/err.h \ |
- include/linux/irqflags.h \ |
- $(wildcard include/config/trace/irqflags.h) \ |
- $(wildcard include/config/irqsoff/tracer.h) \ |
- $(wildcard include/config/trace/irqflags/support.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irqflags.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ftrace.h \ |
- $(wildcard include/config/function/tracer.h) \ |
- $(wildcard include/config/dynamic/ftrace.h) \ |
- include/linux/atomic.h \ |
- $(wildcard include/config/arch/has/atomic/or.h) \ |
- $(wildcard include/config/generic/atomic64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg_32.h \ |
- $(wildcard include/config/x86/cmpxchg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic64_32.h \ |
- include/asm-generic/atomic-long.h \ |
- include/linux/bottom_half.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/barrier.h \ |
- $(wildcard include/config/x86/ppro/fence.h) \ |
- $(wildcard include/config/x86/oostore.h) \ |
- include/linux/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwlock.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock.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/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/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/cgroup/mem/res/ctlr.h) \ |
- $(wildcard include/config/memory/hotplug.h) \ |
- $(wildcard include/config/have/memblock/node/map.h) \ |
- $(wildcard include/config/flat/node/mem/map.h) \ |
- $(wildcard include/config/no/bootmem.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/have/memblock/node.h) \ |
- $(wildcard include/config/need/multiple/nodes.h) \ |
- $(wildcard include/config/have/arch/early/pfn/to/nid.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 \ |
- include/linux/numa.h \ |
- $(wildcard include/config/nodes/shift.h) \ |
- include/linux/nodemask.h \ |
- include/linux/pageblock-flags.h \ |
- $(wildcard include/config/hugetlb/page/size/variable.h) \ |
- include/generated/bounds.h \ |
- include/linux/memory_hotplug.h \ |
- $(wildcard include/config/memory/hotremove.h) \ |
- $(wildcard include/config/have/arch/nodedata/extension.h) \ |
- include/linux/notifier.h \ |
- include/linux/mutex.h \ |
- $(wildcard include/config/debug/mutexes.h) \ |
- $(wildcard include/config/have/arch/mutex/cpu/relax.h) \ |
- include/linux/rwsem.h \ |
- $(wildcard include/config/rwsem/generic/spinlock.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwsem.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/tiny/rcu.h) \ |
- $(wildcard include/config/tiny/preempt/rcu.h) \ |
- $(wildcard include/config/debug/objects/rcu/head.h) \ |
- $(wildcard include/config/preempt/rt.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/linux/param.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/param.h \ |
- include/asm-generic/param.h \ |
- $(wildcard include/config/hz.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/timex.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/tsc.h \ |
- $(wildcard include/config/x86/tsc.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/smp.h \ |
- $(wildcard include/config/x86/io/apic.h) \ |
- $(wildcard include/config/x86/32/smp.h) \ |
- $(wildcard include/config/debug/nmi/selftest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec.h \ |
- $(wildcard include/config/x86/numaq.h) \ |
- $(wildcard include/config/eisa.h) \ |
- $(wildcard include/config/x86/mpparse.h) \ |
- $(wildcard include/config/acpi.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec_def.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/x86_init.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bootparam.h \ |
- include/linux/screen_info.h \ |
- include/linux/apm_bios.h \ |
- include/linux/edd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/e820.h \ |
- $(wildcard include/config/efi.h) \ |
- $(wildcard include/config/intel/txt.h) \ |
- $(wildcard include/config/hibernation.h) \ |
- $(wildcard include/config/memtest.h) \ |
- include/linux/ioport.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ist.h \ |
- include/video/edid.h \ |
- $(wildcard include/config/x86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apicdef.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apic.h \ |
- $(wildcard include/config/x86/x2apic.h) \ |
- include/linux/pm.h \ |
- $(wildcard include/config/pm.h) \ |
- $(wildcard include/config/pm/runtime.h) \ |
- $(wildcard include/config/pm/clk.h) \ |
- $(wildcard include/config/pm/generic/domains.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fixmap.h \ |
- $(wildcard include/config/provide/ohci1394/dma/init.h) \ |
- $(wildcard include/config/x86/visws/apic.h) \ |
- $(wildcard include/config/x86/f00f/bug.h) \ |
- $(wildcard include/config/x86/cyclone/timer.h) \ |
- $(wildcard include/config/pci/mmconfig.h) \ |
- $(wildcard include/config/x86/intel/mid.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/acpi.h \ |
- $(wildcard include/config/acpi/numa.h) \ |
- include/acpi/pdc_intel.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa.h \ |
- $(wildcard include/config/numa/emu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/topology.h \ |
- $(wildcard include/config/x86/ht.h) \ |
- include/asm-generic/topology.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mmu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/realmode.h \ |
- $(wildcard include/config/acpi/sleep.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io.h \ |
- $(wildcard include/config/xen.h) \ |
- include/asm-generic/iomap.h \ |
- $(wildcard include/config/has/ioport.h) \ |
- $(wildcard include/config/pci.h) \ |
- $(wildcard include/config/generic/iomap.h) \ |
- include/asm-generic/pci_iomap.h \ |
- $(wildcard include/config/no/generic/pci/ioport/map.h) \ |
- $(wildcard include/config/generic/pci/iomap.h) \ |
- include/linux/vmalloc.h \ |
- $(wildcard include/config/mmu.h) \ |
- include/xen/xen.h \ |
- $(wildcard include/config/xen/dom0.h) \ |
- include/xen/interface/xen.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pvclock-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/hypervisor.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io_apic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq_vectors.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) \ |
- include/linux/pfn.h \ |
- include/linux/mmdebug.h \ |
- $(wildcard include/config/debug/vm.h) \ |
- include/linux/sysctl.h \ |
- $(wildcard include/config/sysctl.h) \ |
- include/linux/rbtree.h \ |
- include/linux/elf.h \ |
- include/linux/elf-em.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/elf.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/user.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/user_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/auxvec.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vdso.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ldt.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/jump_label.h \ |
- include/linux/export.h \ |
- $(wildcard include/config/symbol/prefix.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/module.h \ |
- $(wildcard include/config/m586.h) \ |
- $(wildcard include/config/m586tsc.h) \ |
- $(wildcard include/config/m586mmx.h) \ |
- $(wildcard include/config/mcore2.h) \ |
- $(wildcard include/config/matom.h) \ |
- $(wildcard include/config/m686.h) \ |
- $(wildcard include/config/mpentiumii.h) \ |
- $(wildcard include/config/mpentiumiii.h) \ |
- $(wildcard include/config/mpentiumm.h) \ |
- $(wildcard include/config/mpentium4.h) \ |
- $(wildcard include/config/mk6.h) \ |
- $(wildcard include/config/mk8.h) \ |
- $(wildcard include/config/melan.h) \ |
- $(wildcard include/config/mcrusoe.h) \ |
- $(wildcard include/config/mefficeon.h) \ |
- $(wildcard include/config/mwinchipc6.h) \ |
- $(wildcard include/config/mwinchip3d.h) \ |
- $(wildcard include/config/mcyrixiii.h) \ |
- $(wildcard include/config/mviac3/2.h) \ |
- $(wildcard include/config/mviac7.h) \ |
- $(wildcard include/config/mgeodegx1.h) \ |
- $(wildcard include/config/mgeode/lx.h) \ |
- include/asm-generic/module.h \ |
- include/linux/sched.h \ |
- $(wildcard include/config/sched/debug.h) \ |
- $(wildcard include/config/no/hz.h) \ |
- $(wildcard include/config/lockup/detector.h) \ |
- $(wildcard include/config/detect/hung/task.h) \ |
- $(wildcard include/config/core/dump/default/elf/headers.h) \ |
- $(wildcard include/config/sched/autogroup.h) \ |
- $(wildcard include/config/virt/cpu/accounting.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/epoll.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/sysvipc.h) \ |
- $(wildcard include/config/auditsyscall.h) \ |
- $(wildcard include/config/rt/mutexes.h) \ |
- $(wildcard include/config/block.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/have/hw/breakpoint.h) \ |
- $(wildcard include/config/uprobes.h) \ |
- $(wildcard include/config/have/unstable/sched/clock.h) \ |
- $(wildcard include/config/irq/time/accounting.h) \ |
- $(wildcard include/config/cfs/bandwidth.h) \ |
- $(wildcard include/config/stack/growsup.h) \ |
- $(wildcard include/config/mm/owner.h) \ |
- include/linux/capability.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) \ |
- include/linux/auxvec.h \ |
- include/linux/prio_tree.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uprobes.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cputime.h \ |
- include/asm-generic/cputime.h \ |
- include/linux/sem.h \ |
- include/linux/ipc.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ipcbuf.h \ |
- include/asm-generic/ipcbuf.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sembuf.h \ |
- include/linux/signal.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/signal.h \ |
- include/asm-generic/signal-defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/siginfo.h \ |
- include/asm-generic/siginfo.h \ |
- include/linux/pid.h \ |
- include/linux/proportions.h \ |
- include/linux/percpu_counter.h \ |
- include/linux/seccomp.h \ |
- $(wildcard include/config/seccomp.h) \ |
- $(wildcard include/config/seccomp/filter.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/seccomp.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/seccomp_32.h \ |
- include/linux/unistd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/unistd.h \ |
- $(wildcard include/config/x86/x32/abi.h) \ |
- arch/x86/include/generated/asm/unistd_32.h \ |
- include/linux/rculist.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/resource.h \ |
- include/asm-generic/resource.h \ |
- include/linux/hrtimer.h \ |
- $(wildcard include/config/high/res/timers.h) \ |
- $(wildcard include/config/timerfd.h) \ |
- include/linux/timerqueue.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) \ |
- $(wildcard include/config/security.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/aio.h \ |
- include/linux/aio_abi.h \ |
- include/linux/uio.h \ |
- include/linux/proc_fs.h \ |
- $(wildcard include/config/proc/devicetree.h) \ |
- $(wildcard include/config/proc/kcore.h) \ |
- include/linux/slab.h \ |
- $(wildcard include/config/slab/debug.h) \ |
- $(wildcard include/config/failslab.h) \ |
- $(wildcard include/config/slub.h) \ |
- $(wildcard include/config/slob.h) \ |
- $(wildcard include/config/debug/slab.h) \ |
- $(wildcard include/config/slab.h) \ |
- include/linux/slub_def.h \ |
- $(wildcard include/config/slub/stats.h) \ |
- $(wildcard include/config/slub/debug.h) \ |
- include/linux/kmemleak.h \ |
- $(wildcard include/config/debug/kmemleak.h) \ |
- include/linux/fs.h \ |
- $(wildcard include/config/fs/posix/acl.h) \ |
- $(wildcard include/config/quota.h) \ |
- $(wildcard include/config/fsnotify.h) \ |
- $(wildcard include/config/ima.h) \ |
- $(wildcard include/config/debug/writecount.h) \ |
- $(wildcard include/config/file/locking.h) \ |
- $(wildcard include/config/fs/xip.h) \ |
- $(wildcard include/config/migration.h) \ |
- include/linux/limits.h \ |
- include/linux/blk_types.h \ |
- $(wildcard include/config/blk/cgroup.h) \ |
- $(wildcard include/config/blk/dev/integrity.h) \ |
- include/linux/kdev_t.h \ |
- include/linux/dcache.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/semaphore.h \ |
- include/linux/fiemap.h \ |
- include/linux/shrinker.h \ |
- include/linux/migrate_mode.h \ |
- include/linux/quota.h \ |
- $(wildcard include/config/quota/netlink/interface.h) \ |
- include/linux/dqblk_xfs.h \ |
- include/linux/dqblk_v1.h \ |
- include/linux/dqblk_v2.h \ |
- include/linux/dqblk_qtree.h \ |
- include/linux/nfs_fs_i.h \ |
- include/linux/fcntl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fcntl.h \ |
- include/asm-generic/fcntl.h \ |
- include/linux/magic.h \ |
- include/linux/pci.h \ |
- $(wildcard include/config/pci/iov.h) \ |
- $(wildcard include/config/pcieaspm.h) \ |
- $(wildcard include/config/pci/msi.h) \ |
- $(wildcard include/config/pci/ats.h) \ |
- $(wildcard include/config/pcieportbus.h) \ |
- $(wildcard include/config/pcieaer.h) \ |
- $(wildcard include/config/pcie/ecrc.h) \ |
- $(wildcard include/config/ht/irq.h) \ |
- $(wildcard include/config/pci/domains.h) \ |
- $(wildcard include/config/pci/quirks.h) \ |
- $(wildcard include/config/hotplug/pci.h) \ |
- $(wildcard include/config/of.h) \ |
- $(wildcard include/config/eeh.h) \ |
- include/linux/pci_regs.h \ |
- include/linux/mod_devicetable.h \ |
- include/linux/device.h \ |
- $(wildcard include/config/debug/devres.h) \ |
- $(wildcard include/config/devtmpfs.h) \ |
- $(wildcard include/config/sysfs/deprecated.h) \ |
- include/linux/klist.h \ |
- include/linux/ratelimit.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/device.h \ |
- $(wildcard include/config/x86/dev/dma/ops.h) \ |
- $(wildcard include/config/intel/iommu.h) \ |
- $(wildcard include/config/amd/iommu.h) \ |
- include/linux/pm_wakeup.h \ |
- include/linux/io.h \ |
- include/linux/irqreturn.h \ |
- include/linux/pci_ids.h \ |
- include/linux/pci-dma.h \ |
- include/linux/dmapool.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/scatterlist.h \ |
- include/asm-generic/scatterlist.h \ |
- $(wildcard include/config/debug/sg.h) \ |
- $(wildcard include/config/need/sg/dma/length.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pci.h \ |
- include/linux/mm.h \ |
- $(wildcard include/config/ksm.h) \ |
- $(wildcard include/config/debug/pagealloc.h) \ |
- $(wildcard include/config/hugetlbfs.h) \ |
- include/linux/debug_locks.h \ |
- $(wildcard include/config/debug/locking/api/selftests.h) \ |
- include/linux/range.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32.h \ |
- $(wildcard include/config/highpte.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level.h \ |
- include/asm-generic/pgtable.h \ |
- include/linux/page-flags.h \ |
- $(wildcard include/config/pageflags/extended.h) \ |
- $(wildcard include/config/arch/uses/pg/uncached.h) \ |
- $(wildcard include/config/memory/failure.h) \ |
- $(wildcard include/config/swap.h) \ |
- $(wildcard include/config/s390.h) \ |
- include/linux/huge_mm.h \ |
- include/linux/vmstat.h \ |
- $(wildcard include/config/vm/event/counters.h) \ |
- include/linux/vm_event_item.h \ |
- include/asm-generic/pci-dma-compat.h \ |
- include/linux/dma-mapping.h \ |
- $(wildcard include/config/has/dma.h) \ |
- $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \ |
- $(wildcard include/config/have/dma/attrs.h) \ |
- $(wildcard include/config/need/dma/map/state.h) \ |
- include/linux/dma-attrs.h \ |
- include/linux/dma-direction.h \ |
- include/linux/scatterlist.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/dma-mapping.h \ |
- $(wildcard include/config/isa.h) \ |
- $(wildcard include/config/x86/dma/remap.h) \ |
- include/linux/kmemcheck.h \ |
- include/linux/dma-debug.h \ |
- $(wildcard include/config/dma/api/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swiotlb.h \ |
- $(wildcard include/config/swiotlb.h) \ |
- include/linux/swiotlb.h \ |
- include/asm-generic/dma-coherent.h \ |
- $(wildcard include/config/have/generic/dma/coherent.h) \ |
- include/linux/dma-contiguous.h \ |
- $(wildcard include/config/cma/areas.h) \ |
- include/asm-generic/dma-mapping-common.h \ |
- include/asm-generic/pci.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) \ |
- include/linux/irqnr.h \ |
- include/linux/hardirq.h \ |
- include/linux/ftrace_irq.h \ |
- $(wildcard include/config/ftrace/nmi/enter.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/hardirq.h \ |
- $(wildcard include/config/x86/thermal/vector.h) \ |
- $(wildcard include/config/x86/mce/threshold.h) \ |
- include/linux/irq.h \ |
- $(wildcard include/config/generic/pending/irq.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq_regs.h \ |
- include/linux/irqdesc.h \ |
- $(wildcard include/config/irq/preflow/fasteoi.h) \ |
- $(wildcard include/config/sparse/irq.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/hw_irq.h \ |
- $(wildcard include/config/irq/remap.h) \ |
- include/linux/profile.h \ |
- $(wildcard include/config/profiling.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sections.h \ |
- $(wildcard include/config/debug/rodata.h) \ |
- include/asm-generic/sections.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uaccess.h \ |
- $(wildcard include/config/x86/wp/works/ok.h) \ |
- $(wildcard include/config/x86/intel/usercopy.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uaccess_32.h \ |
- $(wildcard include/config/debug/strict/user/copy/checks.h) \ |
- /home/f9daq/pcivme-3.2/driver/./askpci.h \ |
- /home/f9daq/pcivme-3.2/driver/./main.h \ |
- /home/f9daq/pcivme-3.2/driver/./plxbug.h \ |
- /home/f9daq/pcivme-3.2/driver/./plx9050.h \ |
- /home/f9daq/pcivme-3.2/driver/./fops.h \ |
- /home/f9daq/pcivme-3.2/driver/./pcivme.h \ |
- /home/f9daq/pcivme-3.2/driver/./pciif.h \ |
- /home/f9daq/pcivme-3.2/driver/./vic.h \ |
- |
-/home/f9daq/pcivme-3.2/driver/./main.o: $(deps_/home/f9daq/pcivme-3.2/driver/./main.o) |
- |
-$(deps_/home/f9daq/pcivme-3.2/driver/./main.o): |
Index: pcivme-3.2/driver/README.changes |
=================================================================== |
--- pcivme-3.2/driver/README.changes (revision 9) |
+++ pcivme-3.2/driver/README.changes (nonexistent) |
@@ -1,96 +0,0 @@ |
-diff -r pcivme-3.2/driver/askpci.c pcivme-3.2-rok/driver/askpci.c |
-53c53 |
-< #include <common.h> /* must be the first include */ |
---- |
-> #include "common.h" /* must be the first include */ |
-57c57 |
-< #include <askpci.h> |
---- |
-> #include "askpci.h" |
-diff -r pcivme-3.2/driver/askpci.h pcivme-3.2-rok/driver/askpci.h |
-57c57 |
-< #include <main.h> |
---- |
-> #include "main.h" |
-diff -r pcivme-3.2/driver/fops.c pcivme-3.2-rok/driver/fops.c |
-58c58 |
-< #include <common.h> /* must be the first include */ |
---- |
-> #include "common.h" /* must be the first include */ |
-68,75c68,75 |
-< #include <fops.h> |
-< #include <plx9050.h> |
-< #include <pcivme.h> /* the common ioctl commands and structures between driver and application */ |
-< #include <main.h> |
-< #include <askpci.h> |
-< #include <pciif.h> |
-< #include <vic.h> |
-< #include <vme.h> |
---- |
-> #include "fops.h" |
-> #include "plx9050.h" |
-> #include "pcivme.h" /* the common ioctl commands and structures between driver and application */ |
-> #include "main.h" |
-> #include "askpci.h" |
-> #include "pciif.h" |
-> #include "vic.h" |
-> #include "vme.h" |
-diff -r pcivme-3.2/driver/main.c pcivme-3.2-rok/driver/main.c |
-60c60 |
-< #include <common.h> /* must be the first include */ |
---- |
-> #include "common.h" /* must be the first include */ |
-72,79c72,79 |
-< #include <askpci.h> |
-< #include <plxbug.h> |
-< #include <plx9050.h> |
-< #include <fops.h> |
-< #include <pcivme.h> |
-< #include <pciif.h> |
-< #include <vic.h> |
-< #include <main.h> |
---- |
-> #include "askpci.h" |
-> #include "plxbug.h" |
-> #include "plx9050.h" |
-> #include "fops.h" |
-> #include "pcivme.h" |
-> #include "pciif.h" |
-> #include "vic.h" |
-> #include "main.h" |
-515c515 |
-< if (request_irq(pd->pPch->pciDev->irq, pcivme_irqhandler, SA_INTERRUPT | SA_SHIRQ, DEVICE_NAME, pd)) |
---- |
-> if (request_irq(pd->pPch->pciDev->irq, pcivme_irqhandler, IRQF_DISABLED| IRQF_SHARED, DEVICE_NAME, pd)) |
-diff -r pcivme-3.2/driver/Makefile pcivme-3.2-rok/driver/Makefile |
-43a44 |
-> EXTRA_CFLAGS := -I. |
-64c65 |
-< VERSION := $(shell cpp -dM -I$(KERNEL_LOCATION)/include $(KERNEL_LOCATION)/include/linux/version.h \ |
---- |
-> VERSION := $(shell cpp -dM -I$(KERNEL_LOCATION)/include $(KERNEL_LOCATION)/include/linux/utsrelease.h \ |
-Only in pcivme-3.2-rok/driver/: Module.symvers |
-diff -r pcivme-3.2/driver/pciif.h pcivme-3.2-rok/driver/pciif.h |
-51c51 |
-< #include <vic.h> |
---- |
-> #include "vic.h" |
-Only in pcivme-3.2-rok/driver/: pcivme.mod.c |
-diff -r pcivme-3.2/driver/plxbug.c pcivme-3.2-rok/driver/plxbug.c |
-48c48 |
-< #include <common.h> /* must be the first include */ |
---- |
-> #include "common.h" /* must be the first include */ |
-51,52c51,52 |
-< #include <plxbug.h> |
-< #include <main.h> |
---- |
-> #include "plxbug.h" |
-> #include "main.h" |
-diff -r pcivme-3.2/driver/plxbug.h pcivme-3.2-rok/driver/plxbug.h |
-51c51 |
-< #include <askpci.h> |
---- |
-> #include "askpci.h" |
-Only in pcivme-3.2-rok/driver/: README.changes |
-Only in pcivme-3.2-rok/driver/: .tmp_versions |
Index: pcivme-3.2/driver/main.c |
=================================================================== |
--- pcivme-3.2/driver/main.c (revision 9) |
+++ pcivme-3.2/driver/main.c (nonexistent) |
@@ -1,618 +0,0 @@ |
-//**************************************************************************** |
-// Copyright (C) 2000-2006 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// main.c -- the main driver module for the PCIVME PCI to VME Interface |
-// Thanks to A.Rubini's Book and Dirk Muelhlenberg and H.J.Mathes |
-// for their arwvme driver |
-// |
-// $Log: main.c,v $ |
-// Revision 1.10 2006/06/04 12:20:46 klaus |
-// release_20060604; Version 3.2; pci_{en|dis}able_device() added |
-// |
-// Revision 1.9 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.8 2003/06/27 17:25:52 klaus |
-// incomplete try to get mmap() with nopage() running for automatic page switch |
-// |
-// Revision 1.7 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.6 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.5 2002/10/17 19:05:03 klaus |
-// VME access is working through test to lib to driver |
-// |
-//**************************************************************************** |
-#define NOPAGE_SIGBUS (NULL) |
- |
-#define VERSION_HI 3 |
-#define VERSION_LO 2 |
- |
-/*--- INCLUDES ---------------------------------------------------------------------------*/ |
-#include "common.h" /* must be the first include */ |
-#include <linux/module.h> |
- |
-#include <linux/sched.h> |
-#include <linux/proc_fs.h> |
-#include <linux/pci.h> |
-#include <asm/types.h> |
-#include <linux/mm.h> |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) |
-#include <linux/interrupt.h> |
-#endif |
- |
-#include "askpci.h" |
-#include "plxbug.h" |
-#include "plx9050.h" |
-#include "fops.h" |
-#include "pcivme.h" |
-#include "pciif.h" |
-#include "vic.h" |
-#include "main.h" |
- |
-/*--- DEFINES -----------------------------------------------------------------------------*/ |
-MODULE_AUTHOR("klaus.hitschler@gmx.de"); |
-MODULE_DESCRIPTION("Driver for ARW Elektronik PCI VME interface."); |
-MODULE_SUPPORTED_DEVICE("PCIVME"); |
-MODULE_LICENSE("GPL"); |
- |
-#define MAJOR_NO 0 /* use dynamic assignment */ |
- |
-#define PCIVME_VENDOR_ID 0x10B5 |
-#define PCIVME_DEVICE_ID 0x9050 |
-#define PCIVME_SUBSYS_ID 0x1167 |
-#define PCIVME_SUBVEN_ID 0x9050 |
- |
-/*--- TYPEDEFS ----------------------------------------------------------------------------*/ |
- |
-/*--- GLOBALS -----------------------------------------------------------------------------*/ |
-DRIVER_OBJ drv; |
- |
-/*--- LOCALS ------------------------------------------------------------------------------*/ |
- |
-/*--- FUNCTIONS ---------------------------------------------------------------------------*/ |
-static int my_interrupt(u16 intCSR) |
-{ |
- int result = NOT_MY_INTERRUPT; |
- |
- if (intCSR & 0x0040) // it is global enabled |
- { |
- if ((intCSR & 0x0028) == 0x0028) // it is a enabled PCIADA interrupt |
- result = PCIADA_INTERRUPT; |
- else |
- if ((intCSR & 0x0005) == 0x0005) // it is a enabled VMEMM interrupt |
- result = VMEMM_INTERRUPT; |
- } |
- |
- return result; |
-} |
- |
-static irqreturn_t pcivme_irqhandler(int irq, void *dev_id, struct pt_regs *regs) |
-{ |
- DEVICE_OBJ *pd = (DEVICE_OBJ *)dev_id; |
- |
- if (pd) |
- { |
- // evaluate the reason of the interrupt - if it is mine |
- u16 intCSR = readw((const volatile void *) (pd->pPCIADAIntCSR)); |
- int which_interrupt = my_interrupt(intCSR); |
- |
- if (which_interrupt) |
- { |
- writew(intCSR & ~0x40, (volatile void *) pd->pPCIADAIntCSR); /* disable global interrupts */ |
- pd->wIrqStatus = (u16)which_interrupt; |
- pd->dwInterruptCount++; |
- wake_up_interruptible(&pd->event_queue); /* stop blocking if any */ |
- |
- return IRQ_RETVAL(1); |
- } |
- } |
- |
- return IRQ_RETVAL(0); |
-} |
- |
-static int request_io_memory(PCIConfig *pPch) |
-{ |
- if (check_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE)) |
- { |
- PRINTK(KERN_DEBUG "%s : LCR 0x%08lx\n", DEVICE_NAME, pci_resource_start(pPch->pciDev, 0)); |
- return -EBUSY; |
- } |
- |
- if (check_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE)) |
- { |
- PRINTK(KERN_DEBUG "%s : CTL 0x%08lx\n", DEVICE_NAME, pci_resource_start(pPch->pciDev, 2)); |
- return -EBUSY; |
- } |
- |
- if (check_mem_region(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE, VME_SPACE)) |
- { |
- PRINTK(KERN_DEBUG "%s : VME 0x%08lx\n", DEVICE_NAME, pci_resource_start(pPch->pciDev, 2) + CTL_SPACE); |
- return -EBUSY; |
- } |
- |
- request_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE, DEVICE_NAME); |
- request_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE, DEVICE_NAME); |
- request_mem_region(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE, VME_SPACE, DEVICE_NAME); |
- |
- return 0; |
-} |
- |
-static void release_io_memory(PCIConfig *pPch) |
-{ |
- release_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE); |
- release_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE); |
- release_mem_region(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE, VME_SPACE); |
-} |
- |
-static int translate_addresses(DEVICE_OBJ *pd, PCIConfig *pPch) /* differs from PCICC32 */ |
-{ |
- if (pci_resource_start(pPch->pciDev, 0) < LOW_MEMORY) /* LCR ISA base addresses */ |
- pd->pLCR = (u32)bus_to_virt(pci_resource_start(pPch->pciDev, 0)); |
- else |
- pd->pLCR = (u32)ioremap(pci_resource_start(pPch->pciDev, 0), LCR_SPACE); |
- |
- if (pci_resource_start(pPch->pciDev, 2) < LOW_MEMORY) /* User ISA base addresses */ |
- { |
- pd->pCtl = (u32)bus_to_virt(pci_resource_start(pPch->pciDev, 2) ); |
- pd->pVME = (u32)bus_to_virt(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE); |
- } |
- else |
- { |
- pd->pPhysVME = pci_resource_start(pPch->pciDev, 2) + CTL_SPACE; |
- |
- pd->pCtl = (u32)ioremap(pci_resource_start(pPch->pciDev, 2) , CTL_SPACE); |
- pd->pVME = (u32)ioremap(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE, VME_SPACE); |
- } |
- |
- return 0; |
-} |
- |
-static void un_translate_addresses(DEVICE_OBJ *pd, PCIConfig *pPch) |
-{ |
- if (pci_resource_start(pPch->pciDev, 0) >= LOW_MEMORY) /* no LCR ISA base addresses */ |
- iounmap((void *)pd->pLCR); |
- |
- if (pci_resource_start(pPch->pciDev, 2) >= LOW_MEMORY) |
- { |
- pd->pPhysVME = 0; |
- |
- iounmap((void *)pd->pCtl); |
- iounmap((void *)pd->pVME); |
- } |
-} |
- |
-static void soft_init(DEVICE_OBJ *pd) |
-{ |
- if (pd) |
- { |
- init_waitqueue_head(&pd->event_queue); |
- |
- pd->pLCR = pd->pCtl = pd->pVME = 0; |
- pd->pPch = (PCIConfig *)NULL; |
- pd->bConnected = 0; |
- pd->wInitStep = 0; |
- pd->wIrq = 0xFFFF; |
- pd->dwInterruptCount = 0; |
- pd->wIrqStatus = 0; |
- pd->nOpenCounter = 0; |
- |
- pd->cModuleNumber = 255; |
- pd->cFPGAVersion = 255; |
- pd->cSystemController = 0; |
- pd->cWordMode = 0; |
- |
- pd->pAdrMod = 0; |
- pd->pAdrReg = 0; |
- pd->pCSR = 0; |
- |
- pd->pPCIADACntrl = 0; |
- pd->pPCIADAIntCSR = 0; |
- |
- pd->bCurrentModifier = 0; |
- pd->dwCurrentPageAddress = -1; |
- pd->currentMap.pageptr = NOPAGE_SIGBUS; |
- pd->currentMap.addr = 0; |
- } |
-} |
- |
-int test_connection(DEVICE_OBJ *pd) |
-{ |
- u16 intCSR_store; |
- u16 cntrl_store; |
- int i; |
- int error = 0; |
- u32 dwADRH = pd->pCtl + ADRH; |
- u32 dwADRL = pd->pCtl + ADRL; |
- u32 dwADRHL = pd->pCtl + ADRHL; |
- u32 dwStore; |
- u16 wRet; |
- |
- cntrl_store = readw((const volatile void *) pd->pPCIADACntrl); /* read CONTROL register */ |
- intCSR_store = readw((const volatile void *) pd->pPCIADAIntCSR); /* read interrupt + CSR register */ |
- |
- writew(0, (volatile void *) pd->pPCIADAIntCSR); /* disable interrupts */ |
- writew(cntrl_store | 0x0180, (volatile void *) pd->pPCIADACntrl); /* enable access */ |
- |
- // save adr register |
- dwStore = readl((const volatile void *) dwADRHL); |
- for (i = 1000; i; i--) |
- { |
- writew(0x5555, (volatile void *) dwADRH); |
- writew(0xAAAA, (volatile void *) dwADRL); |
- wRet = readw((const volatile void *) dwADRH); |
- if (wRet != 0x5555) |
- { |
- error = 1; |
- break; |
- } |
- |
- writew(0xAAAA, (volatile void *) dwADRH); |
- writew(0x5555, (volatile void *) dwADRL); |
- wRet = readw((const volatile void *) dwADRH); |
- if (wRet != 0xAAAA) |
- { |
- error = 1; |
- break; |
- } |
- |
- writew(0x0000, (volatile void *) dwADRH); |
- writew(0xFFFF, (volatile void *) dwADRL); |
- wRet = readw((const volatile void *) dwADRH); |
- if (wRet != 0x0000) |
- { |
- error = 1; |
- break; |
- } |
- |
- writew(0xFFFF, (volatile void *) dwADRH); |
- writew(0x0000, (volatile void *) dwADRL); |
- wRet = readw((const volatile void *) dwADRH); |
- if (wRet != 0xFFFF) |
- { |
- error = 1; |
- break; |
- } |
- } |
- |
- // restore register |
- writel(dwStore, (volatile void *) dwADRHL); |
- |
- //clear possible interrupts |
- writew(cntrl_store & ~0x0100, (volatile void *) pd->pPCIADACntrl); /* clear potential interrupt */ |
- |
- // restore LCR registers |
- writew(cntrl_store, (volatile void *) pd->pPCIADACntrl); |
- writew(intCSR_store, (volatile void *) pd->pPCIADAIntCSR); |
- |
- return error; |
-} |
- |
-int get_module_info(DEVICE_OBJ *pd) |
-{ |
- u16 intCSR_store; |
- u16 cntrl_store; |
- int found = 0; |
- u16 data; |
- |
- cntrl_store = readw((const volatile void *) pd->pPCIADACntrl); /* read CONTROL register */ |
- intCSR_store = readw((const volatile void *) pd->pPCIADAIntCSR); /* read interrupt + CSR register */ |
- |
- PRINTK(KERN_DEBUG "%s : cntrl=0x%04x, intCSR=0x%04x\n", DEVICE_NAME, cntrl_store, intCSR_store); |
- |
- if (cntrl_store & 0x0800) /* a VMEMM is connected */ |
- { |
- u16 bla = cntrl_store | 0x0180; |
- |
- writew(0, (volatile void *) pd->pPCIADAIntCSR); /* disable interrupts */ |
- writew(bla, (volatile void *) pd->pPCIADACntrl); /* enable access */ |
- |
- // read main status register |
- data = readw((const volatile void *) pd->pCSR); |
- |
- if ((data & 0xF000) != VMEMM_MODULE_TYPE) |
- { |
- pd->cModuleNumber = pd->cFPGAVersion = 255; |
- printk(KERN_ERR "%s : Wrong module type connected @ index %d!\n", DEVICE_NAME, pd->wIndex); |
- } |
- else |
- { |
- found = 1; |
- pd->cModuleNumber = (data >> 4) & 0xF; |
- pd->cFPGAVersion = (data >> 8) & 0xF; |
- pd->cSystemController = (data & 0x0008); |
- pd->cWordMode = (data & 0x0004); |
- } |
- |
- // clear possible interrupts |
- writew(cntrl_store & ~0x0100, (volatile void *) pd->pPCIADACntrl); /* clear potential interrupt */ |
- |
- /* restore all contents */ |
- writew(cntrl_store, (volatile void *) pd->pPCIADACntrl); |
- writew(intCSR_store, (volatile void *) pd->pPCIADAIntCSR); |
- } |
- |
- return found; |
-} |
- |
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) |
-static int pcivme_read_proc(char *buf, char **start, off_t offset, int len) |
-#else |
-static int pcivme_read_proc(char *buf, char **start, off_t offset, int len, int *eof, void *data) |
-#endif |
- { |
- int pos = 0; |
- DEVICE_OBJ *pd; |
- PCIConfig *ch; |
- u16 cntrl; |
- char *cause = "none"; |
- struct list_head *ptr; |
- |
- pos += sprintf(buf + pos, "\nPCIVME information. Version %d.%d of %s from Klaus Hitschler.\n", VERSION_HI, VERSION_LO, __DATE__); |
- |
- pos += sprintf(buf + pos, " ---------------------\n"); |
- pos += sprintf(buf + pos, " Interfaces found : %d\n", drv.count); |
- pos += sprintf(buf + pos, " Major Number : %d\n", drv.nMajor); |
- |
- for (ptr = drv.devList.next; ptr != &drv.devList; ptr = ptr->next) |
- { |
- pd = list_entry(ptr, DEVICE_OBJ, list); |
- ch = pd->pPch; |
- cntrl = readw((const volatile void *)(pd->pLCR + PLX9050_CNTRL)); |
- pos += sprintf(buf + pos, " --- %d ---------------\n", pd->wIndex + 1); |
- pos += sprintf(buf + pos, " LCR phys/virt/size : 0x%08lx/0x%08x/%d\n",(long unsigned int) pci_resource_start(ch->pciDev, 0), pd->pLCR, LCR_SPACE); |
- pos += sprintf(buf + pos, " Control phys/virt/size : 0x%08lx/0x%08x/%d\n",(long unsigned int) pci_resource_start(ch->pciDev, 2), pd->pCtl, CTL_SPACE); |
- pos += sprintf(buf + pos, " VME phys/virt/size : 0x%08lx/0x%08x/%d\n",(long unsigned int) pci_resource_start(ch->pciDev, 2) + CTL_SPACE, pd->pVME, VME_SPACE); |
- pos += sprintf(buf + pos, " Irq : %d\n", pd->wIrq); |
- |
- if (pd->bConnected) |
- { |
- pos += sprintf(buf + pos, " VMEMM is or was : (software) connected.\n"); |
- pos += sprintf(buf + pos, " Module-Number : %d\n", pd->cModuleNumber); |
- pos += sprintf(buf + pos, " FPGA-Version : %d\n", pd->cFPGAVersion); |
- pos += sprintf(buf + pos, " Systemcontroller : %s\n", (pd->cSystemController) ? "yes" : "no"); |
- pos += sprintf(buf + pos, " Word Mode : %s\n", (pd->cWordMode) ? "yes" : "no"); |
- } |
- else |
- pos += sprintf(buf + pos, " VMEMM is or was : not (software) connected.\n"); |
- |
- if (!((cntrl & 0x0800) && (!(cntrl & 0x0600)))) |
- pos += sprintf(buf + pos, " VMEMM is : powered off or cable disconnected.\n"); |
- |
- pos += sprintf(buf + pos, " IrqCount : %d\n", pd->dwInterruptCount); |
- if (pd->wIrqStatus & PCIADA_INTERRUPT) |
- cause = "Timeout"; |
- else |
- if (pd->wIrqStatus & VMEMM_INTERRUPT) |
- cause = "VME"; |
- pos += sprintf(buf + pos, " Pending IrqStatus : %s\n", cause); |
- } |
- |
- pos += sprintf(buf + pos, "\n"); |
- |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) |
- *eof = 1; |
-#endif |
- |
- return pos; |
-} |
- |
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) |
-struct proc_dir_entry pcimod_proc_entry = |
-{ |
- namelen: 7, /* len of name */ |
- name: DEVICE_NAME, /* entry name */ |
- mode: S_IFREG | S_IRUGO, /* mode */ |
- nlink: 1, /* nlinks */ |
- get_info: pcivme_read_proc, /* function used to read data */ |
-}; |
-#endif |
- |
-static void deleteMyLists(void) |
-{ |
- DEVICE_OBJ *pd; |
- |
- /* delete my lists */ |
- while (!list_empty(&drv.devList)) // cycle through the list of pci devices and remove them |
- { |
- pd = (DEVICE_OBJ *)drv.devList.prev; // empty in reverse order |
- list_del(&pd->list); |
- kfree(pd); |
- } |
- |
- DeletePCIConfig(&drv); |
-} |
- |
-int init_module(void) |
-{ |
- PCIConfig *ch; |
- DEVICE_OBJ *pd; |
- int result = 0; |
- struct list_head *ptr; |
- |
- PRINTK(KERN_DEBUG "%s : init_module\n", DEVICE_NAME); |
- |
- /* create list of PCIADAs and work devices */ |
- INIT_LIST_HEAD(&drv.devList); |
- INIT_LIST_HEAD(&drv.pciList); |
- |
- drv.count = 0; |
- |
- /* search for all PCIADA modules */ |
- if ((result = GetPCIConfig(&drv, PCIVME_DEVICE_ID, PCIVME_VENDOR_ID, PCIVME_SUBSYS_ID, PCIVME_SUBVEN_ID))) |
- { |
- deleteMyLists(); |
- return result; |
- } |
- |
- /* fix the PLX bug in all PCIADAs */ |
- for (ptr = drv.pciList.next; ptr != &drv.pciList; ptr = ptr->next) |
- { |
- ch = list_entry(ptr, PCIConfig, list); |
- PLX9050BugFix(ch); |
- } |
- |
- /* create work_devices and translate the access addresses */ |
- for (ptr = drv.pciList.next; ptr != &drv.pciList; ptr = ptr->next) |
- { |
- ch = list_entry(ptr, PCIConfig, list); |
- |
- pd = (DEVICE_OBJ *)kmalloc(sizeof(DEVICE_OBJ), GFP_ATOMIC); |
- soft_init(pd); |
- pd->pPch = ch; |
- pd->wIndex = drv.count; |
- |
- if (!request_io_memory(ch)) |
- { |
- pd->wInitStep = 1; |
- |
- if (translate_addresses(pd, ch)) |
- { |
- printk(KERN_ERR "%s : translation of addresses failed!\n", DEVICE_NAME); |
- kfree_s(pd, sizeof(*pd)); // FREE(pd); |
- } |
- else |
- { |
- // successful translate_addresses |
- pd->wInitStep = 2; |
- |
- // create some 'fast access' addresses |
- pd->pAdrMod = pd->pCtl + VICBASE + AMSR; |
- pd->pAdrReg = pd->pCtl + ADRHL; |
- pd->pCSR = pd->pCtl + CSR; |
- |
- pd->pPCIADACntrl = pd->pLCR + PLX9050_CNTRL; |
- pd->pPCIADAIntCSR = pd->pLCR + PLX9050_INTCSR; |
- |
- if (request_irq(pd->pPch->pciDev->irq, pcivme_irqhandler, IRQF_DISABLED| IRQF_SHARED, DEVICE_NAME, pd)) |
- { |
- printk(KERN_ERR "%s : can't get irq @ %d\n", DEVICE_NAME, pd->pPch->pciDev->irq); |
- kfree_s(pd, sizeof(*pd)); // FREE(pd); |
- } |
- else |
- { |
- // successful request_irq |
- pd->wInitStep = 3; |
- pd->wIrq = pd->pPch->pciDev->irq; |
- |
- list_add_tail(&pd->list, &drv.devList); /* add this device to list of working devices*/ |
- drv.count++; |
- |
- pd->bConnected = get_module_info(pd); |
- if (pd->bConnected && test_connection(pd)) |
- { |
- printk(KERN_ERR "%s : connection test @ driver install failed!\n", DEVICE_NAME); |
- pd->bConnected = 0; |
- } |
- } |
- } |
- } |
- else |
- printk(KERN_ERR "%s : requested io-memory still claimed!\n", DEVICE_NAME); |
- } |
- |
- drv.nMajor = MAJOR_NO; |
- result = register_chrdev(drv.nMajor, DEVICE_NAME, &pcivme_fops); |
- if (result < 0) |
- { |
- printk(KERN_ERR "%s: Can't install driver (%d)\n", DEVICE_NAME, result); |
- |
- /* untranslate translated addresses */ |
- for (ptr = drv.devList.next; ptr != &drv.devList; ptr = ptr->next) |
- { |
- pd = list_entry(ptr, DEVICE_OBJ, list); |
- ch = pd->pPch; |
- un_translate_addresses(pd, ch); |
- } |
- |
- /* delete my lists */ |
- deleteMyLists(); |
- |
- return result; |
- } |
- else |
- { |
- if (drv.nMajor == 0) |
- drv.nMajor = result; |
- |
- printk(KERN_DEBUG "%s : major #%d assigned.\n", DEVICE_NAME, drv.nMajor); |
- } |
- |
- /* register the proc device */ |
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) |
- proc_register_dynamic(&proc_root, &pcimod_proc_entry); |
- |
- return 0; |
-#else |
- return create_proc_read_entry(DEVICE_NAME, 0, NULL, pcivme_read_proc, NULL) ? 0 : -ENODEV; |
-#endif |
-} |
- |
-void cleanup_module(void) |
-{ |
- PCIConfig *ch; |
- DEVICE_OBJ *pd; |
- struct list_head *ptr; |
- |
- PRINTK(KERN_DEBUG "%s : cleanup_module.\n", DEVICE_NAME); |
- |
- unregister_chrdev(drv.nMajor, DEVICE_NAME); |
- |
- /* unregister the proc device */ |
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) |
- proc_unregister(&proc_root, pcimod_proc_entry.low_ino); |
-#else |
- remove_proc_entry(DEVICE_NAME, NULL); |
-#endif |
- |
- /* redo all */ |
- for (ptr = drv.devList.next; ptr != &drv.devList; ptr = ptr->next) |
- { |
- pd = list_entry(ptr, DEVICE_OBJ, list); |
- ch = pd->pPch; |
- switch (pd->wInitStep) |
- { |
- case 3: writew(readw((const volatile void *)(pd->pLCR + PLX9050_INTCSR)) & ~0x40, (volatile void *) (pd->pLCR + PLX9050_INTCSR)); // disable global interrupts |
- free_irq(pd->wIrq, pd); |
- case 2: un_translate_addresses(pd, ch); |
- case 1: release_io_memory(ch); |
- default: pd->wInitStep = 0; |
- } |
- |
- drv.count--; |
- } |
- |
- deleteMyLists(); |
- |
- return; |
-} |
- |
Index: pcivme-3.2/driver/.tmp_versions/pcivme.mod |
=================================================================== |
--- pcivme-3.2/driver/.tmp_versions/pcivme.mod (revision 9) |
+++ pcivme-3.2/driver/.tmp_versions/pcivme.mod (nonexistent) |
@@ -1,2 +0,0 @@ |
-/home/f9daq/pcivme-3.2/driver/pcivme.ko |
-/home/f9daq/pcivme-3.2/driver/./main.o /home/f9daq/pcivme-3.2/driver/./askpci.o /home/f9daq/pcivme-3.2/driver/./plxbug.o /home/f9daq/pcivme-3.2/driver/./fops.o |
Index: pcivme-3.2/driver/vic.h |
=================================================================== |
--- pcivme-3.2/driver/vic.h (revision 9) |
+++ pcivme-3.2/driver/vic.h (nonexistent) |
@@ -1,135 +0,0 @@ |
-#ifndef __VIC_H__ |
-#define __VIC_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2001-2004 ARW Elktronik Germany |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// vic.h - all definitions about the VIC68A chip |
-// |
-// $Log: vic.h,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// INCLUDES |
-#include <linux/types.h> |
- |
-//**************************************************************************** |
-// DEFINES |
-#ifndef __KERNEL__ |
- #define u8 __u8 |
- #define u16 __u16 |
- #define u32 __u32 |
-#endif |
- |
-#define VICR1 (u16)0x07 /* VMEbus Interrupt Control Register #.. */ |
-#define VICR2 (u16)0x0b |
-#define VICR3 (u16)0x0f |
-#define VICR4 (u16)0x13 |
-#define VICR5 (u16)0x17 |
-#define VICR6 (u16)0x1b |
-#define VICR7 (u16)0x1f |
- |
-#define LICR1 (u16)0x27 /* Local interrupt control register .. */ |
-#define LICR2 (u16)0x2b |
-#define LICR3 (u16)0x2f |
-#define LICR4 (u16)0x33 |
-#define LICR5 (u16)0x37 |
-#define LICR6 (u16)0x3b |
-#define LICR7 (u16)0x3f |
-#define LIVBR (u16)0x57 /* Local interrupt vector base register */ |
- |
-#define ICGSICR (u16)0x43 /* ICGS interrupt control register */ |
-#define ICGSVBR (u16)0x4f /* ICGS vector base register */ |
- |
-#define ICMSICR (u16)0x47 /* ICMS interrupt control register */ |
-#define ICMSVBR (u16)0x53 /* ICMS vector base register */ |
- |
-#define EGICR (u16)0x4b /* Error group interrupt control register */ |
-#define EGIVBR (u16)0x5b /* Error group interrupt vector base rg */ |
- |
-#define ICSR (u16)0x5f /* Interprozessor communication switch rg */ |
-#define ICR0 (u16)0x63 |
-#define ICR1 (u16)0x67 |
-#define ICR2 (u16)0x6b |
-#define ICR3 (u16)0x6f |
-#define ICR4 (u16)0x73 |
-#define ICR5 (u16)0x77 |
-#define ICR6 (u16)0x7b |
-#define ICR7 (u16)0x7f |
- |
-#define VIICR (u16)0x03 /* VMEbus Interrupter Interrupt Control */ |
-#define VIRSR (u16)0x83 /* VMEbus interrupt request status reg */ |
-#define VIVR1 (u16)0x87 /* VMEbus interrupt vector register .. */ |
-#define VIVR2 (u16)0x8b |
-#define VIVR3 (u16)0x8f |
-#define VIVR4 (u16)0x93 |
-#define VIVR5 (u16)0x97 |
-#define VIVR6 (u16)0x9b |
-#define VIVR7 (u16)0x9f |
- |
-#define TTR (u16)0xa3 /* transfer timeout register */ |
-#define LTR (u16)0xa7 /* local timing register */ |
-#define ICR (u16)0xaf /* interface configuration register */ |
- |
-#define ARCR (u16)0xb3 /* arbiter/requester configuration register*/ |
-#define AMSR (u16)0xb7 /* address modifier source register */ |
-#define BESR (u16)0xbb /* bus error source register */ |
- |
-#define DSICR (u16)0x23 /* DMA status interrupt control register */ |
-#define DSR (u16)0xbf /* DMA status register */ |
- |
-#define SSCR00 (u16)0xc3 /* slave select 0 control register 0 */ |
-#define SSCR01 (u16)0xc7 /* slave select 0 control register 1 */ |
-#define SSCR10 (u16)0xcb /* slave select 1 control register 0 */ |
-#define SSCR11 (u16)0xcf /* slave select 1 control register 1 */ |
- |
-#define RCR (u16)0xd3 /* release control register */ |
- |
-#define BTDR (u16)0xab /* block transfer definition register */ |
-#define BTCR (u16)0xd7 /* block transfer control register */ |
-#define BTLR0 (u16)0xdb /* block transfer length register 0 */ |
-#define BTLR1 (u16)0xdf /* block transfer length register 1 */ |
- |
-#define SRR (u16)0xe3 /* system reset register */ |
- |
- |
-#endif // __VIC_H__ |
- |
- |
Index: pcivme-3.2/driver/plx9050.h |
=================================================================== |
--- pcivme-3.2/driver/plx9050.h (revision 9) |
+++ pcivme-3.2/driver/plx9050.h (nonexistent) |
@@ -1,156 +0,0 @@ |
-#ifndef __PLX9050_H__ |
-#define __PLX9050_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// plx9050.h - Include header for the PCIbus target |
-// interface chip PLX9050 from PLX Technology (www.plxtech.com) |
-// |
-// $Log: plx9050.h,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-// derived from original code from Dirk Muehlenberg and ? Mathes AR 18.02.2000 |
-// |
-//**************************************************************************** |
- |
-#include <asm/io.h> |
- |
-/* |
- * defining the offsets from PCI CFG Register Area |
- * (PCI registers, only accessible during a configuration 0 cycle) |
- */ |
-/* 15:0 VendorId | 31:16 DeviceId */ |
-#define PLX9050_PCIIDR 0x0 |
- |
-#define PLX9050_PCICR 0x4 |
-#define PLX9050_PCISR 0x6 |
-#define PLX9050_PCIREV 0x8 |
-#define PLX9050_PCICCR 0xB |
-#define PLX9050_PCICLSR 0xC |
-#define PLX9050_PCILTR 0xD |
-#define PLX9050_PCIHTR 0xE |
-#define PLX9050_PCIBISTR 0xF |
-/* |
-** PCI Base Address Register |
-*/ |
-#define PLX9050_PCIBAR0 0x10 |
-#define PLX9050_PCIBAR1 0x14 |
-#define PLX9050_PCIBAR2 0x18 |
-#define PLX9050_PCIBAR3 0x1C |
-#define PLX9050_PCIBAR4 0x20 |
-#define PLX9050_PCIBAR5 0x24 |
- |
-#define PLX9050_PCICIS 0x28 |
- |
-/* 15:0 Subsystem VendorId */ |
-#define PLX9050_PCISVID 0x2C |
- |
-#define PLX9050_PCIERBAR 0x30 |
- |
-/* interrupt line routing */ |
-#define PLX9050_PCIILR 0x3C |
-/* interrupt pin register */ |
-#define PLX9050_PCIIPR 0x3D |
- |
-#define PLX9050_PCIMGR 0x3E |
-#define PLX9050_PCIMLR 0x3F |
- |
- |
-/* |
- * defining the offsets from Local Base Address |
- * (local configuration registers, accessible by way of i/o- or |
- * memory cycle) |
- */ |
-#define PLX9050_LAS0RR 0x0 |
-#define PLX9050_LAS1RR 0x4 |
-#define PLX9050_LAS2RR 0x8 |
-#define PLX9050_LAS3RR 0xC |
-#define PLX9050_EROMRR 0x10 |
- |
-#define PLX9050_LAS0BA 0x14 |
-#define PLX9050_LAS1BA 0x18 |
-#define PLX9050_LAS2BA 0x1C |
-#define PLX9050_LAS3BA 0x20 |
-#define PLX9050_EROMBA 0x24 |
- |
-/* |
- * Local Address Space I Bus Region Descriptor Register |
- * Bit |
- * 0 : Burst enable |
- * 1 : Ready Input Enable |
- * 2 : Bterm Input Enable |
- * 4:3 : Prefetch Count - 00 no, 01 4 lwords, 10 8 lwords, 11 16 lwords |
- * 5 : Prefetch Count Enable |
- */ |
-#define PLX9050_LAS0BRD 0x28 |
-#define PLX9050_LAS1BRD 0x2C |
-#define PLX9050_LAS2BRD 0x30 |
-#define PLX9050_LAS3BRD 0x34 |
-#define PLX9050_EROMBRD 0x38 |
- |
-#define PLX9050_CS0BASE 0x3C |
-#define PLX9050_CS1BASE 0x40 |
-#define PLX9050_CS2BASE 0x44 |
-#define PLX9050_CS4BASE 0x48 |
- |
-#define PLX9050_INTCSR 0x4C |
- |
-#define PLX9050_CNTRL 0x50 |
- |
-#ifndef L_SETBIT |
- #define L_SETBIT(addr, b) writel(readl(addr) | (1<<(b)), addr); |
- #define W_SETBIT(addr, b) writew(readw(addr) | (1<<(b)), addr); |
- #define B_SETBIT(addr, b) writeb(readb(addr) | (1<<(b)), addr); |
- |
- #define L_CLRBIT(addr, b) writel(readl(addr) & ~(1<<(b)), addr); |
- #define W_CLRBIT(addr, b) writew(readw(addr) & ~(1<<(b)), addr); |
- #define B_CLRBIT(addr, b) writeb(readb(addr) & ~(1<<(b)), addr); |
-#endif |
- |
-#define PLX9050_ENABLE_BURST(base, i) L_SETBIT(base+PLX9050_LAS0BRD+i*4, 0) |
-#define PLX9050_DISABLE_BURST(base, i) L_CLRBIT(base+PLX9050_LAS0BRD+i*4, 0) |
- |
-#define PLX9050_SET_PREFETCH0(base, i) writel(readl(base+PLX9050_LAS0BRD+i*4) & ~0x180 , base+PLX9050_LAS0BRD+i*4); |
-#define PLX9050_SET_PREFETCH4(base, i) writel(readl(base+PLX9050_LAS0BRD+i*4) & ~0x180 | 0x80, base+PLX9050_LAS0BRD+i*4); |
-#define PLX9050_SET_PREFETCH8(base, i) writel(readl(base+PLX9050_LAS0BRD+i*4) & ~0x180 | 0x100, base+PLX9050_LAS0BRD+i*4); |
-#define PLX9050_SET_PREFETCH16(base, i) writel(readl(base+PLX9050_LAS0BRD+i*4) | 0x180, base+PLX9050_LAS0BRD+i*4); |
- |
-#endif /* __PLX9050_H__ */ |
Index: pcivme-3.2/driver/pcivme.h |
=================================================================== |
--- pcivme-3.2/driver/pcivme.h (revision 9) |
+++ pcivme-3.2/driver/pcivme.h (nonexistent) |
@@ -1,212 +0,0 @@ |
-#ifndef __PCIVME_H__ |
-#define __PCIVME_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// pcivme.h -- the common header for driver and applications for the PCIVME |
-// PCI to VME Interface |
-// All commands and constants are similiar to WIN?? drivers, but |
-// not equal. Please check if you cross-port or develop. |
-// |
-// $Log: pcivme.h,v $ |
-// Revision 1.9 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.8 2003/06/27 17:25:52 klaus |
-// incomplete try to get mmap() with nopage() running for automatic page switch |
-// |
-// Revision 1.7 2002/10/20 18:06:51 klaus |
-// changed error handling |
-// |
-// Revision 1.6 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/17 19:05:03 klaus |
-// VME access is working through test to lib to driver |
-// |
-//**************************************************************************** |
- |
-#include <linux/types.h> |
-#include <asm/ioctl.h> |
- |
-#define PCIVME_MAGIC ' ' |
- |
-#define MAX_INIT_ELEMENTS 20 // maximum number of init in PCIVME_(DE)INIT_HARDWARE |
- |
-#ifndef __KERNEL__ |
- #define u8 __u8 |
- #define u16 __u16 |
- #define u32 __u32 |
-#endif |
- |
-//---------------------------------------------------------------------------- |
-// shared structures between driver & app to support ioctls ------------------ |
-typedef struct // one command element to initialize interface or deinitialize |
-{ |
- u8 bDestination; // 0 = lcr, 1 = vme-interface, -1 = stop |
- u8 bAccessType; // 1 = byte access, 2 = word access, 4 = long access |
- u16 wOffset; // offset into interface address range for initialisation |
- u32 dwValue; // value to initialize |
-} PCIVME_INIT_ELEMENT; |
- |
-typedef struct |
-{ |
- PCIVME_INIT_ELEMENT sVie[MAX_INIT_ELEMENTS]; // at least one zero element must be the last |
-} PCIVME_INIT_COMMAND; |
- |
-typedef struct |
-{ |
- u8 bModifier; // set the current modifier |
- u8 bAccessType; // set the current access type (1,2,4), not used |
- u8 bIncrement; // set the current byte increment count, not used |
- u8 bDummy; // reserved |
-} PCIVME_ACCESS_COMMAND; |
- |
-typedef struct |
-{ |
- u32 dwAddress; // tas to address |
- u8 bModifier; // VME address modifier for this window |
- u8 bContent; // content to store and get back |
-} PCIVME_TAS_STRUCT; |
- |
-typedef struct |
-{ |
- u16 wRegisterAddress; // address offset of vic68a register |
- u8 bAccessMode; // read, write, or, and |
- u8 bContent; // content to write, and, or |
- u8 bDummy; // reserved |
-} PCIVME_VIC68A_ACTION; |
- |
-typedef struct |
-{ |
- u8 bEnable; // set to 0 to disable, != 0 to enable |
- u8 bDummy; // reserved |
-} PCIVME_IRQ_CONTROL; |
- |
-typedef struct |
-{ |
- u8 bCommand; // makes and reads different reset commands |
- u8 bResult; // return result, == 0 if command has finished |
-} PCIVME_RESET_COMMAND; |
- |
-typedef struct // static information about status of PCIADA & VMEMM |
-{ |
- u8 bConnected; // is it or it was software connected |
- u8 cModuleNumber; // module number |
- u8 cFPGAVersion; // FPGA Version number |
- u8 cSystemController; // set if VMEMM is system controller |
- u8 cWordMode; // set if VMEMM is jumpered to word mode |
- u8 bDummy; // reserved |
-} PCIVME_STATIC_STATUS; |
- |
-typedef struct // dynamic information about status of PCIADA & VMEMM |
-{ |
- u8 bConnected; // the current cable connection state |
- u8 bPCIADAIrq; // interrupt pending due to timeout or connection fail |
- u8 bVMEMMIrq; // interrupt pending due to VMEMM event |
- u8 bDummy; // reserved |
-} PCIVME_DYNAMIC_STATUS; |
- |
-typedef struct |
-{ |
- u32 dwStatusID; // interrupt-vector (byte, word, long) |
- u8 bLevel; // interrupt-level |
- u8 bPCIADAIrq; // pending PCIADA Irq detected and cleared |
-} PCIVME_VECTOR_LEVEL; |
- |
-//---------------------------------------------------------------------------- |
-// commands to support ioctls ------------------------------------------------ |
-#define PCIVME_INIT_HARDWARE _IOW(PCIVME_MAGIC, 1, PCIVME_INIT_COMMAND) // initializes the hardware with given parameters |
-#define PCIVME_DEINIT_HARDWARE _IOW(PCIVME_MAGIC, 2, PCIVME_INIT_COMMAND) // uninitializes the hardware |
- |
-#define PCIVME_SET_ACCESS_PARA _IOWR(PCIVME_MAGIC, 3, PCIVME_ACCESS_COMMAND) // set the address modifier for this path |
- |
-#define PCIVME_GET_STATIC_STATUS _IOR(PCIVME_MAGIC, 4, PCIVME_STATIC_STATUS) // asks for static status of PCIADA & connected VMEMM |
-#define PCIVME_GET_DYNAMIC_STATUS _IOR(PCIVME_MAGIC, 5, PCIVME_DYNAMIC_STATUS) // asks for dynamic status of PCIADA & connected VMEMM |
- |
-#define PCIVME_READ_VECTOR_POLL _IOR(PCIVME_MAGIC, 6, PCIVME_VECTOR_LEVEL) // reads the level and vector of IRQ |
-#define PCIVME_READ_VECTOR_BLOCK _IOR(PCIVME_MAGIC, 7, PCIVME_VECTOR_LEVEL) // reads blocking the level and vector of IRQ |
- |
-#define PCIVME_CONTROL_INTERRUPTS _IOWR(PCIVME_MAGIC, 8, PCIVME_IRQ_CONTROL) // set, clear interrupt enable |
-#define PCIVME_TAS _IOWR(PCIVME_MAGIC, 9, PCIVME_TAS_STRUCT) // make test and set |
-#define PCIVME_RESET _IOWR(PCIVME_MAGIC, 10, PCIVME_RESET_COMMAND) // make a reset to VME or global |
- |
-#define PCIVME_ACCESS_VIC68A _IOWR(PCIVME_MAGIC, 11, PCIVME_VIC68A_ACTION) // access vic68a register (interface depended) |
- |
-//---------------------------------------------------------------------------- |
-// input constants of ioctls ------------------------------------------------- |
- |
-// switches for PCIVME_INIT and DEINIT_COMMAND |
-#define LCR (u8)0 // destination is PCIADA (LCR) register |
-#define IFR (u8)1 // destination is VMEMM-Interface register |
-#define VIC (u8)2 // destination is VIC68A register |
-#define STOP (u8)255 // this command stops the init machine |
- |
-#define BYTE_ACCESS (u8)1 // write byte wise |
-#define WORD_ACCESS (u8)2 // word |
-#define LONG_ACCESS (u8)4 // long |
- |
-// switches for PCIVME_ACCESS_VIC68A |
-#define VIC68A_READ 0 // read only access |
-#define VIC68A_WRITE 1 // write and read back access |
-#define VIC68A_OR 2 // read, bitwise 'or' content and read back access |
-#define VIC68A_AND 3 // read, bitwise 'and' content and read back access |
-#define VIC68A_WRITE_ONLY 4 // do not read back after write |
- |
-// switches for PCIVME_VECTOR_CMD |
-#define READ_CURRENT_LEVEL 0 // try to get the current irq level |
-#define READ_VECTOR 1 // (if level == 0) read vector @ current LEVEL else @ level |
- |
-// switches for the PCIVME_RESET |
-#define VME_RESET_CMD 0 // raise a VME reset only |
-#define LOCAL_RESET_CMD 1 // raise a local reset only |
-#define GLOBAL_RESET_CMD 2 // raise a global reset |
-#define POLL_RESET_CMD 3 // ask if reset is finished |
- |
-// address masks for the pager - to use for offset and size @ window alignment |
-#define HI_ADDRESS_MASK (u32)0xFFFFF000 // masks the high part of a vme address |
-#define LO_ADDRESS_MASK (~HI_ADDRESS_MASK) // masks the low part of a vme address |
-#define ONE_PAGE_SIZE (LO_ADDRESS_MASK + 1) // size of 1 page (hardware related) |
- |
-// macros to calculate the real base and the real size of demand pages |
-#define PCIVME_PAGE_BASE(base) (base & HI_ADDRESS_MASK) // makes an aligned base for a page |
-#define PCIVME_PAGE_SIZE(base, size) (((base + size + LO_ADDRESS_MASK) / ONE_PAGE_SIZE) * ONE_PAGE_SIZE) |
- |
-//---------------------------------------------------------------------------- |
-// results of ioctls --------------------------------------------------------- |
-#define NOT_MY_INTERRUPT 0 |
-#define PCIADA_INTERRUPT 1 |
-#define VMEMM_INTERRUPT 2 |
- |
-#endif /* __PCIVME_H__ */ |
Index: pcivme-3.2/driver/main.h |
=================================================================== |
--- pcivme-3.2/driver/main.h (revision 9) |
+++ pcivme-3.2/driver/main.h (nonexistent) |
@@ -1,151 +0,0 @@ |
-#ifndef __MAIN_H__ |
-#define __MAIN_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// main.h -- export parts of main.c |
-// |
-// $Log: main.h,v $ |
-// Revision 1.7 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.6 2003/06/27 17:25:52 klaus |
-// incomplete try to get mmap() with nopage() running for automatic page switch |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-/*--- INCLUDES ----------------------------------------------------------------------------*/ |
-#include <linux/wait.h> |
-#include <linux/types.h> |
-#include <linux/list.h> |
- |
-/*--- DEFINES -----------------------------------------------------------------------------*/ |
-#define DEVICE_NAME "pcivme" |
- |
-#define LOW_MEMORY 0x1000000 // 1 Mbyte PC memory border |
- |
-#define LCR_SPACE 0x0080 // space in bytes of LCR |
-#define IFR_SPACE 0x2000 // space in bytes of IFR |
-#define CTL_SPACE 0x1000 // lower part of IFR_SPACE |
-#define VME_SPACE (IFR_SPACE - CTL_SPACE) // higher part of IFR_SPACE used for VME window |
- |
-#define RELEASE_VMEMM (u16)0x4180 // write this to release access .. |
-#define INHIBIT_VMEMM (u16)0x4080 // write this to inhibit access .. |
-#define ENABLE_PCIADA_IRQS (u16)0x0049 // enable PCIADA IRQs |
-#define DISABLE_PCIADA_IRQS (u16)0x0009 // disable PCIADA IRQs |
- |
-/*--- TYPEDEFS ----------------------------------------------------------------------------*/ |
-typedef struct |
-{ |
- struct list_head devList; // link anchor for list of devices |
- struct list_head pciList; // link anchor of all unchecked PCIADAs found |
- u32 nMajor; // asigned major number |
- int count; // count of found devices |
-} DRIVER_OBJ; |
- |
-typedef struct |
-{ |
- struct list_head list; // chained list of found and not checked devices |
- struct pci_dev *pciDev; // associated pci descriptors of the system |
- u16 index; |
-} PCIConfig; |
- |
-typedef struct |
-{ |
- struct vm_area_struct *vma; |
- struct page *pageptr; // the current active pageptr |
- unsigned long addr; // related user address |
-} MMAP_INFO; |
- |
-typedef struct |
-{ |
- struct list_head list; /* chain element of list */ |
- u16 wIndex; /* running index of all PCIADAs */ |
- PCIConfig *pPch; /* associated PCI configuration */ |
- u32 pLCR; /* base of LCR */ |
- u32 pCtl; /* base of control area */ |
- u32 pVME; /* base of VME access area */ |
- u32 pPhysVME; /* physical address of VME window */ |
- u8 bConnected; /* is it connected ?? */ |
- u16 wInitStep; /* trace of initialisation */ |
- u16 wIrq; /* the assigned irq */ |
- u32 dwInterruptCount; /* counts the VME and timeout interrupts */ |
- u16 wIrqStatus; /* last cause / status of interrupts */ |
- int nOpenCounter; /* counts the open path to this device */ |
- wait_queue_head_t event_queue; /* handle interrupt events */ |
- |
- u32 pAdrMod; /* address of address modifier register in VIC */ |
- u32 pAdrReg; /* address of VMEMM VME address register */ |
- u32 pCSR; /* address of the VMEMM CSR register */ |
- |
- u32 pPCIADACntrl; /* address of the PCIADA control register */ |
- u32 pPCIADAIntCSR; /* address of the PCIADA INTCSR register */ |
- |
- u8 cModuleNumber; /* module number */ |
- u8 cFPGAVersion; /* FPGA Version number */ |
- u8 cSystemController; /* set if VMEMM is system controller */ |
- u8 cWordMode; /* set if VMEMM is jumpered to word mode */ |
- |
- u8 bCurrentModifier; /* the current set address modifier of this device */ |
- u32 dwCurrentPageAddress; /* the current page address association */ |
- |
- MMAP_INFO currentMap; /* information about current mapped page */ |
-} DEVICE_OBJ; |
- |
-typedef struct |
-{ |
- DEVICE_OBJ *pDo; /* pointer to my PCIADA & connected VMEMM */ |
- u8 bModifier; /* the associated address modifier of this device */ |
- u8 bAccessType; /* the next access is byte, word, longword - not for memory mapped access */ |
- u8 bIncrement; /* the next increment, normally like accesstype or 0*/ |
- void (*read)(DEVICE_OBJ*, void**, u32); /* predifined read function */ |
- void (*write)(DEVICE_OBJ*, u32, void**); /* same for write */ |
- int (*AlignmentCheck)(loff_t offset); /* function to check access alignment */ |
-} PATH_OBJ; |
- |
-/*--- PROTOTYPES --------------------------------------------------------------------------*/ |
-int get_module_info(DEVICE_OBJ *pd); |
-int test_connection(DEVICE_OBJ *pd); |
- |
-/*--- PROTOTYPES --------------------------------------------------------------------------*/ |
-extern DRIVER_OBJ drv; /* driver globals */ |
- |
-#endif // __MAIN_H__ |
- |
Index: pcivme-3.2/driver/.pcivme.ko.cmd |
=================================================================== |
--- pcivme-3.2/driver/.pcivme.ko.cmd (revision 9) |
+++ pcivme-3.2/driver/.pcivme.ko.cmd (nonexistent) |
@@ -1 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/pcivme.ko := ld -r -m elf_i386 -T /usr/src/linux-headers-3.5.0-28-generic/scripts/module-common.lds --build-id -o /home/f9daq/pcivme-3.2/driver/pcivme.ko /home/f9daq/pcivme-3.2/driver/pcivme.o /home/f9daq/pcivme-3.2/driver/pcivme.mod.o |
Index: pcivme-3.2/driver/vme.h |
=================================================================== |
--- pcivme-3.2/driver/vme.h (revision 9) |
+++ pcivme-3.2/driver/vme.h (nonexistent) |
@@ -1,78 +0,0 @@ |
-#ifndef __VME_H__ |
-#define __VME_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2001-2004 ARW Elktronik Germany |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// vme.h - some important definitions about VME bus address modifiers |
-// |
-// $Log: vme.h,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// INCLUDES |
-#include <asm/types.h> |
- |
-//**************************************************************************** |
-// DEFINES |
-#ifndef __KERNEL__ |
- #define u8 __u8 |
- #define u16 __u16 |
- #define u32 __u32 |
-#endif |
- |
-typedef u16 ADDRESS_MODIFIER; |
- |
-#define Std_Sup_Data (ADDRESS_MODIFIER)0x3d |
-#define Std_Sup_Prog (ADDRESS_MODIFIER)0x3e |
-#define Std_NoPriv_Data (ADDRESS_MODIFIER)0x39 |
-#define Std_NoPriv_Prog (ADDRESS_MODIFIER)0x3a |
- |
-#define Short_Sup (ADDRESS_MODIFIER)0x2d |
-#define Short_NoPriv (ADDRESS_MODIFIER)0x29 |
- |
-#define Ext_Sup_Data (ADDRESS_MODIFIER)0x0d |
-#define Ext_Sup_Prog (ADDRESS_MODIFIER)0x0e |
-#define Ext_NoPriv_Data (ADDRESS_MODIFIER)0x09 |
-#define Ext_NoPriv_Prog (ADDRESS_MODIFIER)0x0a |
- |
-#endif // __VME_H__ |
- |
- |
Index: pcivme-3.2/driver/Makefile |
=================================================================== |
--- pcivme-3.2/driver/Makefile (revision 9) |
+++ pcivme-3.2/driver/Makefile (nonexistent) |
@@ -1,186 +0,0 @@ |
-#**************************************************************************** |
-# Copyright (C) 2000-2004 ARW Elektronik Germany |
-# |
-# |
-# 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; either version 2 of the License, or |
-# (at your option) any later version. |
-# |
-# This program 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 this program; if not, write to the Free Software |
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-# |
-# Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-#**************************************************************************** |
- |
-#**************************************************************************** |
-# |
-# Makefile - makefile for ARW Elektronik PCI to VME interfaces driver |
-# |
-# $Log: Makefile,v $ |
-# Revision 1.2 2004/08/13 19:23:26 klaus |
-# conversion to kernel-version 2.6, released version 3.0 |
-# |
-# Revision 1.1.1.2 2002/10/18 22:14:29 klaus |
-# *** empty log message *** |
-# |
-# Revision 1.1.1.1 2002/10/09 19:36:30 klaus |
-# initial import |
-# |
-# |
-#**************************************************************************** |
- |
-#**************************************************************************** |
-# please modify only here if your kernel path is elsewhere located |
-# |
-KERNEL_LOCATION =/usr/src/linux-headers-$(shell uname -r) |
- |
-EXTRA_CFLAGS := -I. |
-#**************************************************************************** |
-# removed old kernel source path retrival for support of kernels < 2.2.18! |
-# old KERNSRC = /lib/modules/$(VERSION)/build |
-# |
-KERNSRC := $(KERNEL_LOCATION) |
- |
-#**************************************************************************** |
-# whole makefile is based on availability of version.h file |
-# do a forced stop if it is not available |
-# |
-HASVERSION_H := $(shell if test -f /usr/include/linux/version.h ; then echo yes ; else echo no; fi ) |
- |
-ifeq ($(HASVERSION_H),no) |
-$(error "Can't find $(KERNEL_LOCATION)/include/linux/version.h !") |
-else |
- |
-#**************************************************************************** |
-# removed old version retrival for better cross compile support |
-# old VERSION := $(shell uname -r) |
-# |
- |
- |
-VERSION := $(shell cpp -dM -I$(KERNEL_LOCATION)/include $(KERNEL_LOCATION)/include/generated/utsrelease.h \ |
- | grep UTS_RELEASE | sed -e 's;[^"]*"\(.*\)";\1;g') |
- |
- |
-#**************************************************************************** |
-# where the driver should be installed - change here for cross install - currently not functional |
-# |
-INSTALL_LOCATION = /lib/modules/2.6.24-19-generic/ubuntu/misc/ |
- |
-#**************************************************************************** |
-# get extracted kernel VERSION and PATCHLEVEL for comparison |
-# decide to use KBUILD for kernels greater 2.6.0 |
-# |
-KVERSION := $(shell echo $(VERSION) | sed -e 's;\([1-9]\)\..*;\1;g' ) |
-KPATCHLEVEL := $(shell echo $(VERSION) | sed -e 's;[1-9]\.\([0-9]\{0,3\}\)\..*;\1;g' ) |
-USEKBUILD := $(shell if [ $(KVERSION) -gt 2 ] || [ $(KVERSION) -eq 2 ] && [ $(KPATCHLEVEL) -ge 6 ] ; \ |
- then echo "yes" ; else echo "no" ; fi) |
- |
-USEKBUILD := yes |
-#**************************************************************************** |
-# some common switches and defines |
-# |
-DBG = __NO_DEBUG__ # or __DEBUG__ to debug the driver |
-SRC = . |
- |
- |
-#**************************************************************************** |
-# preparation what to build or what to KBUILD |
-# |
-pcivme-objs := $(SRC)/main.o $(SRC)/askpci.o $(SRC)/plxbug.o $(SRC)/fops.o |
- |
- |
-ifeq ($(USEKBUILD),yes) # <<<<< USEKBUILD >>>>>> |
- |
-#**************************************************************************** |
-# what's the target |
-# |
-TARGET = pcivme.ko |
-obj-m := pcivme.o |
- |
-#**************************************************************************** |
-# add flags to standard flags |
-# |
-CPPFLAGS += -I$(PWD) -D$(DBG) |
- |
-#**************************************************************************** |
-# do it |
-# |
-all : message |
- $(MAKE) -C $(KERNSRC) M=$(PWD) V=$(VERBOSE) $(filter-out all, $(MAKECMDGOLAS)) modules |
- |
-else # <<<<< USEKBUILD >>>>>> |
- |
-#**************************************************************************** |
-# additional common switches and defines |
-# |
-CC = gcc |
-LD = ld |
-INC = $(KERNSRC)/include |
-DEP = .depend |
- |
-#**************************************************************************** |
-# what's the target |
-# |
-TARGET = pcivme.o |
- |
-#**************************************************************************** |
-# compile flags |
-# |
-CFLAGS = -O2 -D__KERNEL__ -DMODULE -Wall $(INCLUDE) -D$(DBG) |
- |
-#**************************************************************************** |
-# do it |
-# |
-all: message $(TARGET) |
- |
-$(TARGET) : $(pcivme-objs) |
- $(LD) -r $^ -o $@ |
- |
-#********** catch include file depencies ************************************ |
-ifeq ($(DEP),$(wildcard $(DEP))) |
- |
-depend: |
- makedepend -f$(DEP) -- $(CFLAGS) -- $(addsuffix .c, $(basename $(pcivme-objs))) -I$(INC) |
- |
-include $(DEP) |
- |
-else |
- |
-depend: |
- touch $(DEP) |
- makedepend -f$(DEP) -- $(CFLAGS) -- $(addsuffix .c, $(basename $(pcivme-objs))) -I$(INC) |
-endif |
- |
-endif # <<<<< USEKBUILD >>>>>> |
- |
-#********** clean all for a rebuild ***************************************** |
-clean: |
- rm -f *~ $(TARGET) $(pcivme-objs) |
- |
-#********** clean all for a rebuild ***************************************** |
-fresh: |
- touch *.c |
- make all |
- |
-#********** informations during build of driver ***************************** |
-.PHONY : message |
-message: |
- @ echo "***" |
- @ echo "*** Host machine kernel version=$(shell uname -r), Driver kernel version=$(VERSION), Path to kernel sources=$(KERNSRC), use KBUILD=$(USEKBUILD)" |
- @ echo "***" |
- |
-#********** root installation only ****************************************** |
-install: |
- ./pcivme_load 1 |
- |
-endif # <<<<< HASVERSION_H >>>>>> |
- |
-# DO NOT DELETE |
- |
Index: pcivme-3.2/driver/.pcivme.mod.o.cmd |
=================================================================== |
--- pcivme-3.2/driver/.pcivme.mod.o.cmd (revision 9) |
+++ pcivme-3.2/driver/.pcivme.mod.o.cmd (nonexistent) |
@@ -1,504 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/pcivme.mod.o := gcc -Wp,-MD,/home/f9daq/pcivme-3.2/driver/.pcivme.mod.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6/include -I/usr/src/linux-headers-3.5.0-28-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-headers-3.5.0-28-generic/include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I. -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(pcivme.mod)" -D"KBUILD_MODNAME=KBUILD_STR(pcivme)" -DMODULE -c -o /home/f9daq/pcivme-3.2/driver/pcivme.mod.o /home/f9daq/pcivme-3.2/driver/pcivme.mod.c |
- |
-source_/home/f9daq/pcivme-3.2/driver/pcivme.mod.o := /home/f9daq/pcivme-3.2/driver/pcivme.mod.c |
- |
-deps_/home/f9daq/pcivme-3.2/driver/pcivme.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/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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/types.h \ |
- include/asm-generic/types.h \ |
- include/asm-generic/int-ll64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitsperlong.h \ |
- include/asm-generic/bitsperlong.h \ |
- include/linux/posix_types.h \ |
- include/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) \ |
- include/linux/compiler-gcc.h \ |
- $(wildcard include/config/arch/supports/optimized/inlining.h) \ |
- $(wildcard include/config/optimize/inlining.h) \ |
- include/linux/compiler-gcc4.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types.h \ |
- $(wildcard include/config/x86/32.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types_32.h \ |
- include/asm-generic/posix_types.h \ |
- include/linux/poison.h \ |
- $(wildcard include/config/illegal/pointer/value.h) \ |
- include/linux/const.h \ |
- include/linux/stat.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/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) \ |
- $(wildcard include/config/numa.h) \ |
- $(wildcard include/config/compaction.h) \ |
- include/linux/sysinfo.h \ |
- /usr/lib/gcc/i686-linux-gnu/4.6/include/stdarg.h \ |
- include/linux/linkage.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/linkage.h \ |
- $(wildcard include/config/x86/64.h) \ |
- $(wildcard include/config/x86/alignment/16.h) \ |
- include/linux/stringify.h \ |
- include/linux/bitops.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitops.h \ |
- $(wildcard include/config/x86/cmov.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/alternative.h \ |
- $(wildcard include/config/paravirt.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/asm.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpufeature.h \ |
- $(wildcard include/config/x86/invlpg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/required-features.h \ |
- $(wildcard include/config/x86/minimum/cpu/family.h) \ |
- $(wildcard include/config/math/emulation.h) \ |
- $(wildcard include/config/x86/pae.h) \ |
- $(wildcard include/config/x86/cmpxchg64.h) \ |
- $(wildcard include/config/x86/use/3dnow.h) \ |
- $(wildcard include/config/x86/p6/nop.h) \ |
- include/asm-generic/bitops/fls64.h \ |
- include/asm-generic/bitops/find.h \ |
- $(wildcard include/config/generic/find/first/bit.h) \ |
- include/asm-generic/bitops/sched.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/arch_hweight.h \ |
- include/asm-generic/bitops/const_hweight.h \ |
- include/asm-generic/bitops/le.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/byteorder.h \ |
- include/linux/byteorder/little_endian.h \ |
- include/linux/swab.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swab.h \ |
- $(wildcard include/config/x86/bswap.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/typecheck.h \ |
- include/linux/printk.h \ |
- $(wildcard include/config/printk.h) \ |
- $(wildcard include/config/dynamic/debug.h) \ |
- include/linux/init.h \ |
- $(wildcard include/config/hotplug.h) \ |
- include/linux/dynamic_debug.h \ |
- include/linux/string.h \ |
- $(wildcard include/config/binary/printf.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string_32.h \ |
- $(wildcard include/config/kmemcheck.h) \ |
- include/linux/errno.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/errno.h \ |
- include/asm-generic/errno.h \ |
- include/asm-generic/errno-base.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/div64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cache.h \ |
- $(wildcard include/config/x86/l1/cache/shift.h) \ |
- $(wildcard include/config/x86/internode/cache/shift.h) \ |
- $(wildcard include/config/x86/vsmp.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/preempt/tracer.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bug.h \ |
- $(wildcard include/config/bug.h) \ |
- $(wildcard include/config/debug/bugverbose.h) \ |
- include/asm-generic/bug.h \ |
- $(wildcard include/config/generic/bug/relative/pointers.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/thread_info.h \ |
- $(wildcard include/config/ia32/emulation.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32_types.h \ |
- $(wildcard include/config/highmem4g.h) \ |
- $(wildcard include/config/highmem64g.h) \ |
- $(wildcard include/config/page/offset.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32.h \ |
- $(wildcard include/config/hugetlb/page.h) \ |
- $(wildcard include/config/debug/virtual.h) \ |
- $(wildcard include/config/flatmem.h) \ |
- $(wildcard include/config/x86/3dnow.h) \ |
- include/asm-generic/memory_model.h \ |
- $(wildcard include/config/discontigmem.h) \ |
- $(wildcard include/config/sparsemem/vmemmap.h) \ |
- $(wildcard include/config/sparsemem.h) \ |
- include/asm-generic/getorder.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor.h \ |
- $(wildcard include/config/cc/stackprotector.h) \ |
- $(wildcard include/config/m386.h) \ |
- $(wildcard include/config/m486.h) \ |
- $(wildcard include/config/x86/debugctlmsr.h) \ |
- $(wildcard include/config/cpu/sup/amd.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor-flags.h \ |
- $(wildcard include/config/vm86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vm86.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/segment.h \ |
- $(wildcard include/config/x86/32/lazy/gs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt_types.h \ |
- $(wildcard include/config/x86/local/apic.h) \ |
- $(wildcard include/config/paravirt/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc_defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/kmap_types.h \ |
- $(wildcard include/config/debug/highmem.h) \ |
- include/asm-generic/kmap_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_types.h \ |
- $(wildcard include/config/compat/vdso.h) \ |
- $(wildcard include/config/proc/fs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- $(wildcard include/config/highmem.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level_types.h \ |
- include/asm-generic/pgtable-nopud.h \ |
- include/asm-generic/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/math_emu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sigcontext.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/current.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/percpu.h \ |
- $(wildcard include/config/x86/64/smp.h) \ |
- include/asm-generic/percpu.h \ |
- $(wildcard include/config/have/setup/per/cpu/area.h) \ |
- include/linux/threads.h \ |
- $(wildcard include/config/nr/cpus.h) \ |
- $(wildcard include/config/base/small.h) \ |
- include/linux/percpu-defs.h \ |
- $(wildcard include/config/debug/force/weak/per/cpu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr-index.h \ |
- include/linux/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ioctl.h \ |
- include/asm-generic/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpumask.h \ |
- include/linux/cpumask.h \ |
- $(wildcard include/config/cpumask/offstack.h) \ |
- $(wildcard include/config/hotplug/cpu.h) \ |
- $(wildcard include/config/debug/per/cpu/maps.h) \ |
- $(wildcard include/config/disable/obsolete/cpumask/functions.h) \ |
- include/linux/bitmap.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt.h \ |
- $(wildcard include/config/transparent/hugepage.h) \ |
- $(wildcard include/config/paravirt/spinlocks.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/nops.h \ |
- $(wildcard include/config/mk7.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/special_insns.h \ |
- include/linux/personality.h \ |
- include/linux/math64.h \ |
- include/linux/err.h \ |
- include/linux/irqflags.h \ |
- $(wildcard include/config/trace/irqflags.h) \ |
- $(wildcard include/config/irqsoff/tracer.h) \ |
- $(wildcard include/config/trace/irqflags/support.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irqflags.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ftrace.h \ |
- $(wildcard include/config/function/tracer.h) \ |
- $(wildcard include/config/dynamic/ftrace.h) \ |
- include/linux/atomic.h \ |
- $(wildcard include/config/arch/has/atomic/or.h) \ |
- $(wildcard include/config/generic/atomic64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg_32.h \ |
- $(wildcard include/config/x86/cmpxchg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic64_32.h \ |
- include/asm-generic/atomic-long.h \ |
- include/linux/bottom_half.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/barrier.h \ |
- $(wildcard include/config/x86/ppro/fence.h) \ |
- $(wildcard include/config/x86/oostore.h) \ |
- include/linux/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwlock.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock.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/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/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/cgroup/mem/res/ctlr.h) \ |
- $(wildcard include/config/memory/hotplug.h) \ |
- $(wildcard include/config/have/memblock/node/map.h) \ |
- $(wildcard include/config/flat/node/mem/map.h) \ |
- $(wildcard include/config/no/bootmem.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/have/memblock/node.h) \ |
- $(wildcard include/config/need/multiple/nodes.h) \ |
- $(wildcard include/config/have/arch/early/pfn/to/nid.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 \ |
- include/linux/numa.h \ |
- $(wildcard include/config/nodes/shift.h) \ |
- include/linux/nodemask.h \ |
- include/linux/pageblock-flags.h \ |
- $(wildcard include/config/hugetlb/page/size/variable.h) \ |
- include/generated/bounds.h \ |
- include/linux/memory_hotplug.h \ |
- $(wildcard include/config/memory/hotremove.h) \ |
- $(wildcard include/config/have/arch/nodedata/extension.h) \ |
- include/linux/notifier.h \ |
- include/linux/mutex.h \ |
- $(wildcard include/config/debug/mutexes.h) \ |
- $(wildcard include/config/have/arch/mutex/cpu/relax.h) \ |
- include/linux/rwsem.h \ |
- $(wildcard include/config/rwsem/generic/spinlock.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwsem.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/tiny/rcu.h) \ |
- $(wildcard include/config/tiny/preempt/rcu.h) \ |
- $(wildcard include/config/debug/objects/rcu/head.h) \ |
- $(wildcard include/config/preempt/rt.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/linux/param.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/param.h \ |
- include/asm-generic/param.h \ |
- $(wildcard include/config/hz.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/timex.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/tsc.h \ |
- $(wildcard include/config/x86/tsc.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/smp.h \ |
- $(wildcard include/config/x86/io/apic.h) \ |
- $(wildcard include/config/x86/32/smp.h) \ |
- $(wildcard include/config/debug/nmi/selftest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec.h \ |
- $(wildcard include/config/x86/numaq.h) \ |
- $(wildcard include/config/eisa.h) \ |
- $(wildcard include/config/x86/mpparse.h) \ |
- $(wildcard include/config/acpi.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec_def.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/x86_init.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bootparam.h \ |
- include/linux/screen_info.h \ |
- include/linux/apm_bios.h \ |
- include/linux/edd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/e820.h \ |
- $(wildcard include/config/efi.h) \ |
- $(wildcard include/config/intel/txt.h) \ |
- $(wildcard include/config/hibernation.h) \ |
- $(wildcard include/config/memtest.h) \ |
- include/linux/ioport.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ist.h \ |
- include/video/edid.h \ |
- $(wildcard include/config/x86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apicdef.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apic.h \ |
- $(wildcard include/config/x86/x2apic.h) \ |
- include/linux/pm.h \ |
- $(wildcard include/config/pm.h) \ |
- $(wildcard include/config/pm/runtime.h) \ |
- $(wildcard include/config/pm/clk.h) \ |
- $(wildcard include/config/pm/generic/domains.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fixmap.h \ |
- $(wildcard include/config/provide/ohci1394/dma/init.h) \ |
- $(wildcard include/config/x86/visws/apic.h) \ |
- $(wildcard include/config/x86/f00f/bug.h) \ |
- $(wildcard include/config/x86/cyclone/timer.h) \ |
- $(wildcard include/config/pci/mmconfig.h) \ |
- $(wildcard include/config/x86/intel/mid.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/acpi.h \ |
- $(wildcard include/config/acpi/numa.h) \ |
- include/acpi/pdc_intel.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa.h \ |
- $(wildcard include/config/numa/emu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/topology.h \ |
- $(wildcard include/config/x86/ht.h) \ |
- include/asm-generic/topology.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mmu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/realmode.h \ |
- $(wildcard include/config/acpi/sleep.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io.h \ |
- $(wildcard include/config/xen.h) \ |
- include/asm-generic/iomap.h \ |
- $(wildcard include/config/has/ioport.h) \ |
- $(wildcard include/config/pci.h) \ |
- $(wildcard include/config/generic/iomap.h) \ |
- include/asm-generic/pci_iomap.h \ |
- $(wildcard include/config/no/generic/pci/ioport/map.h) \ |
- $(wildcard include/config/generic/pci/iomap.h) \ |
- include/linux/vmalloc.h \ |
- $(wildcard include/config/mmu.h) \ |
- include/xen/xen.h \ |
- $(wildcard include/config/xen/dom0.h) \ |
- include/xen/interface/xen.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pvclock-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/hypervisor.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io_apic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq_vectors.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) \ |
- include/linux/pfn.h \ |
- include/linux/mmdebug.h \ |
- $(wildcard include/config/debug/vm.h) \ |
- include/linux/sysctl.h \ |
- $(wildcard include/config/sysctl.h) \ |
- include/linux/rbtree.h \ |
- include/linux/elf.h \ |
- include/linux/elf-em.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/elf.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/user.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/user_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/auxvec.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vdso.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ldt.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/jump_label.h \ |
- include/linux/export.h \ |
- $(wildcard include/config/symbol/prefix.h) \ |
- $(wildcard include/config/modversions.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/module.h \ |
- $(wildcard include/config/m586.h) \ |
- $(wildcard include/config/m586tsc.h) \ |
- $(wildcard include/config/m586mmx.h) \ |
- $(wildcard include/config/mcore2.h) \ |
- $(wildcard include/config/matom.h) \ |
- $(wildcard include/config/m686.h) \ |
- $(wildcard include/config/mpentiumii.h) \ |
- $(wildcard include/config/mpentiumiii.h) \ |
- $(wildcard include/config/mpentiumm.h) \ |
- $(wildcard include/config/mpentium4.h) \ |
- $(wildcard include/config/mk6.h) \ |
- $(wildcard include/config/mk8.h) \ |
- $(wildcard include/config/melan.h) \ |
- $(wildcard include/config/mcrusoe.h) \ |
- $(wildcard include/config/mefficeon.h) \ |
- $(wildcard include/config/mwinchipc6.h) \ |
- $(wildcard include/config/mwinchip3d.h) \ |
- $(wildcard include/config/mcyrixiii.h) \ |
- $(wildcard include/config/mviac3/2.h) \ |
- $(wildcard include/config/mviac7.h) \ |
- $(wildcard include/config/mgeodegx1.h) \ |
- $(wildcard include/config/mgeode/lx.h) \ |
- include/asm-generic/module.h \ |
- include/linux/vermagic.h \ |
- include/generated/utsrelease.h \ |
- |
-/home/f9daq/pcivme-3.2/driver/pcivme.mod.o: $(deps_/home/f9daq/pcivme-3.2/driver/pcivme.mod.o) |
- |
-$(deps_/home/f9daq/pcivme-3.2/driver/pcivme.mod.o): |
Index: pcivme-3.2/driver/.plxbug.o.cmd |
=================================================================== |
--- pcivme-3.2/driver/.plxbug.o.cmd (revision 9) |
+++ pcivme-3.2/driver/.plxbug.o.cmd (nonexistent) |
@@ -1,567 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/./plxbug.o := gcc -Wp,-MD,/home/f9daq/pcivme-3.2/driver/./.plxbug.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6/include -I/usr/src/linux-headers-3.5.0-28-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-headers-3.5.0-28-generic/include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I. -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(plxbug)" -D"KBUILD_MODNAME=KBUILD_STR(pcivme)" -c -o /home/f9daq/pcivme-3.2/driver/./.tmp_plxbug.o /home/f9daq/pcivme-3.2/driver/./plxbug.c |
- |
-source_/home/f9daq/pcivme-3.2/driver/./plxbug.o := /home/f9daq/pcivme-3.2/driver/./plxbug.c |
- |
-deps_/home/f9daq/pcivme-3.2/driver/./plxbug.o := \ |
- /home/f9daq/pcivme-3.2/driver/./common.h \ |
- $(wildcard include/config/modversions.h) \ |
- include/linux/version.h \ |
- include/config/modversions.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/types.h \ |
- include/asm-generic/types.h \ |
- include/asm-generic/int-ll64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitsperlong.h \ |
- include/asm-generic/bitsperlong.h \ |
- $(wildcard include/config/64bit.h) \ |
- /home/f9daq/pcivme-3.2/driver/./plxbug.h \ |
- /home/f9daq/pcivme-3.2/driver/./askpci.h \ |
- include/linux/pci.h \ |
- $(wildcard include/config/pci/iov.h) \ |
- $(wildcard include/config/pcieaspm.h) \ |
- $(wildcard include/config/pci/msi.h) \ |
- $(wildcard include/config/pci/ats.h) \ |
- $(wildcard include/config/pci.h) \ |
- $(wildcard include/config/hotplug.h) \ |
- $(wildcard include/config/pcieportbus.h) \ |
- $(wildcard include/config/pcieaer.h) \ |
- $(wildcard include/config/pcie/ecrc.h) \ |
- $(wildcard include/config/ht/irq.h) \ |
- $(wildcard include/config/pci/domains.h) \ |
- $(wildcard include/config/pci/quirks.h) \ |
- $(wildcard include/config/pci/mmconfig.h) \ |
- $(wildcard include/config/hotplug/pci.h) \ |
- $(wildcard include/config/of.h) \ |
- $(wildcard include/config/eeh.h) \ |
- include/linux/pci_regs.h \ |
- include/linux/mod_devicetable.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) \ |
- include/linux/posix_types.h \ |
- include/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) \ |
- include/linux/compiler-gcc.h \ |
- $(wildcard include/config/arch/supports/optimized/inlining.h) \ |
- $(wildcard include/config/optimize/inlining.h) \ |
- include/linux/compiler-gcc4.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types.h \ |
- $(wildcard include/config/x86/32.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types_32.h \ |
- include/asm-generic/posix_types.h \ |
- include/linux/init.h \ |
- $(wildcard include/config/modules.h) \ |
- include/linux/ioport.h \ |
- include/linux/list.h \ |
- $(wildcard include/config/debug/list.h) \ |
- include/linux/poison.h \ |
- $(wildcard include/config/illegal/pointer/value.h) \ |
- include/linux/const.h \ |
- include/linux/errno.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/errno.h \ |
- include/asm-generic/errno.h \ |
- include/asm-generic/errno-base.h \ |
- include/linux/kobject.h \ |
- include/linux/sysfs.h \ |
- $(wildcard include/config/debug/lock/alloc.h) \ |
- $(wildcard include/config/sysfs.h) \ |
- include/linux/lockdep.h \ |
- $(wildcard include/config/lockdep.h) \ |
- $(wildcard include/config/lock/stat.h) \ |
- $(wildcard include/config/trace/irqflags.h) \ |
- $(wildcard include/config/prove/locking.h) \ |
- $(wildcard include/config/prove/rcu.h) \ |
- include/linux/kobject_ns.h \ |
- include/linux/atomic.h \ |
- $(wildcard include/config/arch/has/atomic/or.h) \ |
- $(wildcard include/config/generic/atomic64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic.h \ |
- $(wildcard include/config/m386.h) \ |
- $(wildcard include/config/x86/64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor.h \ |
- $(wildcard include/config/x86/vsmp.h) \ |
- $(wildcard include/config/smp.h) \ |
- $(wildcard include/config/cc/stackprotector.h) \ |
- $(wildcard include/config/paravirt.h) \ |
- $(wildcard include/config/m486.h) \ |
- $(wildcard include/config/x86/debugctlmsr.h) \ |
- $(wildcard include/config/cpu/sup/amd.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor-flags.h \ |
- $(wildcard include/config/vm86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vm86.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/segment.h \ |
- $(wildcard include/config/x86/32/lazy/gs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32_types.h \ |
- $(wildcard include/config/highmem4g.h) \ |
- $(wildcard include/config/highmem64g.h) \ |
- $(wildcard include/config/page/offset.h) \ |
- $(wildcard include/config/x86/pae.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt_types.h \ |
- $(wildcard include/config/x86/local/apic.h) \ |
- $(wildcard include/config/paravirt/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc_defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/kmap_types.h \ |
- $(wildcard include/config/debug/highmem.h) \ |
- include/asm-generic/kmap_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_types.h \ |
- $(wildcard include/config/kmemcheck.h) \ |
- $(wildcard include/config/compat/vdso.h) \ |
- $(wildcard include/config/proc/fs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- $(wildcard include/config/highmem.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level_types.h \ |
- include/asm-generic/pgtable-nopud.h \ |
- include/asm-generic/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/math_emu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sigcontext.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/current.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/percpu.h \ |
- $(wildcard include/config/x86/64/smp.h) \ |
- $(wildcard include/config/x86/cmpxchg64.h) \ |
- include/linux/kernel.h \ |
- $(wildcard include/config/preempt/voluntary.h) \ |
- $(wildcard include/config/debug/atomic/sleep.h) \ |
- $(wildcard include/config/ring/buffer.h) \ |
- $(wildcard include/config/tracing.h) \ |
- $(wildcard include/config/numa.h) \ |
- $(wildcard include/config/compaction.h) \ |
- $(wildcard include/config/ftrace/mcount/record.h) \ |
- include/linux/sysinfo.h \ |
- /usr/lib/gcc/i686-linux-gnu/4.6/include/stdarg.h \ |
- include/linux/linkage.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/linkage.h \ |
- $(wildcard include/config/x86/alignment/16.h) \ |
- include/linux/stringify.h \ |
- include/linux/bitops.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitops.h \ |
- $(wildcard include/config/x86/cmov.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/alternative.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/asm.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpufeature.h \ |
- $(wildcard include/config/x86/invlpg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/required-features.h \ |
- $(wildcard include/config/x86/minimum/cpu/family.h) \ |
- $(wildcard include/config/math/emulation.h) \ |
- $(wildcard include/config/x86/use/3dnow.h) \ |
- $(wildcard include/config/x86/p6/nop.h) \ |
- include/asm-generic/bitops/fls64.h \ |
- include/asm-generic/bitops/find.h \ |
- $(wildcard include/config/generic/find/first/bit.h) \ |
- include/asm-generic/bitops/sched.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/arch_hweight.h \ |
- include/asm-generic/bitops/const_hweight.h \ |
- include/asm-generic/bitops/le.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/byteorder.h \ |
- include/linux/byteorder/little_endian.h \ |
- include/linux/swab.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swab.h \ |
- $(wildcard include/config/x86/bswap.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/typecheck.h \ |
- include/linux/printk.h \ |
- $(wildcard include/config/printk.h) \ |
- $(wildcard include/config/dynamic/debug.h) \ |
- include/linux/dynamic_debug.h \ |
- include/linux/string.h \ |
- $(wildcard include/config/binary/printf.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/div64.h \ |
- include/asm-generic/percpu.h \ |
- $(wildcard include/config/debug/preempt.h) \ |
- $(wildcard include/config/have/setup/per/cpu/area.h) \ |
- include/linux/threads.h \ |
- $(wildcard include/config/nr/cpus.h) \ |
- $(wildcard include/config/base/small.h) \ |
- include/linux/percpu-defs.h \ |
- $(wildcard include/config/debug/force/weak/per/cpu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32.h \ |
- $(wildcard include/config/hugetlb/page.h) \ |
- $(wildcard include/config/debug/virtual.h) \ |
- $(wildcard include/config/flatmem.h) \ |
- $(wildcard include/config/x86/3dnow.h) \ |
- include/asm-generic/memory_model.h \ |
- $(wildcard include/config/discontigmem.h) \ |
- $(wildcard include/config/sparsemem/vmemmap.h) \ |
- $(wildcard include/config/sparsemem.h) \ |
- include/asm-generic/getorder.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr-index.h \ |
- include/linux/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ioctl.h \ |
- include/asm-generic/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpumask.h \ |
- include/linux/cpumask.h \ |
- $(wildcard include/config/cpumask/offstack.h) \ |
- $(wildcard include/config/hotplug/cpu.h) \ |
- $(wildcard include/config/debug/per/cpu/maps.h) \ |
- $(wildcard include/config/disable/obsolete/cpumask/functions.h) \ |
- include/linux/bitmap.h \ |
- include/linux/bug.h \ |
- $(wildcard include/config/generic/bug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bug.h \ |
- $(wildcard include/config/bug.h) \ |
- $(wildcard include/config/debug/bugverbose.h) \ |
- include/asm-generic/bug.h \ |
- $(wildcard include/config/generic/bug/relative/pointers.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt.h \ |
- $(wildcard include/config/transparent/hugepage.h) \ |
- $(wildcard include/config/paravirt/spinlocks.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/nops.h \ |
- $(wildcard include/config/mk7.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/special_insns.h \ |
- include/linux/personality.h \ |
- include/linux/cache.h \ |
- $(wildcard include/config/arch/has/cache/line/size.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cache.h \ |
- $(wildcard include/config/x86/l1/cache/shift.h) \ |
- $(wildcard include/config/x86/internode/cache/shift.h) \ |
- include/linux/math64.h \ |
- include/linux/err.h \ |
- include/linux/irqflags.h \ |
- $(wildcard include/config/irqsoff/tracer.h) \ |
- $(wildcard include/config/preempt/tracer.h) \ |
- $(wildcard include/config/trace/irqflags/support.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irqflags.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg_32.h \ |
- $(wildcard include/config/x86/cmpxchg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic64_32.h \ |
- include/asm-generic/atomic-long.h \ |
- include/linux/spinlock.h \ |
- $(wildcard include/config/debug/spinlock.h) \ |
- $(wildcard include/config/generic/lockbreak.h) \ |
- $(wildcard include/config/preempt.h) \ |
- include/linux/preempt.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/thread_info.h \ |
- $(wildcard include/config/ia32/emulation.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ftrace.h \ |
- $(wildcard include/config/function/tracer.h) \ |
- $(wildcard include/config/dynamic/ftrace.h) \ |
- include/linux/bottom_half.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/barrier.h \ |
- $(wildcard include/config/x86/ppro/fence.h) \ |
- $(wildcard include/config/x86/oostore.h) \ |
- include/linux/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwlock.h \ |
- include/linux/rwlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock.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/kref.h \ |
- include/linux/wait.h \ |
- include/linux/device.h \ |
- $(wildcard include/config/debug/devres.h) \ |
- $(wildcard include/config/cma.h) \ |
- $(wildcard include/config/devtmpfs.h) \ |
- $(wildcard include/config/sysfs/deprecated.h) \ |
- include/linux/klist.h \ |
- include/linux/mutex.h \ |
- $(wildcard include/config/debug/mutexes.h) \ |
- $(wildcard include/config/have/arch/mutex/cpu/relax.h) \ |
- include/linux/pm.h \ |
- $(wildcard include/config/pm.h) \ |
- $(wildcard include/config/pm/sleep.h) \ |
- $(wildcard include/config/pm/runtime.h) \ |
- $(wildcard include/config/pm/clk.h) \ |
- $(wildcard include/config/pm/generic/domains.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/time.h \ |
- $(wildcard include/config/arch/uses/gettimeoffset.h) \ |
- include/linux/seqlock.h \ |
- include/linux/jiffies.h \ |
- include/linux/timex.h \ |
- include/linux/param.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/param.h \ |
- include/asm-generic/param.h \ |
- $(wildcard include/config/hz.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/timex.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/tsc.h \ |
- $(wildcard include/config/x86/tsc.h) \ |
- include/linux/debugobjects.h \ |
- $(wildcard include/config/debug/objects.h) \ |
- $(wildcard include/config/debug/objects/free.h) \ |
- include/linux/completion.h \ |
- include/linux/ratelimit.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/device.h \ |
- $(wildcard include/config/acpi.h) \ |
- $(wildcard include/config/x86/dev/dma/ops.h) \ |
- $(wildcard include/config/intel/iommu.h) \ |
- $(wildcard include/config/amd/iommu.h) \ |
- include/linux/pm_wakeup.h \ |
- include/linux/io.h \ |
- $(wildcard include/config/mmu.h) \ |
- $(wildcard include/config/has/ioport.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io.h \ |
- $(wildcard include/config/xen.h) \ |
- include/asm-generic/iomap.h \ |
- $(wildcard include/config/generic/iomap.h) \ |
- include/asm-generic/pci_iomap.h \ |
- $(wildcard include/config/no/generic/pci/ioport/map.h) \ |
- $(wildcard include/config/generic/pci/iomap.h) \ |
- include/linux/vmalloc.h \ |
- include/xen/xen.h \ |
- $(wildcard include/config/xen/dom0.h) \ |
- include/xen/interface/xen.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pvclock-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/hypervisor.h \ |
- include/linux/irqreturn.h \ |
- include/linux/pci_ids.h \ |
- include/linux/pci-dma.h \ |
- include/linux/dmapool.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/scatterlist.h \ |
- include/asm-generic/scatterlist.h \ |
- $(wildcard include/config/debug/sg.h) \ |
- $(wildcard include/config/need/sg/dma/length.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pci.h \ |
- include/linux/mm.h \ |
- $(wildcard include/config/sysctl.h) \ |
- $(wildcard include/config/stack/growsup.h) \ |
- $(wildcard include/config/ia64.h) \ |
- $(wildcard include/config/ksm.h) \ |
- $(wildcard include/config/have/memblock/node/map.h) \ |
- $(wildcard include/config/have/arch/early/pfn/to/nid.h) \ |
- $(wildcard include/config/debug/pagealloc.h) \ |
- $(wildcard include/config/hibernation.h) \ |
- $(wildcard include/config/hugetlbfs.h) \ |
- include/linux/gfp.h \ |
- $(wildcard include/config/zone/dma.h) \ |
- $(wildcard include/config/zone/dma32.h) \ |
- include/linux/mmzone.h \ |
- $(wildcard include/config/force/max/zoneorder.h) \ |
- $(wildcard include/config/cgroup/mem/res/ctlr.h) \ |
- $(wildcard include/config/memory/hotplug.h) \ |
- $(wildcard include/config/flat/node/mem/map.h) \ |
- $(wildcard include/config/no/bootmem.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/have/memblock/node.h) \ |
- $(wildcard include/config/need/multiple/nodes.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/numa.h \ |
- $(wildcard include/config/nodes/shift.h) \ |
- include/linux/nodemask.h \ |
- include/linux/pageblock-flags.h \ |
- $(wildcard include/config/hugetlb/page/size/variable.h) \ |
- include/generated/bounds.h \ |
- include/linux/memory_hotplug.h \ |
- $(wildcard include/config/memory/hotremove.h) \ |
- $(wildcard include/config/have/arch/nodedata/extension.h) \ |
- include/linux/notifier.h \ |
- include/linux/rwsem.h \ |
- $(wildcard include/config/rwsem/generic/spinlock.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwsem.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/tiny/rcu.h) \ |
- $(wildcard include/config/tiny/preempt/rcu.h) \ |
- $(wildcard include/config/debug/objects/rcu/head.h) \ |
- $(wildcard include/config/preempt/rt.h) \ |
- include/linux/rcutree.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/smp.h \ |
- $(wildcard include/config/x86/io/apic.h) \ |
- $(wildcard include/config/x86/32/smp.h) \ |
- $(wildcard include/config/debug/nmi/selftest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec.h \ |
- $(wildcard include/config/x86/numaq.h) \ |
- $(wildcard include/config/eisa.h) \ |
- $(wildcard include/config/x86/mpparse.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec_def.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/x86_init.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bootparam.h \ |
- include/linux/screen_info.h \ |
- include/linux/apm_bios.h \ |
- include/linux/edd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/e820.h \ |
- $(wildcard include/config/efi.h) \ |
- $(wildcard include/config/intel/txt.h) \ |
- $(wildcard include/config/memtest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ist.h \ |
- include/video/edid.h \ |
- $(wildcard include/config/x86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apicdef.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apic.h \ |
- $(wildcard include/config/x86/x2apic.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fixmap.h \ |
- $(wildcard include/config/provide/ohci1394/dma/init.h) \ |
- $(wildcard include/config/x86/visws/apic.h) \ |
- $(wildcard include/config/x86/f00f/bug.h) \ |
- $(wildcard include/config/x86/cyclone/timer.h) \ |
- $(wildcard include/config/x86/intel/mid.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/acpi.h \ |
- $(wildcard include/config/acpi/numa.h) \ |
- include/acpi/pdc_intel.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa.h \ |
- $(wildcard include/config/numa/emu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/topology.h \ |
- $(wildcard include/config/x86/ht.h) \ |
- include/asm-generic/topology.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mmu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/realmode.h \ |
- $(wildcard include/config/acpi/sleep.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io_apic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq_vectors.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) \ |
- include/linux/pfn.h \ |
- include/linux/mmdebug.h \ |
- $(wildcard include/config/debug/vm.h) \ |
- include/linux/rbtree.h \ |
- include/linux/prio_tree.h \ |
- include/linux/debug_locks.h \ |
- $(wildcard include/config/debug/locking/api/selftests.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/mm/owner.h) \ |
- $(wildcard include/config/mmu/notifier.h) \ |
- include/linux/auxvec.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/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) \ |
- $(wildcard include/config/uprobes.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uprobes.h \ |
- include/linux/range.h \ |
- include/linux/bit_spinlock.h \ |
- include/linux/shrinker.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32.h \ |
- $(wildcard include/config/highpte.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level.h \ |
- include/asm-generic/pgtable.h \ |
- include/linux/page-flags.h \ |
- $(wildcard include/config/pageflags/extended.h) \ |
- $(wildcard include/config/arch/uses/pg/uncached.h) \ |
- $(wildcard include/config/memory/failure.h) \ |
- $(wildcard include/config/swap.h) \ |
- $(wildcard include/config/s390.h) \ |
- include/linux/huge_mm.h \ |
- include/linux/vmstat.h \ |
- $(wildcard include/config/vm/event/counters.h) \ |
- include/linux/vm_event_item.h \ |
- include/linux/slab.h \ |
- $(wildcard include/config/slab/debug.h) \ |
- $(wildcard include/config/failslab.h) \ |
- $(wildcard include/config/slub.h) \ |
- $(wildcard include/config/slob.h) \ |
- $(wildcard include/config/debug/slab.h) \ |
- $(wildcard include/config/slab.h) \ |
- include/linux/slub_def.h \ |
- $(wildcard include/config/slub/stats.h) \ |
- $(wildcard include/config/slub/debug.h) \ |
- include/linux/kmemleak.h \ |
- $(wildcard include/config/debug/kmemleak.h) \ |
- include/asm-generic/pci-dma-compat.h \ |
- include/linux/dma-mapping.h \ |
- $(wildcard include/config/has/dma.h) \ |
- $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \ |
- $(wildcard include/config/have/dma/attrs.h) \ |
- $(wildcard include/config/need/dma/map/state.h) \ |
- include/linux/dma-attrs.h \ |
- include/linux/dma-direction.h \ |
- include/linux/scatterlist.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/dma-mapping.h \ |
- $(wildcard include/config/isa.h) \ |
- $(wildcard include/config/x86/dma/remap.h) \ |
- include/linux/kmemcheck.h \ |
- include/linux/dma-debug.h \ |
- $(wildcard include/config/dma/api/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swiotlb.h \ |
- $(wildcard include/config/swiotlb.h) \ |
- include/linux/swiotlb.h \ |
- include/asm-generic/dma-coherent.h \ |
- $(wildcard include/config/have/generic/dma/coherent.h) \ |
- include/linux/dma-contiguous.h \ |
- $(wildcard include/config/cma/areas.h) \ |
- include/asm-generic/dma-mapping-common.h \ |
- include/asm-generic/pci.h \ |
- /home/f9daq/pcivme-3.2/driver/./main.h \ |
- |
-/home/f9daq/pcivme-3.2/driver/./plxbug.o: $(deps_/home/f9daq/pcivme-3.2/driver/./plxbug.o) |
- |
-$(deps_/home/f9daq/pcivme-3.2/driver/./plxbug.o): |
Index: pcivme-3.2/driver/common.h |
=================================================================== |
--- pcivme-3.2/driver/common.h (revision 9) |
+++ pcivme-3.2/driver/common.h (nonexistent) |
@@ -1,83 +0,0 @@ |
-#ifndef __COMMON_H__ |
-#define __COMMON_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// common.h - common definitions to include in all *.c files |
-// |
-// $Log: common.h,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-#include <generated/autoconf.h> |
-#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS) |
- #define MODVERSIONS |
-#endif |
- |
-#include <linux/version.h> |
- |
-#ifdef MODVERSIONS |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) |
- #include <config/modversions.h> |
- #else |
- #include <linux/modversions.h> |
- #endif |
-#endif |
- |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) |
- #define kfree_s(ptr, size) kfree(ptr) /* a workaround cause kfree_s is disapeared in V 2.4 */ |
-#endif |
- |
-// circumvent deprecated MOD_..._USE_COUNT |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) |
-#define __MOD_INC_USE_COUNT__ |
-#define __MOD_DEC_USE_COUNT__ |
-#else |
-#define __MOD_INC_USE_COUNT__ MOD_INC_USE_COUNT |
-#define __MOD_DEC_USE_COUNT__ MOD_DEC_USE_COUNT |
-#endif |
- |
-// switch to disable all printks for not debugging |
-#ifdef __DEBUG__ |
- #define PRINTK printk |
-#else |
- #define PRINTK(stuff...) |
-#endif |
- |
-#endif /* __COMMON_H__ */ |
Index: pcivme-3.2/driver/pciif.h |
=================================================================== |
--- pcivme-3.2/driver/pciif.h (revision 9) |
+++ pcivme-3.2/driver/pciif.h (nonexistent) |
@@ -1,100 +0,0 @@ |
-#ifndef __PCIIF_H__ |
-#define __PCIIF_H__ |
-//**************************************************************************** |
-// Copyright (C) 2001-2004 ARW Elktronik Germany |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// pciif.h - all definitions about the VMEMM module |
-// |
-// $Log: pciif.h,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// INCLUDES |
-#include <linux/types.h> |
-#include "vic.h" |
- |
-//**************************************************************************** |
-// DEFINES |
- |
-/* type of this VMEMM ---------------------------------------------------*/ |
-#define VMEMM_MODULE_TYPE 0x1000 |
- |
-/*-----------------------------------------------------------------------*/ |
-/* all addresses relative to PCI-Window */ |
- |
-/*------------- addresses of vmemm local devices ------------------------*/ |
-#define CSR (u32)0x0000 /* control status register */ |
-#define VICRES (u32)0x0004 /* VIC reset register / interrupt status */ |
-#define ADRHL (u32)0x0008 /* AdrH and AdrL as long */ |
-#define VICBASE (u32)0x0400 /* base of VIC68A */ |
-#define VECBASE (u32)0x0800 /* base of vector registers */ |
-#define VMEBASE (u32)0x1000 /* base of 4k VME-BUS window */ |
- |
-/*---------- parts of addresses derived from above ----------------------*/ |
-#define IVEC1 (u32)(VECBASE + 3) /* IACK 1 vector */ |
-#define IVEC2 (u32)(VECBASE + 5) /* IACK 2 vector */ |
-#define IVEC3 (u32)(VECBASE + 7) /* IACK 3 vector */ |
-#define IVEC4 (u32)(VECBASE + 9) /* IACK 4 vector */ |
-#define IVEC5 (u32)(VECBASE + b) /* IACK 5 vector */ |
-#define IVEC6 (u32)(VECBASE + d) /* IACK 6 vector */ |
-#define IVEC7 (u32)(VECBASE + f) /* IACK 7 vector */ |
- |
-#define ADRL (u32)ADRHL /* u16 access addr. VME-addr */ |
-#define ADRH (u32)(ADRHL + 2) |
- |
-/*--------- address mask ------------------------------------------------*/ |
-#define VME_ADR_MASK (u32)0x00000FFF /* masks lower part of address */ |
- |
-/*--------- some masks in CSR -------------------------------------------*/ |
-#define FLAG_RMC (u16)0x0001 /* set = next cycle is RMC */ |
-#define FLAG_BLT (u16)0x0002 /* don't use it. must be 0 */ |
-#define FLAG_WORD (u16)0x0004 /* it is a u16 wide interface */ |
-#define FLAG_SYSCTL (u16)0x0008 /* the system contrl. is enabled */ |
-#define MASK_MODNR (u16)0x00F0 /* the mask to get the module No */ |
-#define MASK_FPGA (u16)0x0F00 /* the mask to get the FPGA rev. */ |
-#define MASK_MODTYPE (u16)0xF000 /* the mask to get type of module*/ |
- |
-/*---------- action commands in VICRES -----------------------------------*/ |
-#define GLOBAL_RESET (u16)0x000A /* write this to reset the intrfc */ |
-#define LOCAL_RESET (u16)0x0005 /* generate a local reset */ |
- |
-#endif // __PCIIF_H__ |
- |
- |
Index: pcivme-3.2/driver/pcivme.mod.c |
=================================================================== |
--- pcivme-3.2/driver/pcivme.mod.c (revision 9) |
+++ pcivme-3.2/driver/pcivme.mod.c (nonexistent) |
@@ -1,63 +0,0 @@ |
-#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 struct modversion_info ____versions[] |
-__used |
-__attribute__((section("__versions"))) = { |
- { 0xee584c90, "module_layout" }, |
- { 0x6bc3fbc0, "__unregister_chrdev" }, |
- { 0x1fedf0f4, "__request_region" }, |
- { 0x440a4045, "kmalloc_caches" }, |
- { 0x69a358a6, "iomem_resource" }, |
- { 0xc8b57c27, "autoremove_wake_function" }, |
- { 0x27ca2b04, "pci_disable_device" }, |
- { 0x88ef4b8, "remove_proc_entry" }, |
- { 0xc8f68b16, "__register_chrdev" }, |
- { 0x6339a8bc, "mutex_unlock" }, |
- { 0x91715312, "sprintf" }, |
- { 0x68dfc59f, "__init_waitqueue_head" }, |
- { 0x215f9a25, "current_task" }, |
- { 0xc5c74531, "__mutex_init" }, |
- { 0x50eedeb8, "printk" }, |
- { 0xb4390f9a, "mcount" }, |
- { 0xfd03d00a, "pci_bus_write_config_dword" }, |
- { 0xcf510c4a, "mutex_lock" }, |
- { 0x2072ee9b, "request_threaded_irq" }, |
- { 0xa8a6f639, "__check_region" }, |
- { 0x42c8de35, "ioremap_nocache" }, |
- { 0x4d66a1f8, "pci_bus_read_config_word" }, |
- { 0x580199b1, "pci_bus_read_config_dword" }, |
- { 0x4292364c, "schedule" }, |
- { 0xf68c082c, "create_proc_entry" }, |
- { 0x7c61340c, "__release_region" }, |
- { 0x7807eace, "kmem_cache_alloc_trace" }, |
- { 0xe45f60d8, "__wake_up" }, |
- { 0x37a0cba, "kfree" }, |
- { 0x622fa02a, "prepare_to_wait" }, |
- { 0xedc03953, "iounmap" }, |
- { 0x1fb6d7da, "pci_get_device" }, |
- { 0x75bb675a, "finish_wait" }, |
- { 0xedeaaff1, "pci_enable_device" }, |
- { 0xf20dabd8, "free_irq" }, |
-}; |
- |
-static const char __module_depends[] |
-__used |
-__attribute__((section(".modinfo"))) = |
-"depends="; |
- |
- |
-MODULE_INFO(srcversion, "BC454FCFCA2F039491927C2"); |
Index: pcivme-3.2/driver/pcivme_load |
=================================================================== |
--- pcivme-3.2/driver/pcivme_load (revision 9) |
+++ pcivme-3.2/driver/pcivme_load (nonexistent) |
@@ -1,36 +0,0 @@ |
-#!/bin/sh |
-# |
-# a simple shell script to load the pcivme driver module |
-# and to install the associated device files (Hi, 2004) |
-# |
-# $Log: pcivme_load,v $ |
-# Revision 1.4 2004/08/13 19:34:45 klaus |
-# Changed to support kernels 2.6 and lesser |
-# |
-# Revision 1.3 2004/08/13 19:23:26 klaus |
-# conversion to kernel-version 2.6, released version 3.0 |
-# |
-# |
-module="pcivme" |
-device="vmemm_" |
-group="root" |
-mode="666" |
- |
-# the modulenumber must be given |
-if test $1 |
-then |
- # invoke insmod |
- /sbin/insmod $module.ko || /sbin/insmod $module.o || exit 1 |
- |
- # get major number from /proc/devices |
- major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"` |
- |
- rm -f /dev/${device}$1 |
- mknod /dev/${device}$1 c $major $1 |
- |
- chgrp $group /dev/${device}$1 |
- chmod $mode /dev/${device}$1 |
-else |
- echo "usage: pcivme_load module_number" |
-fi |
- |
/pcivme-3.2/driver/pcivme_load |
Property changes: |
Deleted: svn:executable |
Index: pcivme-3.2/driver/modules.order |
=================================================================== |
--- pcivme-3.2/driver/modules.order (revision 9) |
+++ pcivme-3.2/driver/modules.order (nonexistent) |
@@ -1 +0,0 @@ |
-kernel//home/f9daq/pcivme-3.2/driver/pcivme.ko |
Index: pcivme-3.2/driver/plxbug.c |
=================================================================== |
--- pcivme-3.2/driver/plxbug.c (revision 9) |
+++ pcivme-3.2/driver/plxbug.c (nonexistent) |
@@ -1,138 +0,0 @@ |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// plxbug.c -- plx 9050 bug fix code the PCIVME PCI to VME Interface |
-// |
-// $Log: plxbug.c,v $ |
-// Revision 1.6 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.5 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.4 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.3 2002/10/10 18:57:46 klaus |
-// source beautyfied |
-// |
-//**************************************************************************** |
- |
-#include "common.h" /* must be the first include */ |
- |
-#include <asm/types.h> |
-#include "plxbug.h" |
-#include "main.h" |
- |
-/*------------------------------------------------------------------------- |
-// DEFINES |
-*/ |
-#define PCR_MEMORY_BUG 0x00 // 1st PCR index of potential bug |
-#define PCR_IO_BUG 0x01 // 2nd PCR index of potential bug |
-#define PCR_MEMORY_OK 0x04 // 1st PCR index of no bug |
-#define PCR_IO_OK 0x05 // 2nd PCR index of no bug |
- |
-//------------------------------------------------------------------------- |
-// EXTERNALS |
- |
-//------------------------------------------------------------------------- |
-// function to call for bug fix |
- |
- |
-// fixes address of LCR through change in address windows - updates PCIConfigHeader |
-int PLX9050BugFix(PCIConfig *pHeader) |
-{ |
- u32 dwDataBug; |
- u32 dwDataOK; |
- int result = 0; |
- |
- if (pHeader->pciDev->resource[PCR_MEMORY_BUG].start & 0x80) |
- { |
- result = pci_read_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_0, &dwDataBug); |
- if (result) |
- goto fail; |
- |
- result = pci_read_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_4, &dwDataOK); |
- if (result) |
- goto fail; |
- |
- result = pci_write_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_0, dwDataOK); |
- if (result) |
- goto fail; |
- |
- result = pci_write_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_4, dwDataBug); |
- if (result) |
- goto fail; |
- |
- // put changes in structures, too |
- dwDataBug = pHeader->pciDev->resource[PCR_MEMORY_BUG].start; |
- dwDataOK = pHeader->pciDev->resource[PCR_MEMORY_OK].start; |
- |
- pHeader->pciDev->resource[PCR_MEMORY_BUG].start = dwDataOK; |
- pHeader->pciDev->resource[PCR_MEMORY_OK].start = dwDataBug; |
- |
- PRINTK(KERN_DEBUG "%s : bugfix memory done.\n", DEVICE_NAME); |
- } |
- |
- if (pHeader->pciDev->resource[PCR_IO_BUG].start & 0x80) |
- { |
- result = pci_read_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_1, &dwDataBug); |
- if (result) |
- goto fail; |
- |
- result = pci_read_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_5, &dwDataOK); |
- if (result) |
- goto fail; |
- |
- result = pci_write_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_1, dwDataOK); |
- if (result) |
- goto fail; |
- |
- result = pci_write_config_dword(pHeader->pciDev, PCI_BASE_ADDRESS_5, dwDataBug); |
- if (result) |
- goto fail; |
- |
- // put changes in structures, too |
- dwDataBug = pHeader->pciDev->resource[PCR_IO_BUG].start; |
- dwDataOK = pHeader->pciDev->resource[PCR_IO_OK].start; |
- |
- pHeader->pciDev->resource[PCR_IO_BUG].start = dwDataOK; |
- pHeader->pciDev->resource[PCR_IO_OK].start = dwDataBug; |
- |
- PRINTK(KERN_DEBUG "%s : bugfix io done.\n", DEVICE_NAME); |
- } |
- |
- fail: |
- if (result) |
- printk(KERN_ERR "%s : PCI-error %d!\n", DEVICE_NAME, result); |
- |
- return result; |
-} |
- |
Index: pcivme-3.2/driver/.fops.o.cmd |
=================================================================== |
--- pcivme-3.2/driver/.fops.o.cmd (revision 9) |
+++ pcivme-3.2/driver/.fops.o.cmd (nonexistent) |
@@ -1,758 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/./fops.o := gcc -Wp,-MD,/home/f9daq/pcivme-3.2/driver/./.fops.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6/include -I/usr/src/linux-headers-3.5.0-28-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-headers-3.5.0-28-generic/include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I. -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(fops)" -D"KBUILD_MODNAME=KBUILD_STR(pcivme)" -c -o /home/f9daq/pcivme-3.2/driver/./.tmp_fops.o /home/f9daq/pcivme-3.2/driver/./fops.c |
- |
-source_/home/f9daq/pcivme-3.2/driver/./fops.o := /home/f9daq/pcivme-3.2/driver/./fops.c |
- |
-deps_/home/f9daq/pcivme-3.2/driver/./fops.o := \ |
- /home/f9daq/pcivme-3.2/driver/./common.h \ |
- $(wildcard include/config/modversions.h) \ |
- include/linux/version.h \ |
- include/config/modversions.h \ |
- 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/numa.h) \ |
- $(wildcard include/config/compaction.h) \ |
- $(wildcard include/config/ftrace/mcount/record.h) \ |
- include/linux/sysinfo.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/types.h \ |
- include/asm-generic/types.h \ |
- include/asm-generic/int-ll64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitsperlong.h \ |
- include/asm-generic/bitsperlong.h \ |
- include/linux/posix_types.h \ |
- include/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) \ |
- include/linux/compiler-gcc.h \ |
- $(wildcard include/config/arch/supports/optimized/inlining.h) \ |
- $(wildcard include/config/optimize/inlining.h) \ |
- include/linux/compiler-gcc4.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types.h \ |
- $(wildcard include/config/x86/32.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types_32.h \ |
- include/asm-generic/posix_types.h \ |
- /usr/lib/gcc/i686-linux-gnu/4.6/include/stdarg.h \ |
- include/linux/linkage.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/linkage.h \ |
- $(wildcard include/config/x86/64.h) \ |
- $(wildcard include/config/x86/alignment/16.h) \ |
- include/linux/stringify.h \ |
- include/linux/bitops.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitops.h \ |
- $(wildcard include/config/x86/cmov.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/alternative.h \ |
- $(wildcard include/config/smp.h) \ |
- $(wildcard include/config/paravirt.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/asm.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpufeature.h \ |
- $(wildcard include/config/x86/invlpg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/required-features.h \ |
- $(wildcard include/config/x86/minimum/cpu/family.h) \ |
- $(wildcard include/config/math/emulation.h) \ |
- $(wildcard include/config/x86/pae.h) \ |
- $(wildcard include/config/x86/cmpxchg64.h) \ |
- $(wildcard include/config/x86/use/3dnow.h) \ |
- $(wildcard include/config/x86/p6/nop.h) \ |
- include/asm-generic/bitops/fls64.h \ |
- include/asm-generic/bitops/find.h \ |
- $(wildcard include/config/generic/find/first/bit.h) \ |
- include/asm-generic/bitops/sched.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/arch_hweight.h \ |
- include/asm-generic/bitops/const_hweight.h \ |
- include/asm-generic/bitops/le.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/byteorder.h \ |
- include/linux/byteorder/little_endian.h \ |
- include/linux/swab.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swab.h \ |
- $(wildcard include/config/x86/bswap.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/typecheck.h \ |
- include/linux/printk.h \ |
- $(wildcard include/config/printk.h) \ |
- $(wildcard include/config/dynamic/debug.h) \ |
- include/linux/init.h \ |
- $(wildcard include/config/modules.h) \ |
- $(wildcard include/config/hotplug.h) \ |
- include/linux/dynamic_debug.h \ |
- include/linux/string.h \ |
- $(wildcard include/config/binary/printf.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string_32.h \ |
- $(wildcard include/config/kmemcheck.h) \ |
- include/linux/errno.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/errno.h \ |
- include/asm-generic/errno.h \ |
- include/asm-generic/errno-base.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/div64.h \ |
- include/linux/module.h \ |
- $(wildcard include/config/sysfs.h) \ |
- $(wildcard include/config/unused/symbols.h) \ |
- $(wildcard include/config/generic/bug.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/list.h \ |
- $(wildcard include/config/debug/list.h) \ |
- include/linux/poison.h \ |
- $(wildcard include/config/illegal/pointer/value.h) \ |
- include/linux/const.h \ |
- include/linux/stat.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cache.h \ |
- $(wildcard include/config/x86/l1/cache/shift.h) \ |
- $(wildcard include/config/x86/internode/cache/shift.h) \ |
- $(wildcard include/config/x86/vsmp.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/preempt/tracer.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bug.h \ |
- $(wildcard include/config/bug.h) \ |
- $(wildcard include/config/debug/bugverbose.h) \ |
- include/asm-generic/bug.h \ |
- $(wildcard include/config/generic/bug/relative/pointers.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/thread_info.h \ |
- $(wildcard include/config/ia32/emulation.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32_types.h \ |
- $(wildcard include/config/highmem4g.h) \ |
- $(wildcard include/config/highmem64g.h) \ |
- $(wildcard include/config/page/offset.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32.h \ |
- $(wildcard include/config/hugetlb/page.h) \ |
- $(wildcard include/config/debug/virtual.h) \ |
- $(wildcard include/config/flatmem.h) \ |
- $(wildcard include/config/x86/3dnow.h) \ |
- include/asm-generic/memory_model.h \ |
- $(wildcard include/config/discontigmem.h) \ |
- $(wildcard include/config/sparsemem/vmemmap.h) \ |
- $(wildcard include/config/sparsemem.h) \ |
- include/asm-generic/getorder.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor.h \ |
- $(wildcard include/config/cc/stackprotector.h) \ |
- $(wildcard include/config/m386.h) \ |
- $(wildcard include/config/m486.h) \ |
- $(wildcard include/config/x86/debugctlmsr.h) \ |
- $(wildcard include/config/cpu/sup/amd.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor-flags.h \ |
- $(wildcard include/config/vm86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vm86.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/segment.h \ |
- $(wildcard include/config/x86/32/lazy/gs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt_types.h \ |
- $(wildcard include/config/x86/local/apic.h) \ |
- $(wildcard include/config/paravirt/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc_defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/kmap_types.h \ |
- $(wildcard include/config/debug/highmem.h) \ |
- include/asm-generic/kmap_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_types.h \ |
- $(wildcard include/config/compat/vdso.h) \ |
- $(wildcard include/config/proc/fs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- $(wildcard include/config/highmem.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level_types.h \ |
- include/asm-generic/pgtable-nopud.h \ |
- include/asm-generic/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/math_emu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sigcontext.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/current.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/percpu.h \ |
- $(wildcard include/config/x86/64/smp.h) \ |
- include/asm-generic/percpu.h \ |
- $(wildcard include/config/have/setup/per/cpu/area.h) \ |
- include/linux/threads.h \ |
- $(wildcard include/config/nr/cpus.h) \ |
- $(wildcard include/config/base/small.h) \ |
- include/linux/percpu-defs.h \ |
- $(wildcard include/config/debug/force/weak/per/cpu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr-index.h \ |
- include/linux/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ioctl.h \ |
- include/asm-generic/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpumask.h \ |
- include/linux/cpumask.h \ |
- $(wildcard include/config/cpumask/offstack.h) \ |
- $(wildcard include/config/hotplug/cpu.h) \ |
- $(wildcard include/config/debug/per/cpu/maps.h) \ |
- $(wildcard include/config/disable/obsolete/cpumask/functions.h) \ |
- include/linux/bitmap.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt.h \ |
- $(wildcard include/config/transparent/hugepage.h) \ |
- $(wildcard include/config/paravirt/spinlocks.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/nops.h \ |
- $(wildcard include/config/mk7.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/special_insns.h \ |
- include/linux/personality.h \ |
- include/linux/math64.h \ |
- include/linux/err.h \ |
- include/linux/irqflags.h \ |
- $(wildcard include/config/trace/irqflags.h) \ |
- $(wildcard include/config/irqsoff/tracer.h) \ |
- $(wildcard include/config/trace/irqflags/support.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irqflags.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ftrace.h \ |
- $(wildcard include/config/function/tracer.h) \ |
- $(wildcard include/config/dynamic/ftrace.h) \ |
- include/linux/atomic.h \ |
- $(wildcard include/config/arch/has/atomic/or.h) \ |
- $(wildcard include/config/generic/atomic64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg_32.h \ |
- $(wildcard include/config/x86/cmpxchg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic64_32.h \ |
- include/asm-generic/atomic-long.h \ |
- include/linux/bottom_half.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/barrier.h \ |
- $(wildcard include/config/x86/ppro/fence.h) \ |
- $(wildcard include/config/x86/oostore.h) \ |
- include/linux/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwlock.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock.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/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/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/cgroup/mem/res/ctlr.h) \ |
- $(wildcard include/config/memory/hotplug.h) \ |
- $(wildcard include/config/have/memblock/node/map.h) \ |
- $(wildcard include/config/flat/node/mem/map.h) \ |
- $(wildcard include/config/no/bootmem.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/have/memblock/node.h) \ |
- $(wildcard include/config/need/multiple/nodes.h) \ |
- $(wildcard include/config/have/arch/early/pfn/to/nid.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 \ |
- include/linux/numa.h \ |
- $(wildcard include/config/nodes/shift.h) \ |
- include/linux/nodemask.h \ |
- include/linux/pageblock-flags.h \ |
- $(wildcard include/config/hugetlb/page/size/variable.h) \ |
- include/generated/bounds.h \ |
- include/linux/memory_hotplug.h \ |
- $(wildcard include/config/memory/hotremove.h) \ |
- $(wildcard include/config/have/arch/nodedata/extension.h) \ |
- include/linux/notifier.h \ |
- include/linux/mutex.h \ |
- $(wildcard include/config/debug/mutexes.h) \ |
- $(wildcard include/config/have/arch/mutex/cpu/relax.h) \ |
- include/linux/rwsem.h \ |
- $(wildcard include/config/rwsem/generic/spinlock.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwsem.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/tiny/rcu.h) \ |
- $(wildcard include/config/tiny/preempt/rcu.h) \ |
- $(wildcard include/config/debug/objects/rcu/head.h) \ |
- $(wildcard include/config/preempt/rt.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/linux/param.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/param.h \ |
- include/asm-generic/param.h \ |
- $(wildcard include/config/hz.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/timex.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/tsc.h \ |
- $(wildcard include/config/x86/tsc.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/smp.h \ |
- $(wildcard include/config/x86/io/apic.h) \ |
- $(wildcard include/config/x86/32/smp.h) \ |
- $(wildcard include/config/debug/nmi/selftest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec.h \ |
- $(wildcard include/config/x86/numaq.h) \ |
- $(wildcard include/config/eisa.h) \ |
- $(wildcard include/config/x86/mpparse.h) \ |
- $(wildcard include/config/acpi.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec_def.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/x86_init.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bootparam.h \ |
- include/linux/screen_info.h \ |
- include/linux/apm_bios.h \ |
- include/linux/edd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/e820.h \ |
- $(wildcard include/config/efi.h) \ |
- $(wildcard include/config/intel/txt.h) \ |
- $(wildcard include/config/hibernation.h) \ |
- $(wildcard include/config/memtest.h) \ |
- include/linux/ioport.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ist.h \ |
- include/video/edid.h \ |
- $(wildcard include/config/x86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apicdef.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apic.h \ |
- $(wildcard include/config/x86/x2apic.h) \ |
- include/linux/pm.h \ |
- $(wildcard include/config/pm.h) \ |
- $(wildcard include/config/pm/runtime.h) \ |
- $(wildcard include/config/pm/clk.h) \ |
- $(wildcard include/config/pm/generic/domains.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fixmap.h \ |
- $(wildcard include/config/provide/ohci1394/dma/init.h) \ |
- $(wildcard include/config/x86/visws/apic.h) \ |
- $(wildcard include/config/x86/f00f/bug.h) \ |
- $(wildcard include/config/x86/cyclone/timer.h) \ |
- $(wildcard include/config/pci/mmconfig.h) \ |
- $(wildcard include/config/x86/intel/mid.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/acpi.h \ |
- $(wildcard include/config/acpi/numa.h) \ |
- include/acpi/pdc_intel.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa.h \ |
- $(wildcard include/config/numa/emu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/topology.h \ |
- $(wildcard include/config/x86/ht.h) \ |
- include/asm-generic/topology.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mmu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/realmode.h \ |
- $(wildcard include/config/acpi/sleep.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io.h \ |
- $(wildcard include/config/xen.h) \ |
- include/asm-generic/iomap.h \ |
- $(wildcard include/config/has/ioport.h) \ |
- $(wildcard include/config/pci.h) \ |
- $(wildcard include/config/generic/iomap.h) \ |
- include/asm-generic/pci_iomap.h \ |
- $(wildcard include/config/no/generic/pci/ioport/map.h) \ |
- $(wildcard include/config/generic/pci/iomap.h) \ |
- include/linux/vmalloc.h \ |
- $(wildcard include/config/mmu.h) \ |
- include/xen/xen.h \ |
- $(wildcard include/config/xen/dom0.h) \ |
- include/xen/interface/xen.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pvclock-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/hypervisor.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io_apic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq_vectors.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) \ |
- include/linux/pfn.h \ |
- include/linux/mmdebug.h \ |
- $(wildcard include/config/debug/vm.h) \ |
- include/linux/sysctl.h \ |
- $(wildcard include/config/sysctl.h) \ |
- include/linux/rbtree.h \ |
- include/linux/elf.h \ |
- include/linux/elf-em.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/elf.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/user.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/user_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/auxvec.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vdso.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ldt.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/jump_label.h \ |
- include/linux/export.h \ |
- $(wildcard include/config/symbol/prefix.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/module.h \ |
- $(wildcard include/config/m586.h) \ |
- $(wildcard include/config/m586tsc.h) \ |
- $(wildcard include/config/m586mmx.h) \ |
- $(wildcard include/config/mcore2.h) \ |
- $(wildcard include/config/matom.h) \ |
- $(wildcard include/config/m686.h) \ |
- $(wildcard include/config/mpentiumii.h) \ |
- $(wildcard include/config/mpentiumiii.h) \ |
- $(wildcard include/config/mpentiumm.h) \ |
- $(wildcard include/config/mpentium4.h) \ |
- $(wildcard include/config/mk6.h) \ |
- $(wildcard include/config/mk8.h) \ |
- $(wildcard include/config/melan.h) \ |
- $(wildcard include/config/mcrusoe.h) \ |
- $(wildcard include/config/mefficeon.h) \ |
- $(wildcard include/config/mwinchipc6.h) \ |
- $(wildcard include/config/mwinchip3d.h) \ |
- $(wildcard include/config/mcyrixiii.h) \ |
- $(wildcard include/config/mviac3/2.h) \ |
- $(wildcard include/config/mviac7.h) \ |
- $(wildcard include/config/mgeodegx1.h) \ |
- $(wildcard include/config/mgeode/lx.h) \ |
- include/asm-generic/module.h \ |
- include/linux/pci.h \ |
- $(wildcard include/config/pci/iov.h) \ |
- $(wildcard include/config/pcieaspm.h) \ |
- $(wildcard include/config/pci/msi.h) \ |
- $(wildcard include/config/pci/ats.h) \ |
- $(wildcard include/config/pcieportbus.h) \ |
- $(wildcard include/config/pcieaer.h) \ |
- $(wildcard include/config/pcie/ecrc.h) \ |
- $(wildcard include/config/ht/irq.h) \ |
- $(wildcard include/config/pci/domains.h) \ |
- $(wildcard include/config/pci/quirks.h) \ |
- $(wildcard include/config/hotplug/pci.h) \ |
- $(wildcard include/config/of.h) \ |
- $(wildcard include/config/eeh.h) \ |
- include/linux/pci_regs.h \ |
- include/linux/mod_devicetable.h \ |
- include/linux/device.h \ |
- $(wildcard include/config/debug/devres.h) \ |
- $(wildcard include/config/devtmpfs.h) \ |
- $(wildcard include/config/sysfs/deprecated.h) \ |
- include/linux/klist.h \ |
- include/linux/ratelimit.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/device.h \ |
- $(wildcard include/config/x86/dev/dma/ops.h) \ |
- $(wildcard include/config/intel/iommu.h) \ |
- $(wildcard include/config/amd/iommu.h) \ |
- include/linux/pm_wakeup.h \ |
- include/linux/io.h \ |
- include/linux/irqreturn.h \ |
- include/linux/pci_ids.h \ |
- include/linux/pci-dma.h \ |
- include/linux/dmapool.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/scatterlist.h \ |
- include/asm-generic/scatterlist.h \ |
- $(wildcard include/config/debug/sg.h) \ |
- $(wildcard include/config/need/sg/dma/length.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pci.h \ |
- include/linux/mm.h \ |
- $(wildcard include/config/stack/growsup.h) \ |
- $(wildcard include/config/ksm.h) \ |
- $(wildcard include/config/debug/pagealloc.h) \ |
- $(wildcard include/config/hugetlbfs.h) \ |
- include/linux/prio_tree.h \ |
- include/linux/debug_locks.h \ |
- $(wildcard include/config/debug/locking/api/selftests.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/mm/owner.h) \ |
- $(wildcard include/config/mmu/notifier.h) \ |
- include/linux/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) \ |
- $(wildcard include/config/uprobes.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uprobes.h \ |
- include/linux/range.h \ |
- include/linux/bit_spinlock.h \ |
- include/linux/shrinker.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32.h \ |
- $(wildcard include/config/highpte.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level.h \ |
- include/asm-generic/pgtable.h \ |
- include/linux/page-flags.h \ |
- $(wildcard include/config/pageflags/extended.h) \ |
- $(wildcard include/config/arch/uses/pg/uncached.h) \ |
- $(wildcard include/config/memory/failure.h) \ |
- $(wildcard include/config/swap.h) \ |
- $(wildcard include/config/s390.h) \ |
- include/linux/huge_mm.h \ |
- include/linux/vmstat.h \ |
- $(wildcard include/config/vm/event/counters.h) \ |
- include/linux/vm_event_item.h \ |
- include/linux/slab.h \ |
- $(wildcard include/config/slab/debug.h) \ |
- $(wildcard include/config/failslab.h) \ |
- $(wildcard include/config/slub.h) \ |
- $(wildcard include/config/slob.h) \ |
- $(wildcard include/config/debug/slab.h) \ |
- $(wildcard include/config/slab.h) \ |
- include/linux/slub_def.h \ |
- $(wildcard include/config/slub/stats.h) \ |
- $(wildcard include/config/slub/debug.h) \ |
- include/linux/kmemleak.h \ |
- $(wildcard include/config/debug/kmemleak.h) \ |
- include/asm-generic/pci-dma-compat.h \ |
- include/linux/dma-mapping.h \ |
- $(wildcard include/config/has/dma.h) \ |
- $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \ |
- $(wildcard include/config/have/dma/attrs.h) \ |
- $(wildcard include/config/need/dma/map/state.h) \ |
- include/linux/dma-attrs.h \ |
- include/linux/dma-direction.h \ |
- include/linux/scatterlist.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/dma-mapping.h \ |
- $(wildcard include/config/isa.h) \ |
- $(wildcard include/config/x86/dma/remap.h) \ |
- include/linux/kmemcheck.h \ |
- include/linux/dma-debug.h \ |
- $(wildcard include/config/dma/api/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swiotlb.h \ |
- $(wildcard include/config/swiotlb.h) \ |
- include/linux/swiotlb.h \ |
- include/asm-generic/dma-coherent.h \ |
- $(wildcard include/config/have/generic/dma/coherent.h) \ |
- include/linux/dma-contiguous.h \ |
- $(wildcard include/config/cma/areas.h) \ |
- include/asm-generic/dma-mapping-common.h \ |
- include/asm-generic/pci.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uaccess.h \ |
- $(wildcard include/config/x86/wp/works/ok.h) \ |
- $(wildcard include/config/x86/intel/usercopy.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uaccess_32.h \ |
- $(wildcard include/config/debug/strict/user/copy/checks.h) \ |
- include/linux/sched.h \ |
- $(wildcard include/config/sched/debug.h) \ |
- $(wildcard include/config/no/hz.h) \ |
- $(wildcard include/config/lockup/detector.h) \ |
- $(wildcard include/config/detect/hung/task.h) \ |
- $(wildcard include/config/core/dump/default/elf/headers.h) \ |
- $(wildcard include/config/sched/autogroup.h) \ |
- $(wildcard include/config/virt/cpu/accounting.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/epoll.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/sysvipc.h) \ |
- $(wildcard include/config/auditsyscall.h) \ |
- $(wildcard include/config/rt/mutexes.h) \ |
- $(wildcard include/config/block.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/have/hw/breakpoint.h) \ |
- $(wildcard include/config/have/unstable/sched/clock.h) \ |
- $(wildcard include/config/irq/time/accounting.h) \ |
- $(wildcard include/config/cfs/bandwidth.h) \ |
- include/linux/capability.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cputime.h \ |
- include/asm-generic/cputime.h \ |
- include/linux/sem.h \ |
- include/linux/ipc.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ipcbuf.h \ |
- include/asm-generic/ipcbuf.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sembuf.h \ |
- include/linux/signal.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/signal.h \ |
- include/asm-generic/signal-defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/siginfo.h \ |
- include/asm-generic/siginfo.h \ |
- include/linux/pid.h \ |
- include/linux/proportions.h \ |
- include/linux/percpu_counter.h \ |
- include/linux/seccomp.h \ |
- $(wildcard include/config/seccomp.h) \ |
- $(wildcard include/config/seccomp/filter.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/seccomp.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/seccomp_32.h \ |
- include/linux/unistd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/unistd.h \ |
- $(wildcard include/config/x86/x32/abi.h) \ |
- arch/x86/include/generated/asm/unistd_32.h \ |
- include/linux/rculist.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 \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/resource.h \ |
- include/asm-generic/resource.h \ |
- include/linux/hrtimer.h \ |
- $(wildcard include/config/high/res/timers.h) \ |
- $(wildcard include/config/timerfd.h) \ |
- include/linux/timerqueue.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) \ |
- $(wildcard include/config/security.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/aio.h \ |
- include/linux/aio_abi.h \ |
- include/linux/uio.h \ |
- include/linux/fs.h \ |
- $(wildcard include/config/fs/posix/acl.h) \ |
- $(wildcard include/config/quota.h) \ |
- $(wildcard include/config/fsnotify.h) \ |
- $(wildcard include/config/ima.h) \ |
- $(wildcard include/config/debug/writecount.h) \ |
- $(wildcard include/config/file/locking.h) \ |
- $(wildcard include/config/fs/xip.h) \ |
- $(wildcard include/config/migration.h) \ |
- include/linux/limits.h \ |
- include/linux/blk_types.h \ |
- $(wildcard include/config/blk/cgroup.h) \ |
- $(wildcard include/config/blk/dev/integrity.h) \ |
- include/linux/kdev_t.h \ |
- include/linux/dcache.h \ |
- include/linux/rculist_bl.h \ |
- include/linux/list_bl.h \ |
- include/linux/path.h \ |
- include/linux/radix-tree.h \ |
- include/linux/semaphore.h \ |
- include/linux/fiemap.h \ |
- include/linux/migrate_mode.h \ |
- include/linux/quota.h \ |
- $(wildcard include/config/quota/netlink/interface.h) \ |
- include/linux/dqblk_xfs.h \ |
- include/linux/dqblk_v1.h \ |
- include/linux/dqblk_v2.h \ |
- include/linux/dqblk_qtree.h \ |
- include/linux/nfs_fs_i.h \ |
- include/linux/fcntl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fcntl.h \ |
- include/asm-generic/fcntl.h \ |
- /home/f9daq/pcivme-3.2/driver/./fops.h \ |
- /home/f9daq/pcivme-3.2/driver/./plx9050.h \ |
- /home/f9daq/pcivme-3.2/driver/./pcivme.h \ |
- /home/f9daq/pcivme-3.2/driver/./main.h \ |
- /home/f9daq/pcivme-3.2/driver/./askpci.h \ |
- /home/f9daq/pcivme-3.2/driver/./pciif.h \ |
- /home/f9daq/pcivme-3.2/driver/./vic.h \ |
- /home/f9daq/pcivme-3.2/driver/./vme.h \ |
- |
-/home/f9daq/pcivme-3.2/driver/./fops.o: $(deps_/home/f9daq/pcivme-3.2/driver/./fops.o) |
- |
-$(deps_/home/f9daq/pcivme-3.2/driver/./fops.o): |
Index: pcivme-3.2/driver/.askpci.o.cmd |
=================================================================== |
--- pcivme-3.2/driver/.askpci.o.cmd (revision 9) |
+++ pcivme-3.2/driver/.askpci.o.cmd (nonexistent) |
@@ -1,566 +0,0 @@ |
-cmd_/home/f9daq/pcivme-3.2/driver/./askpci.o := gcc -Wp,-MD,/home/f9daq/pcivme-3.2/driver/./.askpci.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6/include -I/usr/src/linux-headers-3.5.0-28-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-headers-3.5.0-28-generic/include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I. -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(askpci)" -D"KBUILD_MODNAME=KBUILD_STR(pcivme)" -c -o /home/f9daq/pcivme-3.2/driver/./.tmp_askpci.o /home/f9daq/pcivme-3.2/driver/./askpci.c |
- |
-source_/home/f9daq/pcivme-3.2/driver/./askpci.o := /home/f9daq/pcivme-3.2/driver/./askpci.c |
- |
-deps_/home/f9daq/pcivme-3.2/driver/./askpci.o := \ |
- $(wildcard include/config/pci.h) \ |
- /home/f9daq/pcivme-3.2/driver/./common.h \ |
- $(wildcard include/config/modversions.h) \ |
- include/linux/version.h \ |
- include/config/modversions.h \ |
- include/linux/pci.h \ |
- $(wildcard include/config/pci/iov.h) \ |
- $(wildcard include/config/pcieaspm.h) \ |
- $(wildcard include/config/pci/msi.h) \ |
- $(wildcard include/config/pci/ats.h) \ |
- $(wildcard include/config/hotplug.h) \ |
- $(wildcard include/config/pcieportbus.h) \ |
- $(wildcard include/config/pcieaer.h) \ |
- $(wildcard include/config/pcie/ecrc.h) \ |
- $(wildcard include/config/ht/irq.h) \ |
- $(wildcard include/config/pci/domains.h) \ |
- $(wildcard include/config/pci/quirks.h) \ |
- $(wildcard include/config/pci/mmconfig.h) \ |
- $(wildcard include/config/hotplug/pci.h) \ |
- $(wildcard include/config/of.h) \ |
- $(wildcard include/config/eeh.h) \ |
- include/linux/pci_regs.h \ |
- include/linux/mod_devicetable.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/types.h \ |
- include/asm-generic/types.h \ |
- include/asm-generic/int-ll64.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitsperlong.h \ |
- include/asm-generic/bitsperlong.h \ |
- include/linux/posix_types.h \ |
- include/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) \ |
- include/linux/compiler-gcc.h \ |
- $(wildcard include/config/arch/supports/optimized/inlining.h) \ |
- $(wildcard include/config/optimize/inlining.h) \ |
- include/linux/compiler-gcc4.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types.h \ |
- $(wildcard include/config/x86/32.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/posix_types_32.h \ |
- include/asm-generic/posix_types.h \ |
- include/linux/init.h \ |
- $(wildcard include/config/modules.h) \ |
- include/linux/ioport.h \ |
- include/linux/list.h \ |
- $(wildcard include/config/debug/list.h) \ |
- include/linux/poison.h \ |
- $(wildcard include/config/illegal/pointer/value.h) \ |
- include/linux/const.h \ |
- include/linux/errno.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/errno.h \ |
- include/asm-generic/errno.h \ |
- include/asm-generic/errno-base.h \ |
- include/linux/kobject.h \ |
- include/linux/sysfs.h \ |
- $(wildcard include/config/debug/lock/alloc.h) \ |
- $(wildcard include/config/sysfs.h) \ |
- include/linux/lockdep.h \ |
- $(wildcard include/config/lockdep.h) \ |
- $(wildcard include/config/lock/stat.h) \ |
- $(wildcard include/config/trace/irqflags.h) \ |
- $(wildcard include/config/prove/locking.h) \ |
- $(wildcard include/config/prove/rcu.h) \ |
- include/linux/kobject_ns.h \ |
- include/linux/atomic.h \ |
- $(wildcard include/config/arch/has/atomic/or.h) \ |
- $(wildcard include/config/generic/atomic64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic.h \ |
- $(wildcard include/config/m386.h) \ |
- $(wildcard include/config/x86/64.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor.h \ |
- $(wildcard include/config/x86/vsmp.h) \ |
- $(wildcard include/config/smp.h) \ |
- $(wildcard include/config/cc/stackprotector.h) \ |
- $(wildcard include/config/paravirt.h) \ |
- $(wildcard include/config/m486.h) \ |
- $(wildcard include/config/x86/debugctlmsr.h) \ |
- $(wildcard include/config/cpu/sup/amd.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/processor-flags.h \ |
- $(wildcard include/config/vm86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/vm86.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ptrace-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/segment.h \ |
- $(wildcard include/config/x86/32/lazy/gs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32_types.h \ |
- $(wildcard include/config/highmem4g.h) \ |
- $(wildcard include/config/highmem64g.h) \ |
- $(wildcard include/config/page/offset.h) \ |
- $(wildcard include/config/x86/pae.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt_types.h \ |
- $(wildcard include/config/x86/local/apic.h) \ |
- $(wildcard include/config/paravirt/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/desc_defs.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/kmap_types.h \ |
- $(wildcard include/config/debug/highmem.h) \ |
- include/asm-generic/kmap_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_types.h \ |
- $(wildcard include/config/kmemcheck.h) \ |
- $(wildcard include/config/compat/vdso.h) \ |
- $(wildcard include/config/proc/fs.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- $(wildcard include/config/highmem.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level_types.h \ |
- include/asm-generic/pgtable-nopud.h \ |
- include/asm-generic/ptrace.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/math_emu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/sigcontext.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/current.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/percpu.h \ |
- $(wildcard include/config/x86/64/smp.h) \ |
- $(wildcard include/config/x86/cmpxchg64.h) \ |
- include/linux/kernel.h \ |
- $(wildcard include/config/preempt/voluntary.h) \ |
- $(wildcard include/config/debug/atomic/sleep.h) \ |
- $(wildcard include/config/ring/buffer.h) \ |
- $(wildcard include/config/tracing.h) \ |
- $(wildcard include/config/numa.h) \ |
- $(wildcard include/config/compaction.h) \ |
- $(wildcard include/config/ftrace/mcount/record.h) \ |
- include/linux/sysinfo.h \ |
- /usr/lib/gcc/i686-linux-gnu/4.6/include/stdarg.h \ |
- include/linux/linkage.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/linkage.h \ |
- $(wildcard include/config/x86/alignment/16.h) \ |
- include/linux/stringify.h \ |
- include/linux/bitops.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bitops.h \ |
- $(wildcard include/config/x86/cmov.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/alternative.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/asm.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpufeature.h \ |
- $(wildcard include/config/x86/invlpg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/required-features.h \ |
- $(wildcard include/config/x86/minimum/cpu/family.h) \ |
- $(wildcard include/config/math/emulation.h) \ |
- $(wildcard include/config/x86/use/3dnow.h) \ |
- $(wildcard include/config/x86/p6/nop.h) \ |
- include/asm-generic/bitops/fls64.h \ |
- include/asm-generic/bitops/find.h \ |
- $(wildcard include/config/generic/find/first/bit.h) \ |
- include/asm-generic/bitops/sched.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/arch_hweight.h \ |
- include/asm-generic/bitops/const_hweight.h \ |
- include/asm-generic/bitops/le.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/byteorder.h \ |
- include/linux/byteorder/little_endian.h \ |
- include/linux/swab.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swab.h \ |
- $(wildcard include/config/x86/bswap.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/typecheck.h \ |
- include/linux/printk.h \ |
- $(wildcard include/config/printk.h) \ |
- $(wildcard include/config/dynamic/debug.h) \ |
- include/linux/dynamic_debug.h \ |
- include/linux/string.h \ |
- $(wildcard include/config/binary/printf.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/string_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/div64.h \ |
- include/asm-generic/percpu.h \ |
- $(wildcard include/config/debug/preempt.h) \ |
- $(wildcard include/config/have/setup/per/cpu/area.h) \ |
- include/linux/threads.h \ |
- $(wildcard include/config/nr/cpus.h) \ |
- $(wildcard include/config/base/small.h) \ |
- include/linux/percpu-defs.h \ |
- $(wildcard include/config/debug/force/weak/per/cpu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/page_32.h \ |
- $(wildcard include/config/hugetlb/page.h) \ |
- $(wildcard include/config/debug/virtual.h) \ |
- $(wildcard include/config/flatmem.h) \ |
- $(wildcard include/config/x86/3dnow.h) \ |
- include/asm-generic/memory_model.h \ |
- $(wildcard include/config/discontigmem.h) \ |
- $(wildcard include/config/sparsemem/vmemmap.h) \ |
- $(wildcard include/config/sparsemem.h) \ |
- include/asm-generic/getorder.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/msr-index.h \ |
- include/linux/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ioctl.h \ |
- include/asm-generic/ioctl.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cpumask.h \ |
- include/linux/cpumask.h \ |
- $(wildcard include/config/cpumask/offstack.h) \ |
- $(wildcard include/config/hotplug/cpu.h) \ |
- $(wildcard include/config/debug/per/cpu/maps.h) \ |
- $(wildcard include/config/disable/obsolete/cpumask/functions.h) \ |
- include/linux/bitmap.h \ |
- include/linux/bug.h \ |
- $(wildcard include/config/generic/bug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bug.h \ |
- $(wildcard include/config/bug.h) \ |
- $(wildcard include/config/debug/bugverbose.h) \ |
- include/asm-generic/bug.h \ |
- $(wildcard include/config/generic/bug/relative/pointers.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/paravirt.h \ |
- $(wildcard include/config/transparent/hugepage.h) \ |
- $(wildcard include/config/paravirt/spinlocks.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/nops.h \ |
- $(wildcard include/config/mk7.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/special_insns.h \ |
- include/linux/personality.h \ |
- include/linux/cache.h \ |
- $(wildcard include/config/arch/has/cache/line/size.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cache.h \ |
- $(wildcard include/config/x86/l1/cache/shift.h) \ |
- $(wildcard include/config/x86/internode/cache/shift.h) \ |
- include/linux/math64.h \ |
- include/linux/err.h \ |
- include/linux/irqflags.h \ |
- $(wildcard include/config/irqsoff/tracer.h) \ |
- $(wildcard include/config/preempt/tracer.h) \ |
- $(wildcard include/config/trace/irqflags/support.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irqflags.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/cmpxchg_32.h \ |
- $(wildcard include/config/x86/cmpxchg.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/atomic64_32.h \ |
- include/asm-generic/atomic-long.h \ |
- include/linux/spinlock.h \ |
- $(wildcard include/config/debug/spinlock.h) \ |
- $(wildcard include/config/generic/lockbreak.h) \ |
- $(wildcard include/config/preempt.h) \ |
- include/linux/preempt.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/thread_info.h \ |
- $(wildcard include/config/ia32/emulation.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ftrace.h \ |
- $(wildcard include/config/function/tracer.h) \ |
- $(wildcard include/config/dynamic/ftrace.h) \ |
- include/linux/bottom_half.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/barrier.h \ |
- $(wildcard include/config/x86/ppro/fence.h) \ |
- $(wildcard include/config/x86/oostore.h) \ |
- include/linux/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwlock.h \ |
- include/linux/rwlock_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/spinlock.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/kref.h \ |
- include/linux/wait.h \ |
- include/linux/device.h \ |
- $(wildcard include/config/debug/devres.h) \ |
- $(wildcard include/config/cma.h) \ |
- $(wildcard include/config/devtmpfs.h) \ |
- $(wildcard include/config/sysfs/deprecated.h) \ |
- include/linux/klist.h \ |
- include/linux/mutex.h \ |
- $(wildcard include/config/debug/mutexes.h) \ |
- $(wildcard include/config/have/arch/mutex/cpu/relax.h) \ |
- include/linux/pm.h \ |
- $(wildcard include/config/pm.h) \ |
- $(wildcard include/config/pm/sleep.h) \ |
- $(wildcard include/config/pm/runtime.h) \ |
- $(wildcard include/config/pm/clk.h) \ |
- $(wildcard include/config/pm/generic/domains.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/time.h \ |
- $(wildcard include/config/arch/uses/gettimeoffset.h) \ |
- include/linux/seqlock.h \ |
- include/linux/jiffies.h \ |
- include/linux/timex.h \ |
- include/linux/param.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/param.h \ |
- include/asm-generic/param.h \ |
- $(wildcard include/config/hz.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/timex.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/tsc.h \ |
- $(wildcard include/config/x86/tsc.h) \ |
- include/linux/debugobjects.h \ |
- $(wildcard include/config/debug/objects.h) \ |
- $(wildcard include/config/debug/objects/free.h) \ |
- include/linux/completion.h \ |
- include/linux/ratelimit.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/device.h \ |
- $(wildcard include/config/acpi.h) \ |
- $(wildcard include/config/x86/dev/dma/ops.h) \ |
- $(wildcard include/config/intel/iommu.h) \ |
- $(wildcard include/config/amd/iommu.h) \ |
- include/linux/pm_wakeup.h \ |
- include/linux/io.h \ |
- $(wildcard include/config/mmu.h) \ |
- $(wildcard include/config/has/ioport.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io.h \ |
- $(wildcard include/config/xen.h) \ |
- include/asm-generic/iomap.h \ |
- $(wildcard include/config/generic/iomap.h) \ |
- include/asm-generic/pci_iomap.h \ |
- $(wildcard include/config/no/generic/pci/ioport/map.h) \ |
- $(wildcard include/config/generic/pci/iomap.h) \ |
- include/linux/vmalloc.h \ |
- include/xen/xen.h \ |
- $(wildcard include/config/xen/dom0.h) \ |
- include/xen/interface/xen.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/interface_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pvclock-abi.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/xen/hypervisor.h \ |
- include/linux/irqreturn.h \ |
- include/linux/pci_ids.h \ |
- include/linux/pci-dma.h \ |
- include/linux/dmapool.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/scatterlist.h \ |
- include/asm-generic/scatterlist.h \ |
- $(wildcard include/config/debug/sg.h) \ |
- $(wildcard include/config/need/sg/dma/length.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pci.h \ |
- include/linux/mm.h \ |
- $(wildcard include/config/sysctl.h) \ |
- $(wildcard include/config/stack/growsup.h) \ |
- $(wildcard include/config/ia64.h) \ |
- $(wildcard include/config/ksm.h) \ |
- $(wildcard include/config/have/memblock/node/map.h) \ |
- $(wildcard include/config/have/arch/early/pfn/to/nid.h) \ |
- $(wildcard include/config/debug/pagealloc.h) \ |
- $(wildcard include/config/hibernation.h) \ |
- $(wildcard include/config/hugetlbfs.h) \ |
- include/linux/gfp.h \ |
- $(wildcard include/config/zone/dma.h) \ |
- $(wildcard include/config/zone/dma32.h) \ |
- include/linux/mmzone.h \ |
- $(wildcard include/config/force/max/zoneorder.h) \ |
- $(wildcard include/config/cgroup/mem/res/ctlr.h) \ |
- $(wildcard include/config/memory/hotplug.h) \ |
- $(wildcard include/config/flat/node/mem/map.h) \ |
- $(wildcard include/config/no/bootmem.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/have/memblock/node.h) \ |
- $(wildcard include/config/need/multiple/nodes.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/numa.h \ |
- $(wildcard include/config/nodes/shift.h) \ |
- include/linux/nodemask.h \ |
- include/linux/pageblock-flags.h \ |
- $(wildcard include/config/hugetlb/page/size/variable.h) \ |
- include/generated/bounds.h \ |
- include/linux/memory_hotplug.h \ |
- $(wildcard include/config/memory/hotremove.h) \ |
- $(wildcard include/config/have/arch/nodedata/extension.h) \ |
- include/linux/notifier.h \ |
- include/linux/rwsem.h \ |
- $(wildcard include/config/rwsem/generic/spinlock.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/rwsem.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/tiny/rcu.h) \ |
- $(wildcard include/config/tiny/preempt/rcu.h) \ |
- $(wildcard include/config/debug/objects/rcu/head.h) \ |
- $(wildcard include/config/preempt/rt.h) \ |
- include/linux/rcutree.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) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/smp.h \ |
- $(wildcard include/config/x86/io/apic.h) \ |
- $(wildcard include/config/x86/32/smp.h) \ |
- $(wildcard include/config/debug/nmi/selftest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec.h \ |
- $(wildcard include/config/x86/numaq.h) \ |
- $(wildcard include/config/eisa.h) \ |
- $(wildcard include/config/x86/mpparse.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mpspec_def.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/x86_init.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/bootparam.h \ |
- include/linux/screen_info.h \ |
- include/linux/apm_bios.h \ |
- include/linux/edd.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/e820.h \ |
- $(wildcard include/config/efi.h) \ |
- $(wildcard include/config/intel/txt.h) \ |
- $(wildcard include/config/memtest.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/ist.h \ |
- include/video/edid.h \ |
- $(wildcard include/config/x86.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apicdef.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/apic.h \ |
- $(wildcard include/config/x86/x2apic.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/fixmap.h \ |
- $(wildcard include/config/provide/ohci1394/dma/init.h) \ |
- $(wildcard include/config/x86/visws/apic.h) \ |
- $(wildcard include/config/x86/f00f/bug.h) \ |
- $(wildcard include/config/x86/cyclone/timer.h) \ |
- $(wildcard include/config/x86/intel/mid.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/acpi.h \ |
- $(wildcard include/config/acpi/numa.h) \ |
- include/acpi/pdc_intel.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa.h \ |
- $(wildcard include/config/numa/emu.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/topology.h \ |
- $(wildcard include/config/x86/ht.h) \ |
- include/asm-generic/topology.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/numa_32.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/mmu.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/realmode.h \ |
- $(wildcard include/config/acpi/sleep.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/io_apic.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/irq_vectors.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) \ |
- include/linux/pfn.h \ |
- include/linux/mmdebug.h \ |
- $(wildcard include/config/debug/vm.h) \ |
- include/linux/rbtree.h \ |
- include/linux/prio_tree.h \ |
- include/linux/debug_locks.h \ |
- $(wildcard include/config/debug/locking/api/selftests.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/mm/owner.h) \ |
- $(wildcard include/config/mmu/notifier.h) \ |
- include/linux/auxvec.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/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) \ |
- $(wildcard include/config/uprobes.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/uprobes.h \ |
- include/linux/range.h \ |
- include/linux/bit_spinlock.h \ |
- include/linux/shrinker.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32.h \ |
- $(wildcard include/config/highpte.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable_32_types.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/pgtable-3level.h \ |
- include/asm-generic/pgtable.h \ |
- include/linux/page-flags.h \ |
- $(wildcard include/config/pageflags/extended.h) \ |
- $(wildcard include/config/arch/uses/pg/uncached.h) \ |
- $(wildcard include/config/memory/failure.h) \ |
- $(wildcard include/config/swap.h) \ |
- $(wildcard include/config/s390.h) \ |
- include/linux/huge_mm.h \ |
- include/linux/vmstat.h \ |
- $(wildcard include/config/vm/event/counters.h) \ |
- include/linux/vm_event_item.h \ |
- include/linux/slab.h \ |
- $(wildcard include/config/slab/debug.h) \ |
- $(wildcard include/config/failslab.h) \ |
- $(wildcard include/config/slub.h) \ |
- $(wildcard include/config/slob.h) \ |
- $(wildcard include/config/debug/slab.h) \ |
- $(wildcard include/config/slab.h) \ |
- include/linux/slub_def.h \ |
- $(wildcard include/config/slub/stats.h) \ |
- $(wildcard include/config/slub/debug.h) \ |
- include/linux/kmemleak.h \ |
- $(wildcard include/config/debug/kmemleak.h) \ |
- include/asm-generic/pci-dma-compat.h \ |
- include/linux/dma-mapping.h \ |
- $(wildcard include/config/has/dma.h) \ |
- $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \ |
- $(wildcard include/config/have/dma/attrs.h) \ |
- $(wildcard include/config/need/dma/map/state.h) \ |
- include/linux/dma-attrs.h \ |
- include/linux/dma-direction.h \ |
- include/linux/scatterlist.h \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/dma-mapping.h \ |
- $(wildcard include/config/isa.h) \ |
- $(wildcard include/config/x86/dma/remap.h) \ |
- include/linux/kmemcheck.h \ |
- include/linux/dma-debug.h \ |
- $(wildcard include/config/dma/api/debug.h) \ |
- /usr/src/linux-headers-3.5.0-28-generic/arch/x86/include/asm/swiotlb.h \ |
- $(wildcard include/config/swiotlb.h) \ |
- include/linux/swiotlb.h \ |
- include/asm-generic/dma-coherent.h \ |
- $(wildcard include/config/have/generic/dma/coherent.h) \ |
- include/linux/dma-contiguous.h \ |
- $(wildcard include/config/cma/areas.h) \ |
- include/asm-generic/dma-mapping-common.h \ |
- include/asm-generic/pci.h \ |
- /home/f9daq/pcivme-3.2/driver/./askpci.h \ |
- /home/f9daq/pcivme-3.2/driver/./main.h \ |
- |
-/home/f9daq/pcivme-3.2/driver/./askpci.o: $(deps_/home/f9daq/pcivme-3.2/driver/./askpci.o) |
- |
-$(deps_/home/f9daq/pcivme-3.2/driver/./askpci.o): |
Index: pcivme-3.2/driver/plxbug.h |
=================================================================== |
--- pcivme-3.2/driver/plxbug.h (revision 9) |
+++ pcivme-3.2/driver/plxbug.h (nonexistent) |
@@ -1,55 +0,0 @@ |
-#ifndef __PLXBUG_H__ |
-#define __PLXBUG_H__ |
- |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// plxbug.h -- plx 9050 bug fix prototype for the PCIVME PCI to VME Interface |
-// |
-// $Log: plxbug.h,v $ |
-// Revision 1.4 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.3 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.2 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.1.1.1 2002/10/09 19:36:30 klaus |
-// initial import |
-// |
-//**************************************************************************** |
- |
-#include "askpci.h" |
- |
-int PLX9050BugFix(PCIConfig *pHeader); |
- |
-#endif /* __PLXBUG_H__ */ |
Index: pcivme-3.2/driver/fops.c |
=================================================================== |
--- pcivme-3.2/driver/fops.c (revision 9) |
+++ pcivme-3.2/driver/fops.c (nonexistent) |
@@ -1,1047 +0,0 @@ |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// fops.c -- the file operations module for the PCIVME PCI to VME Interface |
-// |
-// $Log: fops.c,v $ |
-// Revision 1.11 2005/03/01 10:56:12 klaus |
-// removed warnings with gcc 3.3.3 |
-// |
-// Revision 1.10 2004/08/13 19:23:26 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.9 2003/06/27 17:25:52 klaus |
-// incomplete try to get mmap() with nopage() running for automatic page switch |
-// |
-// Revision 1.8 2002/10/20 18:06:51 klaus |
-// changed error handling |
-// |
-// Revision 1.7 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.6 2002/10/18 21:56:28 klaus |
-// completed functional features, untested |
-// |
-// Revision 1.5 2002/10/17 19:05:03 klaus |
-// VME access is working through test to lib to driver |
-// |
-//**************************************************************************** |
- |
-/*--- INCLUDES -----------------------------------------------------------------------------------*/ |
-#include "common.h" /* must be the first include */ |
- |
-#include <linux/kernel.h> /* printk() */ |
-#include <linux/module.h> /* only here ?cause of MAJOR ... */ |
-#include <linux/pci.h> |
-#include <linux/list.h> |
-#include <asm/errno.h> |
-#include <asm/types.h> |
-#include <asm/uaccess.h> |
- |
-#include <linux/sched.h> |
-#include <linux/fs.h> |
-#if HAVE_UNLOCKED_IOCTL |
- #include <linux/mutex.h> |
-#else |
- #include <linux/smp_lock.h> |
-#endif |
- |
- |
-#include "fops.h" |
-#include "plx9050.h" |
-#include "pcivme.h" /* the common ioctl commands and structures between driver and application */ |
-#include "main.h" |
-#include "askpci.h" |
-#include "pciif.h" |
-#include "vic.h" |
-#include "vme.h" |
- |
-/*--- DEFINES ------------------------------------------------------------------------------------*/ |
- |
-#ifndef MINOR |
-#define MINOR(x) minor(x) // since 2.5.? |
-#endif |
- |
-static PCIVME_INIT_ELEMENT init_element[] = |
-{{LCR, WORD_ACCESS, PLX9050_INTCSR, DISABLE_PCIADA_IRQS}, // disable interrupts |
- {LCR, WORD_ACCESS, PLX9050_CNTRL, RELEASE_VMEMM}, // enable interface |
- |
- {VIC, BYTE_ACCESS, VIICR, 0xf8+1}, // VIICR |
- |
- {VIC, BYTE_ACCESS, VICR1, 0x78+1}, // VICR1 |
- {VIC, BYTE_ACCESS, VICR2, 0x78+2}, |
- {VIC, BYTE_ACCESS, VICR3, 0x78+3}, |
- {VIC, BYTE_ACCESS, VICR4, 0x78+4}, |
- {VIC, BYTE_ACCESS, VICR5, 0x78+5}, |
- {VIC, BYTE_ACCESS, VICR6, 0x78+6}, |
- {VIC, BYTE_ACCESS, VICR7, 0x78+7}, // VICR7 |
- |
- {VIC, BYTE_ACCESS, DSICR, 0xf8+0}, // DSICR |
- |
- {VIC, BYTE_ACCESS, LICR1, 0xf8+1}, // LICR1 |
- {VIC, BYTE_ACCESS, LICR2, 0xf8+2}, |
- {VIC, BYTE_ACCESS, LICR3, 0xf8+3}, |
- {VIC, BYTE_ACCESS, LICR4, 0xf8+4}, |
- {VIC, BYTE_ACCESS, LICR5, 0xf8+5}, |
- {VIC, BYTE_ACCESS, LICR6, 0x38+6}, |
- {VIC, BYTE_ACCESS, LICR7, 0x38+7}, // LICR7 |
- |
- {VIC, BYTE_ACCESS, ICGSICR, 0xf8+2}, // ICGS |
- {VIC, BYTE_ACCESS, ICMSICR, 0xf8+3}, // ICMS |
- |
- {VIC, BYTE_ACCESS, EGICR, 0xf8+6}, // EGICR |
- |
- {VIC, BYTE_ACCESS, ICGSVBR, 0x08}, // ICGS-IVBR (!) |
- {VIC, BYTE_ACCESS, ICMSVBR, 0x0c}, // ICMS-IVBR (!) |
- |
- {VIC, BYTE_ACCESS, LIVBR, 0x00}, // LIVBR (!) |
- |
- {VIC, BYTE_ACCESS, EGIVBR, 0x10}, // EGIVBR (!) |
- |
- {VIC, BYTE_ACCESS, ICSR, 0x00}, // ICSR |
- |
- {VIC, BYTE_ACCESS, ICR0, 0x00}, // ICR0 |
- {VIC, BYTE_ACCESS, ICR1, 0x00}, |
- {VIC, BYTE_ACCESS, ICR2, 0x00}, |
- {VIC, BYTE_ACCESS, ICR3, 0x00}, |
- {VIC, BYTE_ACCESS, ICR4, 0x00}, // ICR4 |
- |
- {VIC, BYTE_ACCESS, VIRSR, 0xfe}, // VIRSR |
- |
- {VIC, BYTE_ACCESS, VIVR1, 0x0f}, // VIVR1 |
- {VIC, BYTE_ACCESS, VIVR2, 0x0f}, |
- {VIC, BYTE_ACCESS, VIVR3, 0x0f}, |
- {VIC, BYTE_ACCESS, VIVR4, 0x0f}, |
- {VIC, BYTE_ACCESS, VIVR5, 0x0f}, |
- {VIC, BYTE_ACCESS, VIVR6, 0x0f}, |
- {VIC, BYTE_ACCESS, VIVR7, 0x0f}, // VIVR7 |
- |
- {VIC, BYTE_ACCESS, TTR, 0x3c}, // TTR |
- |
- {VIC, BYTE_ACCESS, ARCR, 0x40}, // ARCR |
- {VIC, BYTE_ACCESS, AMSR, 0x29}, // AMSR |
- {VIC, BYTE_ACCESS, RCR, 0x00}, // RCR |
- |
- {IFR, LONG_ACCESS, (u16)ADRHL, 0xF0F0F0F0}, // ADR-H, ADR-L |
- {IFR, WORD_ACCESS, (u16)CSR , 0x0000}, // Contr-Reg |
- |
- {VIC, BYTE_ACCESS, ICR7, 0x80}, // ICR7 |
- |
- {LCR, WORD_ACCESS, PLX9050_INTCSR, DISABLE_PCIADA_IRQS}, // disable interrupts |
- |
- {STOP, WORD_ACCESS, 0, 0}}; |
- |
-static PCIVME_INIT_ELEMENT deinit_element_pre[] = |
-{{VIC, BYTE_ACCESS, ICR7, 0x00}, // ICR7 - sysfail |
- {LCR, WORD_ACCESS, PLX9050_INTCSR, DISABLE_PCIADA_IRQS}, // disable interrupts |
- {STOP, WORD_ACCESS, 0, 0}}; |
- |
-static PCIVME_INIT_ELEMENT deinit_element_post[] = |
-{{LCR, WORD_ACCESS, PLX9050_CNTRL, INHIBIT_VMEMM}, // disable interface |
- {STOP, WORD_ACCESS, 0, 0}}; |
- |
- |
-/*--- EXTERNALS ----------------------------------------------------------------------------------*/ |
- |
-/*--- TYPEDEFS -----------------------------------------------------------------------------------*/ |
- |
-/*--- FUNCTIONS ----------------------------------------------------------------------------------*/ |
-static inline void switch_VMEMM_on(DEVICE_OBJ *pd) |
-{ |
- writew(RELEASE_VMEMM, (volatile void *) (pd->pLCR + PLX9050_CNTRL)); /* enable access */ |
-} |
- |
-static inline void switch_VMEMM_off(DEVICE_OBJ *pd) |
-{ |
- writew(INHIBIT_VMEMM, (volatile void *) (pd->pLCR + PLX9050_CNTRL)); /* enable access */ |
-} |
- |
-static inline void setPageAddress(DEVICE_OBJ *pd, u32 newPageAddress) |
-{ |
- PRINTK(KERN_DEBUG "%s : setPageAddress(0x%08x)\n", DEVICE_NAME, newPageAddress); |
- |
- writel(newPageAddress, (volatile void *) pd->pAdrReg); |
- pd->dwCurrentPageAddress = newPageAddress; |
-} |
- |
-static inline void setModifier(DEVICE_OBJ *pd, u8 newModifier) |
-{ |
- PRINTK(KERN_DEBUG "%s : setModifier(0x%02x)\n", DEVICE_NAME, newModifier); |
- |
- writeb(newModifier, (volatile void *) pd->pAdrMod); |
- pd->bCurrentModifier = newModifier; |
-} |
- |
-/* read and write functions -----------------------------------------------------------------------*/ |
-static inline u8 *increment8(void **pvBuffer) |
-{ |
- u8 *tmp = (u8*)*pvBuffer; |
- |
- *pvBuffer += sizeof(u8); |
- |
- return tmp; |
-} |
- |
-static inline u16 *increment16(void **pvBuffer) |
-{ |
- u16 *tmp = (u16*)*pvBuffer; |
- |
- *pvBuffer += sizeof(u16); |
- |
- return tmp; |
-} |
- |
-static inline u32 *increment32(void **pvBuffer) |
-{ |
- u32 *tmp = (u32*)*pvBuffer; |
- |
- *pvBuffer += sizeof(u32); |
- |
- return tmp; |
-} |
- |
-static void readByte(DEVICE_OBJ *pd, void **pvBuffer, u32 dwLocalAddressInPage) |
-{ |
- u8 tmp; |
- |
- tmp = readb((const volatile void *) (pd->pVME + dwLocalAddressInPage)); |
- __put_user(tmp, increment8(pvBuffer)); |
-} |
- |
-static void writeByte(DEVICE_OBJ *pd, u32 dwLocalAddressInPage, void **pvBuffer) |
-{ |
- u8 tmp; |
- |
- __get_user(tmp, increment8(pvBuffer)); |
- writeb(tmp, (volatile void *) (pd->pVME + dwLocalAddressInPage )); |
-} |
- |
-static void readWord(DEVICE_OBJ *pd, void **pvBuffer, u32 dwLocalAddressInPage) |
-{ |
- u16 tmp; |
- |
- tmp = readw((const volatile void *) (pd->pVME + dwLocalAddressInPage)); |
- __put_user(tmp, increment16(pvBuffer)); |
-} |
- |
-static void writeWord(DEVICE_OBJ *pd, u32 dwLocalAddressInPage, void **pvBuffer) |
-{ |
- u16 tmp; |
- |
- __get_user(tmp, increment16(pvBuffer)); |
- writew(tmp, (volatile void *) ( pd->pVME + dwLocalAddressInPage )); |
-} |
- |
-static void readLong(DEVICE_OBJ *pd, void **pvBuffer, u32 dwLocalAddressInPage) |
-{ |
- u32 tmp; |
- |
- tmp = readl((const volatile void *) (pd->pVME + dwLocalAddressInPage)); |
- __put_user(tmp, increment32(pvBuffer)); |
-} |
- |
-static void writeLong(DEVICE_OBJ *pd, u32 dwLocalAddressInPage, void **pvBuffer) |
-{ |
- u32 tmp; |
- |
- __get_user(tmp, increment32(pvBuffer)); |
- writel(tmp, (volatile void *) (pd->pVME + dwLocalAddressInPage)); |
-} |
- |
-/* test alignment functions -----------------------------------------------------------------------*/ |
-static int MisalignmentForByteAccess(loff_t offset) |
-{ |
- return 0; |
-} |
- |
-static int MisalignmentForWordAccess(loff_t offset) |
-{ |
- return(offset & 1); |
-} |
- |
-static int MisalignmentForLongAccess(loff_t offset) |
-{ |
- return(offset & 3); |
-} |
- |
-// helper functions -------------------------------------------------------------------------------- |
-int check_command(const PCIVME_INIT_ELEMENT *psInitElement) |
-{ |
- u16 range; |
- u16 access_size; |
- |
- // PRINTK(KERN_DEBUG "%s : check_command()\n", DEVICE_NAME); |
- |
- switch (psInitElement->bDestination) |
- { |
- case LCR: |
- range = 0x54; |
- break; |
- case IFR: |
- range = 0x0c; |
- break; |
- case VIC: |
- range = 0xe4; |
- if ((psInitElement->wOffset & 3) != 3) |
- return -EINVAL; |
- break; |
- default: |
- return -EINVAL; |
- break; |
- } |
- |
- // check alignment and allowed address range |
- switch (psInitElement->bAccessType) |
- { |
- case LONG_ACCESS: |
- if (psInitElement->wOffset & 3) |
- return -EINVAL; |
- access_size = sizeof(u32); |
- break; |
- case WORD_ACCESS: |
- if (psInitElement->wOffset & 1) |
- return -EINVAL; |
- access_size = sizeof(u16); |
- break; |
- case BYTE_ACCESS: |
- access_size = sizeof(u8); |
- break; |
- default : |
- return -EINVAL; |
- break; |
- } |
- |
- if ((psInitElement->wOffset + access_size) > range) |
- return -EINVAL; // ignore it |
- |
- return 0; |
-} |
- |
-static int CmdMachine(DEVICE_OBJ *pd, const PCIVME_INIT_ELEMENT *psInitElement) |
-{ |
- u32 adr; |
- int err; |
- |
- PRINTK(KERN_DEBUG "%s : CmdMachine()\n", DEVICE_NAME); |
- |
- // loop through the init (or deinit) list |
- while (psInitElement->bDestination != STOP) |
- { |
- err = check_command(psInitElement); |
- if (!err) |
- { |
- switch (psInitElement->bDestination) |
- { |
- case LCR: |
- adr = pd->pLCR; |
- break; |
- case VIC: |
- adr = pd->pCtl + VICBASE; |
- break; |
- case IFR: |
- adr = pd->pCtl + CSR; |
- break; |
- default: |
- return -EINVAL; |
- } |
- |
- switch (psInitElement->bAccessType) |
- { |
- case LONG_ACCESS: |
- writel(psInitElement->dwValue, (volatile void *) (adr + psInitElement->wOffset)); |
- break; |
- case WORD_ACCESS: |
- writew((u16)psInitElement->dwValue, (volatile void *) (adr + psInitElement->wOffset)); |
- break; |
- case BYTE_ACCESS: |
- writeb((u8)psInitElement->dwValue, (volatile void *) (adr + psInitElement->wOffset)); |
- break; |
- default: |
- return -EINVAL; |
- } |
- } |
- else |
- return err; |
- |
- psInitElement++; |
- } |
- |
- return 0; |
-} |
- |
-// all ioctls -------------------------------------------------------------------------------------- |
-static int init_hardware(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_INIT_COMMAND *init) |
-{ |
- int err; |
- PCIVME_INIT_ELEMENT *element = init->sVie; |
- |
- PRINTK(KERN_DEBUG "%s : init_hardware()\n", DEVICE_NAME); |
- |
- err = CmdMachine(pd, element); |
- if (err) |
- { |
- PRINTK(KERN_DEBUG "%s : init failed with err = %d!\n", DEVICE_NAME, err); |
- return err; |
- } |
- |
- // sync storage with hardware |
- pd->bCurrentModifier = readb((const volatile void *) pd->pAdrMod) & 0x3f; |
- pd->dwCurrentPageAddress = readl((const volatile void *) pd->pAdrReg) & HI_ADDRESS_MASK; |
- |
- return 0; |
-} |
- |
-static int deinit_hardware(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_INIT_COMMAND *deinit) |
-{ |
- int err; |
- PCIVME_INIT_ELEMENT *element = deinit->sVie; |
- |
- PRINTK(KERN_DEBUG "%s : deinit_hardware()\n", DEVICE_NAME); |
- |
- err = CmdMachine(pd, deinit_element_pre); |
- if (err) |
- goto fail; |
- |
- err = CmdMachine(pd, element); |
- if (err) |
- goto fail; |
- |
- err = CmdMachine(pd, deinit_element_post); |
- if (err) |
- goto fail; |
- |
- return 0; |
- |
- fail: |
- return err; |
-} |
- |
-static int access_command(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_ACCESS_COMMAND *cmd) |
-{ |
- PRINTK(KERN_DEBUG "%s : access_command()\n", DEVICE_NAME); |
- |
- pp->bModifier = cmd->bModifier; |
- pp->bAccessType = cmd->bAccessType; |
- pp->bIncrement = cmd->bIncrement; |
- |
- switch (pp->bAccessType) |
- { |
- case BYTE_ACCESS: |
- pp->read = readByte; |
- pp->write = writeByte; |
- pp->AlignmentCheck = MisalignmentForByteAccess; |
- break; |
- case WORD_ACCESS: |
- pp->read = readWord; |
- pp->write = writeWord; |
- pp->AlignmentCheck = MisalignmentForWordAccess; |
- break; |
- case LONG_ACCESS: |
- pp->read = readLong; |
- pp->write = writeLong; |
- pp->AlignmentCheck = MisalignmentForLongAccess; |
- break; |
- default: |
- return -EINVAL; |
- } |
- |
- return 0; |
-} |
- |
-static int get_static_status(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_STATIC_STATUS *static_status) |
-{ |
- PRINTK(KERN_DEBUG "%s : get_static_status()\n", DEVICE_NAME); |
- |
- static_status->bConnected = pd->bConnected; |
- static_status->cModuleNumber = pd->cModuleNumber; |
- static_status->cFPGAVersion = pd->cFPGAVersion; |
- static_status->cSystemController = pd->cSystemController; |
- static_status->cWordMode = pd->cWordMode; |
- |
- return 0; |
-} |
- |
-static int get_dynamic_status(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_DYNAMIC_STATUS *dynamic_status) |
-{ |
- u16 cntrl = readw((const volatile void *) pd->pPCIADACntrl); |
- u16 intCSR = readw((const volatile void *) pd->pPCIADAIntCSR); |
- |
- PRINTK(KERN_DEBUG "%s : get_dynamic_status()\n", DEVICE_NAME); |
- |
- dynamic_status->bConnected = (cntrl & 0x0800) ? 1 : 0; |
- dynamic_status->bPCIADAIrq = (intCSR & 0x0020) ? 1 : 0; |
- dynamic_status->bVMEMMIrq = (intCSR & 0x0004) ? 1 : 0; |
- |
- return 0; |
-} |
- |
-static int read_vector_polling(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_VECTOR_LEVEL *vector) |
-{ |
- u16 cntrl = readw((const volatile void *) pd->pPCIADACntrl); |
- u16 intCSR = readw((const volatile void *) pd->pPCIADAIntCSR); |
- |
- PRINTK(KERN_DEBUG "%s : read_vector()\n", DEVICE_NAME); |
- |
- vector->dwStatusID = 0; |
- vector->bLevel = 0; |
- vector->bPCIADAIrq = 0; |
- |
- if (intCSR & 0x20) // check for PCIADA interrupt |
- { |
- vector->bPCIADAIrq = 1; |
- vector->dwStatusID = 1; // force for PCIADA irqs |
- |
- writew(cntrl & ~0x0100, (volatile void *) pd->pPCIADACntrl); // clear pending PCIADA irq |
- writew(cntrl, (volatile void *) pd->pPCIADACntrl); |
- } |
- else |
- { |
- if ((cntrl & 0x0980) == 0x0980) // check if VMEMM is connected and ready |
- { |
- vector->bLevel = (u8)readw((const volatile void *) ( pd->pCtl + VICRES )); |
- if (vector->bLevel & 1) |
- { |
- if (vector->bLevel != 1) |
- vector->dwStatusID = (u32)readb((const volatile void *) (pd->pCtl + VECBASE + vector->bLevel)); |
- |
- vector->bLevel >>= 1; |
- } |
- } |
- } |
- return 0; |
-} |
- |
-static int read_vector_blocking(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_VECTOR_LEVEL *vector, struct file *pFile) |
-{ |
- int error; |
- |
- vector->dwStatusID = 0; |
- vector->bLevel = 0; |
- vector->bPCIADAIrq = 0; |
- |
- // support nonblocking read if requested |
- if ((pFile->f_flags & O_NONBLOCK) && (!pd->wIrqStatus)) |
- return -EAGAIN; |
- |
- // sleep until data are available |
- if ((error = wait_event_interruptible(pd->event_queue, (pd->wIrqStatus)))) |
- return error; |
- |
- error = read_vector_polling(pp, pd, vector); |
- |
- pd->wIrqStatus = 0; // clear the status since it is read |
- |
- return error; |
-} |
- |
- |
-static int control_interrupts(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_IRQ_CONTROL *irq_control) |
-{ |
- u16 intCSR = readw((const volatile void *) pd->pPCIADAIntCSR); |
- u8 ret = (intCSR & 0x40) ? 1 : 0; |
- |
- PRINTK(KERN_DEBUG "%s : control_interrupts()\n", DEVICE_NAME); |
- |
- if (irq_control->bEnable) |
- writew(intCSR | 0x40, (volatile void *) pd->pPCIADAIntCSR); |
- else |
- writew(intCSR & ~0x40, (volatile void *) pd->pPCIADAIntCSR); |
- |
- // return the switch before set |
- irq_control->bEnable = ret; |
- |
- return 0; |
-} |
- |
-static int VME_TAS(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_TAS_STRUCT *tas_cmd) |
-{ |
- u32 access_adr = pd->pVME + (tas_cmd->dwAddress & LO_ADDRESS_MASK); // make low part of address |
- u8 data; |
- |
- // save old contents |
- u32 old_address = readl((const volatile void *) pd->pAdrReg); |
- u16 old_CSR = readw((const volatile void *) pd->pCSR); |
- u16 intCSR = readw((const volatile void *) pd->pPCIADAIntCSR); |
- pd->bCurrentModifier = readb((const volatile void *) pd->pAdrMod) & 0x3f; |
- |
- PRINTK(KERN_DEBUG "%s : VME_TAS()\n", DEVICE_NAME); |
- |
- // set new contents |
- writew(DISABLE_PCIADA_IRQS, (volatile void *) pd->pPCIADAIntCSR); |
- writeb((u8)tas_cmd->bModifier & 0x3f, (volatile void *) pd->pAdrMod); |
- writel(tas_cmd->dwAddress, (volatile void *) pd->pAdrReg); |
- writew(old_CSR | FLAG_RMC, (volatile void *) pd->pCSR); |
- |
- // do the read - modify - write |
- data = readb((const volatile void *) access_adr); |
- writeb(tas_cmd->bContent, (volatile void *) access_adr); |
- |
- // restore old contents |
- writeb(pd->bCurrentModifier, (volatile void *) pd->pAdrMod); |
- writew(old_CSR, (volatile void *) pd->pCSR); |
- writel(old_address, (volatile void *) pd->pAdrReg); |
- writew(intCSR, (volatile void *) pd->pPCIADAIntCSR); |
- |
- // get back read data |
- tas_cmd->bContent = data; |
- |
- return 0; |
-} |
- |
-static int VMEMM_RESET(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_RESET_COMMAND *reset_cmd) |
-{ |
- u16 cntrl = readw((const volatile void *) pd->pPCIADACntrl); |
- u16 intCSR = readw((const volatile void *) pd->pPCIADAIntCSR); |
- int status = 0; |
- |
- PRINTK(KERN_DEBUG "%s : VMEMM_RESET()\n", DEVICE_NAME); |
- |
- // am I connected and switched on?? |
- if ((cntrl & 0x0980) == 0x0980) |
- { |
- // do command |
- switch (reset_cmd->bCommand) |
- { |
- case POLL_RESET_CMD: |
- break; |
- case VME_RESET_CMD: |
- writeb(0, (volatile void *) pd->pAdrMod); |
- writeb(0xf0, (volatile void *) (pd->pCtl + VICBASE + SRR)); // make VME reset |
- break; |
- case LOCAL_RESET_CMD: |
- writeb(0, (volatile void *) pd->pAdrMod); |
- writew(LOCAL_RESET, (volatile void *) (pd->pCtl + VICRES)); |
- break; |
- case GLOBAL_RESET_CMD: |
- writeb(0, (volatile void *) pd->pAdrMod); |
- writew(GLOBAL_RESET, (volatile void *) (pd->pCtl + VICRES)); |
- break; |
- |
- default: status = -EINVAL; |
- } |
- |
- // inhibit PCIADA generated irqs |
- writew(DISABLE_PCIADA_IRQS, (volatile void *) pd->pPCIADAIntCSR); |
- |
- // always poll reset status - access will sometimes generate PCIADA #2 interrupt |
- reset_cmd->bResult = readb((const volatile void *) pd->pAdrMod); |
- |
- // reset any pending PCIADA interrupt #2 |
- writew(cntrl & ~0x0100, (volatile void *) pd->pPCIADACntrl); |
- writew(cntrl , (volatile void *) pd->pPCIADACntrl); |
- |
- // restore IRQStatus |
- writew(intCSR , (volatile void *) pd->pPCIADAIntCSR); |
- } |
- else |
- status = -EBUSY; |
- |
- // sync storage with hardware |
- pd->bCurrentModifier = readb((const volatile void *) pd->pAdrMod) & 0x3f; |
- |
- return status; |
-} |
- |
-static int access_VIC68A(PATH_OBJ *pp, DEVICE_OBJ *pd, PCIVME_VIC68A_ACTION *action) |
-{ |
- int nStatus = 0; |
- |
- PRINTK(KERN_DEBUG "%s : access_VIC68A()\n", DEVICE_NAME); |
- |
- if ((action->wRegisterAddress <= SRR) && ((action->wRegisterAddress & 0x03) == 3)) |
- { |
- u32 dwAddress; |
- u8 bByte = 0; |
- |
- dwAddress = (pd->pCtl + VICBASE + action->wRegisterAddress); |
- |
- switch (action->bAccessMode) |
- { |
- case VIC68A_WRITE_ONLY: |
- writeb(action->bContent, (volatile void *) dwAddress); |
- break; |
- case VIC68A_WRITE: |
- writeb(action->bContent, (volatile void *) dwAddress); |
- action->bContent = readb((const volatile void *) dwAddress); |
- break; |
- case VIC68A_OR: |
- bByte = readb((const volatile void *) dwAddress); |
- bByte |= action->bContent; |
- writeb(bByte, (volatile void *) dwAddress); |
- action->bContent = readb((const volatile void *) dwAddress); |
- break; |
- case VIC68A_AND: |
- bByte = readb((const volatile void *) dwAddress); |
- bByte &= action->bContent; |
- writeb(bByte, (volatile void *) dwAddress); |
- action->bContent = readb((const volatile void *) dwAddress); |
- break; |
- case VIC68A_READ: |
- action->bContent = readb((const volatile void *) dwAddress); |
- break; |
- default: |
- nStatus = -EINVAL; |
- } |
- } |
- else |
- nStatus = -EINVAL; |
- |
- return nStatus; |
-} |
- |
-// the dispatcher ---------------------------------------------------------------------------------- |
-int pcivme_ioctl(struct inode *pInode, struct file *pFile, unsigned int cmd, unsigned long arg) |
-{ |
- PATH_OBJ *pp = (PATH_OBJ *)pFile->private_data; |
- DEVICE_OBJ *pd = pp->pDo; |
- int err = 1; |
- |
- PRINTK(KERN_DEBUG "%s : pcivme_ioctl(0x%08x), size = %d\n", DEVICE_NAME, cmd, _IOC_SIZE(cmd)); |
- |
- if (_IOC_TYPE(cmd) != PCIVME_MAGIC) |
- return -EINVAL; |
- |
- // check for accessible user buffer |
- if (_IOC_DIR(cmd) & _IOC_READ) |
- err = !access_ok(VERIFY_WRITE, (void *)arg, _IOC_SIZE(cmd)); |
- if (_IOC_DIR(cmd) & _IOC_WRITE) |
- err = !access_ok(VERIFY_READ, (void *)arg, _IOC_SIZE(cmd)); |
- if (err) |
- return -EFAULT; |
- |
- switch (_IOC_NR(cmd)) |
- { |
- case _IOC_NR(PCIVME_READ_VECTOR_BLOCK): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_VECTOR_LEVEL)) |
- return -EINVAL; |
- return read_vector_blocking(pp, pd, (PCIVME_VECTOR_LEVEL *)arg, pFile); |
- |
- case _IOC_NR(PCIVME_READ_VECTOR_POLL): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_VECTOR_LEVEL)) |
- return -EINVAL; |
- return read_vector_polling(pp, pd, (PCIVME_VECTOR_LEVEL *)arg); |
- |
- case _IOC_NR(PCIVME_CONTROL_INTERRUPTS): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_IRQ_CONTROL)) |
- return -EINVAL; |
- return control_interrupts(pp, pd, (PCIVME_IRQ_CONTROL *)arg); |
- |
- case _IOC_NR(PCIVME_TAS): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_TAS_STRUCT)) |
- return -EINVAL; |
- return VME_TAS(pp, pd, (PCIVME_TAS_STRUCT *)arg); |
- |
- case _IOC_NR(PCIVME_ACCESS_VIC68A): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_VIC68A_ACTION)) |
- return -EINVAL; |
- return access_VIC68A(pp, pd, (PCIVME_VIC68A_ACTION *)arg); |
- |
- case _IOC_NR(PCIVME_GET_DYNAMIC_STATUS): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_DYNAMIC_STATUS)) |
- return -EINVAL; |
- return get_dynamic_status(pp, pd, (PCIVME_DYNAMIC_STATUS *)arg); |
- |
- case _IOC_NR(PCIVME_RESET): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_RESET_COMMAND)) |
- return -EINVAL; |
- return VMEMM_RESET(pp, pd, (PCIVME_RESET_COMMAND *)arg); |
- |
- case _IOC_NR(PCIVME_SET_ACCESS_PARA): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_ACCESS_COMMAND)) |
- return -EINVAL; |
- return access_command(pp, pd, (PCIVME_ACCESS_COMMAND *)arg); |
- |
- case _IOC_NR(PCIVME_GET_STATIC_STATUS): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_STATIC_STATUS)) |
- return -EINVAL; |
- return get_static_status(pp, pd, (PCIVME_STATIC_STATUS *)arg); |
- |
- case _IOC_NR(PCIVME_INIT_HARDWARE): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_INIT_COMMAND)) |
- return -EINVAL; |
- return init_hardware(pp, pd, (PCIVME_INIT_COMMAND *)arg); |
- |
- case _IOC_NR(PCIVME_DEINIT_HARDWARE): |
- if (_IOC_SIZE(cmd) < sizeof(PCIVME_INIT_COMMAND)) |
- return -EINVAL; |
- return deinit_hardware(pp, pd, (PCIVME_INIT_COMMAND *)arg); |
- |
- default: |
- PRINTK(KERN_DEBUG "%s : pcivme_ioctl(0x%08x) is illegal\n", DEVICE_NAME, cmd); |
- return -EINVAL; |
- } |
- |
- return 0; |
-} |
- |
-static long pcivme_unlocked_ioctl(struct file *pFile, unsigned int cmd, unsigned long arg){ |
-long retval=0; |
-#if HAVE_UNLOCKED_IOCTL |
- struct mutex fs_mutex; |
- mutex_init(&fs_mutex); |
- mutex_lock(&fs_mutex); |
-#else |
- lock_kernel(); |
-#endif |
- |
-retval = pcivme_ioctl(NULL, pFile, cmd,arg); |
- |
-#if HAVE_UNLOCKED_IOCTL |
- mutex_unlock(&fs_mutex); |
-#else |
- unlock_kernel(); |
-#endif |
-return retval; |
-} |
- |
-int pcivme_open(struct inode *pInode, struct file *pFile) |
-{ |
- DEVICE_OBJ *pd = 0; |
- DEVICE_OBJ *desc = 0; |
- int nMinor = MINOR(pInode->i_rdev); |
- struct list_head *ptr; |
- |
- PRINTK(KERN_DEBUG "%s : pcivme_open(), %d, %d, scanning %d devices\n", DEVICE_NAME, major(pInode->i_rdev), nMinor, drv.count); |
- |
- /* search for device */ |
- for (ptr = drv.devList.next; ptr != &drv.devList; ptr = ptr->next) |
- { |
- pd = list_entry(ptr, DEVICE_OBJ, list); |
- pd->bConnected = get_module_info(pd); |
- if (pd->bConnected) |
- { |
- if (test_connection(pd)) |
- { |
- printk(KERN_ERR "%s : connection test for module %d failed!\n", DEVICE_NAME, pd->cModuleNumber); |
- pd->bConnected = 0; |
- } |
- else |
- if (pd->cModuleNumber == nMinor) |
- { |
- desc = pd; |
- break; |
- } |
- } |
- else |
- PRINTK(KERN_DEBUG "%s : module %d not connected!\n", DEVICE_NAME, nMinor); |
- } |
- |
- if (desc) |
- { |
- int err; |
- PATH_OBJ *pp; |
- |
- pp = (PATH_OBJ *)kmalloc(sizeof(PATH_OBJ), GFP_ATOMIC); |
- if (!pp) |
- return -ENOMEM; |
- |
- // file PATH_OBJ structure with initialisation data |
- pp->pDo = pd; |
- pp->bAccessType = pp->bIncrement = BYTE_ACCESS; |
- pp->bModifier = Short_NoPriv; |
- pp->read = readByte; |
- pp->write = writeByte; |
- pp->AlignmentCheck = MisalignmentForByteAccess; |
- pFile->private_data = (void *)pp; |
- |
- PRINTK(KERN_DEBUG "%s : found VMEMM module with number %d.\n", DEVICE_NAME, nMinor); |
- |
- if (!pd->nOpenCounter) |
- { |
- err = CmdMachine(pd, init_element); |
- if (err) |
- { |
- printk(KERN_ERR "%s : default init failed with err = %d!\n", DEVICE_NAME, err); |
- kfree_s(pp, sizeof(*pp)); // FREE(pFile->private_data); |
- return err; |
- } |
- } |
- |
- pd->nOpenCounter++; |
- } |
- else |
- { |
- printk(KERN_ERR "%s : No VMEMM module found.\n", DEVICE_NAME); |
- return -ENODEV; |
- } |
- |
- __MOD_INC_USE_COUNT__; |
- return 0; |
-} |
- |
-int pcivme_release(struct inode *pInode, struct file *pFile) |
-{ |
- PATH_OBJ *pp; |
- |
- PRINTK(KERN_DEBUG "%s : release()\n", DEVICE_NAME); |
- |
- if (pFile->private_data) |
- { |
- pp = (PATH_OBJ *)pFile->private_data; |
- if (pp && pp->pDo ) |
- { |
- DEVICE_OBJ *pd = pp->pDo; |
- |
- pd->nOpenCounter--; |
- |
- // the last one closes the door |
- if (pd->nOpenCounter <= 0) |
- { |
- CmdMachine(pd, deinit_element_pre); |
- CmdMachine(pd, deinit_element_post); |
- |
- // Vorsicht ist die Mutter der Porzelankiste! |
- pd->nOpenCounter = 0; |
- } |
- |
- pp->pDo = 0; |
- } |
- |
- kfree_s(pp, sizeof(*pp)); // FREE(pFile->private_data); |
- } |
- |
- __MOD_DEC_USE_COUNT__; |
- return 0; |
-} |
- |
-static ssize_t pcivme_read(struct file *pFile, char *pcBuffer, size_t count, loff_t *offp) |
-{ |
- PATH_OBJ *pp = (PATH_OBJ *)pFile->private_data; |
- DEVICE_OBJ *pd = pp->pDo; |
- u32 dwLocalCount = count; |
- register u32 dwLocalPageAddress; |
- u32 dwLocalAddressInPage; |
- |
- PRINTK(KERN_DEBUG "%s : pcivme_read(0x%08x, %d)\n", DEVICE_NAME, (u32)*offp, dwLocalCount); |
- |
- // inhibit misaligned accesses |
- if (pp->AlignmentCheck(*offp)) |
- return -EFAULT; |
- |
- // check for free access to user buffer |
- if (!access_ok(VERIFY_WRITE, pcBuffer, count)) |
- return -EFAULT; |
- |
- // do I still have the same modifier? |
- if (pp->bModifier != pd->bCurrentModifier) |
- setModifier(pd, pp->bModifier); |
- |
- while (count >= pp->bAccessType) |
- { |
- dwLocalPageAddress = *offp & HI_ADDRESS_MASK; |
- dwLocalAddressInPage = *offp & LO_ADDRESS_MASK; |
- |
- // do I still work in the same page? |
- if (dwLocalPageAddress != pd->dwCurrentPageAddress) |
- setPageAddress(pd, dwLocalPageAddress); |
- |
- // standard access method |
- pp->read(pd, (void **)&pcBuffer, dwLocalAddressInPage); |
- |
- // decrement count and update pointer to next access address |
- count -= pp->bAccessType; |
- *offp += pp->bIncrement; |
- } |
- |
- return dwLocalCount - count; |
-} |
- |
-static ssize_t pcivme_write(struct file *pFile, const char *pcBuffer, size_t count, loff_t *offp) |
-{ |
- PATH_OBJ *pp = (PATH_OBJ *)pFile->private_data; |
- DEVICE_OBJ *pd = pp->pDo; |
- u32 dwLocalCount = count; |
- register u32 dwLocalPageAddress; |
- u32 dwLocalAddressInPage; |
- |
- PRINTK(KERN_DEBUG "%s : pcivme_write(0x%08x, %d)\n", DEVICE_NAME, (u32)*offp, dwLocalCount); |
- |
- // inhibit misaligned accesses |
- if (pp->AlignmentCheck(*offp)) |
- return -EFAULT; |
- |
- // check for free access to user buffer |
- if (!access_ok(VERIFY_READ, pcBuffer, count)) |
- return -EFAULT; |
- |
- // do I still have the same modifier? |
- if (pp->bModifier != pd->bCurrentModifier) |
- setModifier(pd, pp->bModifier); |
- |
- while (count >= pp->bAccessType) |
- { |
- dwLocalPageAddress = *offp & HI_ADDRESS_MASK; |
- dwLocalAddressInPage = *offp & LO_ADDRESS_MASK; |
- |
- // do I still work in the same page? |
- if (dwLocalPageAddress != pd->dwCurrentPageAddress) |
- setPageAddress(pd, dwLocalPageAddress); |
- |
- // standard access method |
- pp->write(pd, dwLocalAddressInPage, (void **)&pcBuffer); |
- |
- // decrement count and update pointer to next access address |
- count -= pp->bAccessType; |
- *offp += pp->bIncrement; |
- } |
- |
- return dwLocalCount - count; |
-} |
- |
- |
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) |
-struct file_operations pcivme_fops = |
-{ |
- NULL, /* lseek */ |
- pcivme_read, /* read */ |
- pcivme_write, /* write */ |
- NULL, /* readdir */ |
- NULL, /* select */ |
- pcivme_ioctl, /* ioctl */ |
- NULL, /* mmap */ |
- pcivme_open, /* open */ |
- NULL, /* flush */ |
- pcivme_release, /* release */ |
-}; |
-#else |
-struct file_operations pcivme_fops = |
-{ |
- .read = pcivme_read, /* read */ |
- .write = pcivme_write, /* write */ |
- .unlocked_ioctl = pcivme_unlocked_ioctl, /* ioctl */ |
- .open = pcivme_open, /* open */ |
- .release = pcivme_release, /* release */ |
-}; |
-#endif |
- |
- |
- |
- |
- |
Index: pcivme-3.2/driver/Module.markers |
=================================================================== |
--- pcivme-3.2/driver/Module.markers (revision 9) |
+++ pcivme-3.2/driver/Module.markers (nonexistent) |
@@ -1,4 +0,0 @@ |
-core_marker_format vmlinux name %s format %s |
-kernel_sched_schedule vmlinux prev_pid %d next_pid %d prev_state %ld ## rq %p prev %p next %p |
-kernel_sched_wakeup vmlinux pid %d state %ld ## rq %p task %p rq->curr %p |
-kernel_sched_wakeup_new vmlinux pid %d state %ld ## rq %p task %p rq->curr %p |
Index: pcivme-3.2/Makefile |
=================================================================== |
--- pcivme-3.2/Makefile (revision 9) |
+++ pcivme-3.2/Makefile (nonexistent) |
@@ -1,63 +0,0 @@ |
-#**************************************************************************** |
-# Copyright (C) 2001-2004 ARW Elektronik Germany |
-# |
-# |
-# 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; either version 2 of the License, or |
-# (at your option) any later version. |
-# |
-# This program 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 this program; if not, write to the Free Software |
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-# |
-# Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-#**************************************************************************** |
- |
-#**************************************************************************** |
-# |
-# Makefile - global makefile for ARW Elektronik PCIVME interfaces driver |
-# and library and test programs |
-# |
-# $Log: Makefile,v $ |
-# Revision 1.1 2004/08/13 19:36:03 klaus |
-# conversion to kernel-version 2.6, released version 3.0 |
-# |
-# |
-#**************************************************************************** |
- |
-all: |
- cd driver;\ |
- make;\ |
- cd ../lib;\ |
- make;\ |
- cd ../test;\ |
- make;\ |
- cd .. |
- |
-clean: |
- cd driver;\ |
- make clean;\ |
- cd ../lib;\ |
- make clean;\ |
- cd ../test;\ |
- make clean;\ |
- cd .. |
- |
-# root installation only |
-install: |
- cd driver;\ |
- make install;\ |
- cd ../lib;\ |
- make install;\ |
- cd .. |
- |
- |
- |
- |
- |
Index: pcivme-3.2/pvmon/pcilibLx.h |
=================================================================== |
--- pcivme-3.2/pvmon/pcilibLx.h (revision 9) |
+++ pcivme-3.2/pvmon/pcilibLx.h (nonexistent) |
@@ -1,71 +0,0 @@ |
-#ifndef __PCILIBLX_H__ |
-#define __PCILIBLX_H__ |
- |
-//------------------------------------------------------------------------------------------- |
-// pcilib.h - defaults and interface functions of pcilib.c for LINUX |
-// |
-// (c) 1999-2002 ARW Elektronik |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// $Log: pcilibLx.h,v $ |
-// Revision 1.4 2005/12/29 10:52:04 klaus |
-// CR-LF minor problem solved |
-// |
-// Revision 1.3 2002/10/20 11:49:33 klaus |
-// first parts working |
-// |
-// Revision 1.2 2002/10/19 09:44:37 klaus |
-// first success compiling project |
-// |
-// Revision 1.1.1.1 2002/10/18 22:14:29 klaus |
-// |
- |
-//----------------------------------------------------------------------------- |
-// DEFINES |
-// |
-#define BUFFERLENGTH 128 |
- |
-//----------------------------------------------------------------------------- |
-// PROTOTYPES |
-// |
-int Init_Interface(char *szDevicePath, char AdrMode, int *nIfcHandle); /* Inits to DefAModifier */ |
-void DeInit_Interface(int nIfcHandle); /* de-initializes Interface */ |
-void Reset_VME(int nIfcHandle); /* generates SYSRESET on VMEbus */ |
- |
-int GetError(int nIfcHandle); /* checks the ERROR flag */ |
-void ClearError(int nIfcHandle); /* clears the ERROR flag */ |
- |
-char ReadByte(int nIfcHandle, unsigned long,unsigned short); /* Get byte from any address */ |
-void WriteByte(int nIfcHandle, unsigned long,char,unsigned short); /* write byte to any address */ |
-short ReadWord(int nIfcHandle, unsigned long,unsigned short); /* get word from any address */ |
-void WriteWord(int nIfcHandle, unsigned long, short,unsigned short);/* write word to any address */ |
-long ReadLong(int nIfcHandle, unsigned long,unsigned short); /* read longword from any address */ |
-void WriteLong(int nIfcHandle, unsigned long,long,unsigned short); /* write longword to any address */ |
- |
-char ReadVectorByte(int nIfcHandle); /* reads a vector byte from VME_LEVEL */ |
-short ReadVectorWord(int nIfcHandle); /* reads a vector word from VME_LEVEL */ |
-long ReadVectorLong(int nIfcHandle); /* reads a vector longword from .. */ |
- |
-char TAS(int nIfcHandle, unsigned long,unsigned short); /* 68K TAS (semafore) emulation */ |
-void SetSfail(int nIfcHandle); /* set SYSFAIL */ |
-void ClrSfail(int nIfcHandle); /* clear SYSFAIL (own) */ |
-unsigned short PollSfail(int nIfcHandle); /* get SYSFAIL status */ |
- |
-void GetInterfaceInfo(int nIfcHandle, char type); /* request some information from driver */ |
- |
-/* set and get register contents of .. */ |
-unsigned long _SetRegister(int nIfcHandle, unsigned long Address, unsigned long Value); |
-unsigned long _GetRegister(int nIfcHandle, unsigned long Address); |
- |
-int setWordMode(int nMode); |
- |
-/*-------------------------- End of Prototypes -------------------------------*/ |
- |
-#endif // __PCILIBLX_H__ |
Index: pcivme-3.2/pvmon/mbuffer.h |
=================================================================== |
--- pcivme-3.2/pvmon/mbuffer.h (revision 9) |
+++ pcivme-3.2/pvmon/mbuffer.h (nonexistent) |
@@ -1,33 +0,0 @@ |
-#ifndef __MBUFFER_H__ |
-#define __MBUFFER_H__ |
- |
-//------------------------------------------------------------------------------------------- |
-// mbuffer.h - prototypes for simple message buffering mechanisms |
-// |
-// (c) 1999-2002 ARW Elektronik |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// $Log: mbuffer.h,v $ |
-// Revision 1.3 2005/12/29 10:52:04 klaus |
-// CR-LF minor problem solved |
-// |
-// Revision 1.2 2002/10/19 09:47:30 klaus |
-// first success compiling project |
-// |
-// Revision 1.1.1.1 2002/10/18 22:14:29 klaus |
-// |
- |
-void AddIRQtoBuffer(short level, short vector); |
-void AddMsgtoBuffer(int where, unsigned long Error); |
-void AddMsgAsStringtoBuffer(char *strn); |
-char *ReadMessageBuffer(void); |
-void InitMessageBuffer(void); |
- |
-#endif /* __MBUFFER_H__ */ |
Index: pcivme-3.2/pvmon/pvmon.cfg |
=================================================================== |
--- pcivme-3.2/pvmon/pvmon.cfg (revision 9) |
+++ pcivme-3.2/pvmon/pvmon.cfg (nonexistent) |
@@ -1,4 +0,0 @@ |
-Configuration=Oct 20 2002 |
-DevicePath=/dev/vmemm_1 |
-AddressModifier=39 |
-WordMode=y |
Index: pcivme-3.2/pvmon/Makefile |
=================================================================== |
--- pcivme-3.2/pvmon/Makefile (revision 9) |
+++ pcivme-3.2/pvmon/Makefile (nonexistent) |
@@ -1,58 +0,0 @@ |
-#**************************************************************************** |
-# Copyright (C) 2001-2002 ARW Elektronik Germany |
-# |
-# 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; either version 2 of the License, or |
-# (at your option) any later version. |
-# |
-# This program 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 this program; if not, write to the Free Software |
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-# |
-# Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-#**************************************************************************** |
- |
-#**************************************************************************** |
-# |
-# Makefile - makefile for ARW Elektronik PCIVME interfaces pvmon program |
-# |
-# $Log: Makefile,v $ |
-# Revision 1.3 2002/11/14 19:57:56 klaus |
-# improvement, still bugs active |
-# |
-# Revision 1.2 2002/10/20 11:49:33 klaus |
-# first parts working |
-# |
-# Revision 1.1.1.1 2002/10/18 22:14:29 klaus |
-# |
-# |
-# |
-#**************************************************************************** |
- |
-SRC = . |
-INC = -I. -I/usr/include |
-LDLIBS = -L/lib -L/usr/lib -L/usr/local/lib |
- |
-DBG = -g |
-CFLAGS = $(DBG) $(INC) $(LDLIBS) |
- |
-TARGET1 = pvmon |
-FILES1 = $(SRC)/$(TARGET1).c $(SRC)/mbuffer.c $(SRC)/pcilibLx.c |
- |
-all: $(TARGET1) |
- |
-$(TARGET1): $(FILES1) |
- $(CC) $(FILES1) $(CFLAGS) -o $(TARGET1) -lpcivme -lslang |
- |
-clean: |
- rm -f $(SRC)/*~ $(SRC)/*.o $(TARGET1) |
- |
-install: |
- cp $(TARGET1) /usr/local/bin |
- |
Index: pcivme-3.2/pvmon/pvmon.c |
=================================================================== |
--- pcivme-3.2/pvmon/pvmon.c (revision 9) |
+++ pcivme-3.2/pvmon/pvmon.c (nonexistent) |
@@ -1,1728 +0,0 @@ |
-//------------------------------------------------------------------------------------------- |
-// pvmon.c - the body of a simple tool to access VME BUS resources |
-// |
-// (c) 1999-2002 ARW Elektronik |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// $Log: pvmon.c,v $ |
-// Revision 1.6 2002/11/14 19:57:56 klaus |
-// improvement, still bugs active |
-// |
-// Revision 1.5 2002/10/20 18:07:48 klaus |
-// mostly working alpha version |
-// |
-// Revision 1.4 2002/10/20 11:49:33 klaus |
-// first parts working |
-// |
-// Revision 1.3 2002/10/19 09:47:30 klaus |
-// first success compiling project |
-// |
-// Revision 1.2 2002/10/19 09:44:38 klaus |
-// first success compiling project |
-// |
-// Revision 1.1.1.1 2002/10/18 22:14:29 klaus |
-// |
-// first parts written and published from |
-// Sven Hannover, Sven Tuecke, Klaus Hitschler, Ralf Dux 1991 |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// INCLUDES |
-// |
-#include <unistd.h> |
-#include <sys/types.h> |
-#include <sys/ioctl.h> |
-#include <sys/stat.h> |
-#include <fcntl.h> |
-#include <errno.h> |
- |
-#include <setjmp.h> |
-#include <signal.h> |
-#include <stdio.h> |
-#include <stdlib.h> |
-#include <string.h> |
-#include <time.h> |
- |
-#include <slang.h> |
- |
-#include <../driver/vme.h> /* constants about VME BUS */ |
-#include <mbuffer.h> /* simple message buffering */ |
-#include <pcilibLx.h> /* device access functions */ |
- |
-//------------------------------------------------------------------------------------------- |
-// DEFINES |
-// |
-#define VERSION "6.0Lx" |
-#define True 1 |
-#define False 0 |
- |
-#if !defined(FALSE) || !defined(TRUE) |
-#define FALSE False |
-#define TRUE True |
-#endif |
- |
-#define DEVPATH " - No input neccessary!" // not used |
-#define DEFDEVICENAME "/dev/vmemm_1" |
-#define DEFAULT_ADDRESS 0x00000000 // default VME window base address |
-#define DEFAULT_MODIFIER Std_NoPriv_Data // default address modifier |
-#define DEFAULT_TYPE sizeof(char) // default data BUS access width |
-#define MAX_TIMEOUT_LOOPS 100000 // maximum loops for waiting reset finished |
- |
-//------------------------------------------------------------------------------------------- |
-// TYPEDEFS |
-// |
-typedef char STRG[BUFFERLENGTH]; /* Allgemeiner Stringtyp */ |
- |
-//------------------------------------------------------------------------------------------- |
-// LOCALS |
-// |
-static char UpCase(char Zchn); |
-static char *ParaStr(int Num); |
-static unsigned long ParaNum(int Num); |
-static void SetModifier(void); |
-static void PrintItem(unsigned long Addr, char Mode, unsigned char *Asc); |
-static char GetZug(char *Zug); |
-static void Dump(void); |
-static char GetStrg(STRG Stg, int Len); |
-static void Examine(void); |
-static void Move(void); |
-static void Fill(void); |
-static void Hilfe(void); |
-static int InitAt(char *szDevicePath, int *nInterfaceHandle); |
-static void CfgName(STRG Stg); |
-static void LoadKonfig(void); |
-static void Konfig(void); |
-static void ReadIrqVect(void); |
-static void JumpToDos(void); |
-static void Raus(void); |
-static void SearchPort(char *Art, |
- int Anz, |
- unsigned short modf, |
- void(*SFunc)(int nHandle, unsigned long Adr,unsigned short AModifier)); |
-static void SearchPorts(void); |
-static unsigned GibNum(char **PSt,char Anz); |
-static int _ReadFile(void); |
-static void SeekPatt(void); |
-static void TestSet(void); |
-static void ResetVme(void); |
-static int OutHex(FILE *OuF, int Siz, unsigned long Adr, int Typ, char Buf[]); |
-static int _WriteFile(void); |
-static void ShowModifier(int Mode); |
-static void ShowRegister(void); |
-static int HauptMenue(STRG Stg); |
-static void MyExit(int); |
-static void SysFail(void); |
- |
-//------------------------------------------------------------------------------------------- |
-// EXTERNALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// GLOBALS |
-// |
-static unsigned short AdrMode = Short_NoPriv; /* Mein initialer Adressmodifier */ |
-static char DefZug = 'B'; /* Default Zugriff */ |
-static char DefVec = 'B'; /* Default Zugriff IrqVecs */ |
-static char **ArgV; /* ArgV aus main() */ |
-static STRG InStg; /* Allgemeiner Eingabestring */ |
- |
-static char *TsT; |
-static char Abbruch = 0; /* verzweig wg. SIGINT */ |
- |
-static int nInterfaceHandle; /* handle of device */ |
-static char *cszDevicePath; /* path of device */ |
-static int WordMode; /* mode of VME path operation */ |
- |
-static char localBuffer[BUFFERLENGTH] = DEFDEVICENAME; |
- |
-//------------------------------------------------------------------------------------------- |
-// FUNCTIONS |
-// |
-//----------------------------------------------------------------------------- |
-// functions to emulate for this platform |
-static int getch(void) |
-{ |
- return SLang_getkey(); |
-} |
- |
- |
-static void strlwr(char *str) |
-{ |
- int i; |
- char *ptr = str; |
- |
- for (i = 0; ((i < BUFFERLENGTH) && (*ptr)); i++) |
- { |
- *ptr = tolower(*ptr); |
- ptr++; |
- } |
-} |
- |
-static int _gets(char *str) |
-{ |
- if (fgets(str, BUFFERLENGTH, (FILE *)stdin) == NULL) |
- return EINVAL; |
- else |
- { |
- // remove '\n' from string |
- int i; |
- char *ptr = str; |
- |
- for (i = 0; i < BUFFERLENGTH; i++, ptr++) |
- { |
- if (*ptr == '\n') |
- { |
- *ptr = 0; |
- break; |
- } |
- } |
- return 0; |
- } |
-} |
- |
-//----------------------------------------------------------------------------- |
-// get out of here |
-static void Raus(void) |
-{ |
- DeInit_Interface(nInterfaceHandle); |
- exit(0); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// return the uppercase char |
-static char UpCase(char Zchn) /* Upcase eines Zeichens */ |
-{ |
- return((Zchn >= 'a' && Zchn <= 'z') ? Zchn - 0x20 : Zchn); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// get the n-th parameter as string |
-static char *ParaStr(int Num) /* Hole n-ten Parameter */ |
-{ /* als String aus InStg */ |
- char *PSt; /* Evt. Ergebnis NULL bei (Num>1) */ |
- |
- PSt=InStg; /* Fange bei InStg[0] an */ |
- if (Num > 1) |
- { /* Folgeparameter: suche Anfang */ |
- if (*PSt!='\0') |
- { /* Leerstring ignorieren */ |
- PSt++; |
- switch (*PSt) |
- { /* Teste evt. Modusparameter */ |
- case 'L': |
- case 'W': |
- case 'B': |
- case 'X': |
- case 'H':PSt++; |
- } |
- |
- if (*PSt==' ') PSt++; /* Evt. Delimiter ueberspringen */ |
- } |
- |
- if (*PSt=='\0') PSt=NULL; /* Kein weiterer Parameter da */ |
- else |
- { |
- while (PSt!=NULL && Num>2) |
- { |
- PSt=strchr(PSt, ' '); /* Suche nach Delimiter */ |
- if (PSt!=NULL) PSt++; /* Delimiter ueberspringen */ |
- Num--; /* Naechster Parameter da */ |
- } /* while */ |
- } /* else */ |
- } /* if */ |
- return(PSt); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// get the n-th parameter as unsigned long |
-static unsigned long ParaNum(int Num) /* Hole n-ten Parameter */ |
-{ /* als Zahl aus InStg */ |
- unsigned long Erg; |
- char *PSt; |
- |
- PSt=ParaStr(Num); /* Hole Parameterstring */ |
- Erg=0; /* Hole Word aus String */ |
- if (PSt!=NULL) sscanf(PSt, "%lx", &Erg); |
- return(Erg); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// set the address modifier for following accesses |
-static void SetModifier(void) /* Neuen Adressmodifier setzen */ |
-{ |
- int Idx; |
- |
- if (ParaStr(1)[1]=='H') |
- { /* Wenn Hilfsfunktion gewuenscht */ |
- if (ParaStr(2)==NULL) |
- { /* Noch ein Parameter da? */ |
- for (Idx=0; Idx<0x40; Idx++) |
- { /* Nein: Liste ausgeben */ |
- ShowModifier(Idx); |
- if ((Idx == 0x10) || (Idx == 0x20) || (Idx == 0x30)) |
- { |
- printf("\n go on ?\r"); |
- getch(); |
- } |
- } |
- printf("\n"); |
- } |
- else ShowModifier((int)ParaNum(2)); /* Nur gewuenschten Mode anzeigen */ |
- } |
- else |
- { |
- if (ParaStr(2) != NULL) |
- { |
- if (ParaStr(1)[1] == 'M') |
- { |
- AdrMode=(int)ParaNum(3) & 0x3f; |
- } |
- else |
- { |
- AdrMode=(int)ParaNum(2) & 0x3f; /* Adressmodifier merken */ |
- } |
- } |
- ShowModifier(AdrMode); /* Status Adressmodifier zeigen */ |
- } /* else */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// print out an item |
-static void PrintItem(unsigned long Addr, char Mode, unsigned char *Asc) |
-{ |
- unsigned long xl; |
- unsigned int xi; |
- unsigned char xc; |
- |
- switch (Mode) |
- { |
- case 'L': xl=ReadLong(nInterfaceHandle, Addr, AdrMode); |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); printf("******** "); |
- } |
- else |
- { |
- printf("%08lx ", xl); |
- if (Asc != NULL) *(unsigned long *)Asc=xl; |
- } |
- break; |
- case 'W': xi=ReadWord(nInterfaceHandle, Addr, AdrMode); |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); printf("**** "); |
- } |
- else |
- { |
- printf("%04hx ", xi); |
- if (Asc != NULL) *(unsigned short *)Asc=xi; |
- } |
- break; |
- case 'B': xc=ReadByte(nInterfaceHandle, Addr, AdrMode); |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); printf("**"); |
- } |
- else |
- { |
- printf("%02hx", xc); |
- if (Asc != NULL) *Asc=xc; |
- } |
- break; |
- }; /* switch */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// test whether byte word or long access |
-static char GetZug(char *Zug) /* Moduszeichen feststellen */ |
-{ |
- switch (ParaStr(1)[1]) |
- { /* Moduszchn ist angegeben */ |
- case 'L': |
- case 'W': |
- case 'B':*Zug = ParaStr(1)[1]; /* Neues Moduszchn festlegen */ |
- } |
- return(*Zug); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// get or set SYSFAIL |
-static void SysFail(void) |
-{ |
- if (ParaStr(2) != NULL) |
- { |
- if (ParaNum(2) > 0) |
- SetSfail(nInterfaceHandle); |
- else |
- ClrSfail(nInterfaceHandle); |
- } |
- |
- if (PollSfail(nInterfaceHandle)) |
- printf("SYSFAIL deasserted\n"); |
- else |
- printf("SYSFAIL asserted\n"); |
-} |
- |
- |
-//----------------------------------------------------------------------------- |
-// dump a range of memory |
-static void Dump(void) /* Ausgabe eines Bereichs */ |
-{ |
- static unsigned long DefVon=0; /* Default Addr fuer Dump */ |
- |
- unsigned long Bis; /* Bis wohin ausgeben */ |
- unsigned int Len; /* Wieviel Bytes/Ausgabe */ |
- unsigned int Idx; /* Index */ |
- char Asc[16]; /* ohne static gehts bei dw nicht */ |
- |
- if (ParaStr(2) != NULL) /* Von-Adresse angegeben? */ |
- DefVon=ParaNum(2); |
- Len=1; |
- |
- switch (GetZug(&DefZug)) |
- { /* Zugriffsmodus festlegen */ |
- case 'L':Len+=2; /* Auf Long-Adresse biegen */ |
- case 'W':Len++; /* Auf Wort-Adresse biegen */ |
- } |
- |
- DefVon&=-(long)Len; /* Adressen geradebiegen */ |
- if (ParaStr(3) != NULL) |
- { /* Bis-Adresse angegeben? */ |
- Bis=ParaNum(3); |
- } |
- else |
- Bis=(DefVon+0x7f) | 0x0f; /* Default fuer Bis errechnen */ |
- |
- printf("%08lx: ", DefVon); |
- for (Idx=0; Idx < (DefVon & 0x0f)/Len*(2*Len+1); Idx++) |
- printf(" "); |
- |
- memset(Asc, ' ', sizeof(Asc)); /* Initialize String to Spaces */ |
- while ((True) && (!Abbruch)) |
- { |
- PrintItem(DefVon, DefZug, /* Gebe eine Speicherstelle aus */ |
- &Asc[DefVon & 0x0f]); /* Merke Zeichen in Asc */ |
- DefVon+=Len; /* Zaehler erhoehen */ |
- |
- if ((DefVon > Bis) || (!(DefVon & 0x0f))) |
- { |
- printf(" "); |
- for (Idx=0; Idx < sizeof(Asc); Idx++) |
- { |
- if (Asc[Idx] < ' ') printf("."); /* Ascii-String ausgeben */ |
- else printf("%c", Asc[Idx]); /* Ctrl-Zeichen als Punkte */ |
- } |
- |
- printf("\n"); |
- if (DefVon <= Bis) |
- { |
- printf("%08lx: ", DefVon); /* Neue Zeile bei 16er-Grenze */ |
- memset(Asc, ' ', sizeof(Asc)); /* Init String */ |
- } |
- else return; /* Ausstieg */ |
- } |
- else |
- { /* Sonst Leerzeichen ausgeben */ |
- printf(((DefVon & 0x0f) == 0x08) ? "|":" "); |
- } |
- } /* while */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// read a string with editing functions |
-static char GetStrg(STRG Stg, int Len) /* Lese String ein bis Spc */ |
-{ |
- int Idx; /* Zugriffsindex */ |
- char Zch; /* Eingabezeichen */ |
- |
- Idx=0; /* Vorne anfangen */ |
- do |
- { |
- Zch=(char)getch(); /* Hole ein Zeichen */ |
- if ((unsigned char)Zch >' ' && Zch!='\t') |
- { |
- if (Idx<Len) |
- { |
- printf("%c",Zch); /* Zeichen ok, Ausgeben */ |
- Stg[Idx++]=Zch; /* Zeichen ablegen */ |
- } |
- } |
- else |
- { |
- switch (Zch) |
- { |
- case '\b':if (Idx) |
- { /* Backspace=Delete? */ |
- Idx--; /* Loesche Zeichen aus String */ |
- printf("\b \b"); /* und vom Bildschirm */ |
- } |
- case '\t': |
- case '\r':break; /* Return? Endezeichen 13 */ |
- default:Zch=0; /* Ende mit Endezeichen 0 */ |
- } /* switch */ |
- } /* else */ |
- } while (Zch && Zch!='\r' && Zch!='\n'); |
- |
- Stg[Idx]='\0'; /* Stringende eintragen */ |
- return(Zch); /* Returncode = Abschlusstaste */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// examine a memory location |
-static void Examine(void) /* Speicherbereich aendern */ |
-{ |
- unsigned long DefVon; /* Anfangsadresse */ |
- unsigned long Inh; /* Neuer Inhalt */ |
- int Len; /* Item-Laenge */ |
- int Idx; /* Index */ |
- char End; /* Endmodus */ |
- STRG Stg; /* Eingabestring */ |
- |
- if (ParaStr(2)!=NULL) |
- { /* Adresse benoetigt */ |
- Len=1; |
- switch (GetZug(&DefZug)) |
- { /* Zugriffsmodus festlegen */ |
- case 'L':Len+=2; /* Auf Long-Adresse biegen */ |
- case 'W':Len++; /* Auf Wort-Adresse biegen */ |
- } |
- DefVon=ParaNum(2) & -(long)Len; /* Adressen geradebiegen */ |
- if (ParaStr(3)!=NULL) |
- { /* Wert angegeben? */ |
- Inh=ParaNum(3); /* Hole auszugebenden Wert */ |
- switch (DefZug) |
- { |
- case 'L': WriteLong(nInterfaceHandle, DefVon,Inh,AdrMode); |
- break; |
- case 'W': WriteWord(nInterfaceHandle, DefVon,(short)Inh,AdrMode); |
- break; |
- case 'B': WriteByte(nInterfaceHandle, DefVon,(char)Inh,AdrMode); |
- break; |
- }; /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- { /* Fehlerpruefung: VME-Transfer ok? */ |
- ClearError(nInterfaceHandle); /* Zuruecksetzen Fehlerflag */ |
- printf("Error\n"); /* Zugriff gescheitert */ |
- } |
- } |
- else |
- { |
- SLang_init_tty(-1, 0, 1); |
- SLtt_get_terminfo(); |
- |
- End='\n'; /* Bei Einstieg drucke Adresse */ |
- do |
- { |
- if (End=='\n' || End=='\177' || !(DefVon % 8)) |
- { |
- if (End!='\n') printf("\n"); /* Bei Einstieg nicht <CRLF> */ |
- printf("%08lx: ", DefVon); /* Adresse ausgeben */ |
- } |
- |
- PrintItem(DefVon,DefZug,NULL); /* Gebe eine Speicherstelle aus */ |
- printf("."); |
- SLtt_flush_output(); |
- |
- End=GetStrg(Stg,Len << 1); /* Hole begrenzte Eingabezeile */ |
- |
- for (Idx=strlen(Stg); Idx<2+(Len << 1); Idx++) |
- printf(" "); |
- if (sscanf(Stg,"%lx",&Inh)>0) |
- { /* Hexzahl rausholen und ausgeben */ |
- switch (DefZug) |
- { |
- case 'L': WriteLong(nInterfaceHandle, DefVon,Inh,AdrMode); |
- break; |
- case 'W': WriteWord(nInterfaceHandle, DefVon,(short)Inh,AdrMode); |
- break; |
- case 'B': WriteByte(nInterfaceHandle, DefVon,(char)Inh,AdrMode); |
- break; |
- }; /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- ClearError(nInterfaceHandle);/* Fehlerpruefung: VME-Transfer ok? */ |
- } /* if sscanf */ |
- |
- if (End == '\177') DefVon-=Len;/* Naechste Speicherzelle ansteuern */ |
- else DefVon+=Len; |
- } while (End!='\r'); |
- /* Ende bei <CR> */ |
- printf("\n"); |
- |
- SLang_reset_tty(); |
- } /* else */ |
- } /* if */ |
- else printf("\a"); /* Fehler: zuwenig Parameter */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// fill a range of memory |
-static void Fill(void) /* Fuellt Speicherbereich mit Wert */ |
-{ |
- char DefZug; /* Zugriffsart */ |
- int Len; /* Item Laenge */ |
- unsigned long Idx; /* Index */ |
- unsigned long End; /* Endadresse */ |
- unsigned long Patt; /* Fuellmuster */ |
- unsigned char Merk_error = 0; /* Haelt error flag */ |
- |
- DefZug=' '; /* Modus muss angeben werden */ |
- if (GetZug(&DefZug)!=' ' && ParaStr(4)!=NULL) |
- { |
- Len=1; |
- switch (GetZug(&DefZug)) |
- { /* Zugriffsmodus festlegen */ |
- case 'L':Len+=2; /* Auf Long-Adresse biegen */ |
- case 'W':Len++; /* Auf Wort-Adresse biegen */ |
- } |
- Idx=ParaNum(2) & -(long)Len; /* Adressen geradebiegen */ |
- End=ParaNum(3); /* Endadresse festlegen */ |
- Patt=ParaNum(4); /* Pattern merken (geht schneller) */ |
- |
- while ((Idx<=End) && (!Abbruch)) |
- { |
- switch (DefZug) |
- { |
- case 'L':WriteLong(nInterfaceHandle, Idx, Patt, AdrMode); |
- break; |
- case 'W':WriteWord(nInterfaceHandle, Idx, (short)Patt, AdrMode); |
- break; |
- case 'B':WriteByte(nInterfaceHandle, Idx, (char)Patt, AdrMode); |
- break; |
- } /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); /* Fehler abfangen */ |
- Merk_error = 1; |
- } |
- if ((Idx & 0xffl)==0) |
- { /* Ermoegliche Ctrl-C */ |
- printf("\r"); |
- } |
- Idx+=Len; |
- } /* while */ |
- if (Merk_error) printf("--> Memory fill failed\a\n"); |
- } |
- else printf("\a"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// moves a range of memory |
-static void Move(void) /* Schiebt Speicherbereich */ |
-{ |
- char DefZug; /* Zugriffsart */ |
- int Len; /* Item Laenge */ |
- unsigned long Idx; /* Index */ |
- unsigned long End; /* Endadresse */ |
- unsigned long Dest; /* Zieladresse */ |
- unsigned long Wert; /* Kopiewert */ |
- unsigned char Merk_error = 0; /* Haelt error flag */ |
- |
- |
- DefZug=' '; /* Modus muss angeben werden */ |
- if (GetZug(&DefZug)!=' ' && ParaStr(4)!=NULL) |
- { |
- Len=1; |
- switch (GetZug(&DefZug)) |
- { /* Zugriffsmodus festlegen */ |
- case 'L':Len+=2; /* Auf Long-Adresse biegen */ |
- case 'W':Len++; /* Auf Wort-Adresse biegen */ |
- } |
- Idx=ParaNum(2) & -(long)Len; /* Adressen geradebiegen */ |
- End=ParaNum(3); /* Endadresse festlegen */ |
- Dest=ParaNum(4); /* Zieladresse setzen */ |
- |
- while ((Idx<=End) && (!Abbruch)) |
- { |
- switch (DefZug) |
- { |
- case 'L': { |
- Wert = ReadLong(nInterfaceHandle, Idx, AdrMode); |
- WriteLong(nInterfaceHandle, Dest, Wert, AdrMode); |
- } |
- break; |
- case 'W': { |
- Wert = ReadWord(nInterfaceHandle, Idx, AdrMode); |
- WriteWord(nInterfaceHandle, Dest, (short)Wert, AdrMode); |
- } |
- break; |
- case 'B': { |
- Wert = ReadByte(nInterfaceHandle, Idx, AdrMode); |
- WriteByte(nInterfaceHandle, Dest, (char)Wert, AdrMode); |
- } |
- break; |
- } /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); /* Fehler abfangen */ |
- Merk_error = 1; |
- } |
- |
- if ((Idx & 0xffl)==0) |
- { /* Ermoegliche Ctrl-C */ |
- printf("\r"); |
- } |
- |
- Idx+=Len; |
- Dest+=Len; |
- } /* while */ |
- if (Merk_error) printf("--> Memory move failed\a\n"); |
- } |
- else printf("\a"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// print out help to user |
-static void Hilfe(void) |
-{ |
- printf("a[h] [adrmode]\t\t: Change address modifiers, h=help\n"); |
- printf("c\t\t\t: Configure interface\n"); |
- printf("d[m] [start] [end]\t: Dump memory area\n"); |
- printf("e[m] <start> [value]\t: Examine or change memory area\n"); |
- printf("f<m> <start> <end> <x>\t: Fill memory from <start> til <end> with <x>\n"); |
- printf("g<m> <st> <en> [l] [x]\t: Generate random memory test. (loop l, seed x)\n"); |
- printf("h\t\t\t: This help\n"); |
- printf("i\t\t\t: Interface init\n"); |
- printf("l[m]\t\t\t: Get VME interrupt status/ID\n"); |
- printf("m<m> <src> <end> <dest>\t: Move memory area\n"); |
- printf("o\t\t\t: Jump to OS\n"); |
- printf("p[adrmode]\t\t: Port search\n"); |
- printf("q\t\t\t: Quit program\n"); |
- printf("r[x] <f> <start> [end]\t: Read file <f> to VME, x= x or s (HEX)\n"); |
- printf("s[m] <start> <end> <p>\t: Search pattern <p>=different Items\n"); |
- printf("t <start>\t\t: TAS emulation, 'Test and Set' bit 7\n"); |
- printf("v\t\t\t: Generate VME SYSRESET\n"); |
- printf("w[x] <f> <start> <end>\t: Write VME into file <f>, h=Intel Hex\n"); |
- printf("x <start> [val]\t\t: Read/Write to interface register @ start\n"); |
- printf("y[1/0]\t\t\t: Read/set/clear SYSFAIL\n"); |
- printf("z[0..2]\t\t\t: Show interface internals\n"); |
- printf("\n"); |
- printf("m = mode, e.g. b=byte, w=word, l=long (double) word; h = help, x= hex\n"); |
- printf("start(address), end(address), src=source, dest=destination, []=option\n"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// initialize the interface to VME |
-static int InitAt(char *szDevicePath, int *nIfcNum) /* Gibt bei Fehler False aus */ |
-{ |
- int result; |
- |
- if (result = Init_Interface(szDevicePath, AdrMode, nIfcNum)) /* Pruefung des Interfaces */ |
- { |
- printf("\n"); |
- switch (result) |
- { |
- case ENXIO: |
- printf("Can't find interface driver path!\n"); |
- printf("Please <q>uit or <c>onfigure interface!\n"); |
- return FALSE; |
- case ENOENT: |
- printf("Can't find interface driver!\n"); |
- printf("Please <q>uit or <c>onfigure interface!\n"); |
- return FALSE; |
- case ENODEV: |
- printf("VMEMM #%d not connected or VME crate switched off!\n", nInterfaceHandle); |
- printf("Please check connection or switch VME crate on or <c>onfigure.\n"); |
- printf("Then <q>uit and restart again.\n"); |
- return FALSE; |
- |
- default: |
- printf("Unknown error '%d' occured!\n", result); |
- printf("Please check the hardware and software setup and restart again.\n"); |
- return FALSE; |
- |
- } |
- } |
- |
- return(True); /* Kein Fehler */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// get the name of the configuration file |
-static void CfgName(STRG Stg) /* Ermittelt Namen Config-File */ |
-{ |
- Stg[0]='\0'; |
- if (ArgV[0] != NULL) |
- { |
- strcpy(Stg,ArgV[0]); |
- if (strrchr(Stg,'/')!=NULL) /* Versuche Dateinamen abzutrennen */ |
- *(strrchr(Stg,'/')+1)='\0'; /* So daß nur Pfad uebrigbleibt */ |
- else Stg[0]='\0'; /* Kein Pfad: String ist leer */ |
- } |
- strcat(Stg,"pvmon.cfg"); /* Mache einen Dateinamen */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// read in contents of configuration file |
-static void LoadKonfig(void) /* Wenn Config-Datei da, lese ein */ |
-{ |
- STRG Stg; |
- FILE *InF; |
- char c; |
- __u32 dwLocalAdrMode; |
- |
- CfgName(Stg); /* Hole Dateinamen nach InS */ |
- if ((InF=fopen(Stg,"rt"))!=NULL) |
- { /* Wenn das oeffnen geklappt hat */ |
- fscanf(InF,"%*[^=]%*1s%s",Stg); |
- fscanf(InF,"%*[^=]%*1s%s",cszDevicePath); |
- fscanf(InF,"%*[^=]%*1s%x",&dwLocalAdrMode); |
- AdrMode = (__u8)dwLocalAdrMode; |
- fscanf(InF,"%*[^=]%*1s%c",&c); |
- fclose(InF); /* Datei wieder schließen */ |
- |
- c = tolower(c); |
- if (c == 'y') |
- WordMode = setWordMode(1); |
- else |
- WordMode = setWordMode(0); |
- |
- } /* if */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// provides configuration functionality to user |
-static void Konfig(void) /* Konfiguration einstellen */ |
-{ |
- STRG InS; /* Eingabestring */ |
- FILE *OuF; /* Ausgabedatei */ |
- short change = 0; |
- char c; |
- |
- InS[0] = 0; |
- printf("Pathname of device (%s):",cszDevicePath); /* erfrage den Pfad zum Treiber */ |
- _gets(InS); |
- if ((InS[0] != '\n') && (InS[0])) |
- { |
- strcpy(cszDevicePath, InS); |
- change |= 1; |
- } |
- |
- InS[0] = 0; |
- printf("Default address modifier (%02x):",AdrMode); /* und den default Modifier */ |
- _gets(InS); |
- if ((InS[0] != '\n') && (InS[0])) |
- { |
- sscanf(InS,"%x",&AdrMode); |
- change |= 4; |
- } |
- |
- if (WordMode) |
- c = 'y'; |
- else |
- c = 'n'; |
- InS[0] = 0; |
- printf("16 bit VME BUS data path (%c) :", c); |
- _gets(InS); |
- if ((InS[0] != '\n') && (InS[0])) |
- { |
- sscanf(InS,"%c",&c); |
- change |= 8; |
- } |
- c = tolower(c); |
- if (c == 'y') |
- WordMode = setWordMode(1); |
- else |
- WordMode = setWordMode(0); |
- |
- if (change) |
- { |
- do |
- { |
- printf("Save (y/n):"); /* Wiederhole diese Frage bis */ |
- _gets(InS); /* sie ordentlich beantwortet wurde */ |
- strlwr(InS); /* DownCase String */ |
- } while (InS[0]!='y' && InS[0]!='n'); |
- |
- if (InS[0]=='y') |
- { |
- CfgName(InS); /* Hole Dateinamen nach InS */ |
- if ((OuF=fopen(InS,"wt"))!=NULL) |
- { |
- if (WordMode) |
- c = 'y'; |
- else |
- c = 'n'; |
- |
- fprintf(OuF,"Configuration=%s\n",__DATE__); |
- fprintf(OuF,"DevicePath=%s\n",cszDevicePath); /* Wenn das oeffnen geklappt hat */ |
- fprintf(OuF,"AddressModifier=%x\n",AdrMode); |
- fprintf(OuF,"WordMode=%c\n", c); |
- fclose(OuF); /* Datei schliessen */ |
- |
- if (change & 1) |
- printf("Please restart to put the new driver to work!\n"); |
- } |
- else printf("Can't open %s. ",InS); |
- } |
- } |
-} |
- |
-//----------------------------------------------------------------------------- |
-// read user initiated interrupt vector from VME BUS |
-static void ReadIrqVect(void) /* Interrupt-Vektoren lesen */ |
-{ |
- STRG OSt; /* Ausgabestring */ |
- short Level = 0; |
- |
- switch (GetZug(&DefVec)) |
- { /* Zugriffsmodus festlegen */ |
- case 'L':sprintf(OSt, "%08hx", ReadVectorLong(nInterfaceHandle)); break; |
- case 'W':sprintf(OSt, "%04hx", ReadVectorWord(nInterfaceHandle)); break; |
- case 'B':sprintf(OSt, "%02hx", ReadVectorByte(nInterfaceHandle)); break; |
- }; |
- |
- if (GetError(nInterfaceHandle)) |
- { /* Im Fehlerfalle 'Error' ausgeben */ |
- ClearError(nInterfaceHandle); /* Fehlerflags zuruecksetzen */ |
- strcpy(OSt, "Error"); |
- } |
- printf("VME status/ID = %s\n", OSt); |
-} |
- |
- |
-//----------------------------------------------------------------------------- |
-// temporary jump to (D)OS |
-static void JumpToDos() /* (D)OS-Shell aufrufen */ |
-{ |
- { |
- if (system("/bin/sh -c $SHELL") != 0) |
- printf("Fail to launch a new shell.\n"); |
- } |
-} |
- |
-//----------------------------------------------------------------------------- |
-// search responding ports in VME address range |
-static void SearchPort(char *Art, int Anz, unsigned short modf, |
- void (*SFunc)(int, unsigned long, unsigned short)) /* Durchsucht Adressraum */ |
-{ |
- unsigned long Idx; |
- unsigned long Fst; /* Erster gefundener Port */ |
- unsigned long Lst; /* Letzer gefundener Port */ |
- unsigned long Ende; /* Durchsuch Ende */ |
- char Found; /* Schon was gefunden? */ |
- char Sequ; /* Schon eine Portsequenz */ |
- int Err; /* Fehler dagewesen? */ |
- int Tab; /* Tabulator-Zaehler */ |
- unsigned long Step; |
- |
- printf("%s-accesses valid with address modifier %02x to address: ", Art,modf); |
- |
- if (modf > 0x2F) |
- { |
- Ende = 0x01000000L; /* alle Standards */ |
- Step = 0x100; /* Stepweite */ |
- } |
- |
- if ((modf < 0x30) && (modf > 0x1f)) |
- { |
- Ende = 0x00010000L; /* Shorts */ |
- Step = Anz; |
- } |
- |
- if (modf < 0x20) |
- { |
- Ende = 0xFFFF0000L; /* alle Extendets, gemogelt */ |
- Step = 0x10000; /* Step */ |
- } |
- |
- Sequ=False; /* Noch keine Sequenz da */ |
- Found=False; |
- Tab=0; |
- Idx=0; |
- |
- do |
- { /* do while */ |
- SFunc(nInterfaceHandle, Idx, modf); /* Lese versuchsweise Port */ |
- Err=GetError(nInterfaceHandle); /* Fehlerzustand abfragen */ |
- if (Err) ClearError(nInterfaceHandle); /* Fehler bestaetigen */ |
- else |
- { |
- Lst=Idx; /* Merke Port als gueltig */ |
- if (!Sequ) |
- { /* Diese Seqenz faengt an? */ |
- Fst=Idx; /* Ja, neue Sequenz, merke */ |
- Sequ=True; /* auch ersten Port */ |
- } |
- } |
- |
- Idx+= Step; /* Erhoehe Adresse */ |
- |
- if ((Err || !(Idx < Ende)) && Sequ) |
- { /* Ausgeben bei Sequenzende */ |
- if (!Found) |
- { /* oder bei Schleifenende */ |
- if (Idx < Ende) printf("\n"); /* Kein <CRLF> bei Schleifenende */ |
- Found=True; |
- }; |
- /* Weitere Sequenz: Tab ausgeben */ |
- if (Fst==Lst) |
- { /* Sequenz mit nur 1 Element */ |
- printf("%08lx,\t", Fst); |
- Tab++; /* Merke Tab-Status */ |
- } |
- else |
- { |
- Tab=0; /* Tab-Status wieder zuruecksetzen */ |
- printf("%08lx-%08lx\n", Fst, Lst); /* Sequenz ausgeben */ |
- } |
- Sequ=False; /* Sequenz gilt als abgeschlossen */ |
- } /* if */ |
- } while ((Idx < Ende) && (!Abbruch)); /* Bis Idx einmal 'rum ist */ |
- |
- if (!Found) |
- printf("\nnothing found"); /* Wenn keinen Zugriff gefunden */ |
- printf("\n"); /* Immer mit <CRLF> abschließen */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// search responding ports |
-static void SearchPorts(void) /* Durchsucht Short-Adressraum */ |
-{ /* nach Wort- und Bytes Zugriffen */ |
- unsigned short modf = AdrMode; |
- |
- if (ParaStr(2)!=NULL) |
- modf = (unsigned short)ParaNum(2); /* Anderer Adressmodifier */ |
- |
- ShowModifier(modf); printf("\n"); |
- SearchPort("Byte", 1, modf, (void(*)(int, unsigned long, unsigned short))ReadByte); |
- SearchPort("Word", 2, modf, (void(*)(int, unsigned long, unsigned short))ReadWord); |
- SearchPort("Long", 4, modf, (void(*)(int, unsigned long, unsigned short))ReadLong); |
- printf("\n"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// converts parts of a string to a number |
-static unsigned int GibNum(char **PSt, char Anz) |
-{ |
- unsigned int Val; /* Ermittelter Wert */ |
- unsigned int Num; /* Wieviel Zeichen genommen */ |
- char Frm[6]; /* Formatstring */ |
- |
- Val=0; /* Default setzen */ |
- strcpy(Frm,"%nx%n"); /* Default Format setzen */ |
- if (*PSt!=NULL) |
- { /* Nur wenn String gueltig */ |
- Frm[1]=Anz; /* Uebertrage Anzahl-Zeichen */ |
- *PSt=(sscanf(*PSt,Frm,&Val, /* Hole Nummer aus String */ |
- &Num)!=1) ? NULL : (*PSt)+Num; /* Fehler oder weitersetzen */ |
- } /* if */ |
- return(Val); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// read in a file and put the contents to VME |
-static int _ReadFile(void) /* Lese eine Datei in VME-Mem ein */ |
-{ |
- unsigned long End; /* Endadresse */ |
- unsigned long Idx; /* Laufadresse */ |
- unsigned long Cnt; /* Bytezaehler */ |
- unsigned Adr; /* Adresse Record ab Start */ |
- int Len; /* Recordlaenge */ |
- int Ret; /* Returncode */ |
- int Hex; /* Intel Hex File? */ |
- int Typ; /* Typ des Records */ |
- STRG Nam; /* Dateiname */ |
- STRG Stg; /* Einlese-String */ |
- char *PSt; /* Scanzeiger */ |
- FILE *InF; /* Lesedatei */ |
- |
- Ret=1; /* Vorgabe ist Fehler */ |
- if (ParaStr(3)!=NULL) |
- { /* Startadr ist obligat */ |
- Hex=(ParaStr(1)[1]=='X'); /* Intel-Hex gewuenscht? */ |
- strcpy(Nam,ParaStr(2)); /* Dateinamen kopieren */ |
- *strchr(Nam,' ')='\0'; /* Restparameter abschneiden */ |
- Cnt=0; /* Noch nichts gelesen */ |
- Idx=ParaNum(3); /* Lege Startadresse fest */ |
- End=(ParaStr(4)==NULL) /* Endadr ist optional */ |
- ? 0xffffffffl : ParaNum(4); |
- |
- if (Idx<=End) |
- { /* Falsche Werte abweisen */ |
- if ((InF=fopen(Nam,(Hex) ? "rt":"rb"))!=NULL) |
- { |
- if (Hex) |
- { /* Intel-Hex gewuenscht? */ |
- fscanf(InF,"%x",Idx); |
- while (!feof(InF)) |
- { /* Bis zum Ende lesen */ |
- fgets(Stg,sizeof(Stg),InF); |
- if (strlen(Stg)>1) |
- { /* Ignoriere leere Zeilen */ |
- PSt=strchr(Stg,':'); /* Doppelpunkt ist obligat */ |
- if (PSt!=NULL) PSt++; /* Hinter ':' stellen */ |
- Len=GibNum(&PSt,'2'); /* Hole Recordlaenge */ |
- Adr=GibNum(&PSt,'4'); /* Hole Adresse */ |
- Typ=GibNum(&PSt,'2'); |
- if (!Typ) |
- { /* Datencode erkannt? */ |
- while (PSt!=NULL && Len) |
- { |
- WriteByte(nInterfaceHandle, Idx+Adr++,(char)GibNum(&PSt,'2'),AdrMode); |
- Cnt++; /* 1 Byte mehr gelesen */ |
- Len--; /* Laenge aufaddieren */ |
- } /* while */ |
- |
- if (GetError(nInterfaceHandle)) |
- { /* Fehlerpruefung: VME-Transfer ok? */ |
- ClearError(nInterfaceHandle); /* Fehlerflag zuruecksetzen */ |
- printf("--> Bus error: Adr=%08lx. ",Idx+Adr); |
- break; /* Abbruch mit Fehler */ |
- } /* if */ |
- } |
- else |
- { |
- if (Typ==1) |
- { /* Endcode erkannt? */ |
- Ret=0; /* Fehlerfrei gelesen */ |
- break; /* Ende while */ |
- } /* Ignoriere andere Typen */ |
- } /* else */ |
- if (PSt==NULL) |
- { |
- printf("Format error\n"); |
- break; |
- } /* if */ |
- } /* if len */ |
- } /* while */ |
- } |
- else |
- { /* Kein Intel-Hex-Format */ |
- do |
- { |
- if (feof(InF)) Idx=End; /* Ende der Datei erreicht */ |
- else |
- { |
- WriteByte(nInterfaceHandle, Idx,(char)fgetc(InF),AdrMode); |
- if (GetError(nInterfaceHandle)) |
- { /* Fehlerpruefung: VME-Transfer ok? */ |
- ClearError(nInterfaceHandle); /* Fehlerflag zuruecksetzen */ |
- printf("--> Bus error: Adr=%08lx. ",Idx); |
- break; /* Abbruch mit Fehler */ |
- } /* if GetError */ |
- |
- Cnt++; /* Ein Byte mehr gelesen */ |
- } /* else */ |
- } while (Idx++<End); /* Bis einschliesslich End lesen */ |
- fclose(InF); |
- if (Idx==End+1) Ret=0; /* Genug Byte geschafft? */ |
- } /* else Hex */ |
- } /* if fopen */ |
- else printf("Can't read file %s. ",Nam); |
- } /* if */ |
- printf("%lx Byte(s) read\n",Cnt); |
- } /* if */ |
- else printf("\a"); |
- return(Ret); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// seek for a pattern in VME BUS |
-static void SeekPatt(void) /* Suche nach Datenmustern */ |
-{ |
-#define Max 32 /* Wieviele Suchbytes max. */ |
- unsigned long DefVon; /* Startadresse */ |
- unsigned long End; /* Endadresse */ |
- int Idx; /* Index */ |
- int Idy; /* Auch Index */ |
- int Len; /* Item Laenge */ |
- int Ok; /* Flag: gefunden oder nicht? */ |
- int Merk_error = 0; /* Fehler Flip-Flop */ |
- |
- union |
- { /* Suchmuster */ |
- unsigned char xs[Max]; |
- unsigned int xw[Max/2]; |
- unsigned long xl[Max/4]; |
- } Patt; |
- |
- if (ParaStr(4) != NULL) |
- { /* Von, Bis und 1 Item obligat */ |
- DefVon=ParaNum(2); /* Startadresse festlegen */ |
- End=ParaNum(3); /* Endadresse festlegen */ |
- Len=1; |
- switch (GetZug(&DefZug)) |
- { /* Zugriffsmodus festlegen */ |
- case 'L':Len+=2; /* Auf Long-Adresse biegen */ |
- case 'W':Len++; /* Auf Wort-Adresse biegen */ |
- } |
- |
- DefVon&=-(long)Len; /* Adressen geradebiegen */ |
- Idx=0; /* Suchmuster sammeln */ |
- while (Idx<Max/Len && ParaStr(Idx+4)!=NULL) |
- { |
- switch (DefZug) |
- { |
- case 'L':Patt.xl[Idx]=ParaNum(Idx+4); break; |
- case 'W':Patt.xw[Idx]=(unsigned)ParaNum(Idx+4); break; |
- case 'B':Patt.xs[Idx]=(unsigned char)ParaNum(Idx+4); break; |
- } /* switch */ |
- Idx++; /* Ein Item mehr da */ |
- } /* while */ |
- |
- while ((DefVon<=End) && (!Abbruch)) |
- { /* Suche nun den Bereich ab */ |
- Ok=True; /* Pattern an dieser Adresse? */ |
- for (Idy=0; Idy<Idx && Ok; Idy++) |
- { |
- switch (DefZug) |
- { |
- case 'L':if (Patt.xl[Idy] != (unsigned long)ReadLong(nInterfaceHandle, DefVon+(Idy<<2),AdrMode)) |
- Ok=False; |
- break; |
- case 'W':if (Patt.xw[Idy] != (unsigned short)ReadWord(nInterfaceHandle, DefVon+(Idy<<1),AdrMode)) |
- Ok=False; |
- break; |
- case 'B':if (Patt.xs[Idy] != (unsigned char)ReadByte(nInterfaceHandle, DefVon+Idy,AdrMode)) |
- Ok=False; |
- break; |
- } /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- { /* Busfehler aufgetreten? */ |
- ClearError(nInterfaceHandle); /* Fehlerflags zuruecksetzen */ |
- Ok=False; /* Gefunden wurde auch nichts */ |
- Merk_error = 1; /* Setze Flip-Flop */ |
- } |
- } /* for */ |
- if (Ok) printf("%08lx\n",DefVon);/* Was gefunden: Adresse ausgeben */ |
- DefVon+=Len; |
- |
- if ((DefVon & 0xffl)==0) |
- { /* Ermoegliche Abbruch mit Ctrl-C */ |
- printf("\r"); |
- } |
- } /* while */ |
- if (Merk_error) printf("--> Failed to search\n"); |
- } |
- else printf("\a"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// emulate a 68K test and set instruction |
-static void TestSet() /* Fuehre ein Test and Set auf */ |
-{ /* Bit #7 eines Byte-Ports aus. */ |
- char Erg; |
- |
- if (ParaStr(2)!=NULL) |
- { /* Adresse ist obligat */ |
- Erg=TAS(nInterfaceHandle, ParaNum(2),AdrMode); /* Ergebnis merken, damit ein */ |
- if (GetError(nInterfaceHandle)) |
- { /* Fehler ausgegeben werden kann */ |
- ClearError(nInterfaceHandle); |
- printf("--> Failed to 'Test and Set'\n"); /* Zugriff gescheitert */ |
- } |
- else printf("Semafore @ 0x%08lx was%s set before.\n", |
- ParaNum(2),(Erg) ? "" : " not"); |
- } |
- else printf("\a"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// raise a VME SYSRESET |
-static void ResetVme(void) /* Generiere SysReset auf VME-Bus */ |
-{ /* Interrupt bei MailBox beachten */ |
- printf("Reset to VME raised.\n"); |
- Reset_VME(nInterfaceHandle); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// print out a line in HEX format |
-static int OutHex(FILE *OuF, int Siz, unsigned long Adr,int Typ, char Buf[]) |
-{ |
- int Chk; /* Pruefsumme */ |
- int Idx; /* Laufindex */ |
- |
- fprintf(OuF,":%02X%04X%02X",Siz,Adr,Typ); |
- Chk=Siz+(Adr & 0xff)+(Adr>>8)+Typ; |
- for (Idx=0; Idx<Siz; Idx++) |
- { /* Pufferinhalt ausgeben */ |
- fprintf(OuF,"%02X",(unsigned char)Buf[Idx]); |
- Chk+=Buf[Idx]; /* Pruefsumme mitrechnen */ |
- } |
- fprintf(OuF,"%02X\n",(unsigned char)-Chk); /* Pruefsumme ausgeben */ |
- if (ferror(OuF)) |
- { /* Irgend ein Schreibfehler? */ |
- printf("Failed to write. "); |
- return(False); |
- } |
- else return(True); /* Fehlerfrei ausgefuehrt */ |
-} |
- |
-//----------------------------------------------------------------------------- |
-// write a file in HEX and get the data from VME |
-static int _WriteFile() /* Schreibt eine Datei aus VME */ |
-{ |
- unsigned long End; /* Endadresse */ |
- unsigned long Idx; /* Laufadresse */ |
- unsigned long Cnt; /* Bytezaehler */ |
- int Ret; /* Returncode */ |
- int Adr; /* Adresse Record ab Start */ |
- int Hex; /* Intel Hex File? */ |
- char Buf[16]; /* Output-Puffer */ |
- STRG Nam; /* Dateiname */ |
- FILE *OuF; /* Lesedatei */ |
- |
- Ret=1; /* Vorgabe ist Fehler */ |
- if (ParaStr(4)!=NULL) |
- { /* Start & Endadr sind obligat */ |
- Hex=(ParaStr(1)[1]=='X'); /* Intel-Hex gewuenscht? */ |
- strcpy(Nam,ParaStr(2)); /* Dateinamen kopieren */ |
- *strchr(Nam,' ')='\0'; /* Restparameter abschneiden */ |
- Cnt=0; /* Noch nichts gelesen */ |
- Idx=ParaNum(3); /* Lege Startadresse fest */ |
- End=ParaNum(4); /* Lege Endadresse fest */ |
- if (Idx<=End) |
- { /* Falsche Werte abweisen */ |
- if ((OuF=fopen(Nam,(Hex) ? "wt":"wb"))!=NULL) |
- { |
- if (Hex) |
- { /* Intel-Hex gewuenscht? */ |
- Buf[0]=0 >> 0x8; /* HighByte Segmentadresse */ |
- Buf[1]=0 & 0xff; /* LowByte Segmentadresse */ |
- Adr=0; /* Offset grundsaetzlich bei 0 */ |
- if (OutHex(OuF,2,Adr,2,Buf)) |
- { |
- do |
- { |
- Buf[(int)Cnt & 0xf]=ReadByte(nInterfaceHandle, Idx,AdrMode); |
- if (GetError(nInterfaceHandle)) |
- { /* Fehlerpruefung: VME-Transfer ok? */ |
- ClearError(nInterfaceHandle); /* Fehlerflag zuruecksetzen */ |
- printf("--> Bus error: Adr=%08lx. ",Idx); |
- break; /* Abbruch */ |
- } /* if GetError */ |
- if (!((int)++Cnt & 0xf)) |
- { |
- if (OutHex(OuF,16,Adr,0,Buf)) Adr+=16; |
- else break; /* Zwischendurch Puffer schreiben */ |
- } |
- } while (Idx++<End); /* Bis einschließlich End schreiben */ |
- |
- if ((Idx==End+1) && /* Noch Rest im Puffer? */ |
- (!((int)Cnt & 0xf) || |
- OutHex(OuF,(int)Cnt & 0xf,Adr,0,Buf)) |
- && OutHex(OuF,0,0,1,NULL)) Ret=0; |
- } /* if */ /* Wenn Eof ausgegeben, Returns ok */ |
- } /* if Hex */ |
- else |
- do |
- { /* Nicht Intel-Hex */ |
- fputc(ReadByte(nInterfaceHandle, Idx,AdrMode),OuF); |
- if (GetError(nInterfaceHandle)) |
- { /* Fehlerpruefung: VME-Transfer ok? */ |
- ClearError(nInterfaceHandle); /* Fehlerflag zuruecksetzen */ |
- printf("--> Bus error: Adr=%08lx. ",Idx); |
- break; /* Abbruch */ |
- } /* if GetError */ |
- if (ferror(OuF)) |
- { |
- printf("Failed to write. "); |
- break; /* Abbruch */ |
- } /* if ferror */ |
- Cnt++; /* Ein Byte mehr geschrieben */ |
- } while (Idx++<End); /* Bis einschließlich End schreiben */ |
- |
- if (Idx==End+1) Ret=0; /* Genug Byte geschafft? */ |
- fclose(OuF); |
- } /* if fopen */ |
- else |
- printf("Can' open file %s. ",Nam); |
- } /* if */ |
- printf("%lx Byte(s) written.\n",Cnt); |
- } /* if */ |
- else |
- printf("\a"); |
- return(Ret); |
-} |
- |
- |
-//----------------------------------------------------------------------------- |
-// show and provide help about the VME address modifiers |
-static void ShowModifier(int Mode) /* Klartext fuer Adressmodifier */ |
-{ |
- printf("Address modifier:\t%02x [", Mode); |
- if ((Mode & 0x3b) > 0x38) printf("standard"); |
- else if ((Mode & 0x3b)==0x29) printf("short"); |
- else if ((Mode & 0x3b)>=0x09 && (Mode & 0x3b)<=0x0b) printf("extendet"); |
- else if (Mode>=0x20 || Mode<=0x0f) |
- { |
- printf("reserved]\n"); return; |
- } |
- else |
- { |
- printf("user defined]\n"); return; |
- } |
- printf(((Mode & 0x0f)>=0x0c) ? " supervisory":" non-privileged"); |
- switch (Mode & 0x03) |
- { |
- case 1:printf(" data access"); break; |
- case 2:printf(" code access"); break; |
- case 3:printf(" block transfer"); break; |
- } |
- printf("]\n"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// provides some diagnostic information abot interface registers |
-static void ShowRegister(void) /* Zeige Inhalt von ? */ |
-{ |
- char *szInstg; |
- char type; |
- |
- if ((szInstg = ParaStr(1)) == NULL) |
- type = '0'; |
- else |
- type = szInstg[1]; |
- |
- if (type == 0) |
- type = '0'; |
- |
- GetInterfaceInfo(nInterfaceHandle, type); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// make a random memory test to VME |
-static void RandomTest(void) |
-{ |
- char DefZug = ' '; /* Zugriffsart */ |
- int Len; /* Item Laenge */ |
- unsigned long Idx; /* Index */ |
- unsigned long End; /* Endadresse */ |
- unsigned long Seed; /* initial seed */ |
- unsigned char Merk_error = 0; /* Haelt error flag */ |
- int Patt; |
- unsigned long i; |
- |
- unsigned long lResult; |
- unsigned short wResult; |
- unsigned char bResult; |
- int repeats = 0; |
- int Loop = 0; |
- |
- if (GetZug(&DefZug)!=' ') |
- { |
- Len=1; |
- switch (GetZug(&DefZug)) /* Zugriffsmodus festlegen */ |
- { |
- case 'L':Len += 2; /* Auf Long-Adresse biegen */ |
- case 'W':Len++; /* Auf Wort-Adresse biegen */ |
- } |
- Idx=ParaNum(2) & -(long)Len; /* Adressen geradebiegen */ |
- End=ParaNum(3); /* Endadresse festlegen */ |
- if (ParaStr(4) == NULL) |
- Loop = 1; |
- else |
- Loop=ParaNum(4); |
- if (ParaStr(5) == NULL) |
- Seed = 0x1234; |
- else |
- Seed=ParaNum(5); |
- |
- do |
- { |
- srand(Seed + repeats); |
- i = Idx; |
- while ((i <= End) && (!Abbruch)) |
- { |
- Patt = rand(); |
- |
- switch (DefZug) |
- { |
- case 'L':Patt <<= 16; |
- Patt |= rand(); |
- WriteLong(nInterfaceHandle, i, Patt, AdrMode); |
- break; |
- case 'W':WriteWord(nInterfaceHandle, i, (short)Patt, AdrMode); |
- break; |
- case 'B':WriteByte(nInterfaceHandle, i, (char)Patt, AdrMode); |
- break; |
- } /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); /* Fehler abfangen */ |
- Merk_error |= 2; |
- } |
- |
- if ((i & 0xffl)==0) |
- { /* Ermoegliche Ctrl-C */ |
- printf("\r"); |
- } |
- |
- i += Len; |
- } /* while */ |
- |
- // read and compare |
- srand(Seed + repeats); |
- i = Idx; |
- while ((i <= End) && (!Abbruch)) |
- { |
- Patt = rand(); |
- |
- switch (DefZug) |
- { |
- case 'L':lResult = ReadLong(nInterfaceHandle, i, AdrMode); |
- Patt <<= 16; |
- Patt |= rand(); |
- if (lResult != (unsigned long)Patt) |
- { |
- printf("Compare Fail 0x%08x w=0x%08lx r=0x%08lx\n", i, Patt, lResult); |
- Merk_error |= 1; |
- } |
- break; |
- case 'W':wResult = ReadWord(nInterfaceHandle, i, AdrMode); |
- if (wResult != (unsigned short)Patt) |
- { |
- printf("Compare Fail 0x%08x w=0x%04x r=0x%04x\n", i, Patt & 0xFFFF, wResult); |
- Merk_error |= 1; |
- } |
- break; |
- case 'B':bResult = ReadByte(nInterfaceHandle, i, AdrMode); |
- if (bResult != (unsigned char)Patt) |
- { |
- printf("Compare Fail 0x%08x w=0x%02x r=0x%02x\n", i, Patt & 0xFF, bResult); |
- Merk_error |= 1; |
- } |
- break; |
- } /* switch */ |
- |
- if (GetError(nInterfaceHandle)) |
- { |
- ClearError(nInterfaceHandle); /* Fehler abfangen */ |
- Merk_error |= 2; |
- } |
- |
- if ((i & 0xffl)==0) |
- { /* Ermoegliche Ctrl-C */ |
- printf("\r"); |
- } |
- |
- i += Len; |
- } /* while */ |
- |
- if (Loop) |
- printf("\rRepeats: 0x%x\r", repeats); |
- repeats++; |
- } while ((Loop--) && !(Merk_error)); |
- |
- if (Merk_error) |
- printf("--> Compare failed %s\a\n", (Merk_error & 2) ? "with Bus Error" : ""); |
- else |
- printf("--> Compare successfull\n"); |
- |
- } |
- else printf("\a"); |
- |
-} |
- |
-//----------------------------------------------------------------------------- |
-// modify interface registers |
-static void ModifyRegister(void) |
-{ |
- __u32 Erg; |
- |
- if (ParaStr(2) != NULL) |
- { |
- if (ParaStr(3) != NULL) |
- { |
- Erg = _SetRegister(nInterfaceHandle, ParaNum(2),ParaNum(3)); |
- printf("Interface register @ 0x%08lx set: 0x%02x, get: 0x%02x\n", |
- ParaNum(2), ParaNum(3), Erg); |
- } |
- else |
- { |
- Erg = _GetRegister(nInterfaceHandle, ParaNum(2)); |
- printf("Interface register @ 0x%08lx get: 0x%02x\n", ParaNum(2), Erg); |
- } |
- } |
- else |
- printf("\a"); |
-} |
- |
-//----------------------------------------------------------------------------- |
-// the main menu |
-static int HauptMenue(STRG Stg) /* Eingabe & Dispatcher */ |
-{ |
- char *SSt; /* Sourcezeiger */ |
- char *DSt; /* Destzeiger */ |
- char Del; /* Delimiter vorhanden? */ |
- int Ret; /* Returncode fuer Auto-Mode */ |
- char loop; /* irgedwie war baengg fuer loop */ |
- |
- |
- if (Stg == NULL) |
- loop = 1; |
- else |
- loop = 0; |
- |
- do |
- { |
- if (loop) |
- { /* Auto-Modus? */ |
- if (Abbruch) |
- { |
- printf("\n"); |
- Abbruch = 0; |
- } |
- |
- printf("pv: "); /* Nein, Prompt ausgeben und */ |
- if (*ReadMessageBuffer()) |
- { |
- printf("%s\n", ReadMessageBuffer()); |
- printf("pv: "); |
- InitMessageBuffer(); |
- } |
- _gets(InStg); /* Eingabestring holen */ |
- // GetError(nInterfaceHandle); /* because of interrupts */ |
- SSt=InStg; /* Init Sourcezeiger */ |
- } |
- else |
- SSt=Stg; /* Uebernehme Parameter aus Stg */ |
- |
- DSt=InStg; /* Init Destzeiger */ |
- Del=True; /* Weitere Delimiter raus */ |
- Ret=0; /* Keine Fehler bis jetzt */ |
- |
- while (*SSt) |
- { /* Arbeite String ab */ |
- if (UpCase(*SSt) >= 'A' && /* Filtern gueltiger Zeichen */ |
- UpCase(*SSt) <= 'Z' || |
- *SSt >= '0' && *SSt <= '9' || |
- *SSt == ':' || *SSt == '.' || |
- *SSt == '\\' || *SSt == '?') |
- { |
- *DSt=UpCase(*SSt); |
- Del=False; |
- DSt++; |
- } |
- else |
- { |
- if (!Del) |
- { |
- *DSt=' '; |
- DSt++; |
- } /* Mehrere Delimiter raus */ |
- Del=True; /* und durch ' ' ersetzen */ |
- } |
- SSt++; |
- } /* while (*SSt) */ |
- *DSt=*SSt; /* 0 auch uebertragen */ |
- |
- switch (*ParaStr(1)) |
- { |
- case 'A': SetModifier(); break; |
- case 'D': Dump(); break; |
- case 'E': Examine(); break; /* Speicherbereich aendern */ |
- case 'F': Fill(); break; /* Speicherbereich fuellen */ |
- case 'G': RandomTest(); break; /* random test of memory */ |
- case 'H': |
- case '?': Hilfe(); break; /* Hilf mir mal */ |
- case 'I': DeInit_Interface(nInterfaceHandle); |
- InitAt(cszDevicePath, &nInterfaceHandle); |
- break; /* Nochmals initialisieren */ |
- case 'C': Konfig(); break; /* Konfiguration */ |
- case 'L': ReadIrqVect(); break; /* Interrupt-Vektoren lesen */ |
- case 'M': Move(); break; /* Move Funktion */ |
- case 'O': JumpToDos(); break; /* DOS Ausgang */ |
- case 'P': SearchPorts(); break; /* Ports suchen */ |
- case 'Q': Raus();return(0); /* Ende des Debuggers */ |
- case 'R': Ret=_ReadFile(); break; /* Eine Datei nach VME lesen */ |
- case 'S': SeekPatt(); break; /* Suche nach Datenmustern */ |
- case 'T': TestSet(); break; /* Fuehre ein TAS aus */ |
- case 'V': ResetVme(); break; /* Erzeuge VME-Reset */ |
- case 'W': Ret=_WriteFile(); break;/* Eine Datei von VME schreiben */ |
- case 'Y': SysFail(); break; /* read, set Sysfail */ |
- case 'X': ModifyRegister(); break; /* modify register of the interface */ |
- case 'Z': ShowRegister(); break; /* Register ausgeben */ |
- default : |
- { |
- Ret=2; /* Fehlercode zurueck fuer Auto */ |
- if (!loop) |
- { /* Wenn Auto: Hilfsmessage */ |
- Hilfe(); |
- printf("\nSplit commands with \"/\" ,e.g. \"a39/d1000\""); |
- } |
- } |
- } /* switch */ |
- } while (loop); /* Hier raus bei Auto-Mode */ |
- return(Ret); |
-} |
- |
-//------------------------------------------------------------------------------------- |
-// the exit entry |
-static void MyExit(int bla) /* Wird im Ctrl-C-Falle aufgerufen */ |
-{ |
- Abbruch = 1; |
-} |
- |
-//------------------------------------------------------------------------------------- |
-// where all starts |
-int main(int argc, char **argv, char *envp[]) |
-{ |
- static STRG Stg; /* Zum zusammenlegen Parameter */ |
- char *PSt; /* Arbeitszeiger Multicommands */ |
- char *SSt; /* Quellzeiger Multicommands */ |
- int Idx; /* Index */ |
- int Ret; /* Returncode */ |
- |
- InitMessageBuffer(); |
- |
- cszDevicePath = &localBuffer[0]; |
- |
- Ret=1; /* Returncode auf Fehler setzen */ |
- ArgV=argv; /* Uebertrage argv fuer LoadKonfig */ |
- LoadKonfig(); /* Versuchen Konfigdatei zu lesen */ |
- |
- if (argc > 1) |
- { /* Kommandozeilenparameter da? */ |
- if (InitAt(cszDevicePath, &nInterfaceHandle)) |
- { /* Aufsetzen Interface */ |
- *Stg='\0'; /* Stg auf nix setzen */ |
- for (Idx=1; Idx < argc; Idx++) |
- { |
- strcat(Stg,argv[Idx]); /* Haenge Parameter hintereinander */ |
- strcat(Stg," "); /* Trenne mit Leerzeichen */ |
- } |
- |
- SSt=Stg; /* Saubloedes (*Zeug) mit den ARRAYS! */ |
- do |
- { |
- if ((PSt=strchr(SSt,'/'))!=NULL) *PSt='\0'; |
- Ret=HauptMenue(SSt); /* Hauptmenue automatisch aufrufen */ |
- SSt=PSt+1; /* SSt auf den Reststring setzen */ |
- } |
- |
- while (PSt!=NULL && !Ret); /* Bis Fehler oder Fertig */ |
- } |
- } |
- else |
- { |
- printf("Provided under GPL - version %s of pvmon of %s \n\n", VERSION, __DATE__); |
- printf("This program is free software; you can redistribute it and/or modify it\n"); |
- printf("under the terms of the GPL as published by the FSF (version 2 or later).\n"); |
- printf("Copyright: Ralf Dux, Sven Hannover, Klaus Hitschler, Sven Tuecke, AR\n"); |
- |
- InitAt(cszDevicePath, &nInterfaceHandle); /* Aufsetzen Interface */ |
- signal(SIGINT, MyExit); /* Eigenen Handler einklinken */ |
- Ret=HauptMenue(NULL); /* Hauptmenue manuell aufrufen */ |
- } /* else */ |
- DeInit_Interface(nInterfaceHandle); /* Interface ausschalten */ |
- |
- return(Ret); /* Fehlercode fuer ErrorLevel */ |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
Index: pcivme-3.2/pvmon/pcilibLx.c |
=================================================================== |
--- pcivme-3.2/pvmon/pcilibLx.c (revision 9) |
+++ pcivme-3.2/pvmon/pcilibLx.c (nonexistent) |
@@ -1,317 +0,0 @@ |
-//------------------------------------------------------------------------------------------- |
-// pcilib.c - interface hardware dependend functions to interface to the pvmon |
-// |
-// (c) 1999-2002 ARW Elektronik |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// $Log: pcilibLx.c,v $ |
-// Revision 1.4 2002/10/20 18:07:48 klaus |
-// mostly working alpha version |
-// |
-// Revision 1.3 2002/10/20 11:49:33 klaus |
-// first parts working |
-// |
-// Revision 1.2 2002/10/19 09:44:36 klaus |
-// first success compiling project |
-// |
-// Revision 1.1.1.1 2002/10/18 22:14:29 klaus |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// INCLUDES |
-// |
-#include <stdio.h> |
-#include <string.h> |
-#include <errno.h> |
-#include <ctype.h> |
- |
-#include <../driver/pcivme.h> |
-#include <../driver/vic.h> |
-#include <../driver/vme.h> |
-#include <../lib/pcivme_ni.h> |
-#include <pcilibLx.h> |
-#include <mbuffer.h> |
- |
-//------------------------------------------------------------------------------------------- |
-// DEFINES |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// TYPEDEFS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// GLOBALS |
-// |
-static int storedError = 0; |
-static int nLocalWordMode = 0; // initial 32 bit mode |
- |
-//-------------------------------------------------------------------------- |
-// LOCALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// FUNCTIONS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// set word mode |
-// |
-int setWordMode(int nMode) |
-{ |
- nLocalWordMode = nMode; |
- |
- return nLocalWordMode; |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// set interface special registers - VIC68A |
-// |
-unsigned long _SetRegister(int nIfcHandle, unsigned long Address, unsigned long Value) |
-{ |
- __u8 ubContent = (__u8)Value; |
- |
- VMEaccessVIC(nIfcHandle, VIC68A_WRITE, Address, &ubContent); |
- |
- return ubContent; |
-} |
- |
- |
-//------------------------------------------------------------------------------------------- |
-// function to get special interface registers - VIC68A |
-// |
-unsigned long _GetRegister(int nIfcHandle, unsigned long Address) |
-{ |
- __u8 ubContent; |
- |
- VMEaccessVIC(nIfcHandle, VIC68A_READ, Address, &ubContent); |
- |
- return ubContent; |
-} |
- |
- |
-//------------------------------------------------------------------------------------------- |
-// init the interface with the current properties |
-// |
-int Init_Interface(char *szDevicePath, char AdrMode, int *nIfcHandle) |
-{ |
- return VMEopen(szDevicePath, AdrMode, nIfcHandle); |
-} |
- |
- |
-//------------------------------------------------------------------------------------------- |
-// deinit the current interface |
-// |
-void DeInit_Interface(int nIfcHandle) |
-{ |
- VMEclose(nIfcHandle); |
-} |
- |
- |
-//------------------------------------------------------------------------------------------- |
-// check if an error occured |
-// |
-int GetError(int nIfcHandle) |
-{ |
- int error; |
- |
- if ((error = GetLastError(nIfcHandle))) |
- storedError = error; |
- else |
- storedError = VMEerror(nIfcHandle); |
- |
- return storedError; |
-} |
- |
- |
-//------------------------------------------------------------------------------------------- |
-// clear a pending error |
-// |
-void ClearError(int nIfcHandle) |
-{ |
- storedError = 0; |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// read elements and split a long access into 2 word accesses if word data path |
-// |
-char ReadByte(int nIfcHandle, unsigned long adr, unsigned short modifier) |
-{ |
- __u8 c; |
- |
- setAccessProperties(nIfcHandle, (__u8)modifier, BYTE_ACCESS); |
- |
- storedError = VMEread(nIfcHandle, adr, BYTE_ACCESS, 1, &c); |
- |
- return c; |
-} |
- |
-short ReadWord(int nIfcHandle, unsigned long adr, unsigned short modifier) |
-{ |
- __u16 w; |
- |
- setAccessProperties(nIfcHandle, (__u8)modifier, WORD_ACCESS); |
- |
- storedError = VMEread(nIfcHandle, adr, WORD_ACCESS, 1, &w); |
- |
- return w; |
-} |
- |
-long ReadLong(int nIfcHandle, unsigned long adr, unsigned short modifier) |
-{ |
- __u32 l; |
- |
- if (nLocalWordMode) |
- { |
- __u16 partl, parth; |
- |
- // lese high anteil von adresse +0 |
- parth = ReadWord(nIfcHandle, adr, modifier); |
- |
- // lese low anteil von adresse +2 |
- partl = ReadWord(nIfcHandle, adr + sizeof(__u16), modifier); |
- |
- l = (parth << 16) | partl; |
- } |
- else |
- { |
- setAccessProperties(nIfcHandle, (__u8)modifier, LONG_ACCESS); |
- |
- storedError = VMEread(nIfcHandle, adr, LONG_ACCESS, 1, &l); |
- } |
- |
- return l; |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// write a byte/word/long and split a long access into 2 word accesses if word data path |
-// |
-void WriteByte(int nIfcHandle, unsigned long adr, char value, unsigned short modifier) |
-{ |
- setAccessProperties(nIfcHandle, (__u8)modifier, BYTE_ACCESS); |
- |
- storedError = VMEwrite(nIfcHandle, adr, BYTE_ACCESS, 1, &value); |
-} |
- |
-void WriteWord(int nIfcHandle, unsigned long adr, short value, unsigned short modifier) |
-{ |
- setAccessProperties(nIfcHandle, (__u8)modifier, WORD_ACCESS); |
- |
- storedError = VMEwrite(nIfcHandle, adr, WORD_ACCESS, 1, &value); |
-} |
- |
-void WriteLong(int nIfcHandle, unsigned long adr, long value, unsigned short modifier) |
-{ |
- if (nLocalWordMode) |
- { |
- __u16 part; |
- |
- // high anteil auf adresse +0 |
- part = (value >> 16) & 0xffff; |
- WriteWord(nIfcHandle, adr, part, modifier); |
- |
- // low anteil auf adresse +2 |
- part = value & 0xffff; |
- WriteWord(nIfcHandle, adr + sizeof(__u16), part, modifier); |
- } |
- else |
- { |
- setAccessProperties(nIfcHandle, (__u8)modifier, LONG_ACCESS); |
- |
- storedError = VMEwrite(nIfcHandle, adr, LONG_ACCESS, 1, &value); |
- } |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// check for a pending SYSFAIL |
-// |
-unsigned short PollSfail(int nIfcHandle) |
-{ |
- BOOLEAN bResult; |
- |
- VMEsysfailGet(nIfcHandle, &bResult); |
- |
- return (unsigned short)bResult; |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// clear a interface set SYSFAIL |
-// |
-void ClrSfail(int nIfcHandle) |
-{ |
- VMEsysfailSet(nIfcHandle, 0); |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// set a SYSFAIL |
-// |
-void SetSfail(int nIfcHandle) |
-{ |
- VMEsysfailSet(nIfcHandle, 1); |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// read a interrupt vector as byte/word/long (if supported) |
-// |
-char ReadVectorByte(int nIfcHandle) |
-{ |
- __u8 ubVector; |
- |
- VMEinterrupt(nIfcHandle, &ubVector); |
- |
- return ubVector; |
-} |
- |
-short ReadVectorWord(int nIfcHandle) |
-{ |
- printf("Word read of a vector not available!\n"); |
- return 0; |
-} |
- |
-long ReadVectorLong(int nIfcHandle) |
-{ |
- printf("Longword read of a vector not available!\n"); |
- return 0; |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// emulate a 68K TAS (read/modify/write) instruction |
-// |
-char TAS(int nIfcHandle, unsigned long adr, unsigned short modifier) |
-{ |
- __u8 ubResult = 0x80; |
- |
- VMETAS(nIfcHandle, adr, &ubResult); |
- |
- return ubResult; // check if a read reads a lock |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-// generate a SYSRESET on the vmebus and re-init the interface |
-// |
-void Reset_VME(int nIfcHandle) |
-{ |
- VMEreset(nIfcHandle); |
-} |
- |
- |
-//------------------------------------------------------------------------------------------- |
-// print out some interface special info |
-// |
-void GetInterfaceInfo(int nIfcHandle, char type) |
-{ |
- switch (type) |
- { |
- } |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
Index: pcivme-3.2/pvmon/mbuffer.c |
=================================================================== |
--- pcivme-3.2/pvmon/mbuffer.c (revision 9) |
+++ pcivme-3.2/pvmon/mbuffer.c (nonexistent) |
@@ -1,82 +0,0 @@ |
-//------------------------------------------------------------------------------------------- |
-// mbuffer.c - some functions to do a simple message buffering |
-// |
-// (c) 1999 ARW Elektronik |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// $Log: mbuffer.c,v $ |
-// Revision 1.3 2002/10/20 11:49:33 klaus |
-// first parts working |
-// |
-// Revision 1.2 2002/10/19 09:47:30 klaus |
-// first success compiling project |
-// |
-// Revision 1.1.1.1 2002/10/18 22:14:29 klaus |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// DEFINES |
-// |
-#define LOCAL_BUFFERLENGTH 250 |
- |
-//------------------------------------------------------------------------------------------- |
-// INCLUDES |
-// |
-#include <stdio.h> |
-#include <mbuffer.h> |
- |
-//------------------------------------------------------------------------------------------- |
-// LOCALS |
-// |
-static char MBuffer[LOCAL_BUFFERLENGTH]; |
- |
-//------------------------------------------------------------ |
-// add unsolicited interrupt message to buffer |
-// |
-void AddIRQtoBuffer(short level, short vector) |
-{ |
- sprintf(MBuffer, "Interrupt @ level %d with vector %d signaled.", level, vector); |
-} |
- |
-//------------------------------------------------------------ |
-// add unsolicited error message to buffer |
-// |
-void AddMsgtoBuffer(int where, unsigned long Error) |
-{ |
- sprintf(MBuffer, "Error %d occured (%d)!", Error, where); |
-} |
- |
-//------------------------------------------------------------ |
-// add unsolicited error message as string to buffer |
-// |
-void AddMsgAsStringtoBuffer(char *strn) |
-{ |
- sprintf(MBuffer,"%s", strn); |
-} |
- |
-//------------------------------------------------------------ |
-// get back a message from the buffer |
-// |
-char *ReadMessageBuffer(void) |
-{ |
- return MBuffer; |
-} |
- |
-//------------------------------------------------------------ |
-// initilaize the buffer |
-// |
-void InitMessageBuffer(void) |
-{ |
- MBuffer[0] = 0; |
-} |
- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
Index: pcivme-3.2/test/simpleTest |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/pcivme-3.2/test/simpleTest |
Property changes: |
Deleted: svn:executable |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: pcivme-3.2/test/simpleTest.c |
=================================================================== |
--- pcivme-3.2/test/simpleTest.c (revision 9) |
+++ pcivme-3.2/test/simpleTest.c (nonexistent) |
@@ -1,251 +0,0 @@ |
-//**************************************************************************** |
-// Copyright (C) 2000-2004 ARW Elektronik Germany |
-// |
-// 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; either version 2 of the License, or |
-// (at your option) any later version. |
-// |
-// This program 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 this program; if not, write to the Free Software |
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-// |
-// This product is not authorized for use as critical component in |
-// life support systems without the express written approval of |
-// ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-// |
-//**************************************************************************** |
- |
-//**************************************************************************** |
-// |
-// simpleTest.c -- a simple test program for the PCIVME PCI to VME Interface |
-// |
-// $Log: simpleTest.c,v $ |
-// Revision 1.4 2004/08/13 19:23:55 klaus |
-// conversion to kernel-version 2.6, released version 3.0 |
-// |
-// Revision 1.3 2002/10/17 19:05:03 klaus |
-// VME access is working through test to lib to driver |
-// |
-// Revision 1.2 2002/10/12 22:12:19 klaus |
-// simple change |
-// |
-// Revision 1.1.1.1 2002/10/09 19:36:29 klaus |
-// initial import |
-// |
-// |
-//**************************************************************************** |
- |
-/*--- INCLUDES -----------------------------------------------------------------------------------*/ |
-#include <stdio.h> |
-#include <stdlib.h> |
-#include <limits.h> // rand() |
-#include <string.h> |
-#include <unistd.h> |
-#include <sys/mman.h> |
-#include <linux/types.h> |
-#include <errno.h> |
-#include <ctype.h> |
- |
-#include <../driver/pcivme.h> |
-#include <../lib/pcivme_ni.h> |
- |
-/*--- DEFINES ------------------------------------------------------------------------------------*/ |
-#define DEVICE_NAME "/dev/vmemm_1" |
-#define DEFAULT_WIDTH BYTE_ACCESS |
-#define DEFAULT_MODIFIER 0x39 |
-#define BUFFER_SIZE 0x10000 // local buffer for temporary use |
- |
-/*--- TYPEDEFS -----------------------------------------------------------------------------------*/ |
- |
-/*--- GLOBALS ------------------------------------------------------------------------------------*/ |
-char *cszPrgName; |
- |
-/*--- FUNCTIONS ----------------------------------------------------------------------------------*/ |
-void hlpMsg(void) |
-{ |
- printf("simpleTest - a program to do a RAM test with help of the PCIVME interface of ARW Elektronik Germany.\n"); |
- printf("Copyright: see the GPL of the free software foundation. K.Hitschler, %s.\n", __DATE__); |
- printf("usage: simpleTest [-d=DeviceName] -s=StartAddress [-l=Length] [-m=AddressModifier] [-w=AccessWidth] [-?]\n"); |
- printf(" -d - choose a device to use. (Default: %s)\n", DEVICE_NAME); |
- printf(" -s=StartAddress - address to start the test, mandatory.\n"); |
- printf(" -w=AccessWidth - data element width, 1,2 or 4. (Default: %d)\n", DEFAULT_WIDTH); |
- printf(" -l=Length - area length to test in bytes. (Default: equal AccessWidth)\n"); |
- printf(" -m=AddressModifier - VME address modifier for accesses. (Default: 0x%02x)\n", DEFAULT_MODIFIER); |
- printf(" -? - this help.\n"); |
-} |
- |
-/*--- TEST RAM LOOP ------------------------------------------------------------------------------*/ |
-__u32 SimpleRamTest(int handle, __u32 start, __u32 length, __u8 accessWidth) |
-{ |
- int error = 0; |
- __u32 r, w; |
- __u32 dwErrorCount = 0; |
- |
- while (length >= accessWidth) |
- { |
- w = rand(); |
- |
- error = VMEwrite(handle, start, accessWidth, 1, &w); |
- if (error) |
- { |
- dwErrorCount++; |
- printf("%s : Can't write @ adr: 0x%08x (%s)\n", cszPrgName, start, strerror(error)); |
- } |
- else |
- { |
- error = VMEread(handle, start, accessWidth, 1, &r); |
- if (error) |
- { |
- dwErrorCount++; |
- printf("%s : Can't read @ adr: 0x%08x (%s)\n", cszPrgName, start, strerror(error)); |
- } |
- else |
- { |
- error = ENOANO; |
- |
- switch (accessWidth) |
- { |
- case BYTE_ACCESS: |
- if ((w & 0xff) != (r & 0xff)) |
- { |
- dwErrorCount++; |
- printf("%s : Compare failed @ adr:0x%08x w:0x%02x r:0x%02x\n",cszPrgName, start, w & 0xff, r & 0xff); |
- } |
- break; |
- case WORD_ACCESS: |
- if ((w & 0xffff) != (r & 0xffff)) |
- { |
- dwErrorCount++; |
- printf("%s : Compare failed @ adr:0x%08x w:0x%04x r:0x%04x\n",cszPrgName, start, w & 0xffff, r & 0xffff); |
- } |
- break; |
- case LONG_ACCESS: |
- if (w != r) |
- { |
- dwErrorCount++; |
- printf("%s : Compare failed @ adr:0x%08x w:0x%08x r:0x%08x\n",cszPrgName, start, w, r); |
- } |
- break; |
- } |
- } |
- } |
- length -= accessWidth; |
- start += accessWidth; |
- } |
- |
- return dwErrorCount; |
-} |
- |
-int main(int argc, char **argv) |
-{ |
- char *fname = DEVICE_NAME; |
- char *ptr; |
- char ch; |
- int i; |
- int error = 0; |
- int handle; |
- __u8 bAddressModifier = DEFAULT_MODIFIER; |
- __u8 bAccessWidth = DEFAULT_WIDTH; |
- __u32 dwStartAddress = -1; |
- __u32 dwLength = -1; |
- |
- //----------------------------------------------------------------------------------- |
- // scan command line |
- cszPrgName = argv[0]; |
- for (i = 1; i < argc; i++) |
- { |
- ptr = argv[i]; |
- |
- if (*ptr == '-') |
- ptr++; |
- ch = *ptr; |
- |
- ptr++; |
- if (*ptr == '=') |
- ptr++; |
- |
- switch (tolower(ch)) |
- { |
- case 'h': |
- case '?': hlpMsg(); exit(0); |
- case 'd': fname = ptr; break; |
- case 's': dwStartAddress = strtoul(ptr, NULL, 16); break; |
- case 'w': bAccessWidth = (__u8)atoi(ptr); break; |
- case 'l': dwLength = strtoul(ptr, NULL, 16); break; |
- case 'm': bAddressModifier = (__u8)strtoul(ptr, NULL, 16); break; |
- default: printf("%s : Unknown command \"%c\"!\n", cszPrgName, ch); exit(0); |
- } |
- } |
- |
- //----------------------------------------------------------------------------------- |
- // test for correct parameters |
- if (!fname) |
- { |
- printf("%s : Must have devicename!\n", cszPrgName); |
- exit(EINVAL); |
- } |
- |
- if (dwStartAddress == -1) |
- { |
- printf("%s : Must have a start address!\n", cszPrgName); |
- exit(EINVAL); |
- } |
- |
- if ((bAccessWidth > 4) || (bAccessWidth == 3)) |
- { |
- printf("%s : Illegal AccessWidth (%d)!\n", cszPrgName, bAccessWidth); |
- exit(EINVAL); |
- } |
- |
- if (bAddressModifier > 0x3F) |
- { |
- printf("%s : Illegal VME AddressModifer (0x%02x)!\n", cszPrgName, bAddressModifier); |
- exit(EINVAL); |
- } |
- |
- if (dwLength == -1) |
- dwLength = bAccessWidth; |
- |
- printf("%s: Testing %s from 0x%08x to 0x%08x with Modifier 0x%02x.\n", |
- cszPrgName, |
- (bAccessWidth == BYTE_ACCESS) ? "bytes" : ((bAccessWidth == WORD_ACCESS) ? "words" : "longs"), |
- dwStartAddress, dwStartAddress + dwLength, bAddressModifier); |
- |
- //----------------------------------------------------------------------------------- |
- // open the path to device |
- error = VMEopen(fname, bAddressModifier, &handle); |
- if (error) |
- { |
- printf("%s : Can't open path to %s! (%s)\n", cszPrgName, fname, strerror(error)); |
- exit(error); |
- } |
- |
- //----------------------------------------------------------------------------------- |
- // loop until error |
- error = SimpleRamTest(handle, dwStartAddress, dwLength, bAccessWidth); |
- if (error) |
- printf("%s: %d test errors!\n", cszPrgName, error); |
- else |
- printf("%s: No test errors.\n", cszPrgName); |
- |
- //----------------------------------------------------------------------------------- |
- // close the path to device |
- error = VMEclose(handle); |
- if (!error) |
- printf("%s: Close OK.\n", cszPrgName); |
- else |
- printf("%s: Close with error, %s!\n", cszPrgName, strerror(error)); |
- |
- return error; |
-} |
- |
Index: pcivme-3.2/test/Makefile |
=================================================================== |
--- pcivme-3.2/test/Makefile (revision 9) |
+++ pcivme-3.2/test/Makefile (nonexistent) |
@@ -1,58 +0,0 @@ |
-#**************************************************************************** |
-# Copyright (C) 2001-2004 ARW Elektronik Germany |
-# |
-# 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; either version 2 of the License, or |
-# (at your option) any later version. |
-# |
-# This program 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 this program; if not, write to the Free Software |
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
-# |
-# Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
-#**************************************************************************** |
- |
-#**************************************************************************** |
-# |
-# Makefile - makefile for ARW Elektronik PCIVME interfaces test program |
-# |
-# $Log: Makefile,v $ |
-# Revision 1.5 2004/08/13 19:23:55 klaus |
-# conversion to kernel-version 2.6, released version 3.0 |
-# |
-# Revision 1.4 2002/10/20 18:08:21 klaus |
-# don't know what has been changed? |
-# |
-# Revision 1.3 2002/10/17 19:05:03 klaus |
-# VME access is working through test to lib to driver |
-# |
-# Revision 1.2 2002/10/12 22:12:19 klaus |
-# simple change |
-# |
-# Revision 1.1.1.1 2002/10/09 19:36:29 klaus |
-# initial import |
-# |
-# |
-#**************************************************************************** |
- |
-FILES = simpleTest |
- |
-INC = -I /usr/include -I . -I ../lib |
-CFLAGS = -O2 -fomit-frame-pointer -Wall $(INC) -g |
-LIBS = -lpcivme |
- |
-all: simpleTest |
- |
-simpleTest: simpleTest.c |
- $(CC) $(CFLAGS) simpleTest.c $(LIBS) -o simpleTest |
- |
-clean: |
- rm -f $(FILES) *~ core |
- |
- |