Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hypervisor.h File Reference

Go to the source code of this file.

Data Structures

struct  hv_tsb_descr
 
struct  hv_fault_status
 
struct  hv_trap_trace_control
 
struct  hv_trap_trace_entry
 
struct  ldc_mtable_entry
 
struct  hv_mmu_statistics
 
struct  hv_ncs_queue_entry
 
struct  hv_ncs_qconf_arg
 
struct  hv_ncs_qtail_update_arg
 

Macros

#define HV_FAST_TRAP   0x80
 
#define HV_MMU_MAP_ADDR_TRAP   0x83
 
#define HV_MMU_UNMAP_ADDR_TRAP   0x84
 
#define HV_TTRACE_ADDENTRY_TRAP   0x85
 
#define HV_CORE_TRAP   0xff
 
#define HV_EOK   0 /* Successful return */
 
#define HV_ENOCPU   1 /* Invalid CPU id */
 
#define HV_ENORADDR   2 /* Invalid real address */
 
#define HV_ENOINTR   3 /* Invalid interrupt id */
 
#define HV_EBADPGSZ   4 /* Invalid pagesize encoding */
 
#define HV_EBADTSB   5 /* Invalid TSB description */
 
#define HV_EINVAL   6 /* Invalid argument */
 
#define HV_EBADTRAP   7 /* Invalid function number */
 
#define HV_EBADALIGN   8 /* Invalid address alignment */
 
#define HV_EWOULDBLOCK   9 /* Cannot complete w/o blocking */
 
#define HV_ENOACCESS   10 /* No access to resource */
 
#define HV_EIO   11 /* I/O error */
 
#define HV_ECPUERROR   12 /* CPU in error state */
 
#define HV_ENOTSUPPORTED   13 /* Function not supported */
 
#define HV_ENOMAP   14 /* No mapping found */
 
#define HV_ETOOMANY   15 /* Too many items specified */
 
#define HV_ECHANNEL   16 /* Invalid LDC channel */
 
#define HV_EBUSY   17 /* Resource busy */
 
#define HV_FAST_MACH_EXIT   0x00
 
#define HV_FAST_MACH_DESC   0x01
 
#define HV_FAST_MACH_SIR   0x02
 
#define HV_FAST_MACH_SET_WATCHDOG   0x05
 
#define HV_FAST_CPU_START   0x10
 
#define HV_FAST_CPU_STOP   0x11
 
#define HV_FAST_CPU_YIELD   0x12
 
#define HV_FAST_CPU_QCONF   0x14
 
#define HV_CPU_QUEUE_CPU_MONDO   0x3c
 
#define HV_CPU_QUEUE_DEVICE_MONDO   0x3d
 
#define HV_CPU_QUEUE_RES_ERROR   0x3e
 
#define HV_CPU_QUEUE_NONRES_ERROR   0x3f
 
#define HV_FAST_CPU_QINFO   0x15
 
#define HV_FAST_CPU_MONDO_SEND   0x42
 
#define HV_FAST_CPU_MYID   0x16
 
#define HV_FAST_CPU_STATE   0x17
 
#define HV_CPU_STATE_STOPPED   0x01
 
#define HV_CPU_STATE_RUNNING   0x02
 
#define HV_CPU_STATE_ERROR   0x03
 
#define HV_FAST_CPU_SET_RTBA   0x18
 
#define HV_FAST_CPU_GET_RTBA   0x19
 
#define HV_TSB_DESCR_PGSZ_IDX_OFFSET   0x00
 
#define HV_TSB_DESCR_ASSOC_OFFSET   0x02
 
#define HV_TSB_DESCR_NUM_TTES_OFFSET   0x04
 
#define HV_TSB_DESCR_CTX_IDX_OFFSET   0x08
 
#define HV_TSB_DESCR_PGSZ_MASK_OFFSET   0x0c
 
#define HV_TSB_DESCR_TSB_BASE_OFFSET   0x10
 
#define HV_TSB_DESCR_RESV_OFFSET   0x18
 
#define HV_PGSZ_MASK_8K   (1 << 0)
 
#define HV_PGSZ_MASK_64K   (1 << 1)
 
#define HV_PGSZ_MASK_512K   (1 << 2)
 
#define HV_PGSZ_MASK_4MB   (1 << 3)
 
#define HV_PGSZ_MASK_32MB   (1 << 4)
 
#define HV_PGSZ_MASK_256MB   (1 << 5)
 
#define HV_PGSZ_MASK_2GB   (1 << 6)
 
#define HV_PGSZ_MASK_16GB   (1 << 7)
 
#define HV_PGSZ_IDX_8K   0
 
#define HV_PGSZ_IDX_64K   1
 
#define HV_PGSZ_IDX_512K   2
 
#define HV_PGSZ_IDX_4MB   3
 
#define HV_PGSZ_IDX_32MB   4
 
#define HV_PGSZ_IDX_256MB   5
 
#define HV_PGSZ_IDX_2GB   6
 
#define HV_PGSZ_IDX_16GB   7
 
#define HV_FAULT_I_TYPE_OFFSET   0x00
 
#define HV_FAULT_I_ADDR_OFFSET   0x08
 
#define HV_FAULT_I_CTX_OFFSET   0x10
 
#define HV_FAULT_D_TYPE_OFFSET   0x40
 
#define HV_FAULT_D_ADDR_OFFSET   0x48
 
#define HV_FAULT_D_CTX_OFFSET   0x50
 
#define HV_FAULT_TYPE_FAST_MISS   1
 
#define HV_FAULT_TYPE_FAST_PROT   2
 
#define HV_FAULT_TYPE_MMU_MISS   3
 
#define HV_FAULT_TYPE_INV_RA   4
 
#define HV_FAULT_TYPE_PRIV_VIOL   5
 
#define HV_FAULT_TYPE_PROT_VIOL   6
 
#define HV_FAULT_TYPE_NFO   7
 
#define HV_FAULT_TYPE_NFO_SEFF   8
 
#define HV_FAULT_TYPE_INV_VA   9
 
#define HV_FAULT_TYPE_INV_ASI   10
 
#define HV_FAULT_TYPE_NC_ATOMIC   11
 
#define HV_FAULT_TYPE_PRIV_ACT   12
 
#define HV_FAULT_TYPE_RESV1   13
 
#define HV_FAULT_TYPE_UNALIGNED   14
 
#define HV_FAULT_TYPE_INV_PGSZ   15
 
#define HV_FAULT_TYPE_MULTIPLE   -1
 
#define HV_MMU_DMMU   0x01
 
#define HV_MMU_IMMU   0x02
 
#define HV_MMU_ALL   (HV_MMU_DMMU | HV_MMU_IMMU)
 
#define HV_FAST_MMU_TSB_CTX0   0x20
 
#define HV_FAST_MMU_TSB_CTXNON0   0x21
 
#define HV_FAST_MMU_DEMAP_PAGE   0x22
 
#define HV_FAST_MMU_DEMAP_CTX   0x23
 
#define HV_FAST_MMU_DEMAP_ALL   0x24
 
#define HV_FAST_MMU_MAP_PERM_ADDR   0x25
 
#define HV_FAST_MMU_FAULT_AREA_CONF   0x26
 
#define HV_FAST_MMU_ENABLE   0x27
 
#define HV_FAST_MMU_UNMAP_PERM_ADDR   0x28
 
#define HV_FAST_MMU_TSB_CTX0_INFO   0x29
 
#define HV_FAST_MMU_TSB_CTXNON0_INFO   0x2a
 
#define HV_FAST_MMU_FAULT_AREA_INFO   0x2b
 
#define HV_FAST_MEM_SCRUB   0x31
 
#define HV_FAST_MEM_SYNC   0x32
 
#define HV_FAST_TOD_GET   0x50
 
#define HV_FAST_TOD_SET   0x51
 
#define HV_FAST_CONS_GETCHAR   0x60
 
#define HV_FAST_CONS_PUTCHAR   0x61
 
#define HV_FAST_CONS_READ   0x62
 
#define HV_FAST_CONS_WRITE   0x63
 
#define HV_FAST_MACH_SET_SOFT_STATE   0x70
 
#define HV_SOFT_STATE_NORMAL   0x01
 
#define HV_SOFT_STATE_TRANSITION   0x02
 
#define HV_FAST_MACH_GET_SOFT_STATE   0x71
 
#define HV_FAST_SVC_SEND   0x80
 
#define HV_FAST_SVC_RECV   0x81
 
#define HV_FAST_SVC_GETSTATUS   0x82
 
#define HV_FAST_SVC_SETSTATUS   0x83
 
#define HV_FAST_SVC_CLRSTATUS   0x84
 
#define HV_TRAP_TRACE_CTRL_HEAD_OFFSET   0x00
 
#define HV_TRAP_TRACE_CTRL_TAIL_OFFSET   0x08
 
#define HV_TRAP_TRACE_ENTRY_TYPE   0x00
 
#define HV_TRAP_TRACE_ENTRY_HPSTATE   0x01
 
#define HV_TRAP_TRACE_ENTRY_TL   0x02
 
#define HV_TRAP_TRACE_ENTRY_GL   0x03
 
#define HV_TRAP_TRACE_ENTRY_TT   0x04
 
