hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/include/asm/vas.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright 2016-17 IBM Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #ifndef _ASM_POWERPC_VAS_H
....@@ -56,7 +52,7 @@
5652 * Receive window attributes specified by the (in-kernel) owner of window.
5753 */
5854 struct vas_rx_win_attr {
59
- void *rx_fifo;
55
+ u64 rx_fifo;
6056 int rx_fifo_size;
6157 int wcreds_max;
6258
....@@ -90,7 +86,6 @@
9086 int wcreds_max;
9187 int lpid;
9288 int pidr; /* hardware PID (from SPRN_PID) */
93
- int pid; /* linux process id */
9489 int pswid;
9590 int rsvd_txbuf_count;
9691 int tc_mode;
....@@ -168,13 +163,15 @@
168163 int vas_paste_crb(struct vas_window *win, int offset, bool re);
169164
170165 /*
171
- * Return a system-wide unique id for the VAS window @win.
166
+ * Register / unregister coprocessor type to VAS API which will be exported
167
+ * to user space. Applications can use this API to open / close window
168
+ * which can be used to send / receive requests directly to cooprcessor.
169
+ *
170
+ * Only NX GZIP coprocessor type is supported now, but this API can be
171
+ * used for others in future.
172172 */
173
-extern u32 vas_win_id(struct vas_window *win);
173
+int vas_register_coproc_api(struct module *mod, enum vas_cop_type cop_type,
174
+ const char *name);
175
+void vas_unregister_coproc_api(void);
174176
175
-/*
176
- * Return the power bus paste address associated with @win so the caller
177
- * can map that address into their address space.
178
- */
179
-extern u64 vas_win_paste_addr(struct vas_window *win);
180177 #endif /* __ASM_POWERPC_VAS_H */