ptp_pch.h 666 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * PTP PCH
  4. *
  5. * Copyright 2019 Linaro Ltd.
  6. *
  7. * Author Lee Jones <[email protected]>
  8. */
  9. #ifndef _PTP_PCH_H_
  10. #define _PTP_PCH_H_
  11. #include <linux/types.h>
  12. struct pci_dev;
  13. void pch_ch_control_write(struct pci_dev *pdev, u32 val);
  14. u32 pch_ch_event_read(struct pci_dev *pdev);
  15. void pch_ch_event_write(struct pci_dev *pdev, u32 val);
  16. u32 pch_src_uuid_lo_read(struct pci_dev *pdev);
  17. u32 pch_src_uuid_hi_read(struct pci_dev *pdev);
  18. u64 pch_rx_snap_read(struct pci_dev *pdev);
  19. u64 pch_tx_snap_read(struct pci_dev *pdev);
  20. int pch_set_station_address(u8 *addr, struct pci_dev *pdev);
  21. #endif /* _PTP_PCH_H_ */