Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * PTP PCH
0004  *
0005  * Copyright 2019 Linaro Ltd.
0006  *
0007  * Author Lee Jones <lee.jones@linaro.org>
0008  */
0009 
0010 #ifndef _PTP_PCH_H_
0011 #define _PTP_PCH_H_
0012 
0013 #include <linux/types.h>
0014 
0015 struct pci_dev;
0016 
0017 void pch_ch_control_write(struct pci_dev *pdev, u32 val);
0018 u32  pch_ch_event_read(struct pci_dev *pdev);
0019 void pch_ch_event_write(struct pci_dev *pdev, u32 val);
0020 u32  pch_src_uuid_lo_read(struct pci_dev *pdev);
0021 u32  pch_src_uuid_hi_read(struct pci_dev *pdev);
0022 u64  pch_rx_snap_read(struct pci_dev *pdev);
0023 u64  pch_tx_snap_read(struct pci_dev *pdev);
0024 int  pch_set_station_address(u8 *addr, struct pci_dev *pdev);
0025 
0026 #endif /* _PTP_PCH_H_ */