Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
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
FPGA Configuration Space
Commits
2bab8ae1
Commit
2bab8ae1
authored
Jul 11, 2014
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wishbone: increase hardware-specific module use count when device opened
parent
0b2501db
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
+8
-2
pcie_wb.c
pcie-wb/pcie_wb.c
+1
-0
spec_wb.c
pcie-wb/spec_wb.c
+1
-0
wishbone.c
pcie-wb/wishbone.c
+2
-2
wishbone.h
pcie-wb/wishbone.h
+3
-0
vme_wb_external.c
vme-wb/vme_wb_external.c
+1
-0
No files found.
pcie-wb/pcie_wb.c
View file @
2bab8ae1
...
...
@@ -254,6 +254,7 @@ static void wb_reply(struct wishbone *wb, int err, wb_data_t data)
}
static
const
struct
wishbone_operations
wb_ops
=
{
.
owner
=
THIS_MODULE
,
.
cycle
=
wb_cycle
,
.
byteenable
=
wb_byteenable
,
.
write
=
wb_write
,
...
...
pcie-wb/spec_wb.c
View file @
2bab8ae1
...
...
@@ -176,6 +176,7 @@ static void wb_reply(struct wishbone *wb, int err, wb_data_t dat)
}
static
const
struct
wishbone_operations
wb_ops
=
{
.
owner
=
THIS_MODULE
,
.
cycle
=
wb_cycle
,
.
byteenable
=
wb_byteenable
,
.
write
=
wb_write
,
...
...
pcie-wb/wishbone.c
View file @
2bab8ae1
...
...
@@ -746,10 +746,10 @@ int wishbone_register(struct wishbone* wb)
/* Connect the file operations with the cdevs */
cdev_init
(
&
wb
->
master_cdev
,
&
etherbone_master_fops
);
wb
->
master_cdev
.
owner
=
THIS_MODULE
;
wb
->
master_cdev
.
owner
=
wb
->
wops
->
owner
;
cdev_init
(
&
wb
->
slave_cdev
,
&
etherbone_slave_fops
);
wb
->
slave_cdev
.
owner
=
THIS_MODULE
;
wb
->
slave_cdev
.
owner
=
wb
->
wops
->
owner
;
wb
->
master_dev
=
MKDEV
(
...
...
pcie-wb/wishbone.h
View file @
2bab8ae1
...
...
@@ -36,6 +36,9 @@ struct wishbone_request
struct
wishbone_operations
{
/* owning module */
struct
module
*
owner
;
/* master operations */
void
(
*
cycle
)(
struct
wishbone
*
wb
,
int
on
);
void
(
*
byteenable
)(
struct
wishbone
*
wb
,
unsigned
char
mask
);
...
...
vme-wb/vme_wb_external.c
View file @
2bab8ae1
...
...
@@ -208,6 +208,7 @@ static void wb_byteenable(struct wishbone *wb, unsigned char be)
}
static
const
struct
wishbone_operations
wb_ops
=
{
.
owner
=
THIS_MODULE
,
.
cycle
=
wb_cycle
,
.
byteenable
=
wb_byteenable
,
.
write
=
wb_write
,
...
...
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