pd_bdo.h 1011 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2015-2017 Google, Inc
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __LINUX_USB_PD_BDO_H
  15. #define __LINUX_USB_PD_BDO_H
  16. /* BDO : BIST Data Object */
  17. #define BDO_MODE_RECV (0 << 28)
  18. #define BDO_MODE_TRANSMIT (1 << 28)
  19. #define BDO_MODE_COUNTERS (2 << 28)
  20. #define BDO_MODE_CARRIER0 (3 << 28)
  21. #define BDO_MODE_CARRIER1 (4 << 28)
  22. #define BDO_MODE_CARRIER2 (5 << 28)
  23. #define BDO_MODE_CARRIER3 (6 << 28)
  24. #define BDO_MODE_EYE (7 << 28)
  25. #define BDO_MODE_TESTDATA (8 << 28)
  26. #define BDO_MODE_MASK(mode) ((mode) & 0xf0000000)
  27. #endif