xref: /netbsd-src/sys/external/bsd/drm2/i915drm/intel_guc_log.c (revision 9e5fbd4f7f25d0a357b482f4591196ee62d90ed5)
1*9e5fbd4fSriastradh /*	$NetBSD: intel_guc_log.c,v 1.1 2021/12/19 11:49:12 riastradh Exp $	*/
2*9e5fbd4fSriastradh 
3*9e5fbd4fSriastradh /*-
4*9e5fbd4fSriastradh  * Copyright (c) 2021 The NetBSD Foundation, Inc.
5*9e5fbd4fSriastradh  * All rights reserved.
6*9e5fbd4fSriastradh  *
7*9e5fbd4fSriastradh  * Redistribution and use in source and binary forms, with or without
8*9e5fbd4fSriastradh  * modification, are permitted provided that the following conditions
9*9e5fbd4fSriastradh  * are met:
10*9e5fbd4fSriastradh  * 1. Redistributions of source code must retain the above copyright
11*9e5fbd4fSriastradh  *    notice, this list of conditions and the following disclaimer.
12*9e5fbd4fSriastradh  * 2. Redistributions in binary form must reproduce the above copyright
13*9e5fbd4fSriastradh  *    notice, this list of conditions and the following disclaimer in the
14*9e5fbd4fSriastradh  *    documentation and/or other materials provided with the distribution.
15*9e5fbd4fSriastradh  *
16*9e5fbd4fSriastradh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17*9e5fbd4fSriastradh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18*9e5fbd4fSriastradh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19*9e5fbd4fSriastradh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20*9e5fbd4fSriastradh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21*9e5fbd4fSriastradh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22*9e5fbd4fSriastradh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23*9e5fbd4fSriastradh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24*9e5fbd4fSriastradh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25*9e5fbd4fSriastradh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26*9e5fbd4fSriastradh  * POSSIBILITY OF SUCH DAMAGE.
27*9e5fbd4fSriastradh  */
28*9e5fbd4fSriastradh 
29*9e5fbd4fSriastradh #include <sys/cdefs.h>
30*9e5fbd4fSriastradh __KERNEL_RCSID(0, "$NetBSD: intel_guc_log.c,v 1.1 2021/12/19 11:49:12 riastradh Exp $");
31*9e5fbd4fSriastradh 
32*9e5fbd4fSriastradh #include "gt/uc/intel_guc_log.h"
33*9e5fbd4fSriastradh 
34*9e5fbd4fSriastradh void
intel_guc_log_init_early(struct intel_guc_log * log)35*9e5fbd4fSriastradh intel_guc_log_init_early(struct intel_guc_log *log)
36*9e5fbd4fSriastradh {
37*9e5fbd4fSriastradh }
38*9e5fbd4fSriastradh 
39*9e5fbd4fSriastradh int
intel_guc_log_create(struct intel_guc_log * log)40*9e5fbd4fSriastradh intel_guc_log_create(struct intel_guc_log *log)
41*9e5fbd4fSriastradh {
42*9e5fbd4fSriastradh 
43*9e5fbd4fSriastradh 	return 0;
44*9e5fbd4fSriastradh }
45*9e5fbd4fSriastradh 
46*9e5fbd4fSriastradh void
intel_guc_log_destroy(struct intel_guc_log * log)47*9e5fbd4fSriastradh intel_guc_log_destroy(struct intel_guc_log *log)
48*9e5fbd4fSriastradh {
49*9e5fbd4fSriastradh }
50*9e5fbd4fSriastradh 
51*9e5fbd4fSriastradh int
intel_guc_log_set_level(struct intel_guc_log * log,u32 level)52*9e5fbd4fSriastradh intel_guc_log_set_level(struct intel_guc_log *log, u32 level)
53*9e5fbd4fSriastradh {
54*9e5fbd4fSriastradh 
55*9e5fbd4fSriastradh 	return -ENOSYS;
56*9e5fbd4fSriastradh }
57*9e5fbd4fSriastradh 
58*9e5fbd4fSriastradh bool
intel_guc_log_relay_created(const struct intel_guc_log * log)59*9e5fbd4fSriastradh intel_guc_log_relay_created(const struct intel_guc_log *log)
60*9e5fbd4fSriastradh {
61*9e5fbd4fSriastradh 
62*9e5fbd4fSriastradh 	return false;
63*9e5fbd4fSriastradh }
64*9e5fbd4fSriastradh 
65*9e5fbd4fSriastradh int
intel_guc_log_relay_open(struct intel_guc_log * log)66*9e5fbd4fSriastradh intel_guc_log_relay_open(struct intel_guc_log *log)
67*9e5fbd4fSriastradh {
68*9e5fbd4fSriastradh 
69*9e5fbd4fSriastradh 	return -ENOSYS;
70*9e5fbd4fSriastradh }
71*9e5fbd4fSriastradh 
72*9e5fbd4fSriastradh int
intel_guc_log_relay_start(struct intel_guc_log * log)73*9e5fbd4fSriastradh intel_guc_log_relay_start(struct intel_guc_log *log)
74*9e5fbd4fSriastradh {
75*9e5fbd4fSriastradh 
76*9e5fbd4fSriastradh 	return -ENOSYS;
77*9e5fbd4fSriastradh }
78*9e5fbd4fSriastradh 
79*9e5fbd4fSriastradh void
intel_guc_log_relay_flush(struct intel_guc_log * log)80*9e5fbd4fSriastradh intel_guc_log_relay_flush(struct intel_guc_log *log)
81*9e5fbd4fSriastradh {
82*9e5fbd4fSriastradh }
83*9e5fbd4fSriastradh 
84*9e5fbd4fSriastradh void
intel_guc_log_relay_close(struct intel_guc_log * log)85*9e5fbd4fSriastradh intel_guc_log_relay_close(struct intel_guc_log *log)
86*9e5fbd4fSriastradh {
87*9e5fbd4fSriastradh }
88*9e5fbd4fSriastradh 
89*9e5fbd4fSriastradh void
intel_guc_log_handle_flush_event(struct intel_guc_log * log)90*9e5fbd4fSriastradh intel_guc_log_handle_flush_event(struct intel_guc_log *log)
91*9e5fbd4fSriastradh {
92*9e5fbd4fSriastradh }
93