iorpc_mpipe_info.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright 2012 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. /* This file is machine-generated; DO NOT EDIT! */
  15. #ifndef __GXIO_MPIPE_INFO_LINUX_RPC_H__
  16. #define __GXIO_MPIPE_INFO_LINUX_RPC_H__
  17. #include <hv/iorpc.h>
  18. #include <hv/drv_mpipe_intf.h>
  19. #include <asm/page.h>
  20. #include <gxio/kiorpc.h>
  21. #include <gxio/mpipe.h>
  22. #include <linux/string.h>
  23. #include <linux/module.h>
  24. #include <asm/pgtable.h>
  25. #define GXIO_MPIPE_INFO_OP_INSTANCE_AUX IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1250)
  26. #define GXIO_MPIPE_INFO_OP_ENUMERATE_AUX IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1251)
  27. #define GXIO_MPIPE_INFO_OP_GET_MMIO_BASE IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8000)
  28. #define GXIO_MPIPE_INFO_OP_CHECK_MMIO_OFFSET IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8001)
  29. int gxio_mpipe_info_instance_aux(gxio_mpipe_info_context_t * context,
  30. _gxio_mpipe_link_name_t name);
  31. int gxio_mpipe_info_enumerate_aux(gxio_mpipe_info_context_t * context,
  32. unsigned int idx,
  33. _gxio_mpipe_link_name_t * name,
  34. _gxio_mpipe_link_mac_t * mac);
  35. int gxio_mpipe_info_get_mmio_base(gxio_mpipe_info_context_t * context,
  36. HV_PTE *base);
  37. int gxio_mpipe_info_check_mmio_offset(gxio_mpipe_info_context_t * context,
  38. unsigned long offset, unsigned long size);
  39. #endif /* !__GXIO_MPIPE_INFO_LINUX_RPC_H__ */