#define HV_TRAP_TRACE_ENTRY_TAG   0x06
 
#define HV_TRAP_TRACE_ENTRY_TSTATE   0x08
 
#define HV_TRAP_TRACE_ENTRY_TICK   0x10
 
#define HV_TRAP_TRACE_ENTRY_TPC   0x18
 
#define HV_TRAP_TRACE_ENTRY_F1   0x20
 
#define HV_TRAP_TRACE_ENTRY_F2   0x28
 
#define HV_TRAP_TRACE_ENTRY_F3   0x30
 
#define HV_TRAP_TRACE_ENTRY_F4   0x38
 
#define HV_TRAP_TYPE_UNDEF   0x00 /* Entry content undefined */
 
#define HV_TRAP_TYPE_HV   0x01 /* Hypervisor trap entry */
 
#define HV_TRAP_TYPE_GUEST   0xff /* Added via ttrace_addentry() */
 
#define HV_FAST_TTRACE_BUF_CONF   0x90
 
#define HV_FAST_TTRACE_BUF_INFO   0x91
 
#define HV_FAST_TTRACE_ENABLE   0x92
 
#define HV_FAST_TTRACE_FREEZE   0x93
 
#define HV_FAST_DUMP_BUF_UPDATE   0x94
 
#define HV_FAST_DUMP_BUF_INFO   0x95
 
#define HV_INTR_STATE_IDLE   0 /* Nothing pending */
 
#define HV_INTR_STATE_RECEIVED   1 /* Interrupt received by hardware */
 
#define HV_INTR_STATE_DELIVERED   2 /* Interrupt delivered to queue */
 
#define HV_INTR_DISABLED   0 /* sysino not enabled */
 
#define HV_INTR_ENABLED   1 /* sysino enabled */
 
#define HV_FAST_INTR_DEVINO2SYSINO   0xa0
 
#define HV_FAST_INTR_GETENABLED   0xa1
 
#define HV_FAST_INTR_SETENABLED   0xa2
 
#define HV_FAST_INTR_GETSTATE   0xa3
 
#define HV_FAST_INTR_SETSTATE   0xa4
 
#define HV_FAST_INTR_GETTARGET   0xa5
 
#define HV_FAST_INTR_SETTARGET   0xa6
 
#define HV_FAST_VINTR_GET_COOKIE   0xa7
 
#define HV_FAST_VINTR_SET_COOKIE   0xa8
 
#define HV_FAST_VINTR_GET_VALID   0xa9
 
#define HV_FAST_VINTR_SET_VALID   0xaa
 
#define HV_FAST_VINTR_GET_STATE   0xab
 
#define HV_FAST_VINTR_SET_STATE   0xac
 
#define HV_FAST_VINTR_GET_TARGET   0xad
 
#define HV_FAST_VINTR_SET_TARGET   0xae
 
#define HV_PCI_MAP_ATTR_READ   0x01
 
#define HV_PCI_MAP_ATTR_WRITE   0x02
 
#define HV_PCI_DEVICE_BUILD(b, d, f)
 
#define HV_PCI_TSBID(__tsb_num, __tsb_index)   ((((u64)(__tsb_num)) << 32UL) | ((u64)(__tsb_index)))
 
#define HV_PCI_SYNC_FOR_DEVICE   0x01
 
#define HV_PCI_SYNC_FOR_CPU   0x02
 
#define HV_FAST_PCI_IOMMU_MAP   0xb0
 
#define HV_FAST_PCI_IOMMU_DEMAP   0xb1
 
#define HV_FAST_PCI_IOMMU_GETMAP   0xb2
 
#define HV_FAST_PCI_IOMMU_GETBYPASS   0xb3
 
#define HV_FAST_PCI_CONFIG_GET   0xb4
 
#define HV_FAST_PCI_CONFIG_PUT   0xb5
 
#define HV_FAST_PCI_PEEK   0xb6
 
#define HV_FAST_PCI_POKE   0xb7
 
#define HV_FAST_PCI_DMA_SYNC   0xb8
 
#define HV_MSITYPE_MSI32   0x00
 
#define HV_MSITYPE_MSI64   0x01
 
#define HV_MSIQSTATE_IDLE   0x00
 
#define HV_MSIQSTATE_ERROR   0x01
 
#define HV_MSIQ_INVALID   0x00
 
#define HV_MSIQ_VALID   0x01
 
#define HV_MSISTATE_IDLE   0x00
 
#define HV_MSISTATE_DELIVERED   0x01
 
#define HV_MSIVALID_INVALID   0x00
 
#define HV_MSIVALID_VALID   0x01
 
#define HV_PCIE_MSGTYPE_PME_MSG   0x18
 
#define HV_PCIE_MSGTYPE_PME_ACK_MSG   0x1b
 
#define HV_PCIE_MSGTYPE_CORR_MSG   0x30
 
#define HV_PCIE_MSGTYPE_NONFATAL_MSG   0x31
 
#define HV_PCIE_MSGTYPE_FATAL_MSG   0x33
 
#define HV_MSG_INVALID   0x00
 
#define HV_MSG_VALID   0x01
 
#define HV_FAST_PCI_MSIQ_CONF   0xc0
 
#define HV_FAST_PCI_MSIQ_INFO   0xc1
 
#define HV_FAST_PCI_MSIQ_GETVALID   0xc2
 
#define HV_FAST_PCI_MSIQ_SETVALID   0xc3
 
#define HV_FAST_PCI_MSIQ_GETSTATE   0xc4
 
#define HV_FAST_PCI_MSIQ_SETSTATE   0xc5
 
#define HV_FAST_PCI_MSIQ_GETHEAD   0xc6
 
#define HV_FAST_PCI_MSIQ_SETHEAD   0xc7
 
#define HV_FAST_PCI_MSIQ_GETTAIL   0xc8
 
#define HV_FAST_PCI_MSI_GETVALID   0xc9
 
#define HV_FAST_PCI_MSI_SETVALID   0xca
 
#define HV_FAST_PCI_MSI_GETMSIQ   0xcb
 
#define HV_FAST_PCI_MSI_SETMSIQ   0xcc
 
#define HV_FAST_PCI_MSI_GETSTATE   0xcd
 
#define HV_FAST_PCI_MSI_SETSTATE   0xce
 
#define HV_FAST_PCI_MSG_GETMSIQ   0xd0
 
#define HV_FAST_PCI_MSG_SETMSIQ   0xd1
 
#define HV_FAST_PCI_MSG_GETVALID   0xd2
 
#define HV_FAST_PCI_MSG_SETVALID   0xd3
 
#define LDC_CHANNEL_DOWN   0
 
#define LDC_CHANNEL_UP   1
 
#define LDC_CHANNEL_RESETTING   2
 
#define HV_FAST_LDC_TX_QCONF   0xe0
 
#define HV_FAST_LDC_TX_QINFO   0xe1
 
#define HV_FAST_LDC_TX_GET_STATE   0xe2
 
#define HV_FAST_LDC_TX_SET_QTAIL   0xe3
 
#define HV_FAST_LDC_RX_QCONF   0xe4
 
#define HV_FAST_LDC_RX_QINFO   0xe5
 
#define HV_FAST_LDC_RX_GET_STATE   0xe6
 
#define HV_FAST_LDC_RX_SET_QHEAD   0xe7
 
#define LDC_MTE_PADDR   0x0fffffffffffe000 /* pa[55:13] */
 
#define LDC_MTE_COPY_W   0x0000000000000400 /* copy write access */
 
#define LDC_MTE_COPY_R   0x0000000000000200 /* copy read access */
 
#define LDC_MTE_IOMMU_W   0x0000000000000100 /* IOMMU write access */
 
#define LDC_MTE_IOMMU_R   0x0000000000000080 /* IOMMU read access */
 
#define LDC_MTE_EXEC   0x0000000000000040 /* execute */
 
#define LDC_MTE_WRITE   0x0000000000000020 /* read */
 
#define LDC_MTE_READ   0x0000000000000010 /* write */
 
#define LDC_MTE_SZALL   0x000000000000000f /* page size bits */
 
#define LDC_MTE_SZ16GB   0x0000000000000007 /* 16GB page */
 
#define LDC_MTE_SZ2GB   0x0000000000000006 /* 2GB page */
 
#define LDC_MTE_SZ256MB   0x0000000000000005 /* 256MB page */
 
#define LDC_MTE_SZ32MB   0x0000000000000004 /* 32MB page */
 
#define LDC_MTE_SZ4MB   0x0000000000000003 /* 4MB page */
 
#define LDC_MTE_SZ512K   0x0000000000000002 /* 512K page */
 
#define LDC_MTE_SZ64K   0x0000000000000001 /* 64K page */
 
#define LDC_MTE_SZ8K   0x0000000000000000 /* 8K page */
 
#define HV_FAST_LDC_SET_MAP_TABLE   0xea
 
#define HV_FAST_LDC_GET_MAP_TABLE   0xeb
 
#define LDC_COPY_IN   0
 
#define LDC_COPY_OUT   1
 
#define HV_FAST_LDC_COPY   0xec
 
#define LDC_MEM_READ   1
 
#define LDC_MEM_WRITE   2
 
#define LDC_MEM_EXEC   4
 
#define HV_FAST_LDC_MAPIN   0xed
 
