iPXE
|
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
mlx_status | mlx_pci_init_priv (IN mlx_utils *utils) |
mlx_status | mlx_pci_teardown_priv (IN mlx_utils *utils) |
mlx_status | mlx_pci_read_priv (IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint32 offset, IN mlx_uintn count, OUT mlx_void *buffer) |
mlx_status | mlx_pci_write_priv (IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint32 offset, IN mlx_uintn count, IN mlx_void *buffer) |
mlx_status | mlx_pci_mem_read_priv (IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint8 bar_index, IN mlx_uint64 offset, IN mlx_uintn count, OUT mlx_void *buffer) |
mlx_status | mlx_pci_mem_write_priv (IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint8 bar_index, IN mlx_uint64 offset, IN mlx_uintn count, IN mlx_void *buffer) |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
mlx_status mlx_pci_init_priv | ( | IN mlx_utils * | utils | ) |
Definition at line 111 of file mlx_pci_priv.c.
References adjust_pci_device(), MLX_SUCCESS, pci_bar_start(), PCI_BASE_ADDRESS_0, pci_ioremap(), and status.
Referenced by mlx_pci_init().
mlx_status mlx_pci_teardown_priv | ( | IN mlx_utils * | utils | ) |
Definition at line 125 of file mlx_pci_priv.c.
References iounmap(), MLX_SUCCESS, and status.
Referenced by mlx_pci_teardown().
mlx_status mlx_pci_read_priv | ( | IN mlx_utils * | utils, |
IN mlx_pci_width | width, | ||
IN mlx_uint32 | offset, | ||
IN mlx_uintn | count, | ||
OUT mlx_void * | buffer | ||
) |
Definition at line 137 of file mlx_pci_priv.c.
References buffer, count, mlx_pci_config(), MLX_SUCCESS, offset, status, and TRUE.
Referenced by mlx_pci_read().
mlx_status mlx_pci_write_priv | ( | IN mlx_utils * | utils, |
IN mlx_pci_width | width, | ||
IN mlx_uint32 | offset, | ||
IN mlx_uintn | count, | ||
IN mlx_void * | buffer | ||
) |
Definition at line 151 of file mlx_pci_priv.c.
References buffer, count, FALSE, mlx_pci_config(), MLX_SUCCESS, offset, and status.
Referenced by mlx_pci_write().
mlx_status mlx_pci_mem_read_priv | ( | IN mlx_utils * | utils, |
IN mlx_pci_width | width, | ||
IN mlx_uint8 | bar_index, | ||
IN mlx_uint64 | offset, | ||
IN mlx_uintn | count, | ||
OUT mlx_void * | buffer | ||
) |
Definition at line 165 of file mlx_pci_priv.c.
References buffer, MLX_INVALID_PARAMETER, MLX_SUCCESS, MlxPciWidthUint32, NULL, offset, and readl().
Referenced by mlx_pci_mem_read().
mlx_status mlx_pci_mem_write_priv | ( | IN mlx_utils * | utils, |
IN mlx_pci_width | width, | ||
IN mlx_uint8 | bar_index, | ||
IN mlx_uint64 | offset, | ||
IN mlx_uintn | count, | ||
IN mlx_void * | buffer | ||
) |
Definition at line 181 of file mlx_pci_priv.c.
References barrier, buffer, MLX_INVALID_PARAMETER, MLX_SUCCESS, MlxPciWidthUint32, NULL, offset, and writel().
Referenced by mlx_pci_mem_write().