Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f66f79ef
Commit
f66f79ef
authored
Jan 18, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux.bkbits.net/linux-2.5
into debian.org:/usr/src/kernel/ieee1394-2.6
parents
1c2a00ad
cdfac186
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
23 deletions
+21
-23
drivers/ieee1394/highlevel.c
drivers/ieee1394/highlevel.c
+21
-20
drivers/ieee1394/highlevel.h
drivers/ieee1394/highlevel.h
+0
-3
No files found.
drivers/ieee1394/highlevel.c
View file @
f66f79ef
...
...
@@ -251,13 +251,13 @@ void hpsb_register_highlevel(struct hpsb_highlevel *hl)
list_add_tail
(
&
hl
->
hl_list
,
&
hl_drivers
);
up_write
(
&
hl_drivers_sem
);
if
(
hl
->
add_host
)
nodemgr_for_each_host
(
hl
,
highlevel_for_each_host_reg
);
write_lock
(
&
hl_irqs_lock
);
list_add_tail
(
&
hl
->
irq_list
,
&
hl_irqs
);
write_unlock
(
&
hl_irqs_lock
);
if
(
hl
->
add_host
)
nodemgr_for_each_host
(
hl
,
highlevel_for_each_host_reg
);
return
;
}
...
...
@@ -402,11 +402,28 @@ void hpsb_unlisten_channel(struct hpsb_highlevel *hl, struct hpsb_host *host,
}
}
static
void
init_hpsb_highlevel
(
struct
hpsb_host
*
host
)
{
INIT_LIST_HEAD
(
&
dummy_zero_addr
.
as_list
);
INIT_LIST_HEAD
(
&
dummy_zero_addr
.
addr_list
);
INIT_LIST_HEAD
(
&
dummy_max_addr
.
as_list
);
INIT_LIST_HEAD
(
&
dummy_max_addr
.
addr_list
);
dummy_zero_addr
.
op
=
dummy_max_addr
.
op
=
&
dummy_ops
;
dummy_zero_addr
.
start
=
dummy_zero_addr
.
end
=
0
;
dummy_max_addr
.
start
=
dummy_max_addr
.
end
=
((
u64
)
1
)
<<
48
;
list_add_tail
(
&
dummy_zero_addr
.
as_list
,
&
host
->
addr_space
);
list_add_tail
(
&
dummy_max_addr
.
as_list
,
&
host
->
addr_space
);
}
void
highlevel_add_host
(
struct
hpsb_host
*
host
)
{
struct
hpsb_highlevel
*
hl
;
init_hpsb_highlevel
(
host
);
down_read
(
&
hl_drivers_sem
);
list_for_each_entry
(
hl
,
&
hl_drivers
,
hl_list
)
{
if
(
hl
->
add_host
)
...
...
@@ -448,7 +465,7 @@ void highlevel_host_reset(struct hpsb_host *host)
struct
hpsb_highlevel
*
hl
;
read_lock
(
&
hl_irqs_lock
);
list_for_each_entry
(
hl
,
&
hl_irqs
,
hl
_list
)
{
list_for_each_entry
(
hl
,
&
hl_irqs
,
irq
_list
)
{
if
(
hl
->
host_reset
)
hl
->
host_reset
(
host
);
}
...
...
@@ -642,19 +659,3 @@ int highlevel_lock64(struct hpsb_host *host, int nodeid, octlet_t *store,
return
rcode
;
}
void
init_hpsb_highlevel
(
struct
hpsb_host
*
host
)
{
INIT_LIST_HEAD
(
&
dummy_zero_addr
.
as_list
);
INIT_LIST_HEAD
(
&
dummy_zero_addr
.
addr_list
);
INIT_LIST_HEAD
(
&
dummy_max_addr
.
as_list
);
INIT_LIST_HEAD
(
&
dummy_max_addr
.
addr_list
);
dummy_zero_addr
.
op
=
dummy_max_addr
.
op
=
&
dummy_ops
;
dummy_zero_addr
.
start
=
dummy_zero_addr
.
end
=
0
;
dummy_max_addr
.
start
=
dummy_max_addr
.
end
=
((
u64
)
1
)
<<
48
;
list_add_tail
(
&
dummy_zero_addr
.
as_list
,
&
host
->
addr_space
);
list_add_tail
(
&
dummy_max_addr
.
as_list
,
&
host
->
addr_space
);
}
drivers/ieee1394/highlevel.h
View file @
f66f79ef
...
...
@@ -182,7 +182,4 @@ int hpsb_set_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host, void *d
/* Retrieve hpsb_host using a highlevel handle and a key */
struct
hpsb_host
*
hpsb_get_host_bykey
(
struct
hpsb_highlevel
*
hl
,
unsigned
long
key
);
/* Initialize the highlevel system */
void
init_hpsb_highlevel
(
struct
hpsb_host
*
host
);
#endif
/* IEEE1394_HIGHLEVEL_H */
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