Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Remoteproc SHM driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CaroloCup
Remoteproc SHM driver
Commits
abafcd8b
Commit
abafcd8b
authored
6 years ago
by
Aljoscha Wißfeld
Browse files
Options
Downloads
Patches
Plain Diff
includes managed and fasync added
parent
76d89e81
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
Multithreads enabled
,
!6
Select
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
remoteproc-shm.c
+17
-20
17 additions, 20 deletions
remoteproc-shm.c
with
17 additions
and
20 deletions
remoteproc-shm.c
+
17
−
20
View file @
abafcd8b
...
...
@@ -17,22 +17,15 @@
#include
<linux/debugfs.h>
#include
<linux/poll.h>
#include
<linux/slab.h>
//#include <linux/of.h>
//#include <linux/err.h>
//#include <linux/fs.h>
//#include <linux/io.h>
//#include <linux/kernel.h>
//#include <linux/uaccess.h>
//#include <linux/sched/signal.h>
//#include <linux/dmapool.h>
//#include <linux/kthread.h>
//#include <linux/interrupt.h>
//#include <linux/delay.h>
//#include <linux/wait.h>
//#include <linux/semaphore.h>
//#include <linux/list.h>
//#include <stdbool.h>
#include
<linux/of.h>
#include
<linux/err.h>
#include
<linux/fs.h>
#include
<linux/kernel.h>
#include
<linux/uaccess.h>
#include
<linux/wait.h>
#include
<linux/semaphore.h>
#include
<linux/list.h>
#include
<linux/types.h>
#define DRIVER_NAME "remoteproc-shm"
#define SHM_SIZE 0x800000
...
...
@@ -74,7 +67,6 @@ static void rproc_shm_recv_message(struct mbox_client *client, void *message)
dev_info
(
client
->
dev
,
"rproc_shm_recv_message: %p
\n
"
,
message
);
/*
if
(
dev
->
async_queue
)
{
dev_info
(
client
->
dev
,
"dev->async_queue == True
\n
"
);
kill_fasync
(
&
dev
->
async_queue
,
SIGIO
,
POLL_IN
);
...
...
@@ -83,7 +75,6 @@ static void rproc_shm_recv_message(struct mbox_client *client, void *message)
else
{
dev_info
(
client
->
dev
,
"dev->async_queue == FALSE
\n
"
);
}
*/
list_for_each
(
pos
,
&
dev
->
list
)
{
entry
=
list_entry
(
pos
,
struct
rproc_file
,
head
);
...
...
@@ -236,7 +227,13 @@ static int rproc_shm_mmap(struct file *filp, struct vm_area_struct *vma)
return
0
;
}
/*
/**
* rproc_shm_fasync - setup of async_queue
* @fd: file descriptor
* @filp: file pointer
* @mode: inidcates queue content
*/
static
int
rproc_shm_fasync
(
int
fd
,
struct
file
*
filp
,
int
mode
)
{
dev_info
(
dev
->
dev
,
"rproc_shm_fasync"
);
...
...
@@ -244,7 +241,7 @@ static int rproc_shm_fasync(int fd, struct file *filp, int mode)
return
fasync_helper
(
fd
,
filp
,
mode
,
&
dev
->
async_queue
);
}
*/
/**
* rproc_shm_fsync - sends message to IPU
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment