Skip to content

Commit 60d7877

Browse files
yarikkgopherbot
authored andcommitted
unix: add PTP_PF_* constants on Linux
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]>
1 parent 256d1df commit 60d7877

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

unix/linux/types.go

+7
Original file line numberDiff line numberDiff line change
@@ -4148,6 +4148,13 @@ type (
41484148
PtpSysOffsetPrecise C.struct_ptp_sys_offset_precise
41494149
)
41504150

4151+
const (
4152+
PTP_PF_NONE = C.PTP_PF_NONE
4153+
PTP_PF_EXTTS = C.PTP_PF_EXTTS
4154+
PTP_PF_PEROUT = C.PTP_PF_PEROUT
4155+
PTP_PF_PHYSYNC = C.PTP_PF_PHYSYNC
4156+
)
4157+
41514158
type (
41524159
HIDRawReportDescriptor C.struct_hidraw_report_descriptor
41534160
HIDRawDevInfo C.struct_hidraw_devinfo

unix/ztypes_linux.go

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)