File: clp.h

package info (click to toggle)
linux 6.1.153-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,496,348 kB
  • sloc: ansic: 23,476,872; asm: 266,650; sh: 110,570; makefile: 49,899; python: 36,950; perl: 36,836; cpp: 6,055; yacc: 4,908; lex: 2,725; awk: 1,440; ruby: 25; sed: 5
file content (59 lines) | stat: -rw-r--r-- 1,426 bytes parent folder | download | duplicates (37)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_S390_CLP_H
#define _ASM_S390_CLP_H

/* CLP common request & response block size */
#define CLP_BLK_SIZE			PAGE_SIZE

/* Call Logical Processor - Command Code */
#define CLP_SLPC		0x0001

#define CLP_LPS_BASE	0
#define CLP_LPS_PCI	2

struct clp_req_hdr {
	u16 len;
	u16 cmd;
	u32 fmt		: 4;
	u32 reserved1	: 28;
	u64 reserved2;
} __packed;

struct clp_rsp_hdr {
	u16 len;
	u16 rsp;
	u32 fmt		: 4;
	u32 reserved1	: 28;
	u64 reserved2;
} __packed;

/* CLP Response Codes */
#define CLP_RC_OK			0x0010	/* Command request successfully */
#define CLP_RC_CMD			0x0020	/* Command code not recognized */
#define CLP_RC_PERM			0x0030	/* Command not authorized */
#define CLP_RC_FMT			0x0040	/* Invalid command request format */
#define CLP_RC_LEN			0x0050	/* Invalid command request length */
#define CLP_RC_8K			0x0060	/* Command requires 8K LPCB */
#define CLP_RC_RESNOT0			0x0070	/* Reserved field not zero */
#define CLP_RC_NODATA			0x0080	/* No data available */
#define CLP_RC_FC_UNKNOWN		0x0100	/* Function code not recognized */

/* Store logical-processor characteristics request */
struct clp_req_slpc {
	struct clp_req_hdr hdr;
} __packed;

struct clp_rsp_slpc {
	struct clp_rsp_hdr hdr;
	u32 reserved2[4];
	u32 lpif[8];
	u32 reserved3[8];
	u32 lpic[8];
} __packed;

struct clp_req_rsp_slpc {
	struct clp_req_slpc request;
	struct clp_rsp_slpc response;
} __packed;

#endif