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
f6d0f9ea
Commit
f6d0f9ea
authored
Mar 01, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Provide pci_device_to_OF_node() just like powerpc.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
45bcca67
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
arch/sparc/kernel/pcic.c
arch/sparc/kernel/pcic.c
+8
-0
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+8
-0
include/asm-sparc/pci.h
include/asm-sparc/pci.h
+3
-0
include/asm-sparc64/pci.h
include/asm-sparc64/pci.h
+3
-0
No files found.
arch/sparc/kernel/pcic.c
View file @
f6d0f9ea
...
@@ -944,6 +944,14 @@ int pcibios_assign_resource(struct pci_dev *pdev, int resource)
...
@@ -944,6 +944,14 @@ int pcibios_assign_resource(struct pci_dev *pdev, int resource)
return
-
ENXIO
;
return
-
ENXIO
;
}
}
struct
device_node
*
pci_device_to_OF_node
(
struct
pci_dev
*
pdev
)
{
struct
pcidev_cookie
*
pc
=
pdev
->
sysdata
;
return
pc
->
prom_node
;
}
EXPORT_SYMBOL
(
pci_device_to_OF_node
);
/*
/*
* This probably belongs here rather than ioport.c because
* This probably belongs here rather than ioport.c because
* we do not want this crud linked into SBus kernels.
* we do not want this crud linked into SBus kernels.
...
...
arch/sparc64/kernel/pci.c
View file @
f6d0f9ea
...
@@ -681,4 +681,12 @@ void arch_teardown_msi_irq(unsigned int virt_irq)
...
@@ -681,4 +681,12 @@ void arch_teardown_msi_irq(unsigned int virt_irq)
}
}
#endif
/* !(CONFIG_PCI_MSI) */
#endif
/* !(CONFIG_PCI_MSI) */
struct
device_node
*
pci_device_to_OF_node
(
struct
pci_dev
*
pdev
)
{
struct
pcidev_cookie
*
pc
=
pdev
->
sysdata
;
return
pc
->
op
->
node
;
}
EXPORT_SYMBOL
(
pci_device_to_OF_node
);
#endif
/* !(CONFIG_PCI) */
#endif
/* !(CONFIG_PCI) */
include/asm-sparc/pci.h
View file @
f6d0f9ea
...
@@ -165,6 +165,9 @@ static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
...
@@ -165,6 +165,9 @@ static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
return
(
dma_addr
==
PCI_DMA_ERROR_CODE
);
return
(
dma_addr
==
PCI_DMA_ERROR_CODE
);
}
}
struct
device_node
;
extern
struct
device_node
*
pci_device_to_OF_node
(
struct
pci_dev
*
pdev
);
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
/* generic pci stuff */
/* generic pci stuff */
...
...
include/asm-sparc64/pci.h
View file @
f6d0f9ea
...
@@ -312,6 +312,9 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
...
@@ -312,6 +312,9 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
return
PCI_IRQ_NONE
;
return
PCI_IRQ_NONE
;
}
}
struct
device_node
;
extern
struct
device_node
*
pci_device_to_OF_node
(
struct
pci_dev
*
pdev
);
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
#endif
/* __SPARC64_PCI_H */
#endif
/* __SPARC64_PCI_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