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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_read_priv(
  30. IN mlx_utils *utils,
  31. IN mlx_pci_width width,
  32. IN mlx_uint32 offset,
  33. IN mlx_uintn count,
  34. OUT mlx_void *buffer
  35. );
  36. mlx_status
  37. mlx_pci_write_priv(
  38. IN mlx_utils *utils,
  39. IN mlx_pci_width width,
  40. IN mlx_uint32 offset,
  41. IN mlx_uintn count,
  42. IN mlx_void *buffer
  43. );
  44. mlx_status
  45. mlx_pci_mem_read_priv(
  46. IN mlx_utils *utils,
  47. IN mlx_pci_width width,
  48. IN mlx_uint8 bar_index,
  49. IN mlx_uint64 offset,
  50. IN mlx_uintn count,
  51. OUT mlx_void *buffer
  52. );
  53. mlx_status
  54. mlx_pci_mem_write_priv(
  55. IN mlx_utils *utils,
  56. IN mlx_pci_width width,
  57. IN mlx_uint8 bar_index,
  58. IN mlx_uint64 offset,
  59. IN mlx_uintn count,
  60. IN mlx_void *buffer
  61. );
  62. #endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_ */