#define HV_FAST_LDC_UNMAP   0xee
 
#define HV_FAST_LDC_REVOKE   0xef
 
#define HV_PERF_JBUS_PERF_CTRL_REG   0x00
 
#define HV_PERF_JBUS_PERF_CNT_REG   0x01
 
#define HV_PERF_DRAM_PERF_CTRL_REG_0   0x02
 
#define HV_PERF_DRAM_PERF_CNT_REG_0   0x03
 
#define HV_PERF_DRAM_PERF_CTRL_REG_1   0x04
 
#define HV_PERF_DRAM_PERF_CNT_REG_1   0x05
 
#define HV_PERF_DRAM_PERF_CTRL_REG_2   0x06
 
#define HV_PERF_DRAM_PERF_CNT_REG_2   0x07
 
#define HV_PERF_DRAM_PERF_CTRL_REG_3   0x08
 
#define HV_PERF_DRAM_PERF_CNT_REG_3   0x09
 
#define HV_FAST_GET_PERFREG   0x100
 
#define HV_FAST_SET_PERFREG   0x101
 
#define HV_N2_PERF_SPARC_CTL   0x0
 
#define HV_N2_PERF_DRAM_CTL0   0x1
 
#define HV_N2_PERF_DRAM_CNT0   0x2
 
#define HV_N2_PERF_DRAM_CTL1   0x3
 
#define HV_N2_PERF_DRAM_CNT1   0x4
 
#define HV_N2_PERF_DRAM_CTL2   0x5
 
#define HV_N2_PERF_DRAM_CNT2   0x6
 
#define HV_N2_PERF_DRAM_CTL3   0x7
 
#define HV_N2_PERF_DRAM_CNT3   0x8
 
#define HV_FAST_N2_GET_PERFREG   0x104
 
#define HV_FAST_N2_SET_PERFREG   0x105
 
#define HV_FAST_MMUSTAT_CONF   0x102
 
#define HV_FAST_MMUSTAT_INFO   0x103
 
#define HV_NCS_QCONF   0x01
 
#define HV_NCS_QTAIL_UPDATE   0x02
 
#define MAU_CONTROL_INV_PARITY   0x0000000000002000
 
#define MAU_CONTROL_STRAND   0x0000000000001800
 
#define MAU_CONTROL_BUSY   0x0000000000000400
 
#define MAU_CONTROL_INT   0x0000000000000200
 
#define MAU_CONTROL_OP   0x00000000000001c0
 
#define MAU_CONTROL_OP_SHIFT   6
 
#define MAU_OP_LOAD_MA_MEMORY   0x0
 
#define MAU_OP_STORE_MA_MEMORY   0x1
 
#define MAU_OP_MODULAR_MULT   0x2
 
#define MAU_OP_MODULAR_REDUCE   0x3
 
#define MAU_OP_MODULAR_EXP_LOOP   0x4
 
#define MAU_CONTROL_LEN   0x000000000000003f
 
#define MAU_CONTROL_LEN_SHIFT   0
 
#define HV_NCS_SYNCFLAG_SYNC   0x00
 
#define HV_NCS_SYNCFLAG_ASYNC   0x01
 
#define HV_FAST_NCS_REQUEST   0x110
 
#define HV_FAST_FIRE_GET_PERFREG   0x120
 
#define HV_FAST_FIRE_SET_PERFREG   0x121
 
#define HV_FAST_REBOOT_DATA_SET   0x172
 
#define HV_FAST_VT_GET_PERFREG   0x184
 
#define HV_FAST_VT_SET_PERFREG   0x185
 
#define HV_CORE_SET_VER   0x00
 
#define HV_CORE_PUTCHAR   0x01
 
#define HV_CORE_EXIT   0x02
 
#define HV_CORE_GET_VER   0x03
 
#define HV_GRP_SUN4V   0x0000
 
#define HV_GRP_CORE   0x0001
 
#define HV_GRP_INTR   0x0002
 
#define HV_GRP_SOFT_STATE   0x0003
 
#define HV_GRP_TM   0x0080
 
#define HV_GRP_PCI   0x0100
 
#define HV_GRP_LDOM   0x0101
 
#define HV_GRP_SVC_CHAN   0x0102
 
#define HV_GRP_NCS   0x0103
 
#define HV_GRP_RNG   0x0104
 
#define HV_GRP_PBOOT   0x0105
 
#define HV_GRP_TPM   0x0107
 
#define HV_GRP_SDIO   0x0108
 
#define HV_GRP_SDIO_ERR   0x0109
 
#define HV_GRP_REBOOT_DATA   0x0110
 
#define HV_GRP_NIAG_PERF   0x0200
 
#define HV_GRP_FIRE_PERF   0x0201
 
#define HV_GRP_N2_CPU   0x0202
 
#define HV_GRP_NIU   0x0204
 
#define HV_GRP_VF_CPU   0x0205
 
#define HV_GRP_KT_CPU   0x0209
 
#define HV_GRP_VT_CPU   0x020c
 
#define HV_GRP_DIAG   0x0300
 

Functions

void sun4v_mach_exit (unsigned long exit_code)
 
unsigned long sun4v_mach_desc (unsigned long buffer_pa, unsigned long buf_len, unsigned long *real_buf_len)
 
void sun4v_mach_sir (void)
 
unsigned long sun4v_mach_set_watchdog (unsigned long timeout, unsigned long *orig_timeout)
 
unsigned long sun4v_cpu_start (unsigned long cpuid, unsigned long pc, unsigned long rtba, unsigned long arg0)
 
unsigned long sun4v_cpu_stop (unsigned long cpuid)
 
unsigned long sun4v_cpu_yield (void)
 
unsigned long sun4v_cpu_qconf (unsigned long type, unsigned long queue_paddr, unsigned long num_queue_entries)
 
unsigned long sun4v_cpu_mondo_send (unsigned long cpu_count, unsigned long cpu_list_pa, unsigned long mondo_block_pa)
 
long sun4v_cpu_state (unsigned long cpuid)
 
unsigned long sun4v_mmu_tsb_ctx0 (unsigned long num_descriptions, unsigned long tsb_desc_ra)
 
void sun4v_mmu_demap_all (void)
 
unsigned long sun4v_mmu_map_perm_addr (unsigned long vaddr, unsigned long set_to_zero, unsigned long tte, unsigned long flags)
 
unsigned long sun4v_tod_get (unsigned long *time)
 
unsigned long sun4v_tod_set (unsigned long time)
 
long sun4v_con_getchar (long *status)
 
long sun4v_con_putchar (long c)
 
long sun4v_con_read (unsigned long buffer, unsigned long size, unsigned long *bytes_read)
 
unsigned long sun4v_con_write (unsigned long buffer, unsigned long size, unsigned long *bytes_written)
 
unsigned long sun4v_mach_set_soft_state (unsigned long soft_state, unsigned long msg_string_ra)
 
unsigned long sun4v_svc_send (unsigned long svc_id, unsigned long buffer, unsigned long buffer_size, unsigned long *sent_bytes)
 
unsigned long sun4v_svc_recv (unsigned long svc_id, unsigned long buffer, unsigned long buffer_size, unsigned long *recv_bytes)
 
unsigned long sun4v_svc_getstatus (unsigned long svc_id, unsigned long *status_bits)
 
unsigned long sun4v_svc_setstatus (unsigned long svc_id, unsigned long status_bits)
 
unsigned long sun4v_svc_clrstatus (unsigned long svc_id, unsigned long status_bits)
 
unsigned long sun4v_devino_to_sysino (unsigned long devhandle, unsigned long devino)
 
unsigned long sun4v_intr_getenabled (unsigned long sysino)
 
unsigned long sun4v_intr_setenabled (unsigned long sysino, unsigned long intr_enabled)
 
unsigned long sun4v_intr_getstate (unsigned long sysino)
 
unsigned long sun4v_intr_setstate (unsigned long sysino, unsigned long intr_state)
 
unsigned long sun4v_intr_gettarget (unsigned long sysino)
 
unsigned long sun4v_intr_settarget (unsigned long sysino, unsigned long cpuid)
 
unsigned long sun4v_vintr_get_cookie (unsigned long dev_handle, unsigned long dev_ino, unsigned long *cookie)
 
unsigned long sun4v_vintr_set_cookie (unsigned long dev_handle, unsigned long dev_ino, unsigned long cookie)
 
unsigned long sun4v_vintr_get_valid (unsigned long dev_handle, unsigned long dev_ino, unsigned long *valid)
 
unsigned long sun4v_vintr_set_valid (unsigned long dev_handle, unsigned long dev_ino, unsigned long valid)
 
unsigned long sun4v_vintr_get_state (unsigned long dev_handle, unsigned long dev_ino, unsigned long *state)
 
unsigned long sun4v_vintr_set_state (unsigned long dev_handle, unsigned long dev_ino, unsigned long state)
 
unsigned long sun4v_vintr_get_target (unsigned long dev_handle, unsigned long dev_ino, unsigned long *cpuid)
 
unsigned long sun4v_vintr_set_target (unsigned long dev_handle, unsigned long dev_ino, unsigned long cpuid)
 
unsigned long sun4v_ldc_tx_qconf (unsigned long channel, unsigned long ra, unsigned long num_entries)
 
