1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, v.1, (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://opensource.org/licenses/CDDL-1.0. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2014-2017 Cavium, Inc. 24 * The contents of this file are subject to the terms of the Common Development 25 * and Distribution License, v.1, (the "License"). 26 27 * You may not use this file except in compliance with the License. 28 29 * You can obtain a copy of the License at available 30 * at http://opensource.org/licenses/CDDL-1.0 31 32 * See the License for the specific language governing permissions and 33 * limitations under the License. 34 */ 35 36 #ifndef __ECORE_PTP_H__ 37 #define __ECORE_PTP_H__ 38 39 enum _ecore_status_t ecore_ptp_hwtstamp_tx_on(struct ecore_hwfn *p_hwfn, 40 struct ecore_ptt *p_ptt); 41 42 enum _ecore_status_t ecore_ptp_cfg_rx_filters(struct ecore_hwfn *p_hwfn, 43 struct ecore_ptt *p_ptt, 44 enum ecore_ptp_filter_type type); 45 46 enum _ecore_status_t ecore_ptp_read_rx_ts(struct ecore_hwfn *p_hwfn, 47 struct ecore_ptt *p_ptt, u64 *ts); 48 49 enum _ecore_status_t ecore_ptp_read_tx_ts(struct ecore_hwfn *p_hwfn, 50 struct ecore_ptt *p_ptt, u64 *ts); 51 52 enum _ecore_status_t ecore_ptp_read_cc(struct ecore_hwfn *p_hwfn, 53 struct ecore_ptt *p_ptt, u64 *cycles); 54 55 enum _ecore_status_t ecore_ptp_adjfreq(struct ecore_hwfn *p_hwfn, 56 struct ecore_ptt *p_ptt, s32 ppb); 57 58 enum _ecore_status_t ecore_ptp_disable(struct ecore_hwfn *p_hwfn, 59 struct ecore_ptt *p_ptt); 60 61 enum _ecore_status_t ecore_ptp_enable(struct ecore_hwfn *p_hwfn, 62 struct ecore_ptt *p_ptt); 63 64 #endif /* __ECORE_PTP_H__ */ 65