Skip to content

Commit

Permalink
unix: add PTP_PF_* constants on Linux
Browse files Browse the repository at this point in the history
These represent valid values for PtpPinDesc.Func.
They are defined as enum, thus not emitted from mkerrors.sh.

Change-Id: Ibac22d56214fa0f64a4095dfc000692a5e5e994a
GitHub-Last-Rev: e7990b0
GitHub-Pull-Request: #229
Reviewed-on: https://go-review.googlesource.com/c/sys/+/621735
Reviewed-by: Michael Pratt <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
yarikk authored and gopherbot committed Oct 23, 2024
1 parent 256d1df commit 60d7877
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions unix/linux/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4148,6 +4148,13 @@ type (
PtpSysOffsetPrecise C.struct_ptp_sys_offset_precise
)

const (
PTP_PF_NONE = C.PTP_PF_NONE
PTP_PF_EXTTS = C.PTP_PF_EXTTS
PTP_PF_PEROUT = C.PTP_PF_PEROUT
PTP_PF_PHYSYNC = C.PTP_PF_PHYSYNC
)

type (
HIDRawReportDescriptor C.struct_hidraw_report_descriptor
HIDRawDevInfo C.struct_hidraw_devinfo
Expand Down
7 changes: 7 additions & 0 deletions unix/ztypes_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 60d7877

Please sign in to comment.