/
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/ccwdev.h
(8506B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2002, 2009 * * Author(s): Arnd Bergmann <arndb@de.ibm.com> * * Interface for CCW device drivers */ #ifndef _S390_CCWDEV_H_ #define _S390_CCWDEV_H_ #include <linux/device.h> #include <linux/mod_devicetable.h> #include <asm/chsc.h> #include <asm/fcx.h> #include <asm/irq.h> #include <asm/schid.h> /* structs from asm/cio.h */ struct irb; struct ccw1; struct ccw_dev_id; /* simplified initializers for struct ccw_device: * CCW_DEVICE and CCW_DEVICE_DEVTYPE initialize one * entry in your MODULE_DEVICE_TABLE and set the match_flag correctly */ #define CCW_DEVICE(cu, cum) \ .cu_type=(cu), .cu_model=(cum), \ .match_flags=(CCW_DEVICE_ID_MATCH_CU_TYPE \ | (cum ? CCW_DEVICE_ID_MATCH_CU_MODEL : 0)) #define CCW_DEVICE_DEVTYPE(cu, cum, dev, devm) \ .cu_type=(cu), .cu_model=(cum), .dev_type=(dev), .dev_model=(devm),\ .match_flags=CCW_DEVICE_ID_MATCH_CU_TYPE \ | ((cum) ? CCW_DEVICE_ID_MATCH_CU_MODEL : 0) \ | CCW_DEVICE_ID_MATCH_DEVICE_TYPE \ | ((devm) ? CCW_DEVICE_ID_MATCH_DEVICE_MODEL : 0) /* scan through an array of device ids and return the first * entry that matches the device. * * the array must end with an entry containing zero match_flags */ static inline const struct ccw_device_id * ccw_device_id_match(const struct ccw_device_id *array, const struct ccw_device_id *match) { const struct ccw_device_id *id = array; for (id = array; id->match_flags; id++) { if ((id->match_flags & CCW_DEVICE_ID_MATCH_CU_TYPE) && (id->cu_type != match->cu_type)) continue; if ((id->match_flags & CCW_DEVICE_ID_MATCH_CU_MODEL) && (id->cu_model != match->cu_model)) continue; if ((id->match_flags & CCW_DEVICE_ID_MATCH_DEVICE_TYPE) && (id->dev_type != match->dev_type)) continue; if ((id->match_flags & CCW_DEVICE_ID_MATCH_DEVICE_MODEL) && (id->dev_model != match->dev_model)) continue; return id; } return NULL; } /** * struct ccw_device - channel attached device * @ccwlock: pointer to device lock * @id: id of this device * @drv: ccw driver for this device * @dev: embedded device structure * @online: online status of device * @handler: interrupt handler * * @handler is a member of the device rather than the driver since a driver * can have different interrupt handlers for different ccw devices * (multi-subchannel drivers). */ struct ccw_device { spinlock_t *ccwlock; /* private: */ struct ccw_device_private *private; /* cio private information */ /* public: */ struct ccw_device_id id; struct ccw_driver *drv; struct device dev; int online; void (*handler) (struct ccw_device *, unsigned long, struct irb *); }; /* * Possible events used by the path_event notifier. */ #define PE_NONE 0x0 #define PE_PATH_GONE 0x1 /* A path is no longer available. */ #define PE_PATH_AVAILABLE 0x2 /* A path has become available and was successfully verified. */ #define PE_PATHGROUP_ESTABLISHED 0x4 /* A pathgroup was reset and had to be established again. */ #define PE_PATH_FCES_EVENT 0x8 /* The FCES Status of a path has * changed. */ /* * Possible CIO actions triggered by the unit check handler. */ enum uc_todo { UC_TODO_RETRY, UC_TODO_RETRY_ON_NEW_PATH, UC_TODO_STOP }; /** * struct ccw_driver - device driver for channel attached devices * @ids: ids supported by this driver * @probe: function called on probe * @remove: function called on remove * @set_online: called when setting device online * @set_offline: called when setting device offline * @notify: notify driver of device state changes * @path_event: notify driver of channel path events * @shutdown: called at device shutdown * @uc_handler: callback for unit check handler * @driver: embedded device driver structure * @int_class: interruption class to use for accounting interrupts */ struct ccw_driver { struct ccw_device_id *ids; int (*probe) (struct ccw_device *); void (*remove) (struct ccw_device *); int (*set_online) (struct ccw_device *); int (*set_offline) (struct ccw_device *); int (*notify) (struct ccw_device *, int); void (*path_event) (struct ccw_device *, int *); void (*shutdown) (struct ccw_device *); enum uc_todo (*uc_handler) (struct ccw_device *, struct irb *); struct device_driver driver; enum interruption_class int_class; }; extern struct ccw_device *get_ccwdev_by_busid(struct ccw_driver *cdrv, const char *bus_id); /* devices drivers call these during module load and unload. * When a driver is registered, its probe method is called * when new devices for its type pop up */ extern int ccw_driver_register (struct ccw_driver *driver); extern void ccw_driver_unregister (struct ccw_driver *driver); extern int ccw_device_set_options_mask(struct ccw_device *, unsigned long); extern int ccw_device_set_options(struct ccw_device *, unsigned long); extern void ccw_device_clear_options(struct ccw_device *, unsigned long); int ccw_device_is_pathgroup(struct ccw_device *cdev); int ccw_device_is_multipath(struct ccw_device *cdev); /* Allow for i/o completion notification after primary interrupt status. */ #define CCWDEV_EARLY_NOTIFICATION 0x0001 /* Report all interrupt conditions. */ #define CCWDEV_REPORT_ALL 0x0002 /* Try to perform path grouping. */ #define CCWDEV_DO_PATHGROUP 0x0004 /* Allow forced onlining of boxed devices. */ #define CCWDEV_ALLOW_FORCE 0x0008 /* Try to use multipath mode. */ #define CCWDEV_DO_MULTIPATH 0x0010 extern int ccw_device_start(struct ccw_device *, struct ccw1 *, unsigned long, __u8, unsigned long); extern int ccw_device_start_timeout(struct ccw_device *, struct ccw1 *, unsigned long, __u8, unsigned long, int); extern int ccw_device_start_key(struct ccw_device *, struct ccw1 *, unsigned long, __u8, __u8, unsigned long); extern int ccw_device_start_timeout_key(struct ccw_device *, struct ccw1 *, unsigned long, __u8, __u8, unsigned long, int); extern int ccw_device_resume(struct ccw_device *); extern int ccw_device_halt(struct ccw_device *, unsigned long); extern int ccw_device_clear(struct ccw_device *, unsigned long); int ccw_device_tm_start_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key); int ccw_device_tm_start_key(struct ccw_device *, struct tcw *, unsigned long, u8, u8); int ccw_device_tm_start_timeout_key(struct ccw_device *, struct tcw *, unsigned long, u8, u8, int); int ccw_device_tm_start(struct ccw_device *, struct tcw *, unsigned long, u8); int ccw_device_tm_start_timeout(struct ccw_device *, struct tcw *, unsigned long, u8, int); int ccw_device_tm_intrg(struct ccw_device *cdev); int ccw_device_get_mdc(struct ccw_device *cdev, u8 mask); extern int ccw_device_set_online(struct ccw_device *cdev); extern int ccw_device_set_offline(struct ccw_device *cdev); extern struct ciw *ccw_device_get_ciw(struct ccw_device *, __u32 cmd); extern __u8 ccw_device_get_path_mask(struct ccw_device *); extern void ccw_device_get_id(struct ccw_device *, struct ccw_dev_id *); #define get_ccwdev_lock(x) (x)->ccwlock #define to_ccwdev(n) container_of(n, struct ccw_device, dev) #define to_ccwdrv(n) container_of(n, struct ccw_driver, driver) extern struct ccw_device *ccw_device_create_console(struct ccw_driver *); extern void ccw_device_destroy_console(struct ccw_device *); extern int ccw_device_enable_console(struct ccw_device *); extern void ccw_device_wait_idle(struct ccw_device *); extern int ccw_device_force_console(struct ccw_device *); extern void *ccw_device_dma_zalloc(struct ccw_device *cdev, size_t size); extern void ccw_device_dma_free(struct ccw_device *cdev, void *cpu_addr, size_t size); int ccw_device_siosl(struct ccw_device *); extern void ccw_device_get_schid(struct ccw_device *, struct subchannel_id *); struct channel_path_desc_fmt0 *ccw_device_get_chp_desc(struct ccw_device *, int); u8 *ccw_device_get_util_str(struct ccw_device *cdev, int chp_idx); int ccw_device_pnso(struct ccw_device *cdev, struct chsc_pnso_area *pnso_area, u8 oc, struct chsc_pnso_resume_token resume_token, int cnc); int ccw_device_get_cssid(struct ccw_device *cdev, u8 *cssid); int ccw_device_get_iid(struct ccw_device *cdev, u8 *iid); int ccw_device_get_chpid(struct ccw_device *cdev, int chp_idx, u8 *chpid); int ccw_device_get_chid(struct ccw_device *cdev, int chp_idx, u16 *chid); #endif /* _S390_CCWDEV_H_ */
Save
cmd:
run