Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 43 → Rev 44

/pcivme-3.2/driver/pcivme.mod.c
17,39 → 17,38
static const struct modversion_info ____versions[]
__used
__attribute__((section("__versions"))) = {
{ 0x2b22e0c3, __VMLINUX_SYMBOL_STR(module_layout) },
{ 0x11c92bdf, __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) },
{ 0x7f457a3b, __VMLINUX_SYMBOL_STR(kmalloc_caches) },
{ 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) },
{ 0x6acfb74e, __VMLINUX_SYMBOL_STR(pci_disable_device) },
{ 0x7cc137e5, __VMLINUX_SYMBOL_STR(remove_proc_entry) },
{ 0x40851225, __VMLINUX_SYMBOL_STR(__register_chrdev) },
{ 0x728d8849, __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) },
{ 0x68dfc59f, __VMLINUX_SYMBOL_STR(__init_waitqueue_head) },
{ 0xa22311d0, __VMLINUX_SYMBOL_STR(__mutex_init) },
{ 0x50eedeb8, __VMLINUX_SYMBOL_STR(printk) },
{ 0xb4390f9a, __VMLINUX_SYMBOL_STR(mcount) },
{ 0x5427e6db, __VMLINUX_SYMBOL_STR(pci_bus_write_config_dword) },
{ 0xfe57f7e2, __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__) },
{ 0x51e5c030, __VMLINUX_SYMBOL_STR(pci_bus_read_config_word) },
{ 0x979b6d54, __VMLINUX_SYMBOL_STR(pci_bus_read_config_dword) },
{ 0x4292364c, __VMLINUX_SYMBOL_STR(schedule) },
{ 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) },
{ 0xd3813bef, __VMLINUX_SYMBOL_STR(kmem_cache_alloc_trace) },
{ 0xe45f60d8, __VMLINUX_SYMBOL_STR(__wake_up) },
{ 0xa56d356, __VMLINUX_SYMBOL_STR(prepare_to_wait_event) },
{ 0x8bc20274, __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) },
{ 0x82f3c0af, __VMLINUX_SYMBOL_STR(pci_get_device) },
{ 0x75bb675a, __VMLINUX_SYMBOL_STR(finish_wait) },
{ 0x29079661, __VMLINUX_SYMBOL_STR(pci_enable_device) },
{ 0xf20dabd8, __VMLINUX_SYMBOL_STR(free_irq) },
};
 
59,4 → 58,4
"depends=";
 
 
MODULE_INFO(srcversion, "9D298E133E9420C1898E3A2");
MODULE_INFO(srcversion, "FFA7008531B9F92A3590EA1");
/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
100,6 → 100,9
/*--- LOCALS ------------------------------------------------------------------------------*/
 
/*--- FUNCTIONS ---------------------------------------------------------------------------*/
 
struct proc_dir_entry *proc;
 
static int my_interrupt(u16 intCSR)
{
int result = NOT_MY_INTERRUPT;
377,7 → 380,9
u16 cntrl;
char *cause = "none";
struct list_head *ptr;
 
PRINTK(KERN_DEBUG "%s : pcivme_read_proc()\n",DEVICE_NAME);
if (*offp != 0) return 0;
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");
419,11 → 424,16
}
 
pos += sprintf(buf + pos, "\n");
 
if (pos>count) {
buf[count-1]=0;
pos=count;
}
PRINTK(KERN_DEBUG "%s : pcivme_read_proc() end count=%d\n",DEVICE_NAME, pos);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
//*eof = 1;
#endif
 
*offp = pos;
return pos;
}
 
440,7 → 450,7
get_info: pcivme_read_proc, /* function used to read data */
};
#else
struct file_operations proc_fops = {
struct file_operations pcivme_read_proc_fops = {
read: pcivme_read_proc
};
#endif
460,7 → 470,7
DeletePCIConfig(&drv);
}
 
int init_module(void)
int pcivme_module_init(void)
{
PCIConfig *ch;
DEVICE_OBJ *pd;
576,18 → 586,15
}
 
/* register the proc device */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
proc_register_dynamic(&proc_root, &pcimod_proc_entry);
 
return 0;
#else
// 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
//return create_proc_read_entry(DEVICE_NAME, 0, NULL, pcivme_read_proc, NULL) ? 0 : -ENODEV;
proc = proc_create_data(DEVICE_NAME, 0, NULL, &pcivme_read_proc_fops, NULL);
return (proc) ? 0 : -ENODEV;
 
}
 
void cleanup_module(void)
void pcivme_module_exit(void)
{
PCIConfig *ch;
DEVICE_OBJ *pd;
626,3 → 633,6
return;
}
 
module_init(pcivme_module_init);
module_exit(pcivme_module_exit);
 
/pcivme-3.2/driver/Makefile
84,8 → 84,8
#****************************************************************************
# some common switches and defines
#
DBG = __NO_DEBUG__ # or __DEBUG__ to debug the driver
#DBG = __DEBUG__
#DBG = __NO_DEBUG__ # or __DEBUG__ to debug the driver
DBG = __DEBUG__
SRC = .
 
 
180,8 → 180,11
 
#********** root installation only ******************************************
install:
@echo "** Removing existing module pcivme from kernel"
-rmmod pcivme
@echo "** Installing new module into the module directory"
-cp -r pcivme.ko $(INSTALL_LOCATION)
@echo "** Loading new module with ./pcivme_load 1"
./pcivme_load 1
 
endif # <<<<< HASVERSION_H >>>>>>