experiments/dcp: add system ep

This commit is contained in:
Janne Grunau 2022-09-22 22:01:34 +02:00
parent d5be7edd97
commit cdb6d087b2
2 changed files with 6 additions and 0 deletions

View file

@ -110,9 +110,13 @@ dcp = DCPClient(u, dcp_addr, dart, disp_dart)
dcp.dva_offset = getattr(u.adt["/arm-io/dcp"][0], "asc_dram_mask", 0) dcp.dva_offset = getattr(u.adt["/arm-io/dcp"][0], "asc_dram_mask", 0)
dcp.start() dcp.start()
dcp.start_ep(0x20)
dcp.start_ep(0x37) dcp.start_ep(0x37)
dcp.dcpep.initialize() dcp.dcpep.initialize()
dcp.system.wait_for("system")
dcp.system.system.setProperty("gAFKConfigLogMask", 0xffff)
mgr = DCPManager(dcp.dcpep, compat) mgr = DCPManager(dcp.dcpep, compat)
mon.poll() mon.poll()

View file

@ -3,9 +3,11 @@ from ...utils import *
from ..asc import StandardASC from ..asc import StandardASC
from .dcpep import DCPEndpoint from .dcpep import DCPEndpoint
from ..afk.epic import *
class DCPClient(StandardASC): class DCPClient(StandardASC):
ENDPOINTS = { ENDPOINTS = {
0x20: AFKSystemEndpoint,
0x37: DCPEndpoint, 0x37: DCPEndpoint,
} }