1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* n2_asm.S: Hypervisor calls for NCS support.
4 * Copyright (C) 2009 David S. Miller <davem@davemloft.net>
7 #include <linux/linkage.h>
8 #include <asm/hypervisor.h>
13 * o2: num entries in queue
14 * o3: address of queue handle return
16 ENTRY(sun4v_ncs_qconf)
17 mov HV_FAST_NCS_QCONF, %o5
22 ENDPROC(sun4v_ncs_qconf)
25 * %o1: address of queue type return
26 * %o2: address of queue base address return
27 * %o3: address of queue num entries return
29 ENTRY(sun4v_ncs_qinfo)
33 mov HV_FAST_NCS_QINFO, %o5
40 ENDPROC(sun4v_ncs_qinfo)
43 * %o1: address of head offset return
45 ENTRY(sun4v_ncs_gethead)
47 mov HV_FAST_NCS_GETHEAD, %o5
52 ENDPROC(sun4v_ncs_gethead)
55 * %o1: address of tail offset return
57 ENTRY(sun4v_ncs_gettail)
59 mov HV_FAST_NCS_GETTAIL, %o5
64 ENDPROC(sun4v_ncs_gettail)
67 * %o1: new tail offset
69 ENTRY(sun4v_ncs_settail)
70 mov HV_FAST_NCS_SETTAIL, %o5
74 ENDPROC(sun4v_ncs_settail)
77 * %o1: address of devino return
79 ENTRY(sun4v_ncs_qhandle_to_devino)
81 mov HV_FAST_NCS_QHANDLE_TO_DEVINO, %o5
86 ENDPROC(sun4v_ncs_qhandle_to_devino)
89 * %o1: new head offset
91 ENTRY(sun4v_ncs_sethead_marker)
92 mov HV_FAST_NCS_SETHEAD_MARKER, %o5
96 ENDPROC(sun4v_ncs_sethead_marker)