unsigned long sun4v_ldc_tx_qinfo (unsigned long channel, unsigned long *ra, unsigned long *num_entries)
 
unsigned long sun4v_ldc_tx_get_state (unsigned long channel, unsigned long *head_off, unsigned long *tail_off, unsigned long *chan_state)
 
unsigned long sun4v_ldc_tx_set_qtail (unsigned long channel, unsigned long tail_off)
 
unsigned long sun4v_ldc_rx_qconf (unsigned long channel, unsigned long ra, unsigned long num_entries)
 
unsigned long sun4v_ldc_rx_qinfo (unsigned long channel, unsigned long *ra, unsigned long *num_entries)
 
unsigned long sun4v_ldc_rx_get_state (unsigned long channel, unsigned long *head_off, unsigned long *tail_off, unsigned long *chan_state)
 
unsigned long sun4v_ldc_rx_set_qhead (unsigned long channel, unsigned long head_off)
 
unsigned long sun4v_ldc_set_map_table (unsigned long channel, unsigned long ra, unsigned long num_entries)
 
unsigned long sun4v_ldc_get_map_table (unsigned long channel, unsigned long *ra, unsigned long *num_entries)
 
unsigned long sun4v_ldc_copy (unsigned long channel, unsigned long dir_code, unsigned long tgt_raddr, unsigned long lcl_raddr, unsigned long len, unsigned long *actual_len)
 
unsigned long sun4v_ldc_mapin (unsigned long channel, unsigned long cookie, unsigned long *ra, unsigned long *perm)
 
unsigned long sun4v_ldc_unmap (unsigned long ra)
 
unsigned long sun4v_ldc_revoke (unsigned long channel, unsigned long cookie, unsigned long mte_cookie)
 
unsigned long sun4v_niagara_getperf (unsigned long reg, unsigned long *val)
 
unsigned long sun4v_niagara_setperf (unsigned long reg, unsigned long val)
 
unsigned long sun4v_niagara2_getperf (unsigned long reg, unsigned long *val)
 
unsigned long sun4v_niagara2_setperf (unsigned long reg, unsigned long val)
 
unsigned long sun4v_mmustat_conf (unsigned long ra, unsigned long *orig_ra)
 
unsigned long sun4v_mmustat_info (unsigned long *ra)
 
unsigned long sun4v_ncs_request (unsigned long request, unsigned long arg_ra, unsigned long arg_size)
 
unsigned long sun4v_reboot_data_set (unsigned long ra, unsigned long len)
 
unsigned long sun4v_vt_get_perfreg (unsigned long reg_num, unsigned long *reg_val)
 
unsigned long sun4v_vt_set_perfreg (unsigned long reg_num, unsigned long reg_val)
 
unsigned long sun4v_get_version (unsigned long group, unsigned long *major, unsigned long *minor)
 
unsigned long sun4v_set_version (unsigned long group, unsigned long major, unsigned long minor, unsigned long *actual_minor)
 
int sun4v_hvapi_register (unsigned long group, unsigned long major, unsigned long *minor)
 
void sun4v_hvapi_unregister (unsigned long group)
 
int sun4v_hvapi_get (unsigned long group, unsigned long *major, unsigned long *minor)
 
void sun4v_hvapi_init (void)
 

Macro Definition Documentation

#define HV_CORE_EXIT   0x02

Definition at line 2950 of file hypervisor.h.

#define HV_CORE_GET_VER   0x03

Definition at line 2951 of file hypervisor.h.

#define HV_CORE_PUTCHAR   0x01

Definition at line 2949 of file hypervisor.h.

#define HV_CORE_SET_VER   0x00

Definition at line 2948 of file hypervisor.h.

#define HV_CORE_TRAP   0xff

Definition at line 57 of file hypervisor.h.

#define HV_CPU_QUEUE_CPU_MONDO   0x3c

Definition at line 338 of file hypervisor.h.

#define HV_CPU_QUEUE_DEVICE_MONDO   0x3d

Definition at line 339 of file hypervisor.h.

#define HV_CPU_QUEUE_NONRES_ERROR   0x3f

Definition at line 341 of file hypervisor.h.

#define HV_CPU_QUEUE_RES_ERROR   0x3e

Definition at line 340 of file hypervisor.h.

#define HV_CPU_STATE_ERROR   0x03

Definition at line 425 of file hypervisor.h.

#define HV_CPU_STATE_RUNNING   0x02

Definition at line 424 of file hypervisor.h.

#define HV_CPU_STATE_STOPPED   0x01

Definition at line 423 of file hypervisor.h.

#define HV_EBADALIGN   8 /* Invalid address alignment */

Definition at line 68 of file hypervisor.h.

#define HV_EBADPGSZ   4 /* Invalid pagesize encoding */

Definition at line 64 of file hypervisor.h.

#define HV_EBADTRAP   7 /* Invalid function number */

Definition at line 67 of file hypervisor.h.

#define HV_EBADTSB   5 /* Invalid TSB description */

Definition at line 65 of file hypervisor.h.

#define HV_EBUSY   17 /* Resource busy */

Definition at line 77 of file hypervisor.h.

#define HV_ECHANNEL   16 /* Invalid LDC channel */

Definition at line 76 of file hypervisor.h.

#define HV_ECPUERROR   12 /* CPU in error state */

Definition at line 72 of file hypervisor.h.

#define HV_EINVAL   6 /* Invalid argument */

Definition at line 66 of file hypervisor.h.

#define HV_EIO   11 /* I/O error */

Definition at line 71 of file hypervisor.h.

#define HV_ENOACCESS   10 /* No access to resource */

Definition at line 70 of file hypervisor.h.

#define HV_ENOCPU   1 /* Invalid CPU id */

Definition at line 61 of file hypervisor.h.

#define HV_ENOINTR   3 /* Invalid interrupt id */

Definition at line 63 of file hypervisor.h.

#define HV_ENOMAP   14 /* No mapping found */

Definition at line 74 of file hypervisor.h.

#define HV_ENORADDR   2 /* Invalid real address */

Definition at line 62 of file hypervisor.h.

#define HV_ENOTSUPPORTED   13 /* Function not supported */

Definition at line 73 of file hypervisor.h.

#define HV_EOK   0 /* Successful return */

Definition at line 60 of file hypervisor.h.

#define HV_ETOOMANY   15 /* Too many items specified */

Definition at line 75 of file hypervisor.h.

#define HV_EWOULDBLOCK   9 /* Cannot complete w/o blocking */

Definition at line 69 of file hypervisor.h.

#define HV_FAST_CONS_GETCHAR   0x60

Definition at line 986 of file hypervisor.h.

#define HV_FAST_CONS_PUTCHAR   0x61

Definition at line 1001 of file hypervisor.h.

#define HV_FAST_CONS_READ   0x62

Definition at line 1024 of file hypervisor.h.

#define HV_FAST_CONS_WRITE   0x63

Definition at line 1038 of file hypervisor.h.

#define HV_FAST_CPU_GET_RTBA   0x19

Definition at line 457 of file hypervisor.h.

#define HV_FAST_CPU_MONDO_SEND   0x42

Definition at line 394 of file hypervisor.h.

#define HV_FAST_CPU_MYID   0x16

Definition at line 410 of file hypervisor.h.

#define HV_FAST_CPU_QCONF   0x14

Definition at line 337 of file hypervisor.h.

#define HV_FAST_CPU_QINFO   0x15

Definition at line 366 of file hypervisor.h.

#define HV_FAST_CPU_SET_RTBA   0x18

Definition at line 446 of file hypervisor.h.

#define HV_FAST_CPU_START   0x10

Definition at line 250 of file hypervisor.h.

#define HV_FAST_CPU_STATE   0x17

Definition at line 422 of file hypervisor.h.

#define HV_FAST_CPU_STOP   0x11

Definition at line 278 of file hypervisor.h.

#define HV_FAST_CPU_YIELD   0x12

Definition at line 295 of file hypervisor.h.

#define HV_FAST_DUMP_BUF_INFO   0x95

Definition at line 1402 of file hypervisor.h.

#define HV_FAST_DUMP_BUF_UPDATE   0x94

Definition at line 1388 of file hypervisor.h.

#define HV_FAST_FIRE_GET_PERFREG   0x120

Definition at line 2927 of file hypervisor.h.

#define HV_FAST_FIRE_SET_PERFREG   0x121

Definition at line 2928 of file hypervisor.h.

#define HV_FAST_GET_PERFREG   0x100

Definition at line 2700 of file hypervisor.h.

#define HV_FAST_INTR_DEVINO2SYSINO   0xa0

Definition at line 1458 of file hypervisor.h.

#define HV_FAST_INTR_GETENABLED   0xa1

Definition at line 1476 of file hypervisor.h.

#define HV_FAST_INTR_GETSTATE   0xa3

Definition at line 1508 of file hypervisor.h.

#define HV_FAST_INTR_GETTARGET   0xa5

Definition at line 1546 of file hypervisor.h.

#define HV_FAST_INTR_SETENABLED   0xa2

Definition at line 1492 of file hypervisor.h.

#define HV_FAST_INTR_SETSTATE   0xa4

Definition at line 1528 of file hypervisor.h.

