mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +08:00
d60a540ac5
Pull s390 updates from Heiko Carstens: "Since Martin is on vacation you get the s390 pull request for the v4.15 merge window this time from me. Besides a lot of cleanups and bug fixes these are the most important changes: - a new regset for runtime instrumentation registers - hardware accelerated AES-GCM support for the aes_s390 module - support for the new CEX6S crypto cards - support for FORTIFY_SOURCE - addition of missing z13 and new z14 instructions to the in-kernel disassembler - generate opcode tables for the in-kernel disassembler out of a simple text file instead of having to manually maintain those tables - fast memset16, memset32 and memset64 implementations - removal of named saved segment support - hardware counter support for z14 - queued spinlocks and queued rwlocks implementations for s390 - use the stack_depth tracking feature for s390 BPF JIT - a new s390_sthyi system call which emulates the sthyi (store hypervisor information) instruction - removal of the old KVM virtio transport - an s390 specific CPU alternatives implementation which is used in the new spinlock code" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (88 commits) MAINTAINERS: add virtio-ccw.h to virtio/s390 section s390/noexec: execute kexec datamover without DAT s390: fix transactional execution control register handling s390/bpf: take advantage of stack_depth tracking s390: simplify transactional execution elf hwcap handling s390/zcrypt: Rework struct ap_qact_ap_info. s390/virtio: remove unused header file kvm_virtio.h s390: avoid undefined behaviour s390/disassembler: generate opcode tables from text file s390/disassembler: remove insn_to_mnemonic() s390/dasd: avoid calling do_gettimeofday() s390: vfio-ccw: Do not attempt to free no-op, test and tic cda. s390: remove named saved segment support s390/archrandom: Reconsider s390 arch random implementation s390/pci: do not require AIS facility s390/qdio: sanitize put_indicator s390/qdio: use atomic_cmpxchg s390/nmi: avoid using long-displacement facility s390: pass endianness info to sparse s390/decompressor: remove informational messages ...
88 lines
2.6 KiB
C
88 lines
2.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_S390_PCI_INSN_H
|
|
#define _ASM_S390_PCI_INSN_H
|
|
|
|
/* Load/Store status codes */
|
|
#define ZPCI_PCI_ST_FUNC_NOT_ENABLED 4
|
|
#define ZPCI_PCI_ST_FUNC_IN_ERR 8
|
|
#define ZPCI_PCI_ST_BLOCKED 12
|
|
#define ZPCI_PCI_ST_INSUF_RES 16
|
|
#define ZPCI_PCI_ST_INVAL_AS 20
|
|
#define ZPCI_PCI_ST_FUNC_ALREADY_ENABLED 24
|
|
#define ZPCI_PCI_ST_DMA_AS_NOT_ENABLED 28
|
|
#define ZPCI_PCI_ST_2ND_OP_IN_INV_AS 36
|
|
#define ZPCI_PCI_ST_FUNC_NOT_AVAIL 40
|
|
#define ZPCI_PCI_ST_ALREADY_IN_RQ_STATE 44
|
|
|
|
/* Load/Store return codes */
|
|
#define ZPCI_PCI_LS_OK 0
|
|
#define ZPCI_PCI_LS_ERR 1
|
|
#define ZPCI_PCI_LS_BUSY 2
|
|
#define ZPCI_PCI_LS_INVAL_HANDLE 3
|
|
|
|
/* Load/Store address space identifiers */
|
|
#define ZPCI_PCIAS_MEMIO_0 0
|
|
#define ZPCI_PCIAS_MEMIO_1 1
|
|
#define ZPCI_PCIAS_MEMIO_2 2
|
|
#define ZPCI_PCIAS_MEMIO_3 3
|
|
#define ZPCI_PCIAS_MEMIO_4 4
|
|
#define ZPCI_PCIAS_MEMIO_5 5
|
|
#define ZPCI_PCIAS_CFGSPC 15
|
|
|
|
/* Modify PCI Function Controls */
|
|
#define ZPCI_MOD_FC_REG_INT 2
|
|
#define ZPCI_MOD_FC_DEREG_INT 3
|
|
#define ZPCI_MOD_FC_REG_IOAT 4
|
|
#define ZPCI_MOD_FC_DEREG_IOAT 5
|
|
#define ZPCI_MOD_FC_REREG_IOAT 6
|
|
#define ZPCI_MOD_FC_RESET_ERROR 7
|
|
#define ZPCI_MOD_FC_RESET_BLOCK 9
|
|
#define ZPCI_MOD_FC_SET_MEASURE 10
|
|
|
|
/* FIB function controls */
|
|
#define ZPCI_FIB_FC_ENABLED 0x80
|
|
#define ZPCI_FIB_FC_ERROR 0x40
|
|
#define ZPCI_FIB_FC_LS_BLOCKED 0x20
|
|
#define ZPCI_FIB_FC_DMAAS_REG 0x10
|
|
|
|
/* FIB function controls */
|
|
#define ZPCI_FIB_FC_ENABLED 0x80
|
|
#define ZPCI_FIB_FC_ERROR 0x40
|
|
#define ZPCI_FIB_FC_LS_BLOCKED 0x20
|
|
#define ZPCI_FIB_FC_DMAAS_REG 0x10
|
|
|
|
/* Function Information Block */
|
|
struct zpci_fib {
|
|
u32 fmt : 8; /* format */
|
|
u32 : 24;
|
|
u32 : 32;
|
|
u8 fc; /* function controls */
|
|
u64 : 56;
|
|
u64 pba; /* PCI base address */
|
|
u64 pal; /* PCI address limit */
|
|
u64 iota; /* I/O Translation Anchor */
|
|
u32 : 1;
|
|
u32 isc : 3; /* Interrupt subclass */
|
|
u32 noi : 12; /* Number of interrupts */
|
|
u32 : 2;
|
|
u32 aibvo : 6; /* Adapter interrupt bit vector offset */
|
|
u32 sum : 1; /* Adapter int summary bit enabled */
|
|
u32 : 1;
|
|
u32 aisbo : 6; /* Adapter int summary bit offset */
|
|
u32 : 32;
|
|
u64 aibv; /* Adapter int bit vector address */
|
|
u64 aisb; /* Adapter int summary bit address */
|
|
u64 fmb_addr; /* Function measurement block address and key */
|
|
u32 : 32;
|
|
u32 gd;
|
|
} __packed __aligned(8);
|
|
|
|
u8 zpci_mod_fc(u64 req, struct zpci_fib *fib, u8 *status);
|
|
int zpci_refresh_trans(u64 fn, u64 addr, u64 range);
|
|
int zpci_load(u64 *data, u64 req, u64 offset);
|
|
int zpci_store(u64 data, u64 req, u64 offset);
|
|
int zpci_store_block(const u64 *data, u64 req, u64 offset);
|
|
int zpci_set_irq_ctrl(u16 ctl, char *unused, u8 isc);
|
|
|
|
#endif
|