mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 06:33:03 +00:00
m1n1.fw.smc: Add read32f()
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
7f9eaecbad
commit
a1be8f233c
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,9 @@ class SMCEndpoint(ASCBaseEndpoint):
|
|||
def read32b(self, key):
|
||||
return struct.unpack(">I", self.read(key, 4))[0]
|
||||
|
||||
def read32f(self, key):
|
||||
return struct.unpack("<f", self.read(key, 4))[0]
|
||||
|
||||
def write64(self, key, data):
|
||||
self.write(key, struct.pack("<Q", data))
|
||||
|
||||
|
|
Loading…
Reference in a new issue