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 15#ifndef __LINUX_USB_PD_BDO_H 16#define __LINUX_USB_PD_BDO_H 17 18/* BDO : BIST Data Object */ 19#define BDO_MODE_RECV (0 << 28) 20#define BDO_MODE_TRANSMIT (1 << 28) 21#define BDO_MODE_COUNTERS (2 << 28) 22#define BDO_MODE_CARRIER0 (3 << 28) 23#define BDO_MODE_CARRIER1 (4 << 28) 24#define BDO_MODE_CARRIER2 (5 << 28) 25#define BDO_MODE_CARRIER3 (6 << 28) 26#define BDO_MODE_EYE (7 << 28) 27#define BDO_MODE_TESTDATA (8 << 28) 28 29#define BDO_MODE_MASK(mode) ((mode) & 0xf0000000) 30 31#endif 32