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
f07c72a1
Commit
f07c72a1
authored
May 14, 2003
by
David S. Miller
Committed by
David S. Miller
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SUNHME]: Use PCI config space if hm-rev property does not exist.
parent
917ba3a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
drivers/net/sunhme.c
drivers/net/sunhme.c
+7
-3
No files found.
drivers/net/sunhme.c
View file @
f07c72a1
...
...
@@ -3092,8 +3092,12 @@ static int __init happy_meal_pci_init(struct pci_dev *pdev)
#ifdef __sparc__
hp
->
hm_revision
=
prom_getintdefault
(
node
,
"hm-rev"
,
0xff
);
if
(
hp
->
hm_revision
==
0xff
)
hp
->
hm_revision
=
0xa0
;
if
(
hp
->
hm_revision
==
0xff
)
{
unsigned
char
prev
;
pci_read_config_byte
(
pdev
,
PCI_REVISION_ID
,
&
prev
);
hp
->
hm_revision
=
0xc0
|
(
prev
&
0x0f
);
}
#else
/* works with this on non-sparc hosts */
hp
->
hm_revision
=
0x20
;
...
...
@@ -3102,7 +3106,7 @@ static int __init happy_meal_pci_init(struct pci_dev *pdev)
/* Now enable the feature flags we can. */
if
(
hp
->
hm_revision
==
0x20
||
hp
->
hm_revision
==
0x21
)
hp
->
happy_flags
=
HFLAG_20_21
;
else
if
(
hp
->
hm_revision
!=
0xa0
)
else
if
(
hp
->
hm_revision
!=
0xa0
&&
hp
->
hm_revision
!=
0xc0
)
hp
->
happy_flags
=
HFLAG_NOT_A0
;
if
(
qp
!=
NULL
)
...
...
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