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
Kirill Smelkov
linux
Commits
6c816ad1
Commit
6c816ad1
authored
Feb 19, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IEEE1394(r1141): Add an "ignore_drivers" global default.
parent
40f0e2b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
drivers/ieee1394/nodemgr.c
drivers/ieee1394/nodemgr.c
+26
-0
No files found.
drivers/ieee1394/nodemgr.c
View file @
6c816ad1
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <linux/completion.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/moduleparam.h>
#include <asm/atomic.h>
#include <asm/atomic.h>
#include "ieee1394_types.h"
#include "ieee1394_types.h"
...
@@ -28,6 +29,10 @@
...
@@ -28,6 +29,10 @@
#include "csr.h"
#include "csr.h"
#include "nodemgr.h"
#include "nodemgr.h"
static
int
ignore_drivers
=
0
;
module_param
(
ignore_drivers
,
int
,
0444
);
MODULE_PARM_DESC
(
ignore_drivers
,
"Disable automatic probing for drivers."
);
struct
nodemgr_csr_info
{
struct
nodemgr_csr_info
{
struct
hpsb_host
*
host
;
struct
hpsb_host
*
host
;
nodeid_t
nodeid
;
nodeid_t
nodeid
;
...
@@ -370,9 +375,29 @@ static ssize_t fw_get_rescan(struct bus_type *bus, char *buf)
...
@@ -370,9 +375,29 @@ static ssize_t fw_get_rescan(struct bus_type *bus, char *buf)
}
}
static
BUS_ATTR
(
rescan
,
S_IWUSR
|
S_IRUGO
,
fw_get_rescan
,
fw_set_rescan
);
static
BUS_ATTR
(
rescan
,
S_IWUSR
|
S_IRUGO
,
fw_get_rescan
,
fw_set_rescan
);
static
ssize_t
fw_set_ignore_drivers
(
struct
bus_type
*
bus
,
const
char
*
buf
,
size_t
count
)
{
int
state
=
simple_strtoul
(
buf
,
NULL
,
10
);
if
(
state
==
1
)
ignore_drivers
=
1
;
else
if
(
!
state
)
ignore_drivers
=
0
;
return
count
;
}
static
ssize_t
fw_get_ignore_drivers
(
struct
bus_type
*
bus
,
char
*
buf
)
{
return
sprintf
(
buf
,
"%d
\n
"
,
ignore_drivers
);
}
static
BUS_ATTR
(
ignore_drivers
,
S_IWUSR
|
S_IRUGO
,
fw_get_ignore_drivers
,
fw_set_ignore_drivers
);
struct
bus_attribute
*
const
fw_bus_attrs
[]
=
{
struct
bus_attribute
*
const
fw_bus_attrs
[]
=
{
&
bus_attr_destroy_node
,
&
bus_attr_destroy_node
,
&
bus_attr_rescan
,
&
bus_attr_rescan
,
&
bus_attr_ignore_drivers
,
NULL
NULL
};
};
...
@@ -854,6 +879,7 @@ static struct unit_directory *nodemgr_process_unit_directory
...
@@ -854,6 +879,7 @@ static struct unit_directory *nodemgr_process_unit_directory
memset
(
ud
,
0
,
sizeof
(
struct
unit_directory
));
memset
(
ud
,
0
,
sizeof
(
struct
unit_directory
));
ud
->
ne
=
ne
;
ud
->
ne
=
ne
;
ud
->
ignore_driver
=
ignore_drivers
;
ud
->
address
=
ud_kv
->
offset
+
CSR1212_CONFIG_ROM_SPACE_BASE
;
ud
->
address
=
ud_kv
->
offset
+
CSR1212_CONFIG_ROM_SPACE_BASE
;
ud
->
ud_kv
=
ud_kv
;
ud
->
ud_kv
=
ud_kv
;
ud
->
id
=
(
*
id
)
++
;
ud
->
id
=
(
*
id
)
++
;
...
...
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