1 --- a/src/drv_vmmc_init.c
2 +++ b/src/drv_vmmc_init.c
4 dwld.fwDwld.length = IoInit.pram_size;
6 /* download firmware */
7 - ret = ifx_mps_ioctl((IFX_void_t *) command, IFX_NULL, FIO_MPS_DOWNLOAD,
8 + ret = ifx_mps_ioctl((IFX_void_t *) command, FIO_MPS_DOWNLOAD,
9 (IFX_uint32_t) &dwld.fwDwld);
13 #ifdef VMMC_DRIVER_UNLOAD_HOOK
14 if (VDevices[0].nDevState & DS_GPIO_RESERVED)
17 + IFX_int32_t ret = 0;
18 VMMC_DRIVER_UNLOAD_HOOK(ret);
19 if (!VMMC_SUCCESS(ret))
21 --- a/src/mps/drv_mps_vmmc_linux.c
22 +++ b/src/mps/drv_mps_vmmc_linux.c
25 IFX_int32_t ifx_mps_open (struct inode *inode, struct file *file_p);
26 IFX_int32_t ifx_mps_close (struct inode *inode, struct file *file_p);
27 -IFX_int32_t ifx_mps_ioctl (struct inode *inode, struct file *file_p,
28 +long ifx_mps_ioctl (struct file *file_p,
29 IFX_uint32_t nCmd, IFX_ulong_t arg);
30 IFX_int32_t ifx_mps_read_mailbox (mps_devices type, mps_message * rw);
31 IFX_int32_t ifx_mps_write_mailbox (mps_devices type, mps_message * rw);
33 static struct file_operations ifx_mps_fops = {
36 - ioctl:ifx_mps_ioctl,
37 + unlocked_ioctl:ifx_mps_ioctl,
42 * \return -ENOIOCTLCMD Invalid command
45 -IFX_int32_t ifx_mps_ioctl (struct inode * inode, struct file * file_p,
46 +long ifx_mps_ioctl (struct file *file_p,
47 IFX_uint32_t nCmd, IFX_ulong_t arg)
49 IFX_int32_t retvalue = -EINVAL;
51 'mps_devices' enum type, which in fact is [0..8]; So, if inode value is
52 [0..NUM_VOICE_CHANNEL+1], then we make sure that we are calling from
54 - if (((IFX_int32_t) inode >= 0) &&
55 - ((IFX_int32_t) inode < NUM_VOICE_CHANNEL + 1))
56 + if (((IFX_int32_t) file_p >= 0) &&
57 + ((IFX_int32_t) file_p < NUM_VOICE_CHANNEL + 1))
61 /* Get corresponding mailbox device structure */
63 - ifx_mps_get_device ((mps_devices) ((IFX_int32_t) inode))) == 0)
64 + ifx_mps_get_device ((mps_devices) ((IFX_int32_t) file_p))) == 0)
72 --- a/src/drv_vmmc_ioctl.c
73 +++ b/src/drv_vmmc_ioctl.c
75 /* MPS driver will do the USR2KERN so just pass on the pointer. */
76 dwnld_struct.data = (IFX_void_t *)IoInit.pPRAMfw;
78 - ret = ifx_mps_ioctl((IFX_void_t *)command, IFX_NULL,
79 + ret = ifx_mps_ioctl((IFX_void_t *)command,
80 FIO_MPS_DOWNLOAD, (IFX_uint32_t) &dwnld_struct);
85 - ret = ifx_mps_ioctl((IFX_void_t *)command, IFX_NULL, FIO_MPS_RESET, 0);
86 + ret = ifx_mps_ioctl((IFX_void_t *)command, FIO_MPS_RESET, 0);
91 - ret = ifx_mps_ioctl((IFX_void_t *)command, IFX_NULL, FIO_MPS_RESTART, 0);
92 + ret = ifx_mps_ioctl((IFX_void_t *)command, FIO_MPS_RESTART, 0);
96 --- a/src/mps/drv_mps_vmmc.h
97 +++ b/src/mps/drv_mps_vmmc.h
100 IFX_int32_t ifx_mps_open (struct inode *inode, struct file *file_p);
101 IFX_int32_t ifx_mps_close (struct inode *inode, struct file *filp);
102 -IFX_int32_t ifx_mps_ioctl (struct inode *inode, struct file *file_p,
103 +long ifx_mps_ioctl (struct file *filp,
104 IFX_uint32_t nCmd, unsigned long arg);
105 IFX_int32_t ifx_mps_register_data_callback (mps_devices type, IFX_uint32_t dir,
106 IFX_void_t (*callback) (mps_devices