/
usr
/
src
/
linux-headers-5.15.0-190
/
arch
/
s390
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-190/arch/s390/include/asm
mkdir
upload
Name
Size
Mode
Actions
fpu/
-
0755
rm
trace/
-
0755
rm
vdso/
-
0755
rm
airq.h
3421
0644
edit
dl
rm
alternative-asm.h
3148
0644
edit
dl
rm
alternative.h
5742
0644
edit
dl
rm
ap.h
13098
0644
edit
dl
rm
appldata.h
1593
0644
edit
dl
rm
archrandom.h
1319
0644
edit
dl
rm
asm-const.h
376
0644
edit
dl
rm
asm-prototypes.h
227
0644
edit
dl
rm
atomic.h
4225
0644
edit
dl
rm
atomic_ops.h
5100
0644
edit
dl
rm
barrier.h
1892
0644
edit
dl
rm
bitops.h
10153
0644
edit
dl
rm
boot_data.h
481
0644
edit
dl
rm
bug.h
1562
0644
edit
dl
rm
bugs.h
441
0644
edit
dl
rm
cache.h
389
0644
edit
dl
rm
ccwdev.h
8506
0644
edit
dl
rm
ccwgroup.h
2301
0644
edit
dl
rm
checksum.h
3352
0644
edit
dl
rm
chpid.h
979
0644
edit
dl
rm
chsc.h
1384
0644
edit
dl
rm
cio.h
9083
0644
edit
dl
rm
clocksource.h
184
0644
edit
dl
rm
clp.h
1426
0644
edit
dl
rm
cmb.h
425
0644
edit
dl
rm
cmpxchg.h
5195
0644
edit
dl
rm
compat.h
5333
0644
edit
dl
rm
cpacf.h
17759
0644
edit
dl
rm
cpcmd.h
1135
0644
edit
dl
rm
cpu.h
549
0644
edit
dl
rm
cpufeature.h
958
0644
edit
dl
rm
cputime.h
840
0644
edit
dl
rm
cpu_mcf.h
3064
0644
edit
dl
rm
cpu_mf-insn.h
478
0644
edit
dl
rm
cpu_mf.h
9606
0644
edit
dl
rm
crw.h
1907
0644
edit
dl
rm
css_chars.h
904
0644
edit
dl
rm
ctl_reg.h
3715
0644
edit
dl
rm
current.h
405
0644
edit
dl
rm
debug.h
14318
0644
edit
dl
rm
delay.h
647
0644
edit
dl
rm
diag.h
7017
0644
edit
dl
rm
dis.h
636
0644
edit
dl
rm
dma.h
456
0644
edit
dl
rm
dwarf.h
952
0644
edit
dl
rm
eadm.h
2082
0644
edit
dl
rm
ebcdic.h
1442
0644
edit
dl
rm
elf.h
11210
0644
edit
dl
rm
entry-common.h
1590
0644
edit
dl
rm
exec.h
269
0644
edit
dl
rm
extable.h
2184
0644
edit
dl
rm
extmem.h
804
0644
edit
dl
rm
facility.h
2760
0644
edit
dl
rm
fcx.h
8102
0644
edit
dl
rm
ftrace.h
1875
0644
edit
dl
rm
ftrace.lds.h
720
0644
edit
dl
rm
futex.h
1927
0644
edit
dl
rm
gmap.h
5760
0644
edit
dl
rm
hardirq.h
777
0644
edit
dl
rm
hugetlb.h
2966
0644
edit
dl
rm
hw_irq.h
210
0644
edit
dl
rm
idals.h
5317
0644
edit
dl
rm
idle.h
753
0644
edit
dl
rm
io.h
2153
0644
edit
dl
rm
ipl.h
3708
0644
edit
dl
rm
irq.h
2635
0644
edit
dl
rm
irqflags.h
1810
0644
edit
dl
rm
irq_work.h
204
0644
edit
dl
rm
isc.h
1036
0644
edit
dl
rm
itcw.h
950
0644
edit
dl
rm
jump_label.h
1411
0644
edit
dl
rm
kasan.h
1772
0644
edit
dl
rm
Kbuild
253
0644
edit
dl
rm
kdebug.h
386
0644
edit
dl
rm
kexec.h
2620
0644
edit
dl
rm
kfence.h
1148
0644
edit
dl
rm
kprobes.h
2175
0644
edit
dl
rm
kvm_host.h
27155
0644
edit
dl
rm
kvm_para.h
3761
0644
edit
dl
rm
linkage.h
729
0644
edit
dl
rm
livepatch.h
474
0644
edit
dl
rm
lowcore.h
6595
0644
edit
dl
rm
mem_detect.h
2589
0644
edit
dl
rm
mem_encrypt.h
365
0644
edit
dl
rm
mmu.h
1515
0644
edit
dl
rm
mmu_context.h
3491
0644
edit
dl
rm
mmzone.h
316
0644
edit
dl
rm
module.h
1209
0644
edit
dl
rm
nmi.h
3698
0644
edit
dl
rm
nospec-branch.h
342
0644
edit
dl
rm
nospec-insn.h
3616
0644
edit
dl
rm
numa.h
386
0644
edit
dl
rm
os_info.h
1136
0644
edit
dl
rm
page-states.h
486
0644
edit
dl
rm
page.h
5194
0644
edit
dl
rm
pci.h
8691
0644
edit
dl
rm
pci_clp.h
5346
0644
edit
dl
rm
pci_debug.h
608
0644
edit
dl
rm
pci_dma.h
5541
0644
edit
dl
rm
pci_insn.h
4089
0644
edit
dl
rm
pci_io.h
4405
0644
edit
dl
rm
percpu.h
6638
0644
edit
dl
rm
perf_event.h
3245
0644
edit
dl
rm
pgalloc.h
4024
0644
edit
dl
rm
pgtable.h
51845
0644
edit
dl
rm
pkey.h
737
0644
edit
dl
rm
pnet.h
325
0644
edit
dl
rm
preempt.h
3218
0644
edit
dl
rm
processor.h
9637
0644
edit
dl
rm
ptdump.h
255
0644
edit
dl
rm
ptrace.h
5865
0644
edit
dl
rm
purgatory.h
329
0644
edit
dl
rm
qdio.h
10011
0644
edit
dl
rm
runtime_instr.h
634
0644
edit
dl
rm
schid.h
525
0644
edit
dl
rm
sclp.h
4332
0644
edit
dl
rm
scsw.h
24630
0644
edit
dl
rm
seccomp.h
808
0644
edit
dl
rm
sections.h
1357
0644
edit
dl
rm
serial.h
147
0644
edit
dl
rm
setup.h
5156
0644
edit
dl
rm
set_memory.h
989
0644
edit
dl
rm
shmparam.h
285
0644
edit
dl
rm
signal.h
644
0644
edit
dl
rm
sigp.h
1900
0644
edit
dl
rm
smp.h
1932
0644
edit
dl
rm
softirq_stack.h
329
0644
edit
dl
rm
sparsemem.h
214
0644
edit
dl
rm
spinlock.h
3525
0644
edit
dl
rm
spinlock_types.h
407
0644
edit
dl
rm
stacktrace.h
6168
0644
edit
dl
rm
stp.h
1706
0644
edit
dl
rm
string.h
5847
0644
edit
dl
rm
switch_to.h
1400
0644
edit
dl
rm
syscall.h
4148
0644
edit
dl
rm
syscall_wrapper.h
5506
0644
edit
dl
rm
sysinfo.h
4339
0644
edit
dl
rm
termios.h
685
0644
edit
dl
rm
thread_info.h
3605
0644
edit
dl
rm
timex.h
6538
0644
edit
dl
rm
tlb.h
4296
0644
edit
dl
rm
tlbflush.h
3233
0644
edit
dl
rm
topology.h
2876
0644
edit
dl
rm
tpi.h
736
0644
edit
dl
rm
types.h
318
0644
edit
dl
rm
uaccess.h
10049
0644
edit
dl
rm
unistd.h
1030
0644
edit
dl
rm
unwind.h
3360
0644
edit
dl
rm
uprobes.h
588
0644
edit
dl
rm
user.h
3384
0644
edit
dl
rm
uv.h
10977
0644
edit
dl
rm
vdso.h
746
0644
edit
dl
rm
vga.h
170
0644
edit
dl
rm
vmalloc.h
90
0644
edit
dl
rm
vmlinux.lds.h
1167
0644
edit
dl
rm
vtime.h
718
0644
edit
dl
rm
vtimer.h
830
0644
edit
dl
rm
vx-insn.h
13477
0644
edit
dl
rm
xor.h
454
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/arch/s390/include/asm/pci.h
(8691B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_S390_PCI_H #define __ASM_S390_PCI_H #include <linux/pci.h> #include <linux/mutex.h> #include <linux/iommu.h> #include <linux/pci_hotplug.h> #include <asm-generic/pci.h> #include <asm/pci_clp.h> #include <asm/pci_debug.h> #include <asm/pci_insn.h> #include <asm/sclp.h> #define PCIBIOS_MIN_IO 0x1000 #define PCIBIOS_MIN_MEM 0x10000000 #define pcibios_assign_all_busses() (0) void __iomem *pci_iomap(struct pci_dev *, int, unsigned long); void pci_iounmap(struct pci_dev *, void __iomem *); int pci_domain_nr(struct pci_bus *); int pci_proc_domain(struct pci_bus *); #define ZPCI_BUS_NR 0 /* default bus number */ #define ZPCI_NR_DMA_SPACES 1 #define ZPCI_NR_DEVICES CONFIG_PCI_NR_FUNCTIONS #define ZPCI_DOMAIN_BITMAP_SIZE (1 << 16) #ifdef PCI #if (ZPCI_NR_DEVICES > ZPCI_DOMAIN_BITMAP_SIZE) # error ZPCI_NR_DEVICES can not be bigger than ZPCI_DOMAIN_BITMAP_SIZE #endif #endif /* PCI */ /* PCI Function Controls */ #define ZPCI_FC_FN_ENABLED 0x80 #define ZPCI_FC_ERROR 0x40 #define ZPCI_FC_BLOCKED 0x20 #define ZPCI_FC_DMA_ENABLED 0x10 #define ZPCI_FMB_DMA_COUNTER_VALID (1 << 23) struct zpci_fmb_fmt0 { u64 dma_rbytes; u64 dma_wbytes; }; struct zpci_fmb_fmt1 { u64 rx_bytes; u64 rx_packets; u64 tx_bytes; u64 tx_packets; }; struct zpci_fmb_fmt2 { u64 consumed_work_units; u64 max_work_units; }; struct zpci_fmb_fmt3 { u64 tx_bytes; }; struct zpci_fmb { u32 format : 8; u32 fmt_ind : 24; u32 samples; u64 last_update; /* common counters */ u64 ld_ops; u64 st_ops; u64 stb_ops; u64 rpcit_ops; /* format specific counters */ union { struct zpci_fmb_fmt0 fmt0; struct zpci_fmb_fmt1 fmt1; struct zpci_fmb_fmt2 fmt2; struct zpci_fmb_fmt3 fmt3; }; } __packed __aligned(128); enum zpci_state { ZPCI_FN_STATE_STANDBY = 0, ZPCI_FN_STATE_CONFIGURED = 1, ZPCI_FN_STATE_RESERVED = 2, }; struct zpci_bar_struct { struct resource *res; /* bus resource */ void __iomem *mio_wb; void __iomem *mio_wt; u32 val; /* bar start & 3 flag bits */ u16 map_idx; /* index into bar mapping array */ u8 size; /* order 2 exponent */ }; struct s390_domain; struct kvm_zdev; #define ZPCI_FUNCTIONS_PER_BUS 256 struct zpci_bus { struct kref kref; struct pci_bus *bus; struct zpci_dev *function[ZPCI_FUNCTIONS_PER_BUS]; struct list_head resources; struct list_head bus_next; struct resource bus_resource; int pchid; int domain_nr; bool multifunction; enum pci_bus_speed max_bus_speed; }; /* Private data per function */ struct zpci_dev { struct zpci_bus *zbus; struct list_head entry; /* list of all zpci_devices, needed for hotplug, etc. */ struct list_head bus_next; struct kref kref; struct hotplug_slot hotplug_slot; enum zpci_state state; u32 fid; /* function ID, used by sclp */ u32 fh; /* function handle, used by insn's */ u32 gisa; /* GISA designation for passthrough */ u16 vfn; /* virtual function number */ u16 pchid; /* physical channel ID */ u16 maxstbl; /* Maximum store block size */ u8 pfgid; /* function group ID */ u8 pft; /* pci function type */ u8 port; u8 dtsm; /* Supported DT mask */ u8 rid_available : 1; u8 has_hp_slot : 1; u8 has_resources : 1; u8 is_physfn : 1; u8 util_str_avail : 1; u8 irqs_registered : 1; u8 reserved : 2; unsigned int devfn; /* DEVFN part of the RID*/ struct mutex lock; u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */ u32 uid; /* user defined id */ u8 util_str[CLP_UTIL_STR_LEN]; /* utility string */ /* IRQ stuff */ u64 msi_addr; /* MSI address */ unsigned int max_msi; /* maximum number of MSI's */ unsigned int msi_first_bit; unsigned int msi_nr_irqs; struct airq_iv *aibv; /* adapter interrupt bit vector */ unsigned long aisb; /* number of the summary bit */ /* DMA stuff */ unsigned long *dma_table; spinlock_t dma_table_lock; int tlb_refresh; spinlock_t iommu_bitmap_lock; unsigned long *iommu_bitmap; unsigned long *lazy_bitmap; unsigned long iommu_size; unsigned long iommu_pages; unsigned int next_bit; struct iommu_device iommu_dev; /* IOMMU core handle */ char res_name[16]; bool mio_capable; struct zpci_bar_struct bars[PCI_STD_NUM_BARS]; u64 start_dma; /* Start of available DMA addresses */ u64 end_dma; /* End of available DMA addresses */ u64 dma_mask; /* DMA address space mask */ /* Function measurement block */ struct zpci_fmb *fmb; u16 fmb_update; /* update interval */ u16 fmb_length; /* software counters */ atomic64_t allocated_pages; atomic64_t mapped_pages; atomic64_t unmapped_pages; u8 version; enum pci_bus_speed max_bus_speed; struct dentry *debugfs_dev; /* IOMMU and passthrough */ struct s390_domain *s390_domain; /* s390 IOMMU domain data */ struct kvm_zdev *kzdev; struct mutex kzdev_lock; struct notifier_block kvm_group_nb; /* Jammy-specific */ }; static inline bool zdev_enabled(struct zpci_dev *zdev) { return (zdev->fh & (1UL << 31)) ? true : false; } extern const struct attribute_group *zpci_attr_groups[]; extern unsigned int s390_pci_force_floating __initdata; extern unsigned int s390_pci_no_rid; extern union zpci_sic_iib *zpci_aipb; extern struct airq_iv *zpci_aif_sbv; /* ----------------------------------------------------------------------------- Prototypes ----------------------------------------------------------------------------- */ /* Base stuff */ struct zpci_dev *zpci_create_device(u32 fid, u32 fh, enum zpci_state state); int zpci_enable_device(struct zpci_dev *); int zpci_disable_device(struct zpci_dev *); int zpci_scan_configured_device(struct zpci_dev *zdev, u32 fh); int zpci_deconfigure_device(struct zpci_dev *zdev); void zpci_device_reserved(struct zpci_dev *zdev); bool zpci_is_device_configured(struct zpci_dev *zdev); int zpci_hot_reset_device(struct zpci_dev *zdev); int zpci_register_ioat(struct zpci_dev *, u8, u64, u64, u64); int zpci_unregister_ioat(struct zpci_dev *, u8); void zpci_remove_reserved_devices(void); void zpci_update_fh(struct zpci_dev *zdev, u32 fh); /* CLP */ int clp_setup_writeback_mio(void); int clp_scan_pci_devices(void); int clp_query_pci_fn(struct zpci_dev *zdev); int clp_enable_fh(struct zpci_dev *zdev, u32 *fh, u8 nr_dma_as); int clp_disable_fh(struct zpci_dev *zdev, u32 *fh); int clp_get_state(u32 fid, enum zpci_state *state); int clp_refresh_fh(u32 fid, u32 *fh); /* UID */ void update_uid_checking(bool new); /* IOMMU Interface */ int zpci_init_iommu(struct zpci_dev *zdev); void zpci_destroy_iommu(struct zpci_dev *zdev); #ifdef CONFIG_PCI static inline bool zpci_use_mio(struct zpci_dev *zdev) { return static_branch_likely(&have_mio) && zdev->mio_capable; } /* Error handling and recovery */ void zpci_event_error(void *); void zpci_event_availability(void *); bool zpci_is_enabled(void); #else /* CONFIG_PCI */ static inline void zpci_event_error(void *e) {} static inline void zpci_event_availability(void *e) {} #endif /* CONFIG_PCI */ #ifdef CONFIG_HOTPLUG_PCI_S390 int zpci_init_slot(struct zpci_dev *); void zpci_exit_slot(struct zpci_dev *); #else /* CONFIG_HOTPLUG_PCI_S390 */ static inline int zpci_init_slot(struct zpci_dev *zdev) { return 0; } static inline void zpci_exit_slot(struct zpci_dev *zdev) {} #endif /* CONFIG_HOTPLUG_PCI_S390 */ /* Helpers */ static inline struct zpci_dev *to_zpci(struct pci_dev *pdev) { struct zpci_bus *zbus = pdev->sysdata; return zbus->function[pdev->devfn]; } static inline struct zpci_dev *to_zpci_dev(struct device *dev) { return to_zpci(to_pci_dev(dev)); } struct zpci_dev *get_zdev_by_fid(u32); /* DMA */ int zpci_dma_init(void); void zpci_dma_exit(void); int zpci_dma_init_device(struct zpci_dev *zdev); int zpci_dma_exit_device(struct zpci_dev *zdev); /* IRQ */ int __init zpci_irq_init(void); void __init zpci_irq_exit(void); int zpci_set_irq(struct zpci_dev *zdev); int zpci_clear_irq(struct zpci_dev *zdev); /* FMB */ int zpci_fmb_enable_device(struct zpci_dev *); int zpci_fmb_disable_device(struct zpci_dev *); /* Debug */ int zpci_debug_init(void); void zpci_debug_exit(void); void zpci_debug_init_device(struct zpci_dev *, const char *); void zpci_debug_exit_device(struct zpci_dev *); /* Error handling */ int zpci_report_error(struct pci_dev *, struct zpci_report_error_header *); int zpci_clear_error_state(struct zpci_dev *zdev); int zpci_reset_load_store_blocked(struct zpci_dev *zdev); #ifdef CONFIG_NUMA /* Returns the node based on PCI bus */ static inline int __pcibus_to_node(const struct pci_bus *bus) { return NUMA_NO_NODE; } static inline const struct cpumask * cpumask_of_pcibus(const struct pci_bus *bus) { return cpu_online_mask; } #endif /* CONFIG_NUMA */ #endif
Save
cmd:
run