hal-ipc.h 580 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: Apache-2.0 */
  2. /*
  3. * Copyright (C) 2013 Intel Corporation
  4. *
  5. */
  6. struct hal_ipc_handler {
  7. void (*handler) (void *buf, uint16_t len, int fd);
  8. bool var_len;
  9. size_t data_len;
  10. };
  11. bool hal_ipc_init(const char *path, size_t size);
  12. bool hal_ipc_accept(void);
  13. void hal_ipc_cleanup(void);
  14. int hal_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, void *param,
  15. size_t *rsp_len, void *rsp, int *fd);
  16. void hal_ipc_register(uint8_t service, const struct hal_ipc_handler *handlers,
  17. uint8_t size);
  18. void hal_ipc_unregister(uint8_t service);