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
8ce72f29
Commit
8ce72f29
authored
Sep 27, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MCA] convert mca-proc to use not-deprecated functions
parent
301442ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
drivers/mca/mca-proc.c
drivers/mca/mca-proc.c
+8
-3
No files found.
drivers/mca/mca-proc.c
View file @
8ce72f29
...
@@ -120,12 +120,13 @@ static int mca_default_procfn(char* buf, struct mca_device *mca_dev)
...
@@ -120,12 +120,13 @@ static int mca_default_procfn(char* buf, struct mca_device *mca_dev)
len
+=
sprintf
(
buf
+
len
,
"Id: %02x%02x
\n
"
,
len
+=
sprintf
(
buf
+
len
,
"Id: %02x%02x
\n
"
,
mca_dev
->
pos
[
1
],
mca_dev
->
pos
[
0
]);
mca_dev
->
pos
[
1
],
mca_dev
->
pos
[
0
]);
len
+=
sprintf
(
buf
+
len
,
"Enabled: %s
\n
POS: "
,
len
+=
sprintf
(
buf
+
len
,
"Enabled: %s
\n
POS: "
,
mca_isenabled
(
slot
)
?
"Yes"
:
"No"
);
mca_device_status
(
mca_dev
)
==
MCA_ADAPTER_NORMAL
?
"Yes"
:
"No"
);
for
(
i
=
0
;
i
<
8
;
i
++
)
{
for
(
i
=
0
;
i
<
8
;
i
++
)
{
len
+=
sprintf
(
buf
+
len
,
"%02x "
,
mca_dev
->
pos
[
i
]);
len
+=
sprintf
(
buf
+
len
,
"%02x "
,
mca_dev
->
pos
[
i
]);
}
}
len
+=
sprintf
(
buf
+
len
,
"
\n
Driver Installed: %s"
,
len
+=
sprintf
(
buf
+
len
,
"
\n
Driver Installed: %s"
,
mca_
is_adapter_used
(
slot
)
?
"Yes"
:
"No"
);
mca_
device_claimed
(
mca_dev
)
?
"Yes"
:
"No"
);
buf
[
len
++
]
=
'\n'
;
buf
[
len
++
]
=
'\n'
;
buf
[
len
]
=
0
;
buf
[
len
]
=
0
;
...
@@ -189,6 +190,7 @@ void __init mca_do_proc_init(void)
...
@@ -189,6 +190,7 @@ void __init mca_do_proc_init(void)
/* Initialize /proc/mca entries for existing adapters */
/* Initialize /proc/mca entries for existing adapters */
for
(
i
=
0
;
i
<
MCA_NUMADAPTERS
;
i
++
)
{
for
(
i
=
0
;
i
<
MCA_NUMADAPTERS
;
i
++
)
{
enum
MCA_AdapterStatus
status
;
mca_dev
=
mca_find_device_by_slot
(
i
);
mca_dev
=
mca_find_device_by_slot
(
i
);
if
(
!
mca_dev
)
if
(
!
mca_dev
)
continue
;
continue
;
...
@@ -200,7 +202,10 @@ void __init mca_do_proc_init(void)
...
@@ -200,7 +202,10 @@ void __init mca_do_proc_init(void)
else
if
(
i
==
MCA_INTEGSCSI
)
sprintf
(
mca_dev
->
procname
,
"scsi"
);
else
if
(
i
==
MCA_INTEGSCSI
)
sprintf
(
mca_dev
->
procname
,
"scsi"
);
else
if
(
i
==
MCA_MOTHERBOARD
)
sprintf
(
mca_dev
->
procname
,
"planar"
);
else
if
(
i
==
MCA_MOTHERBOARD
)
sprintf
(
mca_dev
->
procname
,
"planar"
);
if
(
!
mca_isadapter
(
i
))
continue
;
status
=
mca_device_status
(
mca_dev
);
if
(
status
!=
MCA_ADAPTER_NORMAL
&&
status
!=
MCA_ADAPTER_DISABLED
)
continue
;
node
=
create_proc_read_entry
(
mca_dev
->
procname
,
0
,
proc_mca
,
node
=
create_proc_read_entry
(
mca_dev
->
procname
,
0
,
proc_mca
,
mca_read_proc
,
(
void
*
)
mca_dev
);
mca_read_proc
,
(
void
*
)
mca_dev
);
...
...
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