Commit f33c9ad6 authored by ghaddab's avatar ghaddab

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4706 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 3d2984ff
...@@ -72,7 +72,10 @@ int openair_device_mmap(struct file *filp, struct vm_area_struct *vma) ...@@ -72,7 +72,10 @@ int openair_device_mmap(struct file *filp, struct vm_area_struct *vma)
size); size);
*/ */
vma->vm_pgoff = 0; vma->vm_pgoff = 0;
vma->vm_flags |= VM_RESERVED;
// not supported by 64 bit kernels
//vma->vm_flags |= VM_RESERVED;
vma->vm_flags |= VM_IO;
if ( is_card_num_invalid(card) ) if ( is_card_num_invalid(card) )
return -EINVAL; return -EINVAL;
...@@ -177,6 +180,16 @@ int openair_device_ioctl(struct inode *inode,struct file *filp, unsigned int cmd ...@@ -177,6 +180,16 @@ int openair_device_ioctl(struct inode *inode,struct file *filp, unsigned int cmd
break; break;
case openair_STOP_WITHOUT_RESET:
printk("[openair][IOCTL] openair_STOP_WITHOUT_RESET(card%d)\n", (int)arg);
if ( is_card_num_invalid((int)arg) )
return -EINVAL;
exmimo_send_pccmd((int)arg, EXMIMO_STOP_WITHOUT_RESET);
break;
case openair_GET_FRAME: case openair_GET_FRAME:
get_frame_cnt=0; get_frame_cnt=0;
......
...@@ -63,8 +63,9 @@ static int __init openair_init_module( void ) ...@@ -63,8 +63,9 @@ static int __init openair_init_module( void )
if( pdev[card] ) if( pdev[card] )
{ {
printk("[openair][INIT_MODULE][INFO]: openair card (ExpressMIMO) %d found, bus 0x%x, primary 0x%x, secondary 0x%x\n",card, // This print does not work for 64 bit kernels
pdev[card]->bus->number, pdev[card]->bus->primary,pdev[card]->bus->secondary); // printk("[openair][INIT_MODULE][INFO]: openair card (ExpressMIMO) %d found, bus 0x%x, primary 0x%x, secondary 0x%x\n",card,
// pdev[card]->bus->number, pdev[card]->bus->primary,pdev[card]->bus->secondary);
pci_read_config_word(pdev[card], PCI_SUBSYSTEM_ID, &subid); pci_read_config_word(pdev[card], PCI_SUBSYSTEM_ID, &subid);
pci_read_config_word(pdev[card], PCI_SUBSYSTEM_VENDOR_ID, &vendor); pci_read_config_word(pdev[card], PCI_SUBSYSTEM_VENDOR_ID, &vendor);
...@@ -98,8 +99,9 @@ static int __init openair_init_module( void ) ...@@ -98,8 +99,9 @@ static int __init openair_init_module( void )
pdev[card] = pci_get_device(vid,did, pdev[card-1]); pdev[card] = pci_get_device(vid,did, pdev[card-1]);
if(pdev[card]) if(pdev[card])
{ {
printk("[openair][INIT_MODULE][INFO]: openair card %d found, bus 0x%x, primary 0x%x, secondary 0x%x\n",card, // This print does not work for 64 bit kernels
pdev[card]->bus->number,pdev[card]->bus->primary,pdev[card]->bus->secondary); // printk("[openair][INIT_MODULE][INFO]: openair card %d found, bus 0x%x, primary 0x%x, secondary 0x%x\n",card,
// pdev[card]->bus->number,pdev[card]->bus->primary,pdev[card]->bus->secondary);
pci_read_config_word(pdev[card], PCI_SUBSYSTEM_ID, &subid); pci_read_config_word(pdev[card], PCI_SUBSYSTEM_ID, &subid);
pci_read_config_word(pdev[card], PCI_SUBSYSTEM_VENDOR_ID, &vendor); pci_read_config_word(pdev[card], PCI_SUBSYSTEM_VENDOR_ID, &vendor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment