Skip to content

Commit e52eaf4

Browse files
jsorefmarcan
authored andcommitted
Spelling fixes
Correct misspellings identified by the check-spelling action. Signed-off-by: Josh Soref <[email protected]>
1 parent c11a012 commit e52eaf4

22 files changed

Lines changed: 55 additions & 55 deletions

File tree

proxyclient/experiments/prores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def bswp16(x):
593593
unk_pad_0x5a_=b'\x00',
594594
bitstream_version=0,
595595
encoder_identifier=0xcafeface,
596-
# cannot change arbitrily, will break
596+
# cannot change arbitrarily, will break
597597
pix_surface_w_byteswap_=bswp16(im_W),
598598
pix_surface_h_byteswap_=bswp16(im_H),
599599
# seemingly can change arbitrarily

proxyclient/hv/trace_gpio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#trace_device("/arm-io/gpio", True)
66

7-
# trace gpio interrups, useful to follow the cascaded interrupts
7+
# trace gpio interrupts, useful to follow the cascaded interrupts
88
aic_phandle = getattr(hv.adt["/arm-io/aic"], "AAPL,phandle")
99
try:
1010
node = hv.adt["/arm-io/gpio0"]

proxyclient/m1n1/constructutils.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def ZPadding(size):
1515
return Const(bytes(size), Bytes(size))
1616

17-
def recusive_reload(obj, token=None):
17+
def recursive_reload(obj, token=None):
1818
global g_depth
1919

2020
if token is None:
@@ -36,7 +36,7 @@ def recusive_reload(obj, token=None):
3636
obj.subcon = obj.subcon._reloadcls(token=token)
3737
else:
3838
if isinstance(obj.subcon, Construct):
39-
recusive_reload(obj.subcon, token)
39+
recursive_reload(obj.subcon, token)
4040
if isinstance(obj, Construct) and hasattr(obj, 'subcons'):
4141
# Construct types that have lists
4242
new_subcons = []
@@ -47,7 +47,7 @@ def recusive_reload(obj, token=None):
4747
item = item._reloadcls()
4848
else:
4949
if isinstance(item, Construct):
50-
recusive_reload(item, token)
50+
recursive_reload(item, token)
5151
new_subcons.append(item)
5252
obj.subcons = new_subcons
5353

@@ -60,7 +60,7 @@ def recusive_reload(obj, token=None):
6060
obj.cases[i] = item._reloadcls(token=token)
6161
else:
6262
if isinstance(item, Construct):
63-
recusive_reload(item, token)
63+
recursive_reload(item, token)
6464

6565
for field in dir(obj):
6666
value = getattr(obj, field)
@@ -70,7 +70,7 @@ def recusive_reload(obj, token=None):
7070
setattr(obj, field, value._reloadcls(token=token))
7171
else:
7272
if isinstance(value, Construct):
73-
recusive_reload(value, token)
73+
recursive_reload(value, token)
7474

7575
obj._token = token
7676

@@ -140,7 +140,7 @@ class ConstructClassException(Exception):
140140
pass
141141

142142

143-
# We need to inherrit Construct as a metaclass so things like If and Select will work
143+
# We need to inherit Construct as a metaclass so things like If and Select will work
144144
class ReloadableConstructMeta(ReloadableMeta, Construct):
145145

146146
def __new__(cls, name, bases, attrs):
@@ -187,9 +187,9 @@ def __new__(cls, name, bases, attrs):
187187
return cls
188188

189189
class ConstructClassBase(Reloadable, metaclass=ReloadableConstructMeta):
190-
""" Offers two benifits over regular construct
190+
""" Offers two benefits over regular construct
191191
192-
1. It's reloadable, and can recusrivly reload other refrenced ConstructClasses
192+
1. It's reloadable, and can recursively reload other referenced ConstructClasses
193193
2. It's a class, so you can define methods
194194
195195
Currently only supports parsing, but could be extended to support building
@@ -276,7 +276,7 @@ def _reloadcls(cls, force=False, token=None):
276276
#print(f"_reloadcls({cls})", id(cls))
277277
newcls = Reloadable._reloadcls.__func__(cls, force)
278278
if hasattr(newcls, "subcon"):
279-
recusive_reload(newcls.subcon, token)
279+
recursive_reload(newcls.subcon, token)
280280
return newcls
281281

282282
def _apply(self, obj):
@@ -386,9 +386,9 @@ def _parse(self, stream, context, path):
386386
return Pointer._parse(self, stream, context, path)
387387

388388
class ConstructClass(ConstructClassBase, Container):
389-
""" Offers two benifits over regular construct
389+
""" Offers two benefits over regular construct
390390
391-
1. It's reloadable, and can recusrivly reload other refrenced ConstructClasses
391+
1. It's reloadable, and can recursively reload other referenced ConstructClasses
392392
2. It's a class, so you can define methods
393393
394394
Currently only supports parsing, but could be extended to support building

proxyclient/m1n1/fw/agx/cmdqueue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class WorkCommandBarrier(ConstructClass):
1010
"""
1111
sent before WorkCommand3D on the Submit3d queue.
12-
Might be for initilzing the tile buckets?
12+
Might be for initializing the tile buckets?
1313
1414
Example:
1515
00000004 0c378018 ffffffa0 00000c00 00000006 00000900 08002c9a 00000000
@@ -29,7 +29,7 @@ class WorkCommandBarrier(ConstructClass):
2929

3030
class WorkCommandInitBM(ConstructClass):
3131
"""
32-
occationally sent before WorkCommandTA on the SubmitTA queue.
32+
occasionally sent before WorkCommandTA on the SubmitTA queue.
3333
3434
Example:
3535
00000004 0c378018 ffffffa0 00000c00 00000006 00000900 08002c9a 00000000
@@ -494,7 +494,7 @@ class CommandQueueInfo(ConstructClass):
494494
""" Structure type shared by Submit3D, SubmitTA and SubmitCompute
495495
Applications have multiple of these, one of each submit type
496496
TODO: Can applications have more than one of each type? One per encoder?
497-
Mostly managed by GPU, only intialize by CPU
497+
Mostly managed by GPU, only initialize by CPU
498498
499499
"""
500500
subcon = Struct(

proxyclient/m1n1/fw/agx/initdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ class IOMapping(ConstructClass):
10201020
"phys_addr" / Int64ul,
10211021
"virt_addr" / Int64ul,
10221022
"size" / Int32ul,
1023-
"range_size" / Int32ul, # Useally the same as size, but for MCC, this is the size of a single MMC register range.
1023+
"range_size" / Int32ul, # Usually the same as size, but for MCC, this is the size of a single MMC register range.
10241024
"readwrite" / Int64ul
10251025
)
10261026

proxyclient/m1n1/fw/agx/microsequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ class FinalizeComputeCmd(ConstructClass):
772772
"unk_54" / Int32ul,
773773
"unk_58" / Int32ul,
774774
Ver("G == G14 && V < V13_0B4", "unk_5c_g14" / Int64ul),
775-
"restart_branch_offset" / Int32sl, # realative offset from start of Finalize to StartComputeCmd
775+
"restart_branch_offset" / Int32sl, # relative offset from start of Finalize to StartComputeCmd
776776
"unk_60" / Int32ul,
777777
Ver("V >= V13_0B4", "unk_64" / HexDump(Bytes(0xd))),
778778
Ver("V >= V13_0B4", "unkptr_71" / Int64ul),

proxyclient/m1n1/fw/dcp/ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ class ServiceRelay(IPCObject):
875875
else:
876876
sr_mapDeviceMemoryWithIndex = Callback(IOMFBStatus, "sr_mapDeviceMemoryWithIndex", obj=FourCC, index=uint, flags=uint, unk_u64=OutPtr(ulong), addr=OutPtr(ulong), length=OutPtr(ulong))
877877

878-
D400 = Callback(void, "get_property", obj=FourCC, key=string(0x40), value=OutPtr(Bytes(0x200)), lenght=InOutPtr(uint))
878+
D400 = Callback(void, "get_property", obj=FourCC, key=string(0x40), value=OutPtr(Bytes(0x200)), length=InOutPtr(uint))
879879
D401 = Callback(bool_, "sr_get_uint_prop", obj=FourCC, key=string(0x40), value=InOutPtr(ulong))
880880
D404 = Callback(void, "sr_set_uint_prop", obj=FourCC, key=string(0x40), value=uint)
881881
D406 = Callback(void, "set_fx_prop", obj=FourCC, key=string(0x40), value=uint)

