Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
legacy-vme64x-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
legacy-vme64x-core
Commits
90665d8d
Commit
90665d8d
authored
Mar 20, 2014
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: support compiling on kernels < 3.8
parent
5ef88d72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
tsi148.c
drv/driver/tsi148.c
+2
-0
tsi148.h
drv/driver/tsi148.h
+18
-0
vme_window.c
drv/driver/vme_window.c
+3
-1
No files found.
drv/driver/tsi148.c
View file @
90665d8d
...
...
@@ -20,6 +20,8 @@
#undef DEBUG_DMA
#define create_proc_entry(name, mode, parent) proc_create(name, mode, parent, 0)
static
struct
tsi148_chip
*
chip
;
static
struct
dma_pool
*
dma_desc_pool
;
...
...
drv/driver/tsi148.h
View file @
90665d8d
...
...
@@ -26,6 +26,24 @@
#include "vme_dma.h"
#include "vmebus.h"
#ifndef __devinit
#define __devinit
#define __devinitdata
#define __devinitcost
#define __devexit
#define __devexitdata
#define __devexitconst
#endif
#ifndef __devexit_p
#ifdef MODULE
#define __devexit_p(x) x
#else
#define __devexit_p(x) NULL
#endif
#endif
/*
* Define the number of each resources that the Tsi148 supports.
*/
...
...
drv/driver/vme_window.c
View file @
90665d8d
...
...
@@ -1188,7 +1188,9 @@ long vme_window_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
*/
static
int
vme_remap_pfn_range
(
struct
vm_area_struct
*
vma
)
{
#ifndef VM_RESERVED
#define VM_RESERVED VM_DONTDUMP
#endif
vma
->
vm_flags
|=
VM_IO
|
VM_RESERVED
|
VM_DONTCOPY
|
VM_DONTEXPAND
;
vma
->
vm_page_prot
=
pgprot_noncached
(
vma
->
vm_page_prot
);
...
...
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