Skip to content

Commit

Permalink
fix: add CPUID to Interface
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walter <[email protected]>
  • Loading branch information
walterchris committed Jan 26, 2025
1 parent dcd21f0 commit 36b4b53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/hwapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ package hwapi

import "github.com/digitalocean/go-smbios/smbios"

//LowLevelHardwareInterfaces provides methods to access hardware found on modern x86_64 platforms
// LowLevelHardwareInterfaces provides methods to access hardware found on modern x86_64 platforms
type LowLevelHardwareInterfaces interface {

// cpuid.go
VersionString() string
HasSMX() bool
Expand All @@ -14,6 +13,7 @@ type LowLevelHardwareInterfaces interface {
CPUSignature() uint32
CPUSignatureFull() (uint32, uint32, uint32, uint32)
CPULogCount() uint32
CPUID(uint32, uint32) (uint32, uint32, uint32, uint32)

// e820.go
IterateOverE820Ranges(target string, callback func(start uint64, end uint64) bool) (bool, error)
Expand Down Expand Up @@ -48,10 +48,10 @@ type LowLevelHardwareInterfaces interface {
IterateOverSMBIOSTables(n uint8, callback func(s *smbios.Structure) bool) (ret bool, err error)
}

//HwAPI The context object for low level hardware api
// HwAPI The context object for low level hardware api
type HwAPI struct{}

//GetAPI Returns an initialized TxtApi object
// GetAPI Returns an initialized TxtApi object
func GetAPI() LowLevelHardwareInterfaces {
return HwAPI{}
}

0 comments on commit 36b4b53

Please sign in to comment.