You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mlx_pci_priv.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #ifndef STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_
  2. #define STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_
  3. /*
  4. * Copyright (C) 2015 Mellanox Technologies Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of the
  9. * License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301, USA.
  20. */
  21. FILE_LICENCE ( GPL2_OR_LATER );
  22. #include "../../include/public/mlx_pci.h"
  23. #include "../../include/public/mlx_utils.h"
  24. mlx_status
  25. mlx_pci_init_priv(
  26. IN mlx_utils *utils
  27. );
  28. mlx_status
  29. mlx_pci_teardown_priv(
  30. IN mlx_utils *utils
  31. );
  32. mlx_status
  33. mlx_pci_read_priv(
  34. IN mlx_utils *utils,
  35. IN mlx_pci_width width,
  36. IN mlx_uint32 offset,
  37. IN mlx_uintn count,
  38. OUT mlx_void *buffer
  39. );
  40. mlx_status
  41. mlx_pci_write_priv(
  42. IN mlx_utils *utils,
  43. IN mlx_pci_width width,
  44. IN mlx_uint32 offset,
  45. IN mlx_uintn count,
  46. IN mlx_void *buffer
  47. );
  48. mlx_status
  49. mlx_pci_mem_read_priv(
  50. IN mlx_utils *utils,
  51. IN mlx_pci_width width,
  52. IN mlx_uint8 bar_index,
  53. IN mlx_uint64 offset,
  54. IN mlx_uintn count,
  55. OUT mlx_void *buffer
  56. );
  57. mlx_status
  58. mlx_pci_mem_write_priv(
  59. IN mlx_utils *utils,
  60. IN mlx_pci_width width,
  61. IN mlx_uint8 bar_index,
  62. IN mlx_uint64 offset,
  63. IN mlx_uintn count,
  64. IN mlx_void *buffer
  65. );
  66. #endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_ */