1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* n2-asm.S: Niagara2 RNG hypervisor call assembler.
4 * Copyright (C) 2008 David S. Miller <davem@davemloft.net>
6 #include <linux/linkage.h>
7 #include <asm/hypervisor.h>
12 ENTRY(sun4v_rng_get_diag_ctl)
13 mov HV_FAST_RNG_GET_DIAG_CTL, %o5
17 ENDPROC(sun4v_rng_get_diag_ctl)
19 ENTRY(sun4v_rng_ctl_read_v1)
22 mov HV_FAST_RNG_CTL_READ, %o5
27 ENDPROC(sun4v_rng_ctl_read_v1)
29 ENTRY(sun4v_rng_ctl_read_v2)
33 mov HV_FAST_RNG_CTL_READ, %o5
41 ENDPROC(sun4v_rng_ctl_read_v2)
43 ENTRY(sun4v_rng_ctl_write_v1)
45 mov HV_FAST_RNG_CTL_WRITE, %o5
49 ENDPROC(sun4v_rng_ctl_write_v1)
51 ENTRY(sun4v_rng_ctl_write_v2)
52 mov HV_FAST_RNG_CTL_WRITE, %o5
56 ENDPROC(sun4v_rng_ctl_write_v2)
58 ENTRY(sun4v_rng_data_read_diag_v1)
60 mov HV_FAST_RNG_DATA_READ_DIAG, %o5
64 ENDPROC(sun4v_rng_data_read_diag_v1)
66 ENTRY(sun4v_rng_data_read_diag_v2)
68 mov HV_FAST_RNG_DATA_READ_DIAG, %o5
72 ENDPROC(sun4v_rng_data_read_diag_v2)
74 ENTRY(sun4v_rng_data_read)
76 mov HV_FAST_RNG_DATA_READ, %o5
80 ENDPROC(sun4v_rng_data_read)