Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
f33c9ad6
Commit
f33c9ad6
authored
Dec 13, 2013
by
ghaddab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4706
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
3d2984ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
targets/ARCH/EXMIMO/DRIVER/eurecom/fileops.c
targets/ARCH/EXMIMO/DRIVER/eurecom/fileops.c
+15
-2
targets/ARCH/EXMIMO/DRIVER/eurecom/module_main.c
targets/ARCH/EXMIMO/DRIVER/eurecom/module_main.c
+6
-4
No files found.
targets/ARCH/EXMIMO/DRIVER/eurecom/fileops.c
View file @
f33c9ad6
...
@@ -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
;
...
...
targets/ARCH/EXMIMO/DRIVER/eurecom/module_main.c
View file @
f33c9ad6
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment