bm_csi_ioctl.h 886 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2021 Alibaba Group Holding Limited
  3. * Author: liuyitong <yitong.lyt@alibaba-inc.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef _BM_CSI_IOCTL_H_
  10. #define _BM_CSI_IOCTL_H_
  11. #include <linux/ioctl.h>
  12. enum {
  13. BMCSI_IOC_S_RESET = 0x100,
  14. BMCSI_IOC_S_POWER,
  15. BMCSI_IOC_G_POWER,
  16. BMCSI_IOC_S_CLOCK,
  17. BMCSI_IOC_G_CLOCK,
  18. BMCSI_IOC_S_STREAM,
  19. BMCSI_IOC_G_STREAM,
  20. BMCSI_IOC_S_FMT,
  21. BMCSI_IOC_G_FMT,
  22. BMCSI_IOC_S_VC_SELECT,
  23. BMCSI_IOC_G_VC_SELECT,
  24. BMCSI_IOC_S_LANE_CFG,
  25. BMCSI_IOC_INIT,
  26. BMCSI_IOC_EXIT,
  27. BMCSI_IOC_WRITE_REG,
  28. BMCSI_IOC_READ_REG,
  29. BMCSI_IOC_MAX,
  30. };
  31. struct bm_csi_reg_t {
  32. unsigned int offset;
  33. unsigned int value;
  34. };
  35. #endif /* _BM_CSI_IOCTL_H_*/