提交 85dfa19b 编写于 作者: D David S. Miller

[SPARC64]: Move devino_to_sysino out of pci_sun4v_asm.S

It is not PCI specific, it is for all system interrupts.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 059833eb
...@@ -1695,3 +1695,15 @@ hard_smp_processor_id: ...@@ -1695,3 +1695,15 @@ hard_smp_processor_id:
retl retl
nop nop
#endif #endif
/* %o0: devhandle
* %o1: devino
*
* returns %o0: sysino
*/
.globl pci_sun4v_devino_to_sysino
sun4v_devino_to_sysino:
mov HV_FAST_INTR_DEVINO2SYSINO, %o5
ta HV_FAST_TRAP
retl
mov %o1, %o0
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
#ifndef _PCI_SUN4V_H #ifndef _PCI_SUN4V_H
#define _PCI_SUN4V_H #define _PCI_SUN4V_H
extern unsigned long pci_sun4v_devino_to_sysino(unsigned long devhandle,
unsigned long deino);
extern unsigned long pci_sun4v_iommu_map(unsigned long devhandle, extern unsigned long pci_sun4v_iommu_map(unsigned long devhandle,
unsigned long tsbid, unsigned long tsbid,
unsigned long num_ttes, unsigned long num_ttes,
......
...@@ -5,18 +5,6 @@ ...@@ -5,18 +5,6 @@
#include <asm/hypervisor.h> #include <asm/hypervisor.h>
/* %o0: devhandle
* %o1: devino
*
* returns %o0: sysino
*/
.globl pci_sun4v_devino_to_sysino
pci_sun4v_devino_to_sysino:
mov HV_FAST_INTR_DEVINO2SYSINO, %o5
ta HV_FAST_TRAP
retl
mov %o1, %o0
/* %o0: devhandle /* %o0: devhandle
* %o1: tsbid * %o1: tsbid
* %o2: num ttes * %o2: num ttes
......
...@@ -1203,6 +1203,11 @@ struct hv_trap_trace_entry { ...@@ -1203,6 +1203,11 @@ struct hv_trap_trace_entry {
*/ */
#define HV_FAST_INTR_DEVINO2SYSINO 0xa0 #define HV_FAST_INTR_DEVINO2SYSINO 0xa0
#ifndef __ASSEMBLY__
extern unsigned long sun4v_devino_to_sysino(unsigned long devhandle,
unsigned long devino);
#endif
/* intr_getenabled() /* intr_getenabled()
* TRAP: HV_FAST_TRAP * TRAP: HV_FAST_TRAP
* FUNCTION: HV_FAST_INTR_GETENABLED * FUNCTION: HV_FAST_INTR_GETENABLED
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册