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: e7990b0882
GitHub-Pull-Request: golang/sys#229
Reviewed-on: https://go-review.googlesource.com/c/sys/+/621735
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Yaroslav Kolomiiets
2024-10-22 01:46:19 +00:00
committed by Gopher Robot
parent 256d1dfe8f
commit 60d787735c
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -4203,6 +4203,13 @@ type (
}
)
const (
PTP_PF_NONE = 0x0
PTP_PF_EXTTS = 0x1
PTP_PF_PEROUT = 0x2
PTP_PF_PHYSYNC = 0x3
)
type (
HIDRawReportDescriptor struct {
Size uint32