vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / cdcm / cdcm-driver-gen-pci.c
blob7701ab1552efb23b25448b49ce24dabad0ceab33
1 /**
2 * @file cdcm-driver-gen-pci.c
4 * @brief PCI-specific operations
6 * @author Copyright (C) 2009 CERN. Yury GEORGIEVSKIY <ygeorgie@cern.ch>
8 * @date Created on 14/08/2009
10 * @section license_sec License
11 * Released under the GPL
13 #include "list_extra.h" /* for extra handy list operations */
14 #include "cdcmDrvr.h"
15 #include "cdcmLynxAPI.h"
16 #include "vmebus.h"
17 #define __CDCM__
18 #include "dg/ModuleHeader.h" /* for DevInfo_t */
20 int dg_get_dev_info(unsigned long arg)
21 { return -1; }
23 int dg_get_mod_am(void)
24 { return -1; }
26 int dg_cdv_install(char *name, struct file_operations *fops)
27 { return -ENODEV; }
29 int dg_cdv_uninstall(struct file *filp, unsigned long arg)
30 { return -ENODEV; }
32 ssize_t dg_fop_read(struct file *filp, char __user *buf, size_t size,
33 loff_t *off)
34 { return -EINVAL; }
36 ssize_t dg_fop_write(struct file *filp, const char __user *buf,
37 size_t size, loff_t *off)
38 { return -EINVAL; }
40 unsigned int dg_fop_poll(struct file* filp, poll_table* wait)
41 { return POLLERR; }
43 long dg_fop_ioctl(struct file* filp, poll_table* wait)
44 { return -ENOTTY; }
46 int dg_fop_mmap(struct file *filp, struct vm_area_struct *vma)
47 { return -ENODEV; }
49 int dg_fop_open(struct inode *inode, struct file *filp)
50 { return -ENOMEM; }
52 int dg_fop_release(struct inode *inode, struct file *filp)
53 { return 0; }