#define HV_FAST_INTR_SETTARGET   0xa6

Definition at line 1563 of file hypervisor.h.

#define HV_FAST_LDC_COPY   0xec

Definition at line 2594 of file hypervisor.h.

#define HV_FAST_LDC_GET_MAP_TABLE   0xeb

Definition at line 2578 of file hypervisor.h.

#define HV_FAST_LDC_MAPIN   0xed

Definition at line 2609 of file hypervisor.h.

#define HV_FAST_LDC_REVOKE   0xef

Definition at line 2627 of file hypervisor.h.

#define HV_FAST_LDC_RX_GET_STATE   0xe6

Definition at line 2503 of file hypervisor.h.

#define HV_FAST_LDC_RX_QCONF   0xe4

Definition at line 2468 of file hypervisor.h.

#define HV_FAST_LDC_RX_QINFO   0xe5

Definition at line 2487 of file hypervisor.h.

#define HV_FAST_LDC_RX_SET_QHEAD   0xe7

Definition at line 2522 of file hypervisor.h.

#define HV_FAST_LDC_SET_MAP_TABLE   0xea

Definition at line 2565 of file hypervisor.h.

#define HV_FAST_LDC_TX_GET_STATE   0xe2

Definition at line 2411 of file hypervisor.h.

#define HV_FAST_LDC_TX_QCONF   0xe0

Definition at line 2376 of file hypervisor.h.

#define HV_FAST_LDC_TX_QINFO   0xe1

Definition at line 2395 of file hypervisor.h.

#define HV_FAST_LDC_TX_SET_QTAIL   0xe3

Definition at line 2432 of file hypervisor.h.

#define HV_FAST_LDC_UNMAP   0xee

Definition at line 2617 of file hypervisor.h.

#define HV_FAST_MACH_DESC   0x01

Definition at line 127 of file hypervisor.h.

#define HV_FAST_MACH_EXIT   0x00

Definition at line 98 of file hypervisor.h.

#define HV_FAST_MACH_GET_SOFT_STATE   0x71

Definition at line 1102 of file hypervisor.h.

#define HV_FAST_MACH_SET_SOFT_STATE   0x70

Definition at line 1078 of file hypervisor.h.

#define HV_FAST_MACH_SET_WATCHDOG   0x05

Definition at line 204 of file hypervisor.h.

#define HV_FAST_MACH_SIR   0x02

Definition at line 148 of file hypervisor.h.

#define HV_FAST_MEM_SCRUB   0x31

Definition at line 901 of file hypervisor.h.

#define HV_FAST_MEM_SYNC   0x32

Definition at line 921 of file hypervisor.h.

#define HV_FAST_MMU_DEMAP_ALL   0x24

Definition at line 710 of file hypervisor.h.

#define HV_FAST_MMU_DEMAP_CTX   0x23

Definition at line 690 of file hypervisor.h.

#define HV_FAST_MMU_DEMAP_PAGE   0x22

Definition at line 669 of file hypervisor.h.

#define HV_FAST_MMU_ENABLE   0x27

Definition at line 794 of file hypervisor.h.

#define HV_FAST_MMU_FAULT_AREA_CONF   0x26

Definition at line 764 of file hypervisor.h.

#define HV_FAST_MMU_FAULT_AREA_INFO   0x2b

Definition at line 870 of file hypervisor.h.

#define HV_FAST_MMU_MAP_PERM_ADDR   0x25

Definition at line 740 of file hypervisor.h.

#define HV_FAST_MMU_TSB_CTX0   0x20

Definition at line 625 of file hypervisor.h.

#define HV_FAST_MMU_TSB_CTX0_INFO   0x29

Definition at line 832 of file hypervisor.h.

#define HV_FAST_MMU_TSB_CTXNON0   0x21

Definition at line 646 of file hypervisor.h.

#define HV_FAST_MMU_TSB_CTXNON0_INFO   0x2a

Definition at line 853 of file hypervisor.h.

#define HV_FAST_MMU_UNMAP_PERM_ADDR   0x28

Definition at line 811 of file hypervisor.h.

#define HV_FAST_MMUSTAT_CONF   0x102

Definition at line 2817 of file hypervisor.h.

#define HV_FAST_MMUSTAT_INFO   0x103

Definition at line 2829 of file hypervisor.h.

#define HV_FAST_N2_GET_PERFREG   0x104

Definition at line 2726 of file hypervisor.h.

#define HV_FAST_N2_SET_PERFREG   0x105

Definition at line 2727 of file hypervisor.h.

#define HV_FAST_NCS_REQUEST   0x110

Definition at line 2919 of file hypervisor.h.

#define HV_FAST_PCI_CONFIG_GET   0xb4

Definition at line 1890 of file hypervisor.h.

#define HV_FAST_PCI_CONFIG_PUT   0xb5

Definition at line 1920 of file hypervisor.h.

#define HV_FAST_PCI_DMA_SYNC   0xb8

Definition at line 2024 of file hypervisor.h.

#define HV_FAST_PCI_IOMMU_DEMAP   0xb1

Definition at line 1824 of file hypervisor.h.

#define HV_FAST_PCI_IOMMU_GETBYPASS   0xb3

Definition at line 1862 of file hypervisor.h.

#define HV_FAST_PCI_IOMMU_GETMAP   0xb2

Definition at line 1844 of file hypervisor.h.

#define HV_FAST_PCI_IOMMU_MAP   0xb0

Definition at line 1796 of file hypervisor.h.

#define HV_FAST_PCI_MSG_GETMSIQ   0xd0

Definition at line 2291 of file hypervisor.h.

#define HV_FAST_PCI_MSG_GETVALID   0xd2

Definition at line 2318 of file hypervisor.h.

#define HV_FAST_PCI_MSG_SETMSIQ   0xd1

Definition at line 2304 of file hypervisor.h.

#define HV_FAST_PCI_MSG_SETVALID   0xd3

Definition at line 2332 of file hypervisor.h.

#define HV_FAST_PCI_MSI_GETMSIQ   0xcb

Definition at line 2236 of file hypervisor.h.

#define HV_FAST_PCI_MSI_GETSTATE   0xcd

Definition at line 2265 of file hypervisor.h.

#define HV_FAST_PCI_MSI_GETVALID   0xc9

Definition at line 2208 of file hypervisor.h.

#define HV_FAST_PCI_MSI_SETMSIQ   0xcc

Definition at line 2251 of file hypervisor.h.

#define HV_FAST_PCI_MSI_SETSTATE   0xce

Definition at line 2278 of file hypervisor.h.

#define HV_FAST_PCI_MSI_SETVALID   0xca

Definition at line 2222 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_CONF   0xc0

Definition at line 2075 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_GETHEAD   0xc6

Definition at line 2165 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_GETSTATE   0xc4

Definition at line 2136 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_GETTAIL   0xc8

Definition at line 2194 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_GETVALID   0xc2

Definition at line 2107 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_INFO   0xc1

Definition at line 2093 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_SETHEAD   0xc7

Definition at line 2180 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_SETSTATE   0xc5

Definition at line 2151 of file hypervisor.h.

#define HV_FAST_PCI_MSIQ_SETVALID   0xc3

Definition at line 2122 of file hypervisor.h.

#define HV_FAST_PCI_PEEK   0xb6

Definition at line 1955 of file hypervisor.h.

#define HV_FAST_PCI_POKE   0xb7

Definition at line 1999 of file hypervisor.h.

#define HV_FAST_REBOOT_DATA_SET   0x172

Definition at line 2930 of file hypervisor.h.

#define HV_FAST_SET_PERFREG   0x101

Definition at line 2714 of file hypervisor.h.

#define HV_FAST_SVC_CLRSTATUS   0x84

Definition at line 1159 of file hypervisor.h.

#define HV_FAST_SVC_GETSTATUS   0x82

Definition at line 1141 of file hypervisor.h.

#define HV_FAST_SVC_RECV   0x81

Definition at line 1132 of file hypervisor.h.

#define HV_FAST_SVC_SEND   0x80

Definition at line 1117 of file hypervisor.h.

#define HV_FAST_SVC_SETSTATUS   0x83

Definition at line 1150 of file hypervisor.h.

#define HV_FAST_TOD_GET   0x50

Definition at line 945 of file hypervisor.h.

#define HV_FAST_TOD_SET   0x51

Definition at line 962 of file hypervisor.h.

#define HV_FAST_TRAP   0x80

Definition at line 53 of file hypervisor.h.

#define HV_FAST_TTRACE_BUF_CONF   0x90

Definition at line 1275 of file hypervisor.h.

#define HV_FAST_TTRACE_BUF_INFO   0x91

Definition at line 1289 of file hypervisor.h.

#define HV_FAST_TTRACE_ENABLE   0x92

Definition at line 1305 of file hypervisor.h.

#define HV_FAST_TTRACE_FREEZE   0x93

Definition at line 1320 of file hypervisor.h.

#define HV_FAST_VINTR_GET_COOKIE   0xa7

Definition at line 1577 of file hypervisor.h.

#define HV_FAST_VINTR_GET_STATE   0xab

Definition at line 1617 of file hypervisor.h.

#define HV_FAST_VINTR_GET_TARGET   0xad

Definition at line 1637 of file hypervisor.h.

