Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 14 → Rev 43

/pcivme-3.2/driver/pcivme.mod.c
4,7 → 4,7
 
MODULE_INFO(vermagic, VERMAGIC_STRING);
 
struct module __this_module
__visible struct module __this_module
__attribute__((section(".gnu.linkonce.this_module"))) = {
.name = KBUILD_MODNAME,
.init = init_module,
17,41 → 17,40
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" },
{ 0x2b22e0c3, __VMLINUX_SYMBOL_STR(module_layout) },
{ 0x6bc3fbc0, __VMLINUX_SYMBOL_STR(__unregister_chrdev) },
{ 0x1fedf0f4, __VMLINUX_SYMBOL_STR(__request_region) },
{ 0x2b056eed, __VMLINUX_SYMBOL_STR(kmalloc_caches) },
{ 0x4c4fef19, __VMLINUX_SYMBOL_STR(kernel_stack) },
{ 0x69a358a6, __VMLINUX_SYMBOL_STR(iomem_resource) },
{ 0xa6a7d28, __VMLINUX_SYMBOL_STR(pci_disable_device) },
{ 0xce814a29, __VMLINUX_SYMBOL_STR(remove_proc_entry) },
{ 0x887c7d32, __VMLINUX_SYMBOL_STR(__register_chrdev) },
{ 0x9f14c292, __VMLINUX_SYMBOL_STR(mutex_unlock) },
{ 0x91715312, __VMLINUX_SYMBOL_STR(sprintf) },
{ 0xf432dd3d, __VMLINUX_SYMBOL_STR(__init_waitqueue_head) },
{ 0x9d442502, __VMLINUX_SYMBOL_STR(__mutex_init) },
{ 0x27e1a049, __VMLINUX_SYMBOL_STR(printk) },
{ 0xad4382ef, __VMLINUX_SYMBOL_STR(pci_bus_write_config_dword) },
{ 0xaaa3b254, __VMLINUX_SYMBOL_STR(mutex_lock) },
{ 0x2072ee9b, __VMLINUX_SYMBOL_STR(request_threaded_irq) },
{ 0xa8a6f639, __VMLINUX_SYMBOL_STR(__check_region) },
{ 0x42c8de35, __VMLINUX_SYMBOL_STR(ioremap_nocache) },
{ 0xbc7cb20d, __VMLINUX_SYMBOL_STR(pci_bus_read_config_word) },
{ 0x178cf5a9, __VMLINUX_SYMBOL_STR(pci_bus_read_config_dword) },
{ 0x1000e51, __VMLINUX_SYMBOL_STR(schedule) },
{ 0xbdfb6dbb, __VMLINUX_SYMBOL_STR(__fentry__) },
{ 0x7c61340c, __VMLINUX_SYMBOL_STR(__release_region) },
{ 0xb153f6c5, __VMLINUX_SYMBOL_STR(kmem_cache_alloc_trace) },
{ 0xcf21d241, __VMLINUX_SYMBOL_STR(__wake_up) },
{ 0x34f22f94, __VMLINUX_SYMBOL_STR(prepare_to_wait_event) },
{ 0x736fc972, __VMLINUX_SYMBOL_STR(proc_create_data) },
{ 0x37a0cba, __VMLINUX_SYMBOL_STR(kfree) },
{ 0xedc03953, __VMLINUX_SYMBOL_STR(iounmap) },
{ 0xc513abcd, __VMLINUX_SYMBOL_STR(pci_get_device) },
{ 0xfa66f77c, __VMLINUX_SYMBOL_STR(finish_wait) },
{ 0xe80ed784, __VMLINUX_SYMBOL_STR(pci_enable_device) },
{ 0xf20dabd8, __VMLINUX_SYMBOL_STR(free_irq) },
};
 
static const char __module_depends[]
60,4 → 59,4
"depends=";
 
 
MODULE_INFO(srcversion, "A7BD2186CAC138621574913");
MODULE_INFO(srcversion, "9D298E133E9420C1898E3A2");
/pcivme-3.2/driver/pcivme.ko
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/pcivme-3.2/driver/main.c
116,7 → 116,7
return result;
}
 
static irqreturn_t pcivme_irqhandler(int irq, void *dev_id, struct pt_regs *regs)
static irqreturn_t pcivme_irqhandler(int irq, void *dev_id )
{
DEVICE_OBJ *pd = (DEVICE_OBJ *)dev_id;
 
367,7 → 367,8
#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)
//static int pcivme_read_proc(char *buf, char **start, off_t offset, int len, int *eof, void *data)
static int pcivme_read_proc(struct file *filp,char *buf,size_t count,loff_t *offp )
#endif
{
int pos = 0;
420,12 → 421,15
pos += sprintf(buf + pos, "\n");
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
*eof = 1;
//*eof = 1;
#endif
 
return pos;
}
 
 
 
 
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
struct proc_dir_entry pcimod_proc_entry =
{
435,6 → 439,10
nlink: 1, /* nlinks */
get_info: pcivme_read_proc, /* function used to read data */
};
#else
struct file_operations proc_fops = {
read: pcivme_read_proc
};
#endif
 
static void deleteMyLists(void)
573,7 → 581,9
 
return 0;
#else
return create_proc_read_entry(DEVICE_NAME, 0, NULL, pcivme_read_proc, NULL) ? 0 : -ENODEV;
// create_proc_read_entry is depricated since kernel 3.10
//return create_proc_read_entry(DEVICE_NAME, 0, NULL, pcivme_read_proc, NULL) ? 0 : -ENODEV;
return proc_create_data(DEVICE_NAME, 0, NULL, &pcivme_fops, NULL) ? 0 : -ENODEV;
#endif
}
 
/pcivme-3.2/driver/Makefile
41,7 → 41,7
#
KERNEL_LOCATION =/usr/src/linux-headers-$(shell uname -r)
 
EXTRA_CFLAGS := -I.
EXTRA_CFLAGS := -I.
#****************************************************************************
# removed old kernel source path retrival for support of kernels < 2.2.18!
# old KERNSRC = /lib/modules/$(VERSION)/build
111,7 → 111,8
#****************************************************************************
# do it
#
KBUILD_CPPFLAGS += -D$(DBG)
KBUILD_CPPFLAGS += -D$(DBG)
KBUILD_CPPFLAGS += -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast
 
all : message
$(MAKE) -C $(KERNSRC) M=$(PWD) V=$(VERBOSE) $(filter-out all, $(MAKECMDGOLAS)) modules