1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright IBM Corp. 2020
5 * Author(s): Alexandra Winter <wintera@linux.ibm.com>
7 * Interface for Channel Subsystem Call
9 #ifndef _ASM_S390_CHSC_H
10 #define _ASM_S390_CHSC_H
12 #include <uapi/asm/chsc.h>
15 * Operation codes for CHSC PNSO:
16 * PNSO_OC_NET_BRIDGE_INFO - only addresses that are visible to a bridgeport
17 * PNSO_OC_NET_ADDR_INFO - all addresses
19 #define PNSO_OC_NET_BRIDGE_INFO 0
20 #define PNSO_OC_NET_ADDR_INFO 3
22 * struct chsc_pnso_naid_l2 - network address information descriptor
23 * @nit: Network interface token
24 * @addr_lnid: network address and logical network id (VLAN ID)
26 struct chsc_pnso_naid_l2
{
28 struct { u8 mac
[6]; u16 lnid
; } addr_lnid
;
31 struct chsc_pnso_resume_token
{
36 struct chsc_pnso_naihdr
{
37 struct chsc_pnso_resume_token resume_token
;
45 struct chsc_pnso_area
{
46 struct chsc_header request
;
59 struct chsc_pnso_resume_token resume_token
;
63 struct chsc_header response
;
65 struct chsc_pnso_naihdr naihdr
;
66 struct chsc_pnso_naid_l2 entries
[0];
67 } __packed
__aligned(PAGE_SIZE
);
69 #endif /* _ASM_S390_CHSC_H */