#define HV_FAST_VINTR_GET_VALID   0xa9

Definition at line 1597 of file hypervisor.h.

#define HV_FAST_VINTR_SET_COOKIE   0xa8

Definition at line 1587 of file hypervisor.h.

#define HV_FAST_VINTR_SET_STATE   0xac

Definition at line 1627 of file hypervisor.h.

#define HV_FAST_VINTR_SET_TARGET   0xae

Definition at line 1647 of file hypervisor.h.

#define HV_FAST_VINTR_SET_VALID   0xaa

Definition at line 1607 of file hypervisor.h.

#define HV_FAST_VT_GET_PERFREG   0x184

Definition at line 2937 of file hypervisor.h.

#define HV_FAST_VT_SET_PERFREG   0x185

Definition at line 2938 of file hypervisor.h.

#define HV_FAULT_D_ADDR_OFFSET   0x48

Definition at line 530 of file hypervisor.h.

#define HV_FAULT_D_CTX_OFFSET   0x50

Definition at line 531 of file hypervisor.h.

#define HV_FAULT_D_TYPE_OFFSET   0x40

Definition at line 529 of file hypervisor.h.

#define HV_FAULT_I_ADDR_OFFSET   0x08

Definition at line 527 of file hypervisor.h.

#define HV_FAULT_I_CTX_OFFSET   0x10

Definition at line 528 of file hypervisor.h.

#define HV_FAULT_I_TYPE_OFFSET   0x00

Definition at line 526 of file hypervisor.h.

#define HV_FAULT_TYPE_FAST_MISS   1

Definition at line 533 of file hypervisor.h.

#define HV_FAULT_TYPE_FAST_PROT   2

Definition at line 534 of file hypervisor.h.

#define HV_FAULT_TYPE_INV_ASI   10

Definition at line 542 of file hypervisor.h.

#define HV_FAULT_TYPE_INV_PGSZ   15

Definition at line 547 of file hypervisor.h.

#define HV_FAULT_TYPE_INV_RA   4

Definition at line 536 of file hypervisor.h.

#define HV_FAULT_TYPE_INV_VA   9

Definition at line 541 of file hypervisor.h.

#define HV_FAULT_TYPE_MMU_MISS   3

Definition at line 535 of file hypervisor.h.

#define HV_FAULT_TYPE_MULTIPLE   -1

Definition at line 549 of file hypervisor.h.

#define HV_FAULT_TYPE_NC_ATOMIC   11

Definition at line 543 of file hypervisor.h.

#define HV_FAULT_TYPE_NFO   7

Definition at line 539 of file hypervisor.h.

#define HV_FAULT_TYPE_NFO_SEFF   8

Definition at line 540 of file hypervisor.h.

#define HV_FAULT_TYPE_PRIV_ACT   12

Definition at line 544 of file hypervisor.h.

#define HV_FAULT_TYPE_PRIV_VIOL   5

Definition at line 537 of file hypervisor.h.

#define HV_FAULT_TYPE_PROT_VIOL   6

Definition at line 538 of file hypervisor.h.

#define HV_FAULT_TYPE_RESV1   13

Definition at line 545 of file hypervisor.h.

#define HV_FAULT_TYPE_UNALIGNED   14

Definition at line 546 of file hypervisor.h.

#define HV_GRP_CORE   0x0001

Definition at line 2957 of file hypervisor.h.

#define HV_GRP_DIAG   0x0300

Definition at line 2978 of file hypervisor.h.

#define HV_GRP_FIRE_PERF   0x0201

Definition at line 2972 of file hypervisor.h.

#define HV_GRP_INTR   0x0002

Definition at line 2958 of file hypervisor.h.

#define HV_GRP_KT_CPU   0x0209

Definition at line 2976 of file hypervisor.h.

#define HV_GRP_LDOM   0x0101

Definition at line 2962 of file hypervisor.h.

#define HV_GRP_N2_CPU   0x0202

Definition at line 2973 of file hypervisor.h.

#define HV_GRP_NCS   0x0103

Definition at line 2964 of file hypervisor.h.

#define HV_GRP_NIAG_PERF   0x0200

Definition at line 2971 of file hypervisor.h.

#define HV_GRP_NIU   0x0204

Definition at line 2974 of file hypervisor.h.

#define HV_GRP_PBOOT   0x0105

Definition at line 2966 of file hypervisor.h.

#define HV_GRP_PCI   0x0100

Definition at line 2961 of file hypervisor.h.

#define HV_GRP_REBOOT_DATA   0x0110

Definition at line 2970 of file hypervisor.h.

#define HV_GRP_RNG   0x0104

Definition at line 2965 of file hypervisor.h.

#define HV_GRP_SDIO   0x0108

Definition at line 2968 of file hypervisor.h.

#define HV_GRP_SDIO_ERR   0x0109

Definition at line 2969 of file hypervisor.h.

#define HV_GRP_SOFT_STATE   0x0003

Definition at line 2959 of file hypervisor.h.

#define HV_GRP_SUN4V   0x0000

Definition at line 2956 of file hypervisor.h.

#define HV_GRP_SVC_CHAN   0x0102

Definition at line 2963 of file hypervisor.h.

#define HV_GRP_TM   0x0080

Definition at line 2960 of file hypervisor.h.

#define HV_GRP_TPM   0x0107

Definition at line 2967 of file hypervisor.h.

#define HV_GRP_VF_CPU   0x0205

Definition at line 2975 of file hypervisor.h.

#define HV_GRP_VT_CPU   0x020c

Definition at line 2977 of file hypervisor.h.

#define HV_INTR_DISABLED   0 /* sysino not enabled */

Definition at line 1443 of file hypervisor.h.

#define HV_INTR_ENABLED   1 /* sysino enabled */

Definition at line 1444 of file hypervisor.h.

#define HV_INTR_STATE_DELIVERED   2 /* Interrupt delivered to queue */

Definition at line 1441 of file hypervisor.h.

#define HV_INTR_STATE_IDLE   0 /* Nothing pending */

Definition at line 1439 of file hypervisor.h.

#define HV_INTR_STATE_RECEIVED   1 /* Interrupt received by hardware */

Definition at line 1440 of file hypervisor.h.

#define HV_MMU_ALL   (HV_MMU_DMMU | HV_MMU_IMMU)

Definition at line 556 of file hypervisor.h.

#define HV_MMU_DMMU   0x01

Definition at line 554 of file hypervisor.h.

#define HV_MMU_IMMU   0x02

Definition at line 555 of file hypervisor.h.

#define HV_MMU_MAP_ADDR_TRAP   0x83

Definition at line 54 of file hypervisor.h.

#define HV_MMU_UNMAP_ADDR_TRAP   0x84

Definition at line 55 of file hypervisor.h.

#define HV_MSG_INVALID   0x00

Definition at line 2049 of file hypervisor.h.

#define HV_MSG_VALID   0x01

Definition at line 2050 of file hypervisor.h.

#define HV_MSIQ_INVALID   0x00

Definition at line 2034 of file hypervisor.h.

#define HV_MSIQ_VALID   0x01

Definition at line 2035 of file hypervisor.h.

#define HV_MSIQSTATE_ERROR   0x01

Definition at line 2032 of file hypervisor.h.

#define HV_MSIQSTATE_IDLE   0x00

Definition at line 2031 of file hypervisor.h.

#define HV_MSISTATE_DELIVERED   0x01

Definition at line 2038 of file hypervisor.h.

#define HV_MSISTATE_IDLE   0x00

Definition at line 2037 of file hypervisor.h.

#define HV_MSITYPE_MSI32   0x00

Definition at line 2028 of file hypervisor.h.

#define HV_MSITYPE_MSI64   0x01

Definition at line 2029 of file hypervisor.h.

#define HV_MSIVALID_INVALID   0x00

Definition at line 2040 of file hypervisor.h.

#define HV_MSIVALID_VALID   0x01

Definition at line 2041 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CNT0   0x2

Definition at line 2718 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CNT1   0x4

Definition at line 2720 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CNT2   0x6

Definition at line 2722 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CNT3   0x8

Definition at line 2724 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CTL0   0x1

Definition at line 2717 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CTL1   0x3

Definition at line 2719 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CTL2   0x5

Definition at line 2721 of file hypervisor.h.

#define HV_N2_PERF_DRAM_CTL3   0x7

Definition at line 2723 of file hypervisor.h.

#define HV_N2_PERF_SPARC_CTL   0x0

Definition at line 2716 of file hypervisor.h.

#define HV_NCS_QCONF   0x01

Definition at line 2839 of file hypervisor.h.

#define HV_NCS_QTAIL_UPDATE   0x02

Definition at line 2840 of file hypervisor.h.

#define HV_NCS_SYNCFLAG_ASYNC   0x01

Definition at line 2884 of file hypervisor.h.

#define HV_NCS_SYNCFLAG_SYNC   0x00

Definition at line 2883 of file hypervisor.h.

#define HV_PCI_DEVICE_BUILD (   b,
  d,
  f 
)
Value:
((((b) & 0xff) << 16) | \
(((d) & 0x1f) << 11) | \
(((f) & 0x07) << 8))

Definition at line 1745 of file hypervisor.h.

#define HV_PCI_MAP_ATTR_READ   0x01

