Linux Kernel
3.7.1
|
#include <hv/iorpc.h>
#include <hv/drv_trio_intf.h>
#include <gxio/trio.h>
#include <gxio/kiorpc.h>
#include <linux/string.h>
#include <linux/module.h>
#include <asm/pgtable.h>
Go to the source code of this file.
#define GXIO_TRIO_OP_ALLOC_ASIDS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1401) |
Definition at line 29 of file iorpc_trio.h.
#define GXIO_TRIO_OP_ALLOC_MEMORY_MAPS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1404) |
Definition at line 31 of file iorpc_trio.h.
#define GXIO_TRIO_OP_ALLOC_PIO_REGIONS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1412) |
Definition at line 33 of file iorpc_trio.h.
#define GXIO_TRIO_OP_CHECK_MMIO_OFFSET IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8001) |
Definition at line 46 of file iorpc_trio.h.
#define GXIO_TRIO_OP_CONFIG_LEGACY_INTR IORPC_OPCODE(IORPC_FORMAT_KERNEL_INTERRUPT, 0x1420) |
Definition at line 39 of file iorpc_trio.h.
#define GXIO_TRIO_OP_CONFIG_MSI_INTR IORPC_OPCODE(IORPC_FORMAT_KERNEL_INTERRUPT, 0x1421) |
Definition at line 40 of file iorpc_trio.h.
#define GXIO_TRIO_OP_DEALLOC_ASID IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1400) |
Definition at line 28 of file iorpc_trio.h.
#define GXIO_TRIO_OP_FORCE_EP_LINK_UP IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1425) |
Definition at line 44 of file iorpc_trio.h.
#define GXIO_TRIO_OP_FORCE_RC_LINK_UP IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1424) |
Definition at line 43 of file iorpc_trio.h.
#define GXIO_TRIO_OP_GET_MMIO_BASE IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8000) |
Definition at line 45 of file iorpc_trio.h.
#define GXIO_TRIO_OP_GET_PORT_PROPERTY IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x141f) |
Definition at line 38 of file iorpc_trio.h.
#define GXIO_TRIO_OP_INIT_MEMORY_MAP_MMU_AUX IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x141e) |
Definition at line 37 of file iorpc_trio.h.
#define GXIO_TRIO_OP_INIT_PIO_REGION_AUX IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1414) |
Definition at line 35 of file iorpc_trio.h.
#define GXIO_TRIO_OP_SET_MPS_MRS IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1423) |
Definition at line 42 of file iorpc_trio.h.
int gxio_trio_alloc_asids | ( | gxio_trio_context_t * | context, |
unsigned int | count, | ||
unsigned int | first, | ||
unsigned int | flags | ||
) |
Definition at line 24 of file iorpc_trio.c.
int gxio_trio_alloc_memory_maps | ( | gxio_trio_context_t * | context, |
unsigned int | count, | ||
unsigned int | first, | ||
unsigned int | flags | ||
) |
Definition at line 47 of file iorpc_trio.c.
int gxio_trio_alloc_pio_regions | ( | gxio_trio_context_t * | context, |
unsigned int | count, | ||
unsigned int | first, | ||
unsigned int | flags | ||
) |
Definition at line 71 of file iorpc_trio.c.
int gxio_trio_check_mmio_offset | ( | gxio_trio_context_t * | context, |
unsigned long | offset, | ||
unsigned long | size | ||
) |
Definition at line 314 of file iorpc_trio.c.
int gxio_trio_config_legacy_intr | ( | gxio_trio_context_t * | context, |
int | inter_x, | ||
int | inter_y, | ||
int | inter_ipi, | ||
int | inter_event, | ||
unsigned int | mac, | ||
unsigned int | intx | ||
) |
Definition at line 178 of file iorpc_trio.c.
int gxio_trio_config_msi_intr | ( | gxio_trio_context_t * | context, |
int | inter_x, | ||
int | inter_y, | ||
int | inter_ipi, | ||
int | inter_event, | ||
unsigned int | mac, | ||
unsigned int | mem_map, | ||
uint64_t | mem_map_base, | ||
uint64_t | mem_map_limit, | ||
unsigned int | asid | ||
) |
Definition at line 207 of file iorpc_trio.c.
int gxio_trio_force_ep_link_up | ( | gxio_trio_context_t * | context, |
unsigned int | mac | ||
) |
Definition at line 276 of file iorpc_trio.c.
int gxio_trio_force_rc_link_up | ( | gxio_trio_context_t * | context, |
unsigned int | mac | ||
) |
Definition at line 259 of file iorpc_trio.c.
int gxio_trio_get_mmio_base | ( | gxio_trio_context_t * | context, |
HV_PTE * | base | ||
) |
Definition at line 293 of file iorpc_trio.c.
int gxio_trio_get_port_property | ( | gxio_trio_context_t * | context, |
struct pcie_trio_ports_property * | trio_ports | ||
) |
Definition at line 155 of file iorpc_trio.c.
int gxio_trio_init_memory_map_mmu_aux | ( | gxio_trio_context_t * | context, |
unsigned int | map, | ||
unsigned long | va, | ||
uint64_t | size, | ||
unsigned int | asid, | ||
unsigned int | mac, | ||
uint64_t | bus_address, | ||
unsigned int | node, | ||
unsigned int | order_mode | ||
) |
Definition at line 125 of file iorpc_trio.c.
int gxio_trio_init_pio_region_aux | ( | gxio_trio_context_t * | context, |
unsigned int | pio_region, | ||
unsigned int | mac, | ||
uint32_t | bus_address_hi, | ||
unsigned int | flags | ||
) |
Definition at line 95 of file iorpc_trio.c.
int gxio_trio_set_mps_mrs | ( | gxio_trio_context_t * | context, |
uint16_t | mps, | ||
uint16_t | mrs, | ||
unsigned int | mac | ||
) |
Definition at line 239 of file iorpc_trio.c.