proxyclient/m1n1/hv/gdbserver/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GDBServer:
1919
"fpsr" / Int32ul,
2020
"fpcr" / Int32ul,
2121
)
22-
__seperator = re.compile("[,;:]")
22+
__separator = re.compile("[,;:]")
2323

2424
def __init__(self, hv, address, log):
2525
self.__hc = None
@@ -177,12 +177,12 @@ def __eval(self, data):
177177
self.__hv.reboot()
178178

179179
if data[0] in b"m":
180-
split = GDBServer.__seperator.split(data[1:].decode(), maxsplit=1)
180+
split = GDBServer.__separator.split(data[1:].decode(), maxsplit=1)
181181
fields = [int(field, 16) for field in split]
182182
return bytes(self.__hv.readmem(fields[0], fields[1]).hex(), "utf-8")
183183

184184
if data[0] in b"M":
185-
split = GDBServer.__seperator.split(data[1:].decode(), maxsplit=2)
185+
split = GDBServer.__separator.split(data[1:].decode(), maxsplit=2)
186186
mem = bytes.fromhex(split[2])[:int(split[1], 16)]
187187
if self.__hv.writemem(int(split[0], 16), mem) < len(mem):
188188
return "E22"
@@ -237,7 +237,7 @@ def __eval(self, data):
237237
return b"OK"
238238

239239
if data[0] in b"q":
240-
split = GDBServer.__seperator.split(data[1:].decode(), maxsplit=1)
240+
split = GDBServer.__separator.split(data[1:].decode(), maxsplit=1)
241241
if split[0] == "C":
242242
cpu_id = self.__hg or self.__hv.ctx.cpu_id
243243
return b"QC" + bytes(format(cpu_id, "x"), "utf-8")
@@ -266,7 +266,7 @@ def __eval(self, data):
266266
return b""
267267

268268
if split[0] == "Xfer":
269-
xfer = GDBServer.__seperator.split(split[1], maxsplit=4)
269+
xfer = GDBServer.__separator.split(split[1], maxsplit=4)
270270
if xfer[0] == "features" and xfer[1] == "read":
271271
resource = os.path.join("features", xfer[2])
272272
annex = pkgutil.get_data(__name__, resource)
@@ -303,15 +303,15 @@ def __eval(self, data):
303303

304304
if data[0] in b"X":
305305
partition = data[1:].partition(b":")
306-
split = GDBServer.__seperator.split(partition[0].decode(), maxsplit=1)
306+
split = GDBServer.__separator.split(partition[0].decode(), maxsplit=1)
307307
mem = partition[2][:int(split[1], 16)]
308308
if self.__hv.writemem(int(split[0], 16), mem) < len(mem):
309309
return b"E22"
310310

311311
return b"OK"
312312

313313
if data[0] in b"z":
314-
split = GDBServer.__seperator.split(data[1:].decode(), maxsplit=2)
314+
split = GDBServer.__separator.split(data[1:].decode(), maxsplit=2)
315315
if split[0] == "1":
316316
self.__hv.remove_hw_bp(int(split[1], 16))
317317
return b"OK"
@@ -328,7 +328,7 @@ def __eval(self, data):
328328
return b""
329329

330330
if data[0] in b"Z":
331-
split = GDBServer.__seperator.split(data[1:].decode(), maxsplit=2)
331+
split = GDBServer.__separator.split(data[1:].decode(), maxsplit=2)
332332
if split[0] == "1":
333333
self.__hv.add_hw_bp(int(split[1], 16))
334334
return b"OK"

proxyclient/m1n1/hw/prores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# 01 -> 16bpp?
2727
# 10 -> 16bpp?
2828
# 11 -> 16bpp?
29-
# the last three all produce slightly differnet outputs
29+
# the last three all produce slightly different outputs
3030
# so might be 10/12/14/16?????
3131
'flags2', # +0x004
3232
'output_iova', # +0x008

proxyclient/m1n1/hw/uat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MemoryAttr(IntEnum):
2323
# 00 = Device nGnRnE
2424
Device = 1
2525
# f4 = Normal, Outer Writeback RW, Inner NC
26-
Shared = 2 # Probally Outer-shareable. Shared with either the main cpu or AGX hardware
26+
Shared = 2 # Probably Outer-shareable. Shared with either the main cpu or AGX hardware
2727
# 4f = Normal, Outer NC, Inner Writeback RW
2828
UNK3 = 3
2929
# 00 = Device nGnRnE

0 commit comments

Comments
 (0)