Definition at line 1742 of file hypervisor.h.

#define HV_PCI_MAP_ATTR_WRITE   0x02

Definition at line 1743 of file hypervisor.h.

#define HV_PCI_SYNC_FOR_CPU   0x02

Definition at line 1754 of file hypervisor.h.

#define HV_PCI_SYNC_FOR_DEVICE   0x01

Definition at line 1753 of file hypervisor.h.

#define HV_PCI_TSBID (   __tsb_num,
  __tsb_index 
)    ((((u64)(__tsb_num)) << 32UL) | ((u64)(__tsb_index)))

Definition at line 1750 of file hypervisor.h.

#define HV_PCIE_MSGTYPE_CORR_MSG   0x30

Definition at line 2045 of file hypervisor.h.

#define HV_PCIE_MSGTYPE_FATAL_MSG   0x33

Definition at line 2047 of file hypervisor.h.

#define HV_PCIE_MSGTYPE_NONFATAL_MSG   0x31

Definition at line 2046 of file hypervisor.h.

#define HV_PCIE_MSGTYPE_PME_ACK_MSG   0x1b

Definition at line 2044 of file hypervisor.h.

#define HV_PCIE_MSGTYPE_PME_MSG   0x18

Definition at line 2043 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CNT_REG_0   0x03

Definition at line 2681 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CNT_REG_1   0x05

Definition at line 2683 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CNT_REG_2   0x07

Definition at line 2685 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CNT_REG_3   0x09

Definition at line 2687 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CTRL_REG_0   0x02

Definition at line 2680 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CTRL_REG_1   0x04

Definition at line 2682 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CTRL_REG_2   0x06

Definition at line 2684 of file hypervisor.h.

#define HV_PERF_DRAM_PERF_CTRL_REG_3   0x08

Definition at line 2686 of file hypervisor.h.

#define HV_PERF_JBUS_PERF_CNT_REG   0x01

Definition at line 2679 of file hypervisor.h.

#define HV_PERF_JBUS_PERF_CTRL_REG   0x00

Definition at line 2678 of file hypervisor.h.

#define HV_PGSZ_IDX_16GB   7

Definition at line 502 of file hypervisor.h.

#define HV_PGSZ_IDX_256MB   5

Definition at line 500 of file hypervisor.h.

#define HV_PGSZ_IDX_2GB   6

Definition at line 501 of file hypervisor.h.

#define HV_PGSZ_IDX_32MB   4

Definition at line 499 of file hypervisor.h.

#define HV_PGSZ_IDX_4MB   3

Definition at line 498 of file hypervisor.h.

#define HV_PGSZ_IDX_512K   2

Definition at line 497 of file hypervisor.h.

#define HV_PGSZ_IDX_64K   1

Definition at line 496 of file hypervisor.h.

#define HV_PGSZ_IDX_8K   0

Definition at line 495 of file hypervisor.h.

#define HV_PGSZ_MASK_16GB   (1 << 7)

Definition at line 490 of file hypervisor.h.

#define HV_PGSZ_MASK_256MB   (1 << 5)

Definition at line 488 of file hypervisor.h.

#define HV_PGSZ_MASK_2GB   (1 << 6)

Definition at line 489 of file hypervisor.h.

#define HV_PGSZ_MASK_32MB   (1 << 4)

Definition at line 487 of file hypervisor.h.

#define HV_PGSZ_MASK_4MB   (1 << 3)

Definition at line 486 of file hypervisor.h.

#define HV_PGSZ_MASK_512K   (1 << 2)

Definition at line 485 of file hypervisor.h.

#define HV_PGSZ_MASK_64K   (1 << 1)

Definition at line 484 of file hypervisor.h.

#define HV_PGSZ_MASK_8K   (1 << 0)

Definition at line 483 of file hypervisor.h.

#define HV_SOFT_STATE_NORMAL   0x01

Definition at line 1079 of file hypervisor.h.

#define HV_SOFT_STATE_TRANSITION   0x02

Definition at line 1080 of file hypervisor.h.

#define HV_TRAP_TRACE_CTRL_HEAD_OFFSET   0x00

Definition at line 1198 of file hypervisor.h.

#define HV_TRAP_TRACE_CTRL_TAIL_OFFSET   0x08

Definition at line 1199 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_F1   0x20

Definition at line 1236 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_F2   0x28

Definition at line 1237 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_F3   0x30

Definition at line 1238 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_F4   0x38

Definition at line 1239 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_GL   0x03

Definition at line 1230 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_HPSTATE   0x01

Definition at line 1228 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TAG   0x06

Definition at line 1232 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TICK   0x10

Definition at line 1234 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TL   0x02

Definition at line 1229 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TPC   0x18

Definition at line 1235 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TSTATE   0x08

Definition at line 1233 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TT   0x04

Definition at line 1231 of file hypervisor.h.

#define HV_TRAP_TRACE_ENTRY_TYPE   0x00

Definition at line 1227 of file hypervisor.h.

#define HV_TRAP_TYPE_GUEST   0xff /* Added via ttrace_addentry() */

Definition at line 1244 of file hypervisor.h.

#define HV_TRAP_TYPE_HV   0x01 /* Hypervisor trap entry */

Definition at line 1243 of file hypervisor.h.

#define HV_TRAP_TYPE_UNDEF   0x00 /* Entry content undefined */

Definition at line 1242 of file hypervisor.h.

#define HV_TSB_DESCR_ASSOC_OFFSET   0x02

Definition at line 475 of file hypervisor.h.

#define HV_TSB_DESCR_CTX_IDX_OFFSET   0x08

Definition at line 477 of file hypervisor.h.

#define HV_TSB_DESCR_NUM_TTES_OFFSET   0x04

Definition at line 476 of file hypervisor.h.

#define HV_TSB_DESCR_PGSZ_IDX_OFFSET   0x00

Definition at line 474 of file hypervisor.h.

#define HV_TSB_DESCR_PGSZ_MASK_OFFSET   0x0c

Definition at line 478 of file hypervisor.h.

#define HV_TSB_DESCR_RESV_OFFSET   0x18

Definition at line 480 of file hypervisor.h.

#define HV_TSB_DESCR_TSB_BASE_OFFSET   0x10

Definition at line 479 of file hypervisor.h.

#define HV_TTRACE_ADDENTRY_TRAP   0x85

Definition at line 56 of file hypervisor.h.

#define LDC_CHANNEL_DOWN   0

Definition at line 2336 of file hypervisor.h.

#define LDC_CHANNEL_RESETTING   2

Definition at line 2338 of file hypervisor.h.

#define LDC_CHANNEL_UP   1

Definition at line 2337 of file hypervisor.h.

#define LDC_COPY_IN   0

Definition at line 2580 of file hypervisor.h.

#define LDC_COPY_OUT   1

Definition at line 2581 of file hypervisor.h.

#define LDC_MEM_EXEC   4

Definition at line 2598 of file hypervisor.h.

#define LDC_MEM_READ   1

Definition at line 2596 of file hypervisor.h.

#define LDC_MEM_WRITE   2

Definition at line 2597 of file hypervisor.h.

#define LDC_MTE_COPY_R   0x0000000000000200 /* copy read access */

Definition at line 2530 of file hypervisor.h.

#define LDC_MTE_COPY_W   0x0000000000000400 /* copy write access */

Definition at line 2529 of file hypervisor.h.

#define LDC_MTE_EXEC   0x0000000000000040 /* execute */

Definition at line 2533 of file hypervisor.h.

#define LDC_MTE_IOMMU_R   0x0000000000000080 /* IOMMU read access */

Definition at line 2532 of file hypervisor.h.

#define LDC_MTE_IOMMU_W   0x0000000000000100 /* IOMMU write access */

Definition at line 2531 of file hypervisor.h.

#define LDC_MTE_PADDR   0x0fffffffffffe000 /* pa[55:13] */

Definition at line 2528 of file hypervisor.h.

#define LDC_MTE_READ   0x0000000000000010 /* write */

Definition at line 2535 of file hypervisor.h.

#define LDC_MTE_SZ16GB   0x0000000000000007 /* 16GB page */

Definition at line 2537 of file hypervisor.h.

#define LDC_MTE_SZ256MB   0x0000000000000005 /* 256MB page */

Definition at line 2539 of file hypervisor.h.

#define LDC_MTE_SZ2GB   0x0000000000000006 /* 2GB page */

Definition at line 2538 of file hypervisor.h.

#define LDC_MTE_SZ32MB   0x0000000000000004 /* 32MB page */

Definition at line 2540 of file hypervisor.h.

#define LDC_MTE_SZ4MB   0x0000000000000003 /* 4MB page */

Definition at line 2541 of file hypervisor.h.

#define LDC_MTE_SZ512K   0x0000000000000002 /* 512K page */

Definition at line 2542 of file hypervisor.h.

#define LDC_MTE_SZ64K   0x0000000000000001 /* 64K page */

Definition at line 2543 of file hypervisor.h.

#define LDC_MTE_SZ8K   0x0000000000000000 /* 8K page */

Definition at line 2544 of file hypervisor.h.

#define LDC_MTE_SZALL   0x000000000000000f /* page size bits */

Definition at line 2536 of file hypervisor.h.

