1*5dd0baa8Skettenis // SPDX-License-Identifier: GPL-2.0-only OR MIT
2*5dd0baa8Skettenis /* Copyright 2023 */
3*5dd0baa8Skettenis
4*5dd0baa8Skettenis #include <linux/completion.h>
5*5dd0baa8Skettenis
6*5dd0baa8Skettenis #include "afk.h"
7*5dd0baa8Skettenis #include "dcp.h"
8*5dd0baa8Skettenis
disp_service_init(struct apple_epic_service * service,const char * name,const char * class,s64 unit)9*5dd0baa8Skettenis static void disp_service_init(struct apple_epic_service *service, const char *name,
10*5dd0baa8Skettenis const char *class, s64 unit)
11*5dd0baa8Skettenis {
12*5dd0baa8Skettenis }
13*5dd0baa8Skettenis
14*5dd0baa8Skettenis
15*5dd0baa8Skettenis static const struct apple_epic_service_ops ibootep_ops[] = {
16*5dd0baa8Skettenis {
17*5dd0baa8Skettenis .name = "disp0-service",
18*5dd0baa8Skettenis .init = disp_service_init,
19*5dd0baa8Skettenis },
20*5dd0baa8Skettenis {}
21*5dd0baa8Skettenis };
22*5dd0baa8Skettenis
ibootep_init(struct apple_dcp * dcp)23*5dd0baa8Skettenis int ibootep_init(struct apple_dcp *dcp)
24*5dd0baa8Skettenis {
25*5dd0baa8Skettenis dcp->ibootep = afk_init(dcp, DISP0_ENDPOINT, ibootep_ops);
26*5dd0baa8Skettenis afk_start(dcp->ibootep);
27*5dd0baa8Skettenis
28*5dd0baa8Skettenis return 0;
29*5dd0baa8Skettenis }
30