1 /* n2_asm.S: Hypervisor calls for NCS support.
3 * Copyright (C) 2009 David S. Miller <davem@davemloft.net>
6 #include <linux/linkage.h>
7 #include <asm/hypervisor.h>
12 * o2: num entries in queue
13 * o3: address of queue handle return
15 ENTRY(sun4v_ncs_qconf)
16 mov HV_FAST_NCS_QCONF, %o5
21 ENDPROC(sun4v_ncs_qconf)
24 * %o1: address of queue type return
25 * %o2: address of queue base address return
26 * %o3: address of queue num entries return
28 ENTRY(sun4v_ncs_qinfo)
32 mov HV_FAST_NCS_QINFO, %o5
39 ENDPROC(sun4v_ncs_qinfo)
42 * %o1: address of head offset return
44 ENTRY(sun4v_ncs_gethead)
46 mov HV_FAST_NCS_GETHEAD, %o5
51 ENDPROC(sun4v_ncs_gethead)
54 * %o1: address of tail offset return
56 ENTRY(sun4v_ncs_gettail)
58 mov HV_FAST_NCS_GETTAIL, %o5
63 ENDPROC(sun4v_ncs_gettail)
66 * %o1: new tail offset
68 ENTRY(sun4v_ncs_settail)
69 mov HV_FAST_NCS_SETTAIL, %o5
73 ENDPROC(sun4v_ncs_settail)
76 * %o1: address of devino return
78 ENTRY(sun4v_ncs_qhandle_to_devino)
80 mov HV_FAST_NCS_QHANDLE_TO_DEVINO, %o5
85 ENDPROC(sun4v_ncs_qhandle_to_devino)
88 * %o1: new head offset
90 ENTRY(sun4v_ncs_sethead_marker)
91 mov HV_FAST_NCS_SETHEAD_MARKER, %o5
95 ENDPROC(sun4v_ncs_sethead_marker)