#define LDC_MTE_WRITE   0x0000000000000020 /* read */

Definition at line 2534 of file hypervisor.h.

#define MAU_CONTROL_BUSY   0x0000000000000400

Definition at line 2848 of file hypervisor.h.

#define MAU_CONTROL_INT   0x0000000000000200

Definition at line 2849 of file hypervisor.h.

#define MAU_CONTROL_INV_PARITY   0x0000000000002000

Definition at line 2846 of file hypervisor.h.

#define MAU_CONTROL_LEN   0x000000000000003f

Definition at line 2857 of file hypervisor.h.

#define MAU_CONTROL_LEN_SHIFT   0

Definition at line 2858 of file hypervisor.h.

#define MAU_CONTROL_OP   0x00000000000001c0

Definition at line 2850 of file hypervisor.h.

#define MAU_CONTROL_OP_SHIFT   6

Definition at line 2851 of file hypervisor.h.

#define MAU_CONTROL_STRAND   0x0000000000001800

Definition at line 2847 of file hypervisor.h.

#define MAU_OP_LOAD_MA_MEMORY   0x0

Definition at line 2852 of file hypervisor.h.

#define MAU_OP_MODULAR_EXP_LOOP   0x4

Definition at line 2856 of file hypervisor.h.

#define MAU_OP_MODULAR_MULT   0x2

Definition at line 2854 of file hypervisor.h.

#define MAU_OP_MODULAR_REDUCE   0x3

Definition at line 2855 of file hypervisor.h.

#define MAU_OP_STORE_MA_MEMORY   0x1

Definition at line 2853 of file hypervisor.h.

Function Documentation

long sun4v_con_getchar ( long status)
long sun4v_con_putchar ( long  c)
long sun4v_con_read ( unsigned long  buffer,
unsigned long  size,
unsigned long bytes_read 
)
unsigned long sun4v_con_write ( unsigned long  buffer,
unsigned long  size,
unsigned long bytes_written 
)
unsigned long sun4v_cpu_mondo_send ( unsigned long  cpu_count,
unsigned long  cpu_list_pa,
unsigned long  mondo_block_pa 
)
unsigned long sun4v_cpu_qconf ( unsigned long  type,
unsigned long  queue_paddr,
unsigned long  num_queue_entries 
)
unsigned long sun4v_cpu_start ( unsigned long  cpuid,
unsigned long  pc,
unsigned long  rtba,
unsigned long  arg0 
)
long sun4v_cpu_state ( unsigned long  cpuid)
unsigned long sun4v_cpu_stop ( unsigned long  cpuid)
unsigned long sun4v_cpu_yield ( void  )
unsigned long sun4v_devino_to_sysino ( unsigned long  devhandle,
unsigned long  devino 
)
unsigned long sun4v_get_version ( unsigned long  group,
unsigned long major,
unsigned long minor 
)
int sun4v_hvapi_get ( unsigned long  group,
unsigned long major,
unsigned long minor 
)

Definition at line 155 of file hvapi.c.

void sun4v_hvapi_init ( void  )

Definition at line 177 of file hvapi.c.

int sun4v_hvapi_register ( unsigned long  group,
unsigned long  major,
unsigned long minor 
)

Definition at line 91 of file hvapi.c.

void sun4v_hvapi_unregister ( unsigned long  group)

Definition at line 142 of file hvapi.c.

unsigned long sun4v_intr_getenabled ( unsigned long  sysino)
unsigned long sun4v_intr_getstate ( unsigned long  sysino)
unsigned long sun4v_intr_gettarget ( unsigned long  sysino)
unsigned long sun4v_intr_setenabled ( unsigned long  sysino,
unsigned long  intr_enabled 
)
unsigned long sun4v_intr_setstate ( unsigned long  sysino,
unsigned long  intr_state 
)
unsigned long sun4v_intr_settarget ( unsigned long  sysino,
unsigned long  cpuid 
)
unsigned long sun4v_ldc_copy ( unsigned long  channel,
unsigned long  dir_code,
unsigned long  tgt_raddr,
unsigned long  lcl_raddr,
unsigned long  len,
unsigned long actual_len 
)
unsigned long sun4v_ldc_get_map_table ( unsigned long  channel,
unsigned long ra,
unsigned long num_entries 
)
unsigned long sun4v_ldc_mapin ( unsigned long  channel,
unsigned long  cookie,
unsigned long ra,
unsigned long perm 
)
unsigned long sun4v_ldc_revoke ( unsigned long  channel,
unsigned long  cookie,
unsigned long  mte_cookie 
)
unsigned long sun4v_ldc_rx_get_state ( unsigned long  channel,
unsigned long head_off,
unsigned long tail_off,
unsigned long chan_state 
)
unsigned long sun4v_ldc_rx_qconf ( unsigned long  channel,
unsigned long  ra,
unsigned long  num_entries 
)
unsigned long sun4v_ldc_rx_qinfo ( unsigned long  channel,
unsigned long ra,
unsigned long num_entries 
)
unsigned long sun4v_ldc_rx_set_qhead ( unsigned long  channel,
unsigned long  head_off 
)
unsigned long sun4v_ldc_set_map_table ( unsigned long  channel,
unsigned long  ra,
unsigned long  num_entries 
)
unsigned long sun4v_ldc_tx_get_state ( unsigned long  channel,
unsigned long head_off,
unsigned long tail_off,
unsigned long chan_state 
)
unsigned long sun4v_ldc_tx_qconf ( unsigned long  channel,
unsigned long  ra,
unsigned long  num_entries 
)
unsigned long sun4v_ldc_tx_qinfo ( unsigned long  channel,
unsigned long ra,
unsigned long num_entries 
)
unsigned long sun4v_ldc_tx_set_qtail ( unsigned long  channel,
unsigned long  tail_off 
)
unsigned long sun4v_ldc_unmap ( unsigned long  ra)
unsigned long sun4v_mach_desc ( unsigned long  buffer_pa,
unsigned long  buf_len,
unsigned long real_buf_len 
)
void sun4v_mach_exit ( unsigned long  exit_code)
unsigned long sun4v_mach_set_soft_state ( unsigned long  soft_state,
unsigned long  msg_string_ra 
)
unsigned long sun4v_mach_set_watchdog ( unsigned long  timeout,
unsigned long orig_timeout 
)
void sun4v_mach_sir ( void  )
void sun4v_mmu_demap_all ( void  )
unsigned long sun4v_mmu_map_perm_addr ( unsigned long  vaddr,
unsigned long  set_to_zero,
unsigned long  tte,
unsigned long  flags 
)
unsigned long sun4v_mmu_tsb_ctx0 ( unsigned long  num_descriptions,
unsigned long  tsb_desc_ra 
)
unsigned long sun4v_mmustat_conf ( unsigned long  ra,
unsigned long orig_ra 
)
unsigned long sun4v_mmustat_info ( unsigned long ra)
unsigned long sun4v_ncs_request ( unsigned long  request,
unsigned long  arg_ra,
unsigned long  arg_size 
)
unsigned long sun4v_niagara2_getperf ( unsigned long  reg,
unsigned long val 
)
unsigned long sun4v_niagara2_setperf ( unsigned long  reg,
unsigned long  val 
)
unsigned long sun4v_niagara_getperf ( unsigned long  reg,
unsigned long val 
)
unsigned long sun4v_niagara_setperf ( unsigned long  reg,
unsigned long  val 
)
unsigned long sun4v_reboot_data_set ( unsigned long  ra,
unsigned long  len 
)
unsigned long sun4v_set_version ( unsigned long  group,
unsigned long  major,
unsigned long  minor,
unsigned long actual_minor 
)
unsigned long sun4v_svc_clrstatus ( unsigned long  svc_id,
unsigned long  status_bits 
)
unsigned long sun4v_svc_getstatus ( unsigned long  svc_id,
unsigned long status_bits 
)
unsigned long sun4v_svc_recv ( unsigned long  svc_id,
unsigned long  buffer,
unsigned long  buffer_size,
unsigned long recv_bytes 
)
unsigned long sun4v_svc_send ( unsigned long  svc_id,
unsigned long  buffer,
unsigned long  buffer_size,
unsigned long sent_bytes 
)
unsigned long sun4v_svc_setstatus ( unsigned long  svc_id,
unsigned long  status_bits 
)
unsigned long sun4v_tod_get ( unsigned long time)
unsigned long sun4v_tod_set ( unsigned long  time)
unsigned long sun4v_vintr_get_cookie ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long cookie 
)
unsigned long sun4v_vintr_get_state ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long state 
)
unsigned long sun4v_vintr_get_target ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long cpuid 
)
unsigned long sun4v_vintr_get_valid ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long valid 
)
unsigned long sun4v_vintr_set_cookie ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long  cookie 
)
unsigned long sun4v_vintr_set_state ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long  state 
)
unsigned long sun4v_vintr_set_target ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long  cpuid 
)
unsigned long sun4v_vintr_set_valid ( unsigned long  dev_handle,
unsigned long  dev_ino,
unsigned long  valid 
)
unsigned long sun4v_vt_get_perfreg ( unsigned long  reg_num,
unsigned long reg_val 
)
unsigned long sun4v_vt_set_perfreg ( unsigned long  reg_num,
unsigned long  reg_val 
)