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
ce6c6213
Commit
ce6c6213
authored
Oct 31, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 31, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill pcibios in ppc32
parent
b2a833ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
arch/ppc/platforms/mcpn765_setup.c
arch/ppc/platforms/mcpn765_setup.c
+2
-2
arch/ppc/platforms/prep_pci.c
arch/ppc/platforms/prep_pci.c
+2
-3
No files found.
arch/ppc/platforms/mcpn765_setup.c
View file @
ce6c6213
...
...
@@ -154,9 +154,9 @@ mcpn765_setup_via_82c586b(void)
* PPCBug doesn't set the enable bits for the IDE device.
* Turn them on now.
*/
pci
bios_read_config_byte
(
dev
->
bus
->
number
,
dev
->
devfn
,
0x40
,
&
c
);
pci
_read_config_byte
(
dev
,
0x40
,
&
c
);
c
|=
0x03
;
pci
bios_write_config_byte
(
dev
->
bus
->
number
,
dev
->
devfn
,
0x40
,
c
);
pci
_write_config_byte
(
dev
,
0x40
,
c
);
return
;
}
...
...
arch/ppc/platforms/prep_pci.c
View file @
ce6c6213
...
...
@@ -1089,8 +1089,7 @@ Powerplus_Map_Non0(struct pci_dev *dev)
devnum
=
PCI_SLOT
(
tdev
->
devfn
);
/* Read the interrupt pin of the device and adjust for indexing */
pcibios_read_config_byte
(
dev
->
bus
->
number
,
dev
->
devfn
,
PCI_INTERRUPT_PIN
,
&
intpin
);
pci_read_config_byte
(
dev
,
PCI_INTERRUPT_PIN
,
&
intpin
);
/* If device doesn't request an interrupt, return */
if
(
(
intpin
<
1
)
||
(
intpin
>
4
)
)
...
...
@@ -1162,7 +1161,7 @@ prep_pcibios_fixup(void)
pci_for_each_dev
(
dev
)
{
if
(
dev
->
bus
->
number
==
0
)
{
dev
->
irq
=
openpic_to_irq
(
Motherboard_map
[
PCI_SLOT
(
dev
->
devfn
)]);
pci
bios_write_config_byte
(
dev
->
bus
->
number
,
dev
->
devfn
,
PCI_INTERRUPT_LINE
,
dev
->
irq
);
pci
_write_config_byte
(
dev
,
PCI_INTERRUPT_LINE
,
dev
->
irq
);
}
else
{
if
(
Motherboard_non0
!=
NULL
)
Motherboard_non0
(
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