Skip to content

Commit

Permalink
config/asrockrack.go, config/dell.go: Add dummy Unimplemented for rem…
Browse files Browse the repository at this point in the history
…aining generic funcs
  • Loading branch information
splaspood committed Jul 18, 2024
1 parent a8e48f6 commit f23f69e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions config/asrockrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,31 @@ func (cm *asrockrackVendorConfig) BootMode(mode string) error {
return

Check failure on line 125 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 125 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *asrockrackVendorConfig) IntelSGX(mode string) error {
// Unimplemented
return

Check failure on line 130 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 130 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *asrockrackVendorConfig) SecureBoot(enable bool) error {
// Unimplemented
return

Check failure on line 135 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 135 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *asrockrackVendorConfig) TPM(enable bool) error {
// Unimplemented
return

Check failure on line 140 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 140 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *asrockrackVendorConfig) SMT(enable bool) error {
// Unimplemented
return

Check failure on line 145 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 145 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *asrockrackVendorConfig) SRIOV(enable bool) error {
// Unimplemented
return

Check failure on line 150 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 150 in config/asrockrack.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *asrockrackVendorConfig) EnableTPM() {
// Unimplemented
}
Expand Down
26 changes: 26 additions & 0 deletions config/dell.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,32 @@ func (cm *dellVendorConfig) BootMode(mode string) error {
return

Check failure on line 149 in config/dell.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 149 in config/dell.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *dellVendorConfig) IntelSGX(mode string) error {
// Unimplemented
return

Check failure on line 154 in config/dell.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values

Check failure on line 154 in config/dell.go

View workflow job for this annotation

GitHub Actions / lint

not enough return values
}

func (cm *dellVendorConfig) SecureBoot(enable bool) error {
// Unimplemented
return
}

func (cm *dellVendorConfig) TPM(enable bool) error {
// Unimplemented
return
}

func (cm *dellVendorConfig) SMT(enable bool) error {
// Unimplemented
return
}

func (cm *dellVendorConfig) SRIOV(enable bool) error {
// Unimplemented
return
}


func (cm *dellVendorConfig) EnableTPM() {
cm.Raw("EnableTPM", "Enabled", []string{"BIOS.Setup.1-1"})
}
Expand Down

0 comments on commit f23f69e

Please sign in to comment.