/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux
NameSizeModeActions
amba/-0755rm
avf/-0755rm
bcma/-0755rm
byteorder/-0755rm
can/-0755rm
ceph/-0755rm
clk/-0755rm
crush/-0755rm
decompress/-0755rm
dma/-0755rm
dsa/-0755rm
extcon/-0755rm
firmware/-0755rm
fpga/-0755rm
fsl/-0755rm
gpio/-0755rm
hsi/-0755rm
iio/-0755rm
input/-0755rm
irqchip/-0755rm
isdn/-0755rm
lockd/-0755rm
mailbox/-0755rm
mfd/-0755rm
mlx4/-0755rm
mlx5/-0755rm
mmc/-0755rm
mtd/-0755rm
mux/-0755rm
net/-0755rm
netfilter/-0755rm
netfilter_arp/-0755rm
netfilter_bridge/-0755rm
netfilter_ipv4/-0755rm
netfilter_ipv6/-0755rm
pcs/-0755rm
perf/-0755rm
phy/-0755rm
pinctrl/-0755rm
platform_data/-0755rm
power/-0755rm
qed/-0755rm
raid/-0755rm
regulator/-0755rm
remoteproc/-0755rm
reset/-0755rm
rpmsg/-0755rm
rtc/-0755rm
sched/-0755rm
soc/-0755rm
soundwire/-0755rm
spi/-0755rm
ssb/-0755rm
sunrpc/-0755rm
ulpi/-0755rm
unaligned/-0755rm
usb/-0755rm
uwb/-0755rm
wimax/-0755rm
8250_pci.h10380644editdlrm
a.out.h3540644editdlrm
acct.h25510644editdlrm
acpi.h431300644editdlrm
acpi_apmt.h3670644editdlrm
acpi_dma.h33000644editdlrm
acpi_iort.h32350644editdlrm
acpi_pmtmr.h6740644editdlrm
adb.h18320644editdlrm
adfs_fs.h5740644editdlrm
adxl.h3100644editdlrm
aer.h18220644editdlrm
agpgart.h39080644editdlrm
agp_backend.h35340644editdlrm
ahci-remap.h6070644editdlrm
ahci_platform.h17720644editdlrm
aio.h6510644editdlrm
alarmtimer.h18750644editdlrm
altera_jtaguart.h3790644editdlrm
altera_uart.h3970644editdlrm
amd-iommu.h69310644editdlrm
amd-pstate.h33560644editdlrm
anon_inodes.h4940644editdlrm
aperture.h16190644editdlrm
apm-emulation.h15750644editdlrm
apm_bios.h27460644editdlrm
apple-gmux.h14590644editdlrm
apple_bl.h4980644editdlrm
arch_topology.h19830644editdlrm
arm-cci.h20580644editdlrm
arm-smccc.h160660644editdlrm
arm_sdei.h26410644editdlrm
array_size.h3320644editdlrm
ascii85.h5320644editdlrm
asn1.h20390644editdlrm
asn1_ber_bytecode.h27830644editdlrm
asn1_decoder.h6750644editdlrm
assoc_array.h31560644editdlrm
assoc_array_priv.h56300644editdlrm
async.h45910644editdlrm
async_tx.h74870644editdlrm
ata.h339800644editdlrm
atalk.h45500644editdlrm
ata_platform.h7290644editdlrm
ath9k_platform.h14770644editdlrm
atm.h2870644editdlrm
atmdev.h104570644editdlrm
atmel-mci.h14290644editdlrm
atmel-ssc.h99710644editdlrm
atmel_pdc.h15020644editdlrm
atmel_tc.h116000644editdlrm
atm_suni.h2530644editdlrm
atm_tcp.h5110644editdlrm
atomic.h375460644editdlrm
attribute_container.h27990644editdlrm
audit.h203320644editdlrm
audit_arch.h5590644editdlrm
auto_dev-ioctl.h4540644editdlrm
auto_fs.h4360644editdlrm
auxiliary_bus.h27870644editdlrm
auxvec.h3040644editdlrm
average.h24810644editdlrm
b1pcmcia.h6660644editdlrm
backing-dev-defs.h103270644editdlrm
backing-dev.h122600644editdlrm
backlight.h134470644editdlrm
badblocks.h21880644editdlrm
balloon_compaction.h67450644editdlrm
bcd.h5590644editdlrm
bch.h26600644editdlrm
bcm47xx_nvram.h12470644editdlrm
bcm47xx_sprom.h6000644editdlrm
bcm47xx_wdt.h5550644editdlrm
bcm963xx_nvram.h30360644editdlrm
bcm963xx_tag.h36850644editdlrm
binfmts.h54430644editdlrm
bio.h206900644editdlrm
bitfield.h58990644editdlrm
bitmap.h214960644editdlrm
bitops.h88700644editdlrm
bitrev.h25410644editdlrm
bits.h15120644editdlrm
bit_spinlock.h23600644editdlrm
blk-cgroup.h227280644editdlrm
blk-mq-pci.h2690644editdlrm
blk-mq-rdma.h2340644editdlrm
blk-mq-virtio.h2930644editdlrm
blk-mq.h160740644editdlrm
blk-pm.h7170644editdlrm
blkdev.h588980644editdlrm
blkpg.h4360644editdlrm
blktrace_api.h37770644editdlrm
blk_types.h153420644editdlrm
blockgroup_lock.h8100644editdlrm
bma150.h19380644editdlrm
bottom_half.h8030644editdlrm
bpf-cgroup.h198180644editdlrm
bpf-netns.h15590644editdlrm
bpf.h733870644editdlrm
bpfilter.h7910644editdlrm
bpfptr.h17330644editdlrm
bpf_lirc.h6980644editdlrm
bpf_local_storage.h53490644editdlrm
bpf_lsm.h14310644editdlrm
bpf_trace.h1660644editdlrm
bpf_types.h53950644editdlrm
bpf_verifier.h187910644editdlrm
brcmphy.h140230644editdlrm
bsearch.h2750644editdlrm
bsg-lib.h24550644editdlrm
bsg.h10940644editdlrm
btf.h73630644editdlrm
btf_ids.h51740644editdlrm
btree-128.h27370644editdlrm
btree-type.h39910644editdlrm
btree.h69990644editdlrm
btrfs.h1450644editdlrm
buffer_head.h143790644editdlrm
bug.h19670644editdlrm
buildid.h2480644editdlrm
build_bug.h30660644editdlrm
bvec.h41190644editdlrm
c2port.h15290644editdlrm
cache.h21820644editdlrm
cacheinfo.h47960644editdlrm
capability.h81790644editdlrm
cb710.h58270644editdlrm
cciss_ioctl.h10530644editdlrm
ccp.h186970644editdlrm
cc_platform.h31400644editdlrm
cdev.h8450644editdlrm
cdrom.h91930644editdlrm
cfag12864b.h14990644editdlrm
cgroup-defs.h272420644editdlrm
cgroup.h288800644editdlrm
cgroup_rdma.h13580644editdlrm
cgroup_subsys.h12590644editdlrm
circ_buf.h11200644editdlrm
cleancache.h39820644editdlrm
cleanup.h142150644editdlrm
clk-provider.h375420644editdlrm
clk.h251570644editdlrm
clkdev.h16980644editdlrm
clockchips.h74450644editdlrm
clocksource.h91880644editdlrm
clock_cooling.h21060644editdlrm
cm4000_cs.h1990644editdlrm
cma.h12120644editdlrm
cmdline-parser.h12380644editdlrm
cnt32_to_63.h36910644editdlrm
cn_proc.h18900644editdlrm
coda.h22440644editdlrm
coda_psdev.h26920644editdlrm
compaction.h76540644editdlrm
compat.h357390644editdlrm
compat_time.h4990644editdlrm
compiler-clang.h24460644editdlrm
compiler-gcc.h57560644editdlrm
compiler-intel.h9490644editdlrm
compiler.h157180644editdlrm
compiler_attributes.h106000644editdlrm
compiler_types.h69310644editdlrm
completion.h42010644editdlrm
component.h44590644editdlrm
concap.h37780644editdlrm
configfs.h94410644editdlrm
connector.h24900644editdlrm
console.h75040644editdlrm
consolemap.h10680644editdlrm
console_struct.h69660644editdlrm
const.h4210644editdlrm
container.h6680644editdlrm
container_of.h12780644editdlrm
context_tracking.h51680644editdlrm
context_tracking_state.h15290644editdlrm
cookie.h12540644editdlrm
cordic.h17940644editdlrm
coredump.h7970644editdlrm
coresight-pmu.h9890644editdlrm
coresight-stm.h1520644editdlrm
coresight.h96760644editdlrm
counter.h154970644editdlrm
counter_enum.h14630644editdlrm
count_zeros.h16600644editdlrm
cper.h168260644editdlrm
cpu.h79590644editdlrm
cpufeature.h18820644editdlrm
cpufreq.h342480644editdlrm
cpuhotplug.h142690644editdlrm
cpuidle.h130610644editdlrm
cpuidle_haltpoll.h3120644editdlrm
cpumask.h297210644editdlrm
cpuset.h82970644editdlrm
cpu_cooling.h23890644editdlrm
cpu_pm.h28500644editdlrm
cpu_rmap.h19020644editdlrm
crash_core.h32920644editdlrm
crash_dump.h51930644editdlrm
crc-ccitt.h6090644editdlrm
crc-itu-t.h6130644editdlrm
crc-t10dif.h4530644editdlrm
crc4.h1920644editdlrm
crc7.h3160644editdlrm
crc8.h37470644editdlrm
crc16.h6220644editdlrm
crc32.h28940644editdlrm
crc32c.h3310644editdlrm
crc32poly.h6100644editdlrm
cred.h127490644editdlrm
crypto.h593930644editdlrm
cryptohash.h5460644editdlrm
cs5535.h64260644editdlrm
ctype.h17910644editdlrm
cuda.h5010644editdlrm
cxl_err.h4680644editdlrm
cyclades.h106070644editdlrm
damon.h196160644editdlrm
davinci_emac.h11500644editdlrm
dax.h75530644editdlrm
dca.h26980644editdlrm
dcache.h196210644editdlrm
dccp.h109890644editdlrm
dcookies.h13290644editdlrm
debugfs.h119210644editdlrm
debugobjects.h39880644editdlrm
debug_locks.h16270644editdlrm
delay.h23350644editdlrm
delayacct.h62850644editdlrm
delayed_call.h7090644editdlrm
dell-led.h1280644editdlrm
devcoredump.h28490644editdlrm
devfreq-event.h57780644editdlrm
devfreq.h129870644editdlrm
devfreq_cooling.h36080644editdlrm
device-mapper.h195290644editdlrm
device.h672750644editdlrm
device_cgroup.h16800644editdlrm
devm-helpers.h27400644editdlrm
devpts_fs.h13140644editdlrm
dev_printk.h77310644editdlrm
digsig.h13790644editdlrm
dim.h89510644editdlrm
dio.h112290644editdlrm
dirent.h2160644editdlrm
dlm.h72400644editdlrm
dlm_plock.h6780644editdlrm
dm-bufio.h45740644editdlrm
dm-dirty-log.h40380644editdlrm
dm-io.h19800644editdlrm
dm-kcopyd.h30130644editdlrm
dm-region-hash.h31820644editdlrm
dm9000.h11360644editdlrm
dma-buf.h215470644editdlrm
dma-contiguous.h50700644editdlrm
dma-direct.h36810644editdlrm
dma-direction.h4070644editdlrm
dma-fence-array.h29830644editdlrm
dma-fence-chain.h35760644editdlrm
dma-fence-unwrap.h22980644editdlrm
dma-fence.h211620644editdlrm
dma-iommu.h30200644editdlrm
dma-map-ops.h108630644editdlrm
dma-mapping.h231700644editdlrm
dma-resv.h172450644editdlrm
dmaengine.h548910644editdlrm
dmapool.h18320644editdlrm
dmar.h87910644editdlrm
dmi.h43750644editdlrm
dnotify.h10470644editdlrm
dns_resolver.h13390644editdlrm
dqblk_qtree.h22380644editdlrm
dqblk_v1.h3270644editdlrm
dqblk_v2.h4060644editdlrm
drbd.h109230644editdlrm
drbd_genl.h220100644editdlrm
drbd_genl_api.h18080644editdlrm
drbd_limits.h80030644editdlrm
ds2782_battery.h1580644editdlrm
dtlk.h35840644editdlrm
dw_apb_timer.h17430644editdlrm
dynamic_debug.h58310644editdlrm
dynamic_queue_limits.h38120644editdlrm
earlycpio.h3590644editdlrm
ecryptfs.h39150644editdlrm
edac.h207180644editdlrm
edd.h14690644editdlrm
edma.h8070644editdlrm
eeprom_93cx6.h30080644editdlrm
eeprom_93xx46.h7760644editdlrm
efi-bgrt.h6440644editdlrm
efi.h628130644editdlrm
efs_vh.h15850644editdlrm
eisa.h30310644editdlrm
elevator.h60590644editdlrm
elf-fdpic.h22370644editdlrm
elf-randomize.h5830644editdlrm
elf.h15650644editdlrm
elfcore-compat.h12670644editdlrm
elfcore.h21600644editdlrm
elfnote.h36250644editdlrm
enclosure.h47110644editdlrm
energy_model.h59940644editdlrm
err.h15830644editdlrm
errname.h2830644editdlrm
errno.h14240644editdlrm
error-injection.h6070644editdlrm
errqueue.h5240644editdlrm
errseq.h3820644editdlrm
etherdevice.h169170644editdlrm
ethtool.h355800644editdlrm
ethtool_netlink.h19200644editdlrm
eventfd.h21670644editdlrm
eventpoll.h24570644editdlrm
evm.h29850644editdlrm
export.h36970644editdlrm
exportfs.h76920644editdlrm
ext2_fs.h9670644editdlrm
extable.h13090644editdlrm
extcon-provider.h44310644editdlrm
extcon.h102700644editdlrm
f2fs_fs.h185260644editdlrm
f75375s.h5410644editdlrm
falloc.h17190644editdlrm
fanotify.h23360644editdlrm
fault-inject.h19750644editdlrm
fb.h287120644editdlrm
fbcon.h21360644editdlrm
fcdevice.h9880644editdlrm
fcntl.h18080644editdlrm
fd.h4900644editdlrm
fddidevice.h10440644editdlrm
fdtable.h36160644editdlrm
fec.h6090644editdlrm
file.h31470644editdlrm
filter.h427810644editdlrm
fips.h1670644editdlrm
firewire.h138680644editdlrm
firmware-map.h13510644editdlrm
firmware.h58740644editdlrm
fixp-arith.h45160644editdlrm
flat.h16530644editdlrm
flex_array.h44120644editdlrm
flex_proportions.h28810644editdlrm
fmc-sdb.h13190644editdlrm
fmc.h98770644editdlrm
font.h15980644editdlrm
fortify-string.h165500644editdlrm
freezer.h92570644editdlrm
frontswap.h31210644editdlrm
fs.h1189140644editdlrm
fscache-cache.h192540644editdlrm
fscache.h295770644editdlrm
fscrypt.h94410644editdlrm
fscrypt_notsupp.h50770644editdlrm
fscrypt_supp.h74210644editdlrm
fsi.h24240644editdlrm
fsl-diu-fb.h41790644editdlrm
fsldma.h3980644editdlrm
fsl_devices.h44300644editdlrm
fsl_hypervisor.h28240644editdlrm
fsl_ifc.h256580644editdlrm
fsnotify.h77960644editdlrm
fsnotify_backend.h206650644editdlrm
fs_context.h90970644editdlrm
fs_enet_pd.h34570644editdlrm
fs_parser.h47500644editdlrm
fs_pin.h6190644editdlrm
fs_stack.h8110644editdlrm
fs_struct.h17510644editdlrm
fs_uart_pd.h15230644editdlrm
ftrace.h336190644editdlrm
ftrace_irq.h11630644editdlrm
futex.h24970644editdlrm
fwnode.h75790644editdlrm
gameport.h56950644editdlrm
gcd.h1930644editdlrm
genalloc.h79500644editdlrm
generic-radix-tree.h66710644editdlrm
genetlink.h13790644editdlrm
genhd.h160760644editdlrm
genl_magic_func.h118690644editdlrm
genl_magic_struct.h78050644editdlrm
getcpu.h6410644editdlrm
gfp.h242080644editdlrm
glob.h2560644editdlrm
goldfish.h6050644editdlrm
gpio-pxa.h5710644editdlrm
gpio.h54780644editdlrm
gpio_keys.h17820644editdlrm
hardirq.h32640644editdlrm
hash.h29980644editdlrm
hashtable.h68050644editdlrm
hdlc.h34130644editdlrm
hdlcdrv.h64700644editdlrm
hdmi.h128510644editdlrm
hid-debug.h14580644editdlrm
hid-roccat.h4840644editdlrm
hid-sensor-hub.h91900644editdlrm
hid-sensor-ids.h76170644editdlrm
hid.h383390644editdlrm
hidden.h9660644editdlrm
hiddev.h14580644editdlrm
hidraw.h11460644editdlrm
highmem-internal.h49520644editdlrm
highmem.h82350644editdlrm
highuid.h31940644editdlrm
hil.h188570644editdlrm
hil_mlc.h52490644editdlrm
hippidevice.h12630644editdlrm
hmm.h46560644editdlrm
host1x.h86180644editdlrm
hpet.h26150644editdlrm
hp_sdc.h143520644editdlrm
hrtimer.h166510644editdlrm
hrtimer_defs.h6600644editdlrm
htcpld.h6170644editdlrm
hugetlb.h274960644editdlrm
hugetlb_cgroup.h70560644editdlrm
hugetlb_inline.h3740644editdlrm
huge_mm.h157430644editdlrm
hwmon-sysfs.h20240644editdlrm
hwmon-vid.h15180644editdlrm
hwmon.h140840644editdlrm
hwspinlock.h130440644editdlrm
hw_breakpoint.h44050644editdlrm
hw_random.h23770644editdlrm
hyperv.h500100644editdlrm
hypervisor.h7480644editdlrm
i2c-algo-bit.h23220644editdlrm
i2c-algo-pca.h25990644editdlrm
i2c-algo-pcf.h19260644editdlrm
i2c-dev.h3710644editdlrm
i2c-mux.h16680644editdlrm
i2c-pxa.h4380644editdlrm
i2c-smbus.h19910644editdlrm
i2c.h378740644editdlrm
i8042.h21910644editdlrm
i8253.h8090644editdlrm
icmp.h10850644editdlrm
icmpv6.h17320644editdlrm
ide.h474030644editdlrm
idr.h97150644editdlrm
ieee80211.h1530580644editdlrm
ieee802154.h117800644editdlrm
if_arp.h19000644editdlrm
if_bridge.h53800644editdlrm
if_eql.h11000644editdlrm
if_ether.h15060644editdlrm
if_fddi.h35260644editdlrm
if_frad.h29370644editdlrm
if_link.h5920644editdlrm
if_ltalk.h1880644editdlrm
if_macvlan.h27570644editdlrm
if_phonet.h3190644editdlrm
if_pppol2tp.h7270644editdlrm
if_pppox.h29790644editdlrm
if_tap.h22880644editdlrm
if_team.h82970644editdlrm
if_tun.h20500644editdlrm
if_tunnel.h4090644editdlrm
if_vlan.h211240644editdlrm
igmp.h47530644editdlrm
ihex.h20010644editdlrm
ima.h34960644editdlrm
imx-media.h8110644editdlrm
in.h25920644editdlrm
in6.h18930644editdlrm
indirect_call_wrapper.h21910644editdlrm
inet.h29180644editdlrm
inetdevice.h86580644editdlrm
inet_diag.h26060644editdlrm
init.h97780644editdlrm
initrd.h7890644editdlrm
init_ohci1394_dma.h1960644editdlrm
init_task.h14070644editdlrm
inotify.h7130644editdlrm
input-polldev.h20740644editdlrm
input.h190020644editdlrm
instrumented.h28680644editdlrm
integrity.h10740644editdlrm
intel-iommu.h320630644editdlrm
intel-ish-client-if.h40910644editdlrm
intel-pti.h16000644editdlrm
intel_rapl.h42650644editdlrm
intel_th.h25010644editdlrm
interrupt.h247770644editdlrm
interval_tree.h8310644editdlrm
interval_tree_generic.h75130644editdlrm
io-64-nonatomic-hi-lo.h24560644editdlrm
io-64-nonatomic-lo-hi.h24560644editdlrm
io-mapping.h52220644editdlrm
io-pgtable.h84980644editdlrm
io.h62010644editdlrm
ioasid.h21740644editdlrm
ioc3.h32140644editdlrm
ioc4.h59200644editdlrm
iocontext.h48780644editdlrm
iomap.h138930644editdlrm
iommu-helper.h11460644editdlrm
iommu.h371800644editdlrm
iopoll.h81750644editdlrm
ioport.h126860644editdlrm
ioprio.h24640644editdlrm
iosys-map.h153110644editdlrm
iova.h42650644editdlrm
ip.h12350644editdlrm
ipack.h90620644editdlrm
ipc.h6130644editdlrm
ipc_namespace.h46820644editdlrm
ipmi-fru.h36940644editdlrm
ipmi.h116330644editdlrm
ipmi_smi.h110220644editdlrm
ipv6.h92830644editdlrm
ipv6_route.h5940644editdlrm
irq.h417830644editdlrm
irqbypass.h36810644editdlrm
irqchip.h15970644editdlrm
irqdesc.h84600644editdlrm
irqdomain.h206450644editdlrm
irqflags.h81050644editdlrm
irqhandler.h3620644editdlrm
irqnr.h8560644editdlrm
irqreturn.h5030644editdlrm
irq_cpustat.h8450644editdlrm
irq_poll.h5750644editdlrm
irq_sim.h9710644editdlrm
irq_work.h19240644editdlrm
isa.h21660644editdlrm
isapnp.h38960644editdlrm
iscsi_boot_sysfs.h41850644editdlrm
iscsi_ibft.h13060644editdlrm
isdn.h235450644editdlrm
isdnif.h197230644editdlrm
isdn_divertif.h13010644editdlrm
isdn_ppp.h67970644editdlrm
isicom.h15280644editdlrm
ism.h22730644editdlrm
iversion.h126700644editdlrm
jbd2.h479710644editdlrm
jhash.h47350644editdlrm
jiffies.h163400644editdlrm
journal-head.h29340644editdlrm
joystick.h4370644editdlrm
jump_label.h153760644editdlrm
jump_label_ratelimit.h28670644editdlrm
jz4740-adc.h10230644editdlrm
jz4780-nemc.h11850644editdlrm
kallsyms.h43350644editdlrm
kasan-checks.h14950644editdlrm
kasan.h126780644editdlrm
kbd_diacr.h1980644editdlrm
kbd_kern.h39310644editdlrm
kbuild.h3800644editdlrm
kconfig.h24810644editdlrm
kcore.h8910644editdlrm
kcov.h24630644editdlrm
kcsan-checks.h88590644editdlrm
kcsan.h19480644editdlrm
kdb.h74780644editdlrm
kdebug.h4870644editdlrm
kdev_t.h17440644editdlrm
kernel-page-flags.h5050644editdlrm
kernel.h206160644editdlrm
kernelcapi.h45520644editdlrm
kernel_stat.h30310644editdlrm
kernfs.h193360644editdlrm
kern_levels.h16110644editdlrm
kexec.h108960644editdlrm
key-type.h65830644editdlrm
key.h131490644editdlrm
keyboard.h6650644editdlrm
kfifo.h254310644editdlrm
kgdb.h115690644editdlrm
khugepaged.h28320644editdlrm
klist.h19260644editdlrm
kmemleak.h39540644editdlrm
kmod.h17520644editdlrm
kmsg_dump.h26270644editdlrm
kobject.h77270644editdlrm
kobject_ns.h19340644editdlrm
kobj_map.h5450644editdlrm
kprobes.h132220644editdlrm
kref.h33610644editdlrm
ks0108.h9600644editdlrm
ks8842.h12230644editdlrm
ks8851_mll.h10630644editdlrm
ksm.h27530644editdlrm
kstrtox.h67510644editdlrm
kthread.h79240644editdlrm
ktime.h66070644editdlrm
kvm_dirty_ring.h26330644editdlrm
kvm_host.h657100644editdlrm
kvm_irqfd.h24580644editdlrm
kvm_para.h4020644editdlrm
kvm_types.h32640644editdlrm
l2tp.h2610644editdlrm
lapb.h17520644editdlrm
latencytop.h12070644editdlrm
lcd.h38670644editdlrm
lcm.h2750644editdlrm
led-class-flash.h56190644editdlrm
led-lm3530.h37930644editdlrm
leds-bd2802.h6420644editdlrm
leds-lp3944.h10990644editdlrm
leds-lp3952.h25590644editdlrm
leds-pca9532.h10310644editdlrm
leds-regulator.h13170644editdlrm
leds-tca6507.h10420644editdlrm
leds.h156230644editdlrm
leds_pwm.h4070644editdlrm
libata.h685400644editdlrm
libfdt.h2020644editdlrm
libfdt_env.h4910644editdlrm
libgcc.h10990644editdlrm
libnvdimm.h98730644editdlrm
libps2.h20770644editdlrm
license.h3740644editdlrm
lightnvm.h119800644editdlrm
limits.h7150644editdlrm
linear_range.h16450644editdlrm
linkage.h93310644editdlrm
linkmode.h25590644editdlrm
linux_logo.h19560644editdlrm
lis3lv02d.h51250644editdlrm
list.h321050644editdlrm
list_bl.h49050644editdlrm
list_lru.h81930644editdlrm
list_nulls.h43220644editdlrm
list_sort.h3070644editdlrm
livepatch.h91090644editdlrm
llc.h7490644editdlrm
llist.h93680644editdlrm
local_lock.h13620644editdlrm
local_lock_internal.h34990644editdlrm
lockdep.h215850644editdlrm
lockdep_types.h53080644editdlrm
lockref.h14400644editdlrm
log2.h65420644editdlrm
logic_pio.h32570644editdlrm
lp.h28270644editdlrm
lru_cache.h127220644editdlrm
lsm_audit.h27910644editdlrm
lsm_hooks.h708180644editdlrm
lsm_hook_defs.h204550644editdlrm
lz4.h270720644editdlrm
lzo.h14040644editdlrm
mailbox_client.h18370644editdlrm
mailbox_controller.h55020644editdlrm
maple.h27750644editdlrm
marvell_phy.h16910644editdlrm
math.h51850644editdlrm
math64.h76620644editdlrm
max17040_battery.h4740644editdlrm
mbcache.h22080644editdlrm
mbus.h31680644editdlrm
mc6821.h12090644editdlrm
mc146818rtc.h45670644editdlrm
mcb.h39750644editdlrm
mdev.h58590644editdlrm
mdio-bitbang.h11490644editdlrm
mdio-gpio.h1770644editdlrm
mdio-mux.h10210644editdlrm
mdio.h137300644editdlrm
mei_aux.h9290644editdlrm
mei_cl_bus.h41960644editdlrm
memblock.h210090644editdlrm
memcontrol.h462430644editdlrm
memfd.h3650644editdlrm
memory.h40800644editdlrm
memory_hotplug.h109810644editdlrm
mempolicy.h80840644editdlrm
mempool.h34300644editdlrm
memregion.h4170644editdlrm
memremap.h78180644editdlrm
memstick.h99820644editdlrm
mem_encrypt.h9260644editdlrm
mhi.h269080644editdlrm
mhi_ep.h98660644editdlrm
micrel_phy.h15220644editdlrm
microchipphy.h33100644editdlrm
mic_bus.h32720644editdlrm
migrate.h62780644editdlrm
migrate_mode.h7580644editdlrm
mii.h162830644editdlrm
mii_timestamper.h36530644editdlrm
minmax.h63730644editdlrm
min_heap.h33770644editdlrm
miscdevice.h28640644editdlrm
misc_cgroup.h30070644editdlrm
mISDNdsp.h12170644editdlrm
mISDNhw.h59210644editdlrm
mISDNif.h152760644editdlrm
mm-arch-hooks.h6790644editdlrm
mm.h1015570644editdlrm
mman.h33570644editdlrm
mmap_lock.h20860644editdlrm
mmdebug.h23790644editdlrm
mmiotrace.h31220644editdlrm
mmu_context.h4650644editdlrm
mmu_notifier.h284620644editdlrm
mmzone.h516150644editdlrm
mm_inline.h30590644editdlrm
mm_types.h268440644editdlrm
mm_types_task.h24570644editdlrm
mnt_namespace.h5470644editdlrm
module.h236590644editdlrm
moduleloader.h31700644editdlrm
moduleparam.h202750644editdlrm
module_signature.h12500644editdlrm
mod_devicetable.h225130644editdlrm
mount.h37080644editdlrm
mpage.h7370644editdlrm
mpi.h33810644editdlrm
mpls.h3940644editdlrm
mpls_iptunnel.h1780644editdlrm
mroute.h19980644editdlrm
mroute6.h24490644editdlrm
mroute_base.h124330644editdlrm
msdos_fs.h2730644editdlrm
msdos_partition.h16550644editdlrm
msg.h3950644editdlrm
msi.h156650644editdlrm
mutex.h78370644editdlrm
mv643xx.h536570644editdlrm
mv643xx_eth.h20010644editdlrm
mv643xx_i2c.h5450644editdlrm
mvebu-pmsu.h5200644editdlrm
mxm-wmi.h10780644editdlrm
namei.h39460644editdlrm
nd.h76010644editdlrm
net.h124050644editdlrm
netdevice.h1695260644editdlrm
netdev_features.h105190644editdlrm
netfilter.h126770644editdlrm
netfilter_bridge.h19770644editdlrm
netfilter_defs.h4860644editdlrm
netfilter_ingress.h14720644editdlrm
netfilter_ipv4.h10770644editdlrm
netfilter_ipv6.h36980644editdlrm
netlink.h91700644editdlrm
netpoll.h26010644editdlrm
nfs.h11450644editdlrm
nfs3.h2600644editdlrm
nfs4.h195270644editdlrm
nfsacl.h14350644editdlrm
nfs_fs.h185780644editdlrm
nfs_fs_i.h3080644editdlrm
nfs_fs_sb.h105370644editdlrm
nfs_iostat.h42850644editdlrm
nfs_page.h69910644editdlrm
nfs_xdr.h425020644editdlrm
nitro_enclaves.h2670644editdlrm
nl802154.h43360644editdlrm
nls.h31620644editdlrm
nmi.h67580644editdlrm
node.h43990644editdlrm
nodemask.h174400644editdlrm
nospec.h21870644editdlrm
notifier.h84180644editdlrm
nsc_gpio.h14590644editdlrm
nsproxy.h26760644editdlrm
ns_common.h3010644editdlrm
ntb.h536910644editdlrm
ntb_transport.h38920644editdlrm
nubus.h56740644editdlrm
numa.h10040644editdlrm
nvme-fc-driver.h472160644editdlrm
nvme-fc.h99550644editdlrm
nvme-rdma.h25350644editdlrm
nvme-tcp.h45380644editdlrm
nvme.h391280644editdlrm
nvmem-consumer.h44540644editdlrm
nvmem-provider.h32670644editdlrm
nvram.h4950644editdlrm
n_r3964.h41550644editdlrm
objagg.h19830644editdlrm
objtool.h11550644editdlrm
of.h433070644editdlrm
of_address.h46030644editdlrm
of_clk.h7530644editdlrm
of_device.h32270644editdlrm
of_dma.h23530644editdlrm
of_fdt.h41880644editdlrm
of_gpio.h40530644editdlrm
of_graph.h36360644editdlrm
of_iommu.h5050644editdlrm
of_irq.h36910644editdlrm
of_mdio.h32130644editdlrm
of_net.h8870644editdlrm
of_pci.h9150644editdlrm
of_pdt.h12220644editdlrm
of_platform.h39740644editdlrm
of_reserved_mem.h24030644editdlrm
oid_registry.h39660644editdlrm
olpc-ec.h11040644editdlrm
omap-dma.h107540644editdlrm
omap-dmaengine.h5830644editdlrm
omap-gpmc.h30110644editdlrm
omap-iommu.h6850644editdlrm
omap-mailbox.h7770644editdlrm
omapfb.h12460644editdlrm
once.h18800644editdlrm
oom.h33410644editdlrm
openvswitch.h10190644editdlrm
oprofile.h62460644editdlrm
osq_lock.h10660644editdlrm
overflow.h122690644editdlrm
padata.h74310644editdlrm
page-flags-layout.h35010644editdlrm
page-flags.h281560644editdlrm
page-isolation.h21240644editdlrm
pageblock-flags.h33570644editdlrm
pagemap.h246490644editdlrm
pagevec.h23830644editdlrm
pagewalk.h41670644editdlrm
page_counter.h34470644editdlrm
page_ext.h17220644editdlrm
page_idle.h26830644editdlrm
page_owner.h23610644editdlrm
page_ref.h53610644editdlrm
page_reporting.h8340644editdlrm
parman.h29340644editdlrm
parport.h182730644editdlrm
parport_pc.h67130644editdlrm
parser.h11410644editdlrm
pata_arasan_cf_data.h12500644editdlrm
patchkey.h7570644editdlrm
path.h5720644editdlrm
pch_dma.h9990644editdlrm
pci-acpi.h42800644editdlrm
pci-ats.h18020644editdlrm
pci-dma-compat.h37500644editdlrm
pci-ecam.h33580644editdlrm
pci-ep-cfs.h9570644editdlrm
pci-epc.h73360644editdlrm
pci-epf.h48680644editdlrm
pci-p2pdma.h40490644editdlrm
pci.h917980644editdlrm
pci_hotplug.h47520644editdlrm
pci_ids.h1282480644editdlrm
pda_power.h11510644editdlrm
pe.h162040644editdlrm
percpu-defs.h186090644editdlrm
percpu-refcount.h111690644editdlrm
percpu-rwsem.h45730644editdlrm
percpu.h48490644editdlrm
percpu_counter.h43720644editdlrm
perf_event.h507870644editdlrm
perf_regs.h10760644editdlrm
personality.h3930644editdlrm
pfn.h6660644editdlrm
pfn_t.h33100644editdlrm
phonet.h11460644editdlrm
phy.h563860644editdlrm
phylink.h237070644editdlrm
phy_fixed.h18140644editdlrm
phy_led_triggers.h14910644editdlrm
pid.h60590644editdlrm
pid_namespace.h23860644editdlrm
pim.h27370644editdlrm
pipe_fs_i.h64710644editdlrm
pkeys.h9610644editdlrm
pktcdvd.h60110644editdlrm
pl320-ipc.h7580644editdlrm
platform_device.h141600644editdlrm
platform_profile.h11550644editdlrm
pldmfw.h48790644editdlrm
plist.h88940644editdlrm
pm-trace.h9400644editdlrm
pm.h374800644editdlrm
pm2301_charger.h17230644editdlrm
pmbus.h16210644editdlrm
pmu.h23920644editdlrm
pm_clock.h26380644editdlrm
pm_domain.h132930644editdlrm
pm_opp.h115360644editdlrm
pm_qos.h106620644editdlrm
pm_runtime.h103290644editdlrm
pm_wakeirq.h15180644editdlrm
pm_wakeup.h73540644editdlrm
pnfs_osd_xdr.h94900644editdlrm
pnp.h157650644editdlrm
poison.h26510644editdlrm
poll.h41090644editdlrm
posix-clock.h46600644editdlrm
posix-timers.h64600644editdlrm
posix_acl.h31670644editdlrm
posix_acl_xattr.h16210644editdlrm
powercap.h128890644editdlrm
power_supply.h150250644editdlrm
ppp-comp.h31720644editdlrm
ppp_channel.h31460644editdlrm
ppp_defs.h8120644editdlrm
pps-gpio.h10330644editdlrm
pps_kernel.h36200644editdlrm
pr.h5660644editdlrm
prandom.h38860644editdlrm
preempt.h122320644editdlrm
prefetch.h17400644editdlrm
prime_numbers.h13840644editdlrm
printk.h169080644editdlrm
prmt.h1430644editdlrm
processor.h18890644editdlrm
proc_fs.h61380644editdlrm
proc_ns.h28970644editdlrm
profile.h27430644editdlrm
projid.h22690644editdlrm
property.h174100644editdlrm
psci.h19510644editdlrm
pseudo_fs.h3550644editdlrm
psi.h17820644editdlrm
psi_types.h39940644editdlrm
psp-platform-access.h17220644editdlrm
psp-sev.h189210644editdlrm
psp-tee.h23160644editdlrm
psp.h6970644editdlrm
pstore.h77640644editdlrm
pstore_ram.h29800644editdlrm
pti.h1980644editdlrm
ptp_classify.h50070644editdlrm
ptp_clock_kernel.h124310644editdlrm
ptrace.h152100644editdlrm
ptr_ring.h168900644editdlrm
purgatory.h5890644editdlrm
pvclock_gtod.h5480644editdlrm
pwm.h173410644editdlrm
pwm_backlight.h8020644editdlrm
pxa2xx_ssp.h104700644editdlrm
pxa168_eth.h7280644editdlrm
qcom-geni-se.h124710644editdlrm
qcom_scm.h43810644editdlrm
qnx6_fs.h33490644editdlrm
quicklist.h21860644editdlrm
quota.h192310644editdlrm
quotaops.h105530644editdlrm
radix-tree.h179780644editdlrm
raid_class.h21490644editdlrm
ramfs.h6950644editdlrm
random.h38550644editdlrm
range.h7750644editdlrm
ras.h12110644editdlrm
ratelimit.h17610644editdlrm
ratelimit_types.h11700644editdlrm
rational.h6390644editdlrm
rbtree.h97890644editdlrm
rbtree_augmented.h104850644editdlrm
rbtree_latch.h68150644editdlrm
rbtree_types.h9460644editdlrm
rculist.h284440644editdlrm
rculist_bl.h33740644editdlrm
rculist_nulls.h55130644editdlrm
rcupdate.h385480644editdlrm
rcupdate_trace.h28820644editdlrm
rcupdate_wait.h17690644editdlrm
rcutiny.h42320644editdlrm
rcutree.h30770644editdlrm
rcuwait.h19000644editdlrm
rcu_node_tree.h44680644editdlrm
rcu_segcblist.h112920644editdlrm
rcu_sync.h23120644editdlrm
reboot-mode.h6000644editdlrm
reboot.h20980644editdlrm
reciprocal_div.h33560644editdlrm
refcount.h27990644editdlrm
regmap.h544470644editdlrm
regset.h155270644editdlrm
relay.h89080644editdlrm
remoteproc.h200780644editdlrm
resctrl.h88910644editdlrm
reservation.h92260644editdlrm
reset-controller.h30670644editdlrm
reset.h137390644editdlrm
resource.h3390644editdlrm
resource_ext.h25420644editdlrm
restart_block.h11140644editdlrm
rfkill.h110400644editdlrm
rhashtable-types.h37420644editdlrm
rhashtable.h352780644editdlrm
rh_flags.h9050644editdlrm
rh_kabi.h226330644editdlrm
rh_kabi_attributes.h5010644editdlrm
rh_kabi_aux.h9170644editdlrm
rh_kabi_memcg.h37600644editdlrm
rh_tasklist_lock.h9590644editdlrm
rh_waived.h4410644editdlrm
ring_buffer.h73710644editdlrm
rio.h196870644editdlrm
rio_drv.h150610644editdlrm
rio_ids.h13170644editdlrm
rio_regs.h197370644editdlrm
rmap.h110370644editdlrm
rmi.h124790644editdlrm
rndis.h172690644editdlrm
rodata_test.h5590644editdlrm
root_dev.h6190644editdlrm
rpmsg.h71170644editdlrm
rslib.h37540644editdlrm
rtc.h94270644editdlrm
rtmutex.h31470644editdlrm
rtnetlink.h46040644editdlrm
rtsx_common.h14750644editdlrm
rtsx_pci.h411350644editdlrm
rtsx_usb.h163340644editdlrm
rwbase_rt.h8760644editdlrm
rwlock.h40540644editdlrm
rwlock_api_smp.h77360644editdlrm
rwlock_rt.h30530644editdlrm
rwlock_types.h18140644editdlrm
rwsem.h74050644editdlrm
s3c_adc_battery.h9710644editdlrm
sa11x0-dma.h5720644editdlrm
sbitmap.h202030644editdlrm
scatterlist.h180030644editdlrm
scc.h29050644editdlrm
sched.h645760644editdlrm
sched_clock.h16170644editdlrm
scif.h602800644editdlrm
scmi_protocol.h92840644editdlrm
scpi_protocol.h26420644editdlrm
screen_info.h1910644editdlrm
scs.h18280644editdlrm
sctp.h241240644editdlrm
scx200.h18630644editdlrm
scx200_gpio.h24380644editdlrm
sdb.h42700644editdlrm
sdla.h70660644editdlrm
seccomp.h29720644editdlrm
securebits.h2390644editdlrm
security.h521850644editdlrm
sed-opal.h19850644editdlrm
seg6.h1210644editdlrm
seg6_genl.h1360644editdlrm
seg6_hmac.h1360644editdlrm
seg6_iptunnel.h1480644editdlrm
seg6_local.h1000644editdlrm
selection.h15950644editdlrm
sem.h5990644editdlrm
semaphore.h14000644editdlrm
seqlock.h392440644editdlrm
seqno-fence.h40500644editdlrm
seq_buf.h34050644editdlrm
seq_file.h82910644editdlrm
seq_file_net.h7300644editdlrm
serdev.h101010644editdlrm
serial.h6300644editdlrm
serial_8250.h65810644editdlrm
serial_bcm63xx.h48430644editdlrm
serial_core.h180580644editdlrm
serial_max3100.h14230644editdlrm
serial_pnx8xxx.h26700644editdlrm
serial_s3c.h87840644editdlrm
serial_sci.h16110644editdlrm
serio.h45280644editdlrm
set_memory.h14970644editdlrm
sfi.h58900644editdlrm
sfi_acpi.h34720644editdlrm
sfp.h162160644editdlrm
shdma-base.h45200644editdlrm
shm.h9680644editdlrm
shmem_fs.h57790644editdlrm
shrinker.h33650644editdlrm
sh_clk.h60980644editdlrm
sh_dma.h36960644editdlrm
sh_eth.h3690644editdlrm
sh_intc.h35060644editdlrm
sh_timer.h1720644editdlrm
signal.h135130644editdlrm
signalfd.h8170644editdlrm
signal_types.h12410644editdlrm
siox.h20750644editdlrm
siphash.h47380644editdlrm
sirfsoc_dma.h1620644editdlrm
sizes.h14510644editdlrm
skbuff.h1388220644editdlrm
skb_array.h55120644editdlrm
skmsg.h135570644editdlrm
slab.h250990644editdlrm
slab_def.h30090644editdlrm
slimbus.h54100644editdlrm
slub_def.h65880644editdlrm
sm501-regs.h120460644editdlrm
sm501.h47430644editdlrm
smc91x.h16040644editdlrm
smc911x.h2940644editdlrm
smp.h70850644editdlrm
smpboot.h22150644editdlrm
smp_types.h13400644editdlrm
smsc911x.h23400644editdlrm
smscphy.h12830644editdlrm
socket.h144270644editdlrm
sockptr.h22790644editdlrm
sock_diag.h23700644editdlrm
sonet.h4690644editdlrm
sony-laptop.h14410644editdlrm
sonypi.h24100644editdlrm
sort.h2470644editdlrm
sound.h6850644editdlrm
soundcard.h16310644editdlrm
spinlock.h159330644editdlrm
spinlock_api_smp.h53460644editdlrm
spinlock_api_up.h33940644editdlrm
spinlock_rt.h42090644editdlrm
spinlock_types.h18260644editdlrm
spinlock_types_raw.h17260644editdlrm
spinlock_types_up.h7260644editdlrm
spinlock_up.h21260644editdlrm
splice.h29810644editdlrm
spmi.h60940644editdlrm
sram.h8440644editdlrm
srcu.h78580644editdlrm
srcutiny.h34110644editdlrm
srcutree.h54370644editdlrm
ssbi.h11400644editdlrm
stackdepot.h13090644editdlrm
stackprotector.h3610644editdlrm
stacktrace.h43010644editdlrm
start_kernel.h3340644editdlrm
stat.h12120644editdlrm
statfs.h13460644editdlrm
static_call.h70340644editdlrm
static_call_types.h5350644editdlrm
static_key.h300644editdlrm
stddef.h32750644editdlrm
stm.h44530644editdlrm
stmmac.h76070644editdlrm
stmp3xxx_rtc_wdt.h3320644editdlrm
stmp_device.h6190644editdlrm
stop_machine.h48420644editdlrm
string.h99390644editdlrm
stringhash.h27150644editdlrm
stringify.h3410644editdlrm
string_helpers.h30820644editdlrm
sudmac.h12690644editdlrm
sungem_phy.h40310644editdlrm
sunserialcore.h11020644editdlrm
sunxi-rsb.h29550644editdlrm
superhyway.h28780644editdlrm
suspend.h214830644editdlrm
svga.h38370644editdlrm
sw842.h3280644editdlrm
swab.h5690644editdlrm
swait.h102840644editdlrm
swap.h231090644editdlrm
swapfile.h5560644editdlrm
swapops.h88950644editdlrm
swap_cgroup.h9710644editdlrm
swap_slots.h8410644editdlrm
swiotlb.h54720644editdlrm
switchtec.h115300644editdlrm
sxgbe_platform.h13710644editdlrm
synclink.h9890644editdlrm
sync_core.h5810644editdlrm
sync_file.h16060644editdlrm
sys.h9600644editdlrm
syscalls.h519130644editdlrm
syscore_ops.h6350644editdlrm
sysctl.h77700644editdlrm
sysfs.h180900644editdlrm
syslog.h19310644editdlrm
sysrq.h18960644editdlrm
sysv_fs.h92500644editdlrm
sys_soc.h12630644editdlrm
t10-pi.h15380644editdlrm
taskstats_kern.h9570644editdlrm
task_io_accounting.h11590644editdlrm
task_io_accounting_ops.h26100644editdlrm
task_work.h7180644editdlrm
tboot.h40890644editdlrm
tc.h34890644editdlrm
tca6416_keypad.h8470644editdlrm
tcp.h180920644editdlrm
tee_drv.h166850644editdlrm
textsearch.h48420644editdlrm
textsearch_fsm.h12140644editdlrm
tfrc.h19330644editdlrm
thermal.h199280644editdlrm
thinkpad_acpi.h3200644editdlrm
threads.h13090644editdlrm
thread_info.h48690644editdlrm
thunderbolt.h214350644editdlrm
ti-emif-sram.h51500644editdlrm
tick.h96120644editdlrm
tifm.h49200644editdlrm
timb_dma.h17840644editdlrm
timb_gpio.h13080644editdlrm
time.h39160644editdlrm
time32.h60680644editdlrm
time64.h40550644editdlrm
timecounter.h46930644editdlrm
timekeeper_internal.h54550644editdlrm
timekeeping.h73810644editdlrm
timekeeping32.h20550644editdlrm
timer.h70920644editdlrm
timerfd.h5080644editdlrm
timeriomem-rng.h4750644editdlrm
timerqueue.h14980644editdlrm
timex.h64660644editdlrm
time_namespace.h32170644editdlrm
ti_wilink_st.h144040644editdlrm
tnum.h34670644editdlrm
topology.h62840644editdlrm
torture.h49530644editdlrm
toshiba.h9040644editdlrm
tpm.h113450644editdlrm
tpm_command.h8470644editdlrm
tpm_eventlog.h66860644editdlrm
trace.h13110644editdlrm
tracefs.h12210644editdlrm
tracehook.h72330644editdlrm
tracepoint-defs.h9050644editdlrm
tracepoint.h180030644editdlrm
trace_clock.h6670644editdlrm
trace_events.h210350644editdlrm
trace_seq.h41850644editdlrm
transport_class.h25700644editdlrm
ts-nbus.h5320644editdlrm
tsacct_kern.h12300644editdlrm
tty.h288220644editdlrm
tty_driver.h160170644editdlrm
tty_flip.h15450644editdlrm
tty_ldisc.h79370644editdlrm
typecheck.h7820644editdlrm
types.h56600644editdlrm
u64_stats_sync.h59570644editdlrm
uaccess.h137150644editdlrm
ucb1400.h43670644editdlrm
ucs2_string.h6620644editdlrm
udp.h55520644editdlrm
uidgid.h41710644editdlrm
uio.h97560644editdlrm
uio_driver.h41910644editdlrm
umh.h18370644editdlrm
units.h26850644editdlrm
uprobes.h67830644editdlrm
usb.h817210644editdlrm
usbdevice_fs.h22340644editdlrm
usb_usual.h36710644editdlrm
user-return-notifier.h12050644editdlrm
user.h220644editdlrm
userfaultfd_k.h46510644editdlrm
usermode_driver.h5150644editdlrm
user_namespace.h50840644editdlrm
util_macros.h11970644editdlrm
uts.h3880644editdlrm
utsname.h18280644editdlrm
uuid.h28330644editdlrm
uwb.h258270644editdlrm
vbox_utils.h16750644editdlrm
vdpa.h157560644editdlrm
verification.h19960644editdlrm
vermagic.h11590644editdlrm
vexpress.h14770644editdlrm
vfio.h73320644editdlrm
vfs.h1160644editdlrm
vgaarb.h39720644editdlrm
vga_switcheroo.h88280644editdlrm
vhost_iotlb.h13690644editdlrm
via-core.h74420644editdlrm
via-gpio.h3340644editdlrm
via.h9320644editdlrm
via_i2c.h15160644editdlrm
videodev2.h27690644editdlrm
virtio.h69150644editdlrm
virtio_byteorder.h14910644editdlrm
virtio_caif.h4920644editdlrm
virtio_config.h155170644editdlrm
virtio_console.h19740644editdlrm
virtio_dma_buf.h11470644editdlrm
virtio_net.h49640644editdlrm
virtio_pci_modern.h33790644editdlrm
virtio_ring.h30350644editdlrm
virtio_vsock.h46030644editdlrm
visorbus.h125250644editdlrm
vlynq.h39690644editdlrm
vmacache.h7220644editdlrm
vmalloc.h83670644editdlrm
vme.h57940644editdlrm
vmpressure.h17360644editdlrm
vmstat.h147390644editdlrm
vmw_vmci_api.h29540644editdlrm
vmw_vmci_defs.h309280644editdlrm
vm_event_item.h33850644editdlrm
vringh.h94860644editdlrm
vt.h6110644editdlrm
vtime.h41740644editdlrm
vt_buffer.h15240644editdlrm
vt_kern.h61790644editdlrm
w1-gpio.h6390644editdlrm
w1.h93450644editdlrm
wait.h432920644editdlrm
wait_bit.h115000644editdlrm
wanrouter.h2100644editdlrm
watchdog.h80020644editdlrm
win_minmax.h8320644editdlrm
wireless.h16070644editdlrm
wkup_m3_ipc.h15650644editdlrm
wl12xx.h14220644editdlrm
wm97xx.h108600644editdlrm
wmi.h19890644editdlrm
workqueue.h218560644editdlrm
writeback.h133740644editdlrm
ww_mutex.h130370644editdlrm
xarray.h591010644editdlrm
xattr.h35720644editdlrm
xxhash.h78290644editdlrm
xz.h114310644editdlrm
yam.h28880644editdlrm
z2_battery.h3180644editdlrm
zbud.h7400644editdlrm
zconf.h17700644editdlrm
zlib.h287840644editdlrm
zorro.h40300644editdlrm
zpool.h31020644editdlrm
zsmalloc.h17300644editdlrm
zstd.h498060644editdlrm
zutil.h27930644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/efi.h (62813B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_EFI_H #define _LINUX_EFI_H /* * Extensible Firmware Interface * Based on 'Extensible Firmware Interface Specification' version 0.9, April 30, 1999 * * Copyright (C) 1999 VA Linux Systems * Copyright (C) 1999 Walt Drummond * Copyright (C) 1999, 2002-2003 Hewlett-Packard Co. * David Mosberger-Tang * Stephane Eranian */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define EFI_SUCCESS 0 #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1))) #define EFI_INVALID_PARAMETER ( 2 | (1UL << (BITS_PER_LONG-1))) #define EFI_UNSUPPORTED ( 3 | (1UL << (BITS_PER_LONG-1))) #define EFI_BAD_BUFFER_SIZE ( 4 | (1UL << (BITS_PER_LONG-1))) #define EFI_BUFFER_TOO_SMALL ( 5 | (1UL << (BITS_PER_LONG-1))) #define EFI_NOT_READY ( 6 | (1UL << (BITS_PER_LONG-1))) #define EFI_DEVICE_ERROR ( 7 | (1UL << (BITS_PER_LONG-1))) #define EFI_WRITE_PROTECTED ( 8 | (1UL << (BITS_PER_LONG-1))) #define EFI_OUT_OF_RESOURCES ( 9 | (1UL << (BITS_PER_LONG-1))) #define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1))) #define EFI_ABORTED (21 | (1UL << (BITS_PER_LONG-1))) #define EFI_SECURITY_VIOLATION (26 | (1UL << (BITS_PER_LONG-1))) typedef unsigned long efi_status_t; typedef u8 efi_bool_t; typedef u16 efi_char16_t; /* UNICODE character */ typedef u64 efi_physical_addr_t; typedef void *efi_handle_t; #if defined(CONFIG_X86_64) #define __efiapi __attribute__((ms_abi)) #elif defined(CONFIG_X86_32) #define __efiapi __attribute__((regparm(0))) #else #define __efiapi #endif #define efi_get_handle_at(array, idx) \ (efi_is_native() ? (array)[idx] \ : (efi_handle_t)(unsigned long)((u32 *)(array))[idx]) #define efi_get_handle_num(size) \ ((size) / (efi_is_native() ? sizeof(efi_handle_t) : sizeof(u32))) #define for_each_efi_handle(handle, array, size, i) \ for (i = 0; \ i < efi_get_handle_num(size) && \ ((handle = efi_get_handle_at((array), i)) || true); \ i++) /* * The UEFI spec and EDK2 reference implementation both define EFI_GUID as * struct { u32 a; u16; b; u16 c; u8 d[8]; }; and so the implied alignment * is 32 bits not 8 bits like our guid_t. In some cases (i.e., on 32-bit ARM), * this means that firmware services invoked by the kernel may assume that * efi_guid_t* arguments are 32-bit aligned, and use memory accessors that * do not tolerate misalignment. So let's set the minimum alignment to 32 bits. * * Note that the UEFI spec as well as some comments in the EDK2 code base * suggest that EFI_GUID should be 64-bit aligned, but this appears to be * a mistake, given that no code seems to exist that actually enforces that * or relies on it. */ typedef guid_t efi_guid_t __aligned(__alignof__(u32)); #define EFI_GUID(a,b,c,d0,d1,d2,d3,d4,d5,d6,d7) \ GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) /* * Generic EFI table header */ typedef struct { u64 signature; u32 revision; u32 headersize; u32 crc32; u32 reserved; } efi_table_hdr_t; /* * Memory map descriptor: */ /* Memory types: */ #define EFI_RESERVED_TYPE 0 #define EFI_LOADER_CODE 1 #define EFI_LOADER_DATA 2 #define EFI_BOOT_SERVICES_CODE 3 #define EFI_BOOT_SERVICES_DATA 4 #define EFI_RUNTIME_SERVICES_CODE 5 #define EFI_RUNTIME_SERVICES_DATA 6 #define EFI_CONVENTIONAL_MEMORY 7 #define EFI_UNUSABLE_MEMORY 8 #define EFI_ACPI_RECLAIM_MEMORY 9 #define EFI_ACPI_MEMORY_NVS 10 #define EFI_MEMORY_MAPPED_IO 11 #define EFI_MEMORY_MAPPED_IO_PORT_SPACE 12 #define EFI_PAL_CODE 13 #define EFI_PERSISTENT_MEMORY 14 #define EFI_MAX_MEMORY_TYPE 15 /* Attribute values: */ #define EFI_MEMORY_UC ((u64)0x0000000000000001ULL) /* uncached */ #define EFI_MEMORY_WC ((u64)0x0000000000000002ULL) /* write-coalescing */ #define EFI_MEMORY_WT ((u64)0x0000000000000004ULL) /* write-through */ #define EFI_MEMORY_WB ((u64)0x0000000000000008ULL) /* write-back */ #define EFI_MEMORY_UCE ((u64)0x0000000000000010ULL) /* uncached, exported */ #define EFI_MEMORY_WP ((u64)0x0000000000001000ULL) /* write-protect */ #define EFI_MEMORY_RP ((u64)0x0000000000002000ULL) /* read-protect */ #define EFI_MEMORY_XP ((u64)0x0000000000004000ULL) /* execute-protect */ #define EFI_MEMORY_NV ((u64)0x0000000000008000ULL) /* non-volatile */ #define EFI_MEMORY_MORE_RELIABLE \ ((u64)0x0000000000010000ULL) /* higher reliability */ #define EFI_MEMORY_RO ((u64)0x0000000000020000ULL) /* read-only */ #define EFI_MEMORY_SP ((u64)0x0000000000040000ULL) /* soft reserved */ #define EFI_MEMORY_RUNTIME ((u64)0x8000000000000000ULL) /* range requires runtime mapping */ #define EFI_MEMORY_DESCRIPTOR_VERSION 1 #define EFI_PAGE_SHIFT 12 #define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT) #define EFI_PAGES_MAX (U64_MAX >> EFI_PAGE_SHIFT) typedef struct { u32 type; u32 pad; u64 phys_addr; u64 virt_addr; u64 num_pages; u64 attribute; } efi_memory_desc_t; typedef struct { efi_guid_t guid; u32 headersize; u32 flags; u32 imagesize; } efi_capsule_header_t; struct efi_boot_memmap { efi_memory_desc_t **map; unsigned long *map_size; unsigned long *desc_size; u32 *desc_ver; unsigned long *key_ptr; unsigned long *buff_size; }; /* EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER */ struct efi_manage_capsule_header { u32 ver; u16 emb_drv_cnt; u16 payload_cnt; /* * Variable-size array of the size given by the sum of * emb_drv_cnt and payload_cnt. */ u64 offset_list[]; } __packed; /* EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER */ struct efi_manage_capsule_image_header { u32 ver; efi_guid_t image_type_id; u8 image_index; u8 reserved_bytes[3]; u32 image_size; u32 vendor_code_size; /* hw_ins was introduced in version 2 */ u64 hw_ins; /* capsule_support was introduced in version 3 */ u64 capsule_support; } __packed; /* WIN_CERTIFICATE */ struct win_cert { u32 len; u16 rev; u16 cert_type; }; /* WIN_CERTIFICATE_UEFI_GUID */ struct win_cert_uefi_guid { struct win_cert hdr; efi_guid_t cert_type; u8 cert_data[]; }; /* EFI_FIRMWARE_IMAGE_AUTHENTICATION */ struct efi_image_auth { u64 mon_count; struct win_cert_uefi_guid auth_info; }; /* * EFI capsule flags */ #define EFI_CAPSULE_PERSIST_ACROSS_RESET 0x00010000 #define EFI_CAPSULE_POPULATE_SYSTEM_TABLE 0x00020000 #define EFI_CAPSULE_INITIATE_RESET 0x00040000 struct capsule_info { efi_capsule_header_t header; efi_capsule_header_t *capsule; int reset_type; long index; size_t count; size_t total_size; struct page **pages; phys_addr_t *phys; size_t page_bytes_remain; }; int __efi_capsule_setup_info(struct capsule_info *cap_info); /* * Allocation types for calls to boottime->allocate_pages. */ #define EFI_ALLOCATE_ANY_PAGES 0 #define EFI_ALLOCATE_MAX_ADDRESS 1 #define EFI_ALLOCATE_ADDRESS 2 #define EFI_MAX_ALLOCATE_TYPE 3 typedef int (*efi_freemem_callback_t) (u64 start, u64 end, void *arg); /* * Types and defines for Time Services */ #define EFI_TIME_ADJUST_DAYLIGHT 0x1 #define EFI_TIME_IN_DAYLIGHT 0x2 #define EFI_UNSPECIFIED_TIMEZONE 0x07ff typedef struct { u16 year; u8 month; u8 day; u8 hour; u8 minute; u8 second; u8 pad1; u32 nanosecond; s16 timezone; u8 daylight; u8 pad2; } efi_time_t; typedef struct { u32 resolution; u32 accuracy; u8 sets_to_zero; } efi_time_cap_t; typedef struct { efi_table_hdr_t hdr; u32 raise_tpl; u32 restore_tpl; u32 allocate_pages; u32 free_pages; u32 get_memory_map; u32 allocate_pool; u32 free_pool; u32 create_event; u32 set_timer; u32 wait_for_event; u32 signal_event; u32 close_event; u32 check_event; u32 install_protocol_interface; u32 reinstall_protocol_interface; u32 uninstall_protocol_interface; u32 handle_protocol; u32 __reserved; u32 register_protocol_notify; u32 locate_handle; u32 locate_device_path; u32 install_configuration_table; u32 load_image; u32 start_image; u32 exit; u32 unload_image; u32 exit_boot_services; u32 get_next_monotonic_count; u32 stall; u32 set_watchdog_timer; u32 connect_controller; u32 disconnect_controller; u32 open_protocol; u32 close_protocol; u32 open_protocol_information; u32 protocols_per_handle; u32 locate_handle_buffer; u32 locate_protocol; u32 install_multiple_protocol_interfaces; u32 uninstall_multiple_protocol_interfaces; u32 calculate_crc32; u32 copy_mem; u32 set_mem; u32 create_event_ex; } __packed efi_boot_services_32_t; typedef struct { efi_table_hdr_t hdr; u64 raise_tpl; u64 restore_tpl; u64 allocate_pages; u64 free_pages; u64 get_memory_map; u64 allocate_pool; u64 free_pool; u64 create_event; u64 set_timer; u64 wait_for_event; u64 signal_event; u64 close_event; u64 check_event; u64 install_protocol_interface; u64 reinstall_protocol_interface; u64 uninstall_protocol_interface; u64 handle_protocol; u64 __reserved; u64 register_protocol_notify; u64 locate_handle; u64 locate_device_path; u64 install_configuration_table; u64 load_image; u64 start_image; u64 exit; u64 unload_image; u64 exit_boot_services; u64 get_next_monotonic_count; u64 stall; u64 set_watchdog_timer; u64 connect_controller; u64 disconnect_controller; u64 open_protocol; u64 close_protocol; u64 open_protocol_information; u64 protocols_per_handle; u64 locate_handle_buffer; u64 locate_protocol; u64 install_multiple_protocol_interfaces; u64 uninstall_multiple_protocol_interfaces; u64 calculate_crc32; u64 copy_mem; u64 set_mem; u64 create_event_ex; } __packed efi_boot_services_64_t; /* * EFI Boot Services table */ typedef union { struct { efi_table_hdr_t hdr; void *raise_tpl; void *restore_tpl; efi_status_t (__efiapi *allocate_pages)(int, int, unsigned long, efi_physical_addr_t *); efi_status_t (__efiapi *free_pages)(efi_physical_addr_t, unsigned long); efi_status_t (__efiapi *get_memory_map)(unsigned long *, void *, unsigned long *, unsigned long *, u32 *); efi_status_t (__efiapi *allocate_pool)(int, unsigned long, void **); efi_status_t (__efiapi *free_pool)(void *); void *create_event; void *set_timer; void *wait_for_event; void *signal_event; void *close_event; void *check_event; void *install_protocol_interface; void *reinstall_protocol_interface; void *uninstall_protocol_interface; efi_status_t (__efiapi *handle_protocol)(efi_handle_t, efi_guid_t *, void **); void *__reserved; void *register_protocol_notify; efi_status_t (__efiapi *locate_handle)(int, efi_guid_t *, void *, unsigned long *, efi_handle_t *); void *locate_device_path; efi_status_t (__efiapi *install_configuration_table)(efi_guid_t *, void *); void *load_image; void *start_image; efi_status_t __noreturn (__efiapi *exit)(efi_handle_t, efi_status_t, unsigned long, efi_char16_t *); void *unload_image; efi_status_t (__efiapi *exit_boot_services)(efi_handle_t, unsigned long); void *get_next_monotonic_count; void *stall; void *set_watchdog_timer; void *connect_controller; void *disconnect_controller; void *open_protocol; void *close_protocol; void *open_protocol_information; void *protocols_per_handle; void *locate_handle_buffer; efi_status_t (__efiapi *locate_protocol)(efi_guid_t *, void *, void **); void *install_multiple_protocol_interfaces; void *uninstall_multiple_protocol_interfaces; void *calculate_crc32; void *copy_mem; void *set_mem; void *create_event_ex; }; efi_boot_services_32_t mixed_mode; } efi_boot_services_t; typedef enum { EfiPciIoWidthUint8, EfiPciIoWidthUint16, EfiPciIoWidthUint32, EfiPciIoWidthUint64, EfiPciIoWidthFifoUint8, EfiPciIoWidthFifoUint16, EfiPciIoWidthFifoUint32, EfiPciIoWidthFifoUint64, EfiPciIoWidthFillUint8, EfiPciIoWidthFillUint16, EfiPciIoWidthFillUint32, EfiPciIoWidthFillUint64, EfiPciIoWidthMaximum } EFI_PCI_IO_PROTOCOL_WIDTH; typedef enum { EfiPciIoAttributeOperationGet, EfiPciIoAttributeOperationSet, EfiPciIoAttributeOperationEnable, EfiPciIoAttributeOperationDisable, EfiPciIoAttributeOperationSupported, EfiPciIoAttributeOperationMaximum } EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION; typedef struct { u32 read; u32 write; } efi_pci_io_protocol_access_32_t; typedef struct { u64 read; u64 write; } efi_pci_io_protocol_access_64_t; typedef union efi_pci_io_protocol efi_pci_io_protocol_t; typedef efi_status_t (__efiapi *efi_pci_io_protocol_cfg_t)(efi_pci_io_protocol_t *, EFI_PCI_IO_PROTOCOL_WIDTH, u32 offset, unsigned long count, void *buffer); typedef struct { void *read; void *write; } efi_pci_io_protocol_access_t; typedef struct { efi_pci_io_protocol_cfg_t read; efi_pci_io_protocol_cfg_t write; } efi_pci_io_protocol_config_access_t; typedef struct { u32 poll_mem; u32 poll_io; efi_pci_io_protocol_access_32_t mem; efi_pci_io_protocol_access_32_t io; efi_pci_io_protocol_access_32_t pci; u32 copy_mem; u32 map; u32 unmap; u32 allocate_buffer; u32 free_buffer; u32 flush; u32 get_location; u32 attributes; u32 get_bar_attributes; u32 set_bar_attributes; u64 romsize; u32 romimage; } efi_pci_io_protocol_32_t; typedef struct { u64 poll_mem; u64 poll_io; efi_pci_io_protocol_access_64_t mem; efi_pci_io_protocol_access_64_t io; efi_pci_io_protocol_access_64_t pci; u64 copy_mem; u64 map; u64 unmap; u64 allocate_buffer; u64 free_buffer; u64 flush; u64 get_location; u64 attributes; u64 get_bar_attributes; u64 set_bar_attributes; u64 romsize; u64 romimage; } efi_pci_io_protocol_64_t; union efi_pci_io_protocol { struct { void *poll_mem; void *poll_io; efi_pci_io_protocol_access_t mem; efi_pci_io_protocol_access_t io; efi_pci_io_protocol_config_access_t pci; void *copy_mem; void *map; void *unmap; void *allocate_buffer; void *free_buffer; void *flush; void *get_location; void *attributes; void *get_bar_attributes; void *set_bar_attributes; uint64_t romsize; void *romimage; }; struct { u32 poll_mem; u32 poll_io; efi_pci_io_protocol_access_32_t mem; efi_pci_io_protocol_access_32_t io; efi_pci_io_protocol_access_32_t pci; u32 copy_mem; u32 map; u32 unmap; u32 allocate_buffer; u32 free_buffer; u32 flush; u32 get_location; u32 attributes; u32 get_bar_attributes; u32 set_bar_attributes; u64 romsize; u32 romimage; } mixed_mode; }; #define EFI_PCI_IO_ATTRIBUTE_ISA_MOTHERBOARD_IO 0x0001 #define EFI_PCI_IO_ATTRIBUTE_ISA_IO 0x0002 #define EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO 0x0004 #define EFI_PCI_IO_ATTRIBUTE_VGA_MEMORY 0x0008 #define EFI_PCI_IO_ATTRIBUTE_VGA_IO 0x0010 #define EFI_PCI_IO_ATTRIBUTE_IDE_PRIMARY_IO 0x0020 #define EFI_PCI_IO_ATTRIBUTE_IDE_SECONDARY_IO 0x0040 #define EFI_PCI_IO_ATTRIBUTE_MEMORY_WRITE_COMBINE 0x0080 #define EFI_PCI_IO_ATTRIBUTE_IO 0x0100 #define EFI_PCI_IO_ATTRIBUTE_MEMORY 0x0200 #define EFI_PCI_IO_ATTRIBUTE_BUS_MASTER 0x0400 #define EFI_PCI_IO_ATTRIBUTE_MEMORY_CACHED 0x0800 #define EFI_PCI_IO_ATTRIBUTE_MEMORY_DISABLE 0x1000 #define EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE 0x2000 #define EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM 0x4000 #define EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE 0x8000 #define EFI_PCI_IO_ATTRIBUTE_ISA_IO_16 0x10000 #define EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16 0x20000 #define EFI_PCI_IO_ATTRIBUTE_VGA_IO_16 0x40000 typedef struct { u32 version; u32 get; u32 set; u32 del; u32 get_all; } apple_properties_protocol_32_t; typedef struct { u64 version; u64 get; u64 set; u64 del; u64 get_all; } apple_properties_protocol_64_t; struct efi_dev_path; typedef union apple_properties_protocol apple_properties_protocol_t; union apple_properties_protocol { struct { unsigned long version; efi_status_t (__efiapi *get)(apple_properties_protocol_t *, struct efi_dev_path *, efi_char16_t *, void *, u32 *); efi_status_t (__efiapi *set)(apple_properties_protocol_t *, struct efi_dev_path *, efi_char16_t *, void *, u32); efi_status_t (__efiapi *del)(apple_properties_protocol_t *, struct efi_dev_path *, efi_char16_t *); efi_status_t (__efiapi *get_all)(apple_properties_protocol_t *, void *buffer, u32 *); }; struct { u32 version; u32 get; u32 set; u32 del; u32 get_all; } mixed_mode; }; typedef struct { u32 get_capability; u32 get_event_log; u32 hash_log_extend_event; u32 submit_command; u32 get_active_pcr_banks; u32 set_active_pcr_banks; u32 get_result_of_set_active_pcr_banks; } efi_tcg2_protocol_32_t; typedef struct { u64 get_capability; u64 get_event_log; u64 hash_log_extend_event; u64 submit_command; u64 get_active_pcr_banks; u64 set_active_pcr_banks; u64 get_result_of_set_active_pcr_banks; } efi_tcg2_protocol_64_t; typedef u32 efi_tcg2_event_log_format; typedef union efi_tcg2_protocol efi_tcg2_protocol_t; union efi_tcg2_protocol { struct { void *get_capability; efi_status_t (__efiapi *get_event_log)(efi_handle_t, efi_tcg2_event_log_format, efi_physical_addr_t *, efi_physical_addr_t *, efi_bool_t *); void *hash_log_extend_event; void *submit_command; void *get_active_pcr_banks; void *set_active_pcr_banks; void *get_result_of_set_active_pcr_banks; }; struct { u32 get_capability; u32 get_event_log; u32 hash_log_extend_event; u32 submit_command; u32 get_active_pcr_banks; u32 set_active_pcr_banks; u32 get_result_of_set_active_pcr_banks; } mixed_mode; }; /* * Types and defines for EFI ResetSystem */ #define EFI_RESET_COLD 0 #define EFI_RESET_WARM 1 #define EFI_RESET_SHUTDOWN 2 /* * EFI Runtime Services table */ #define EFI_RUNTIME_SERVICES_SIGNATURE ((u64)0x5652453544e5552ULL) #define EFI_RUNTIME_SERVICES_REVISION 0x00010000 typedef struct { efi_table_hdr_t hdr; u32 get_time; u32 set_time; u32 get_wakeup_time; u32 set_wakeup_time; u32 set_virtual_address_map; u32 convert_pointer; u32 get_variable; u32 get_next_variable; u32 set_variable; u32 get_next_high_mono_count; u32 reset_system; u32 update_capsule; u32 query_capsule_caps; u32 query_variable_info; } efi_runtime_services_32_t; typedef struct { efi_table_hdr_t hdr; u64 get_time; u64 set_time; u64 get_wakeup_time; u64 set_wakeup_time; u64 set_virtual_address_map; u64 convert_pointer; u64 get_variable; u64 get_next_variable; u64 set_variable; u64 get_next_high_mono_count; u64 reset_system; u64 update_capsule; u64 query_capsule_caps; u64 query_variable_info; } efi_runtime_services_64_t; typedef efi_status_t efi_get_time_t (efi_time_t *tm, efi_time_cap_t *tc); typedef efi_status_t efi_set_time_t (efi_time_t *tm); typedef efi_status_t efi_get_wakeup_time_t (efi_bool_t *enabled, efi_bool_t *pending, efi_time_t *tm); typedef efi_status_t efi_set_wakeup_time_t (efi_bool_t enabled, efi_time_t *tm); typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, u32 *attr, unsigned long *data_size, void *data); typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name, efi_guid_t *vendor); typedef efi_status_t efi_set_variable_t (efi_char16_t *name, efi_guid_t *vendor, u32 attr, unsigned long data_size, void *data); typedef efi_status_t efi_get_next_high_mono_count_t (u32 *count); typedef void efi_reset_system_t (int reset_type, efi_status_t status, unsigned long data_size, efi_char16_t *data); typedef efi_status_t efi_set_virtual_address_map_t (unsigned long memory_map_size, unsigned long descriptor_size, u32 descriptor_version, efi_memory_desc_t *virtual_map); typedef efi_status_t efi_query_variable_info_t(u32 attr, u64 *storage_space, u64 *remaining_space, u64 *max_variable_size); typedef efi_status_t efi_update_capsule_t(efi_capsule_header_t **capsules, unsigned long count, unsigned long sg_list); typedef efi_status_t efi_query_capsule_caps_t(efi_capsule_header_t **capsules, unsigned long count, u64 *max_size, int *reset_type); typedef efi_status_t efi_query_variable_store_t(u32 attributes, unsigned long size, bool nonblocking); typedef union { struct { efi_table_hdr_t hdr; efi_get_time_t __efiapi *get_time; efi_set_time_t __efiapi *set_time; efi_get_wakeup_time_t __efiapi *get_wakeup_time; efi_set_wakeup_time_t __efiapi *set_wakeup_time; efi_set_virtual_address_map_t __efiapi *set_virtual_address_map; void *convert_pointer; efi_get_variable_t __efiapi *get_variable; efi_get_next_variable_t __efiapi *get_next_variable; efi_set_variable_t __efiapi *set_variable; efi_get_next_high_mono_count_t __efiapi *get_next_high_mono_count; efi_reset_system_t __efiapi *reset_system; efi_update_capsule_t __efiapi *update_capsule; efi_query_capsule_caps_t __efiapi *query_capsule_caps; efi_query_variable_info_t __efiapi *query_variable_info; }; efi_runtime_services_32_t mixed_mode; } efi_runtime_services_t; void efi_native_runtime_setup(void); /* * EFI Configuration Table and GUID definitions * * These are all defined in a single line to make them easier to * grep for and to see them at a glance - while still having a * similar structure to the definitions in the spec. * * Here's how they are structured: * * GUID: 12345678-1234-1234-1234-123456789012 * Spec: * #define EFI_SOME_PROTOCOL_GUID \ * {0x12345678,0x1234,0x1234,\ * {0x12,0x34,0x12,0x34,0x56,0x78,0x90,0x12}} * Here: * #define SOME_PROTOCOL_GUID EFI_GUID(0x12345678, 0x1234, 0x1234, 0x12, 0x34, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12) * ^ tabs ^extra space * * Note that the 'extra space' separates the values at the same place * where the UEFI SPEC breaks the line. */ #define NULL_GUID EFI_GUID(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) #define MPS_TABLE_GUID EFI_GUID(0xeb9d2d2f, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) #define ACPI_TABLE_GUID EFI_GUID(0xeb9d2d30, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) #define ACPI_20_TABLE_GUID EFI_GUID(0x8868e871, 0xe4f1, 0x11d3, 0xbc, 0x22, 0x00, 0x80, 0xc7, 0x3c, 0x88, 0x81) #define SMBIOS_TABLE_GUID EFI_GUID(0xeb9d2d31, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) #define SMBIOS3_TABLE_GUID EFI_GUID(0xf2fd1544, 0x9794, 0x4a2c, 0x99, 0x2e, 0xe5, 0xbb, 0xcf, 0x20, 0xe3, 0x94) #define SAL_SYSTEM_TABLE_GUID EFI_GUID(0xeb9d2d32, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) #define HCDP_TABLE_GUID EFI_GUID(0xf951938d, 0x620b, 0x42ef, 0x82, 0x79, 0xa8, 0x4b, 0x79, 0x61, 0x78, 0x98) #define UGA_IO_PROTOCOL_GUID EFI_GUID(0x61a4d49e, 0x6f68, 0x4f1b, 0xb9, 0x22, 0xa8, 0x6e, 0xed, 0x0b, 0x07, 0xa2) #define EFI_GLOBAL_VARIABLE_GUID EFI_GUID(0x8be4df61, 0x93ca, 0x11d2, 0xaa, 0x0d, 0x00, 0xe0, 0x98, 0x03, 0x2b, 0x8c) #define UV_SYSTEM_TABLE_GUID EFI_GUID(0x3b13a7d4, 0x633e, 0x11dd, 0x93, 0xec, 0xda, 0x25, 0x56, 0xd8, 0x95, 0x93) #define LINUX_EFI_CRASH_GUID EFI_GUID(0xcfc8fc79, 0xbe2e, 0x4ddc, 0x97, 0xf0, 0x9f, 0x98, 0xbf, 0xe2, 0x98, 0xa0) #define LOADED_IMAGE_PROTOCOL_GUID EFI_GUID(0x5b1b31a1, 0x9562, 0x11d2, 0x8e, 0x3f, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b) #define EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID EFI_GUID(0x9042a9de, 0x23dc, 0x4a38, 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a) #define EFI_UGA_PROTOCOL_GUID EFI_GUID(0x982c298b, 0xf4fa, 0x41cb, 0xb8, 0x38, 0x77, 0xaa, 0x68, 0x8f, 0xb8, 0x39) #define EFI_PCI_IO_PROTOCOL_GUID EFI_GUID(0x4cf5b200, 0x68b8, 0x4ca5, 0x9e, 0xec, 0xb2, 0x3e, 0x3f, 0x50, 0x02, 0x9a) #define EFI_FILE_INFO_ID EFI_GUID(0x09576e92, 0x6d3f, 0x11d2, 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b) #define EFI_SYSTEM_RESOURCE_TABLE_GUID EFI_GUID(0xb122a263, 0x3661, 0x4f68, 0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80) #define EFI_FILE_SYSTEM_GUID EFI_GUID(0x964e5b22, 0x6459, 0x11d2, 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b) #define DEVICE_TREE_GUID EFI_GUID(0xb1b621d5, 0xf19c, 0x41a5, 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0) #define EFI_PROPERTIES_TABLE_GUID EFI_GUID(0x880aaca3, 0x4adc, 0x4a04, 0x90, 0x79, 0xb7, 0x47, 0x34, 0x08, 0x25, 0xe5) #define EFI_RNG_PROTOCOL_GUID EFI_GUID(0x3152bca5, 0xeade, 0x433d, 0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44) #define EFI_RNG_ALGORITHM_RAW EFI_GUID(0xe43176d7, 0xb6e8, 0x4827, 0xb7, 0x84, 0x7f, 0xfd, 0xc4, 0xb6, 0x85, 0x61) #define EFI_MEMORY_ATTRIBUTES_TABLE_GUID EFI_GUID(0xdcfa911d, 0x26eb, 0x469f, 0xa2, 0x20, 0x38, 0xb7, 0xdc, 0x46, 0x12, 0x20) #define EFI_CONSOLE_OUT_DEVICE_GUID EFI_GUID(0xd3b36f2c, 0xd551, 0x11d4, 0x9a, 0x46, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) #define APPLE_PROPERTIES_PROTOCOL_GUID EFI_GUID(0x91bd12fe, 0xf6c3, 0x44fb, 0xa5, 0xb7, 0x51, 0x22, 0xab, 0x30, 0x3a, 0xe0) #define EFI_TCG2_PROTOCOL_GUID EFI_GUID(0x607f766c, 0x7455, 0x42be, 0x93, 0x0b, 0xe4, 0xd7, 0x6d, 0xb2, 0x72, 0x0f) #define EFI_RT_PROPERTIES_TABLE_GUID EFI_GUID(0xeb66918a, 0x7eef, 0x402a, 0x84, 0x2e, 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9) #define EFI_DXE_SERVICES_TABLE_GUID EFI_GUID(0x05ad34ba, 0x6f02, 0x4214, 0x95, 0x2e, 0x4d, 0xa0, 0x39, 0x8e, 0x2b, 0xb9) #define EFI_MEMORY_ATTRIBUTE_PROTOCOL_GUID EFI_GUID(0xf4560cf6, 0x40ec, 0x4b4a, 0xa1, 0x92, 0xbf, 0x1d, 0x57, 0xd0, 0xb1, 0x89) #define EFI_IMAGE_SECURITY_DATABASE_GUID EFI_GUID(0xd719b2cb, 0x3d3a, 0x4596, 0xa3, 0xbc, 0xda, 0xd0, 0x0e, 0x67, 0x65, 0x6f) #define EFI_SHIM_LOCK_GUID EFI_GUID(0x605dab50, 0xe046, 0x4300, 0xab, 0xb6, 0x3d, 0xd8, 0x10, 0xdd, 0x8b, 0x23) #define EFI_CERT_SHA256_GUID EFI_GUID(0xc1c41626, 0x504c, 0x4092, 0xac, 0xa9, 0x41, 0xf9, 0x36, 0x93, 0x43, 0x28) #define EFI_CERT_X509_GUID EFI_GUID(0xa5c059a1, 0x94e4, 0x4aa7, 0x87, 0xb5, 0xab, 0x15, 0x5c, 0x2b, 0xf0, 0x72) #define EFI_CERT_X509_SHA256_GUID EFI_GUID(0x3bd2a492, 0x96c0, 0x4079, 0xb4, 0x20, 0xfc, 0xf9, 0x8e, 0xf1, 0x03, 0xed) #define EFI_CC_BLOB_GUID EFI_GUID(0x067b1f5f, 0xcf26, 0x44c5, 0x85, 0x54, 0x93, 0xd7, 0x77, 0x91, 0x2d, 0x42) /* * This GUID is used to pass to the kernel proper the struct screen_info * structure that was populated by the stub based on the GOP protocol instance * associated with ConOut */ #define LINUX_EFI_ARM_SCREEN_INFO_TABLE_GUID EFI_GUID(0xe03fc20a, 0x85dc, 0x406e, 0xb9, 0x0e, 0x4a, 0xb5, 0x02, 0x37, 0x1d, 0x95) #define LINUX_EFI_LOADER_ENTRY_GUID EFI_GUID(0x4a67b082, 0x0a4c, 0x41cf, 0xb6, 0xc7, 0x44, 0x0b, 0x29, 0xbb, 0x8c, 0x4f) #define LINUX_EFI_RANDOM_SEED_TABLE_GUID EFI_GUID(0x1ce1e5bc, 0x7ceb, 0x42f2, 0x81, 0xe5, 0x8a, 0xad, 0xf1, 0x80, 0xf5, 0x7b) #define LINUX_EFI_TPM_EVENT_LOG_GUID EFI_GUID(0xb7799cb0, 0xeca2, 0x4943, 0x96, 0x67, 0x1f, 0xae, 0x07, 0xb7, 0x47, 0xfa) #define LINUX_EFI_TPM_FINAL_LOG_GUID EFI_GUID(0x1e2ed096, 0x30e2, 0x4254, 0xbd, 0x89, 0x86, 0x3b, 0xbe, 0xf8, 0x23, 0x25) #define LINUX_EFI_MEMRESERVE_TABLE_GUID EFI_GUID(0x888eb0c6, 0x8ede, 0x4ff5, 0xa8, 0xf0, 0x9a, 0xee, 0x5c, 0xb9, 0x77, 0xc2) #define LINUX_EFI_MOK_VARIABLE_TABLE_GUID EFI_GUID(0xc451ed2b, 0x9694, 0x45d3, 0xba, 0xba, 0xed, 0x9f, 0x89, 0x88, 0xa3, 0x89) /* OEM GUIDs */ #define DELLEMC_EFI_RCI2_TABLE_GUID EFI_GUID(0x2d9f28a2, 0xa886, 0x456a, 0x97, 0xa8, 0xf1, 0x1e, 0xf2, 0x4f, 0xf4, 0x55) #define AMD_SEV_MEM_ENCRYPT_GUID EFI_GUID(0x0cf29b71, 0x9e51, 0x433a, 0xa3, 0xb7, 0x81, 0xf3, 0xab, 0x16, 0xb8, 0x75) typedef struct { efi_guid_t guid; u64 table; } efi_config_table_64_t; typedef struct { efi_guid_t guid; u32 table; } efi_config_table_32_t; typedef union { struct { efi_guid_t guid; void *table; }; efi_config_table_32_t mixed_mode; } efi_config_table_t; typedef struct { efi_guid_t guid; const char *name; unsigned long *ptr; } efi_config_table_type_t; #define EFI_SYSTEM_TABLE_SIGNATURE ((u64)0x5453595320494249ULL) #define EFI_DXE_SERVICES_TABLE_SIGNATURE ((u64)0x565245535f455844ULL) #define EFI_2_30_SYSTEM_TABLE_REVISION ((2 << 16) | (30)) #define EFI_2_20_SYSTEM_TABLE_REVISION ((2 << 16) | (20)) #define EFI_2_10_SYSTEM_TABLE_REVISION ((2 << 16) | (10)) #define EFI_2_00_SYSTEM_TABLE_REVISION ((2 << 16) | (00)) #define EFI_1_10_SYSTEM_TABLE_REVISION ((1 << 16) | (10)) #define EFI_1_02_SYSTEM_TABLE_REVISION ((1 << 16) | (02)) typedef struct { efi_table_hdr_t hdr; u64 fw_vendor; /* physical addr of CHAR16 vendor string */ u32 fw_revision; u32 __pad1; u64 con_in_handle; u64 con_in; u64 con_out_handle; u64 con_out; u64 stderr_handle; u64 stderr; u64 runtime; u64 boottime; u32 nr_tables; u32 __pad2; u64 tables; } efi_system_table_64_t; typedef struct { efi_table_hdr_t hdr; u32 fw_vendor; /* physical addr of CHAR16 vendor string */ u32 fw_revision; u32 con_in_handle; u32 con_in; u32 con_out_handle; u32 con_out; u32 stderr_handle; u32 stderr; u32 runtime; u32 boottime; u32 nr_tables; u32 tables; } efi_system_table_32_t; typedef union { struct { efi_table_hdr_t hdr; unsigned long fw_vendor; /* physical addr of CHAR16 vendor string */ u32 fw_revision; unsigned long con_in_handle; unsigned long con_in; unsigned long con_out_handle; unsigned long con_out; unsigned long stderr_handle; unsigned long stderr; efi_runtime_services_t *runtime; efi_boot_services_t *boottime; unsigned long nr_tables; unsigned long tables; }; efi_system_table_32_t mixed_mode; } efi_system_table_t; /* * Architecture independent structure for describing a memory map for the * benefit of efi_memmap_init_early(), and for passing context between * efi_memmap_alloc() and efi_memmap_install(). */ struct efi_memory_map_data { phys_addr_t phys_map; unsigned long size; unsigned long desc_version; unsigned long desc_size; unsigned long flags; }; struct efi_memory_map { phys_addr_t phys_map; void *map; void *map_end; int nr_map; unsigned long desc_version; unsigned long desc_size; #define EFI_MEMMAP_LATE (1UL << 0) #define EFI_MEMMAP_MEMBLOCK (1UL << 1) #define EFI_MEMMAP_SLAB (1UL << 2) unsigned long flags; }; struct efi_mem_range { struct range range; u64 attribute; }; struct efi_fdt_params { u64 system_table; u64 mmap; u32 mmap_size; u32 desc_size; u32 desc_ver; }; typedef struct { u32 revision; u32 parent_handle; u32 system_table; u32 device_handle; u32 file_path; u32 reserved; u32 load_options_size; u32 load_options; u32 image_base; __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; u32 unload; } efi_loaded_image_32_t; typedef struct { u32 revision; u64 parent_handle; u64 system_table; u64 device_handle; u64 file_path; u64 reserved; u32 load_options_size; u64 load_options; u64 image_base; __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; u64 unload; } efi_loaded_image_64_t; typedef union efi_loaded_image efi_loaded_image_t; union efi_loaded_image { struct { u32 revision; efi_handle_t parent_handle; efi_system_table_t *system_table; efi_handle_t device_handle; void *file_path; void *reserved; u32 load_options_size; void *load_options; void *image_base; __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; efi_status_t ( __efiapi *unload)(efi_handle_t image_handle); }; struct { u32 revision; u32 parent_handle; u32 system_table; u32 device_handle; u32 file_path; u32 reserved; u32 load_options_size; u32 load_options; u32 image_base; __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; u32 unload; } mixed_mode; }; typedef struct { u64 size; u64 file_size; u64 phys_size; efi_time_t create_time; efi_time_t last_access_time; efi_time_t modification_time; __aligned_u64 attribute; efi_char16_t filename[1]; } efi_file_info_t; typedef struct { u64 revision; u32 open; u32 close; u32 delete; u32 read; u32 write; u32 get_position; u32 set_position; u32 get_info; u32 set_info; u32 flush; } efi_file_handle_32_t; typedef struct { u64 revision; u64 open; u64 close; u64 delete; u64 read; u64 write; u64 get_position; u64 set_position; u64 get_info; u64 set_info; u64 flush; } efi_file_handle_64_t; typedef union efi_file_handle efi_file_handle_t; union efi_file_handle { struct { u64 revision; efi_status_t (__efiapi *open)(efi_file_handle_t *, efi_file_handle_t **, efi_char16_t *, u64, u64); efi_status_t (__efiapi *close)(efi_file_handle_t *); void *delete; efi_status_t (__efiapi *read)(efi_file_handle_t *, unsigned long *, void *); void *write; void *get_position; void *set_position; efi_status_t (__efiapi *get_info)(efi_file_handle_t *, efi_guid_t *, unsigned long *, void *); void *set_info; void *flush; }; struct { u64 revision; u32 open; u32 close; u32 delete; u32 read; u32 write; u32 get_position; u32 set_position; u32 get_info; u32 set_info; u32 flush; } mixed_mode; }; typedef struct { u64 revision; u32 open_volume; } efi_file_io_interface_32_t; typedef struct { u64 revision; u64 open_volume; } efi_file_io_interface_64_t; typedef union efi_file_io_interface efi_file_io_interface_t; union efi_file_io_interface { struct { u64 revision; int (__efiapi *open_volume)(efi_file_io_interface_t *, efi_file_handle_t **); }; struct { u64 revision; u32 open_volume; } mixed_mode; } ; #define EFI_FILE_MODE_READ 0x0000000000000001 #define EFI_FILE_MODE_WRITE 0x0000000000000002 #define EFI_FILE_MODE_CREATE 0x8000000000000000 typedef struct { u32 version; u32 length; u64 memory_protection_attribute; } efi_properties_table_t; #define EFI_PROPERTIES_TABLE_VERSION 0x00010000 #define EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA 0x1 typedef struct { u16 version; u16 length; u32 runtime_services_supported; } efi_rt_properties_table_t; #define EFI_RT_PROPERTIES_TABLE_VERSION 0x1 #define EFI_INVALID_TABLE_ADDR (~0UL) typedef struct { u32 version; u32 num_entries; u32 desc_size; u32 reserved; efi_memory_desc_t entry[0]; } efi_memory_attributes_table_t; typedef struct { efi_guid_t signature_owner; u8 signature_data[]; } efi_signature_data_t; typedef struct { efi_guid_t signature_type; u32 signature_list_size; u32 signature_header_size; u32 signature_size; u8 signature_header[]; /* efi_signature_data_t signatures[][] */ } efi_signature_list_t; typedef u8 efi_sha256_hash_t[32]; typedef struct { efi_sha256_hash_t to_be_signed_hash; efi_time_t time_of_revocation; } efi_cert_x509_sha256_t; /* * All runtime access to EFI goes through this structure: */ extern struct efi { efi_system_table_t *systab; /* EFI system table */ unsigned int runtime_version; /* Runtime services version */ unsigned int runtime_supported_mask; unsigned long mps; /* MPS table */ unsigned long acpi; /* ACPI table (IA64 ext 0.71) */ unsigned long acpi20; /* ACPI table (ACPI 2.0) */ unsigned long smbios; /* SMBIOS table (32 bit entry point) */ unsigned long smbios3; /* SMBIOS table (64 bit entry point) */ unsigned long sal_systab; /* SAL system table */ unsigned long boot_info; /* boot info table */ unsigned long hcdp; /* HCDP table */ unsigned long uga; /* UGA table */ unsigned long fw_vendor; /* fw_vendor */ unsigned long runtime; /* runtime table */ unsigned long config_table; /* config tables */ unsigned long esrt; /* ESRT table */ unsigned long properties_table; /* properties table */ unsigned long mem_attr_table; /* memory attributes table */ unsigned long rng_seed; /* UEFI firmware random seed */ unsigned long tpm_log; /* TPM2 Event Log table */ unsigned long tpm_final_log; /* TPM2 Final Events Log table */ unsigned long mem_reserve; /* Linux EFI memreserve table */ unsigned long mokvar_table; /* MOK variable config table */ efi_get_time_t *get_time; efi_set_time_t *set_time; efi_get_wakeup_time_t *get_wakeup_time; efi_set_wakeup_time_t *set_wakeup_time; efi_get_variable_t *get_variable; efi_get_next_variable_t *get_next_variable; efi_set_variable_t *set_variable; efi_set_variable_t *set_variable_nonblocking; efi_query_variable_info_t *query_variable_info; efi_query_variable_info_t *query_variable_info_nonblocking; efi_update_capsule_t *update_capsule; efi_query_capsule_caps_t *query_capsule_caps; efi_get_next_high_mono_count_t *get_next_high_mono_count; efi_reset_system_t *reset_system; efi_set_virtual_address_map_t *set_virtual_address_map; struct efi_memory_map memmap; unsigned long flags; } efi; #define EFI_RT_SUPPORTED_GET_TIME 0x0001 #define EFI_RT_SUPPORTED_SET_TIME 0x0002 #define EFI_RT_SUPPORTED_GET_WAKEUP_TIME 0x0004 #define EFI_RT_SUPPORTED_SET_WAKEUP_TIME 0x0008 #define EFI_RT_SUPPORTED_GET_VARIABLE 0x0010 #define EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME 0x0020 #define EFI_RT_SUPPORTED_SET_VARIABLE 0x0040 #define EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP 0x0080 #define EFI_RT_SUPPORTED_CONVERT_POINTER 0x0100 #define EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT 0x0200 #define EFI_RT_SUPPORTED_RESET_SYSTEM 0x0400 #define EFI_RT_SUPPORTED_UPDATE_CAPSULE 0x0800 #define EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES 0x1000 #define EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO 0x2000 #define EFI_RT_SUPPORTED_ALL 0x3fff #define EFI_RT_SUPPORTED_TIME_SERVICES 0x000f #define EFI_RT_SUPPORTED_VARIABLE_SERVICES 0x0070 extern struct mm_struct efi_mm; static inline int efi_guidcmp (efi_guid_t left, efi_guid_t right) { return memcmp(&left, &right, sizeof (efi_guid_t)); } static inline char * efi_guid_to_str(efi_guid_t *guid, char *out) { sprintf(out, "%pUl", guid->b); return out; } extern void efi_init (void); extern void *efi_get_pal_addr (void); extern void efi_map_pal_code (void); extern void efi_memmap_walk (efi_freemem_callback_t callback, void *arg); extern void efi_gettimeofday (struct timespec64 *ts); extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */ #ifdef CONFIG_X86 extern efi_status_t efi_query_variable_store(u32 attributes, unsigned long size, bool nonblocking); #else static inline efi_status_t efi_query_variable_store(u32 attributes, unsigned long size, bool nonblocking) { return EFI_SUCCESS; } #endif extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr); extern int __init efi_memmap_alloc(unsigned int num_entries, struct efi_memory_map_data *data); extern int __init efi_memmap_init_early(struct efi_memory_map_data *data); extern int __init efi_memmap_init_late(phys_addr_t addr, unsigned long size); extern void __init efi_memmap_unmap(void); extern int __init efi_memmap_install(struct efi_memory_map_data *data); extern int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range); extern void __init efi_memmap_insert(struct efi_memory_map *old_memmap, void *buf, struct efi_mem_range *mem); extern int efi_config_init(efi_config_table_type_t *arch_tables); #ifdef CONFIG_EFI_ESRT extern void __init efi_esrt_init(void); #else static inline void efi_esrt_init(void) { } #endif extern int efi_config_parse_tables(void *config_tables, int count, int sz, efi_config_table_type_t *arch_tables); extern u64 efi_get_iobase (void); extern int efi_mem_type(unsigned long phys_addr); extern u64 efi_mem_attributes (unsigned long phys_addr); extern u64 efi_mem_attribute (unsigned long phys_addr, unsigned long size); extern int __init efi_uart_console_only (void); extern u64 efi_mem_desc_end(efi_memory_desc_t *md); extern int efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md); extern void efi_mem_reserve(phys_addr_t addr, u64 size); extern int efi_mem_reserve_persistent(phys_addr_t addr, u64 size); extern void efi_initialize_iomem_resources(struct resource *code_resource, struct resource *data_resource, struct resource *bss_resource); extern int efi_get_fdt_params(struct efi_fdt_params *params); extern struct kobject *efi_kobj; extern int efi_reboot_quirk_mode; extern bool efi_poweroff_required(void); #ifdef CONFIG_EFI_FAKE_MEMMAP extern void __init efi_fake_memmap(void); #else static inline void efi_fake_memmap(void) { } #endif /* * efi_memattr_perm_setter - arch specific callback function passed into * efi_memattr_apply_permissions() that updates the * mapping permissions described by the second * argument in the page tables referred to by the * first argument. */ typedef int (*efi_memattr_perm_setter)(struct mm_struct *, efi_memory_desc_t *); extern int efi_memattr_init(void); extern int efi_memattr_apply_permissions(struct mm_struct *mm, efi_memattr_perm_setter fn); /* * efi_early_memdesc_ptr - get the n-th EFI memmap descriptor * @map: the start of efi memmap * @desc_size: the size of space for each EFI memmap descriptor * @n: the index of efi memmap descriptor * * EFI boot service provides the GetMemoryMap() function to get a copy of the * current memory map which is an array of memory descriptors, each of * which describes a contiguous block of memory. It also gets the size of the * map, and the size of each descriptor, etc. * * Note that per section 6.2 of UEFI Spec 2.6 Errata A, the returned size of * each descriptor might not be equal to sizeof(efi_memory_memdesc_t), * since efi_memory_memdesc_t may be extended in the future. Thus the OS * MUST use the returned size of the descriptor to find the start of each * efi_memory_memdesc_t in the memory map array. This should only be used * during bootup since for_each_efi_memory_desc_xxx() is available after the * kernel initializes the EFI subsystem to set up struct efi_memory_map. */ #define efi_early_memdesc_ptr(map, desc_size, n) \ (efi_memory_desc_t *)((void *)(map) + ((n) * (desc_size))) /* Iterate through an efi_memory_map */ #define for_each_efi_memory_desc_in_map(m, md) \ for ((md) = (m)->map; \ (md) && ((void *)(md) + (m)->desc_size) <= (m)->map_end; \ (md) = (void *)(md) + (m)->desc_size) /** * for_each_efi_memory_desc - iterate over descriptors in efi.memmap * @md: the efi_memory_desc_t * iterator * * Once the loop finishes @md must not be accessed. */ #define for_each_efi_memory_desc(md) \ for_each_efi_memory_desc_in_map(&efi.memmap, md) /* * Format an EFI memory descriptor's type and attributes to a user-provided * character buffer, as per snprintf(), and return the buffer. */ char * __init efi_md_typeattr_format(char *buf, size_t size, const efi_memory_desc_t *md); typedef void (*efi_element_handler_t)(const char *source, const void *element_data, size_t element_size); extern int __init parse_efi_signature_list( const char *source, const void *data, size_t size, efi_element_handler_t (*get_handler_for_guid)(const efi_guid_t *)); /** * efi_range_is_wc - check the WC bit on an address range * @start: starting kvirt address * @len: length of range * * Consult the EFI memory map and make sure it's ok to set this range WC. * Returns true or false. */ static inline int efi_range_is_wc(unsigned long start, unsigned long len) { unsigned long i; for (i = 0; i < len; i += (1UL << EFI_PAGE_SHIFT)) { unsigned long paddr = __pa(start + i); if (!(efi_mem_attributes(paddr) & EFI_MEMORY_WC)) return 0; } /* The range checked out */ return 1; } #ifdef CONFIG_EFI_PCDP extern int __init efi_setup_pcdp_console(char *); #endif /* * We play games with efi_enabled so that the compiler will, if * possible, remove EFI-related code altogether. */ #define EFI_BOOT 0 /* Were we booted from EFI? */ #define EFI_CONFIG_TABLES 2 /* Can we use EFI config tables? */ #define EFI_RUNTIME_SERVICES 3 /* Can we use runtime services? */ #define EFI_MEMMAP 4 /* Can we use EFI memory map? */ #define EFI_64BIT 5 /* Is the firmware 64-bit? */ #define EFI_PARAVIRT 6 /* Access is via a paravirt interface */ #define EFI_ARCH_1 7 /* First arch-specific bit */ #define EFI_DBG 8 /* Print additional debug info at runtime */ #define EFI_NX_PE_DATA 9 /* Can runtime data regions be mapped non-executable? */ #define EFI_MEM_ATTR 10 /* Did firmware publish an EFI_MEMORY_ATTRIBUTES table? */ #define EFI_SECURE_BOOT 11 /* Are we in Secure Boot mode? */ #define EFI_MEM_NO_SOFT_RESERVE 12 /* Is the kernel configured to ignore soft reservations? */ enum efi_secureboot_mode { efi_secureboot_mode_unset, efi_secureboot_mode_unknown, efi_secureboot_mode_disabled, efi_secureboot_mode_enabled, }; #ifdef CONFIG_EFI /* * Test whether the above EFI_* bits are enabled. */ static inline bool efi_enabled(int feature) { return test_bit(feature, &efi.flags) != 0; } extern void efi_reboot(enum reboot_mode reboot_mode, const char *__unused); bool __pure __efi_soft_reserve_enabled(void); static inline bool __pure efi_soft_reserve_enabled(void) { return IS_ENABLED(CONFIG_EFI_SOFT_RESERVE) && __efi_soft_reserve_enabled(); } extern void __init efi_set_secure_boot(enum efi_secureboot_mode mode); static inline bool efi_rt_services_supported(unsigned int mask) { return (efi.runtime_supported_mask & mask) == mask; } #else static inline bool efi_enabled(int feature) { return false; } static inline void efi_reboot(enum reboot_mode reboot_mode, const char *__unused) {} static inline bool efi_capsule_pending(int *reset_type) { return false; } static inline bool efi_soft_reserve_enabled(void) { return false; } static inline bool efi_rt_services_supported(unsigned int mask) { return false; } static inline void efi_set_secure_boot(enum efi_secureboot_mode mode) {} #endif extern int efi_status_to_err(efi_status_t status); /* * Variable Attributes */ #define EFI_VARIABLE_NON_VOLATILE 0x0000000000000001 #define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x0000000000000002 #define EFI_VARIABLE_RUNTIME_ACCESS 0x0000000000000004 #define EFI_VARIABLE_HARDWARE_ERROR_RECORD 0x0000000000000008 #define EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS 0x0000000000000010 #define EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS 0x0000000000000020 #define EFI_VARIABLE_APPEND_WRITE 0x0000000000000040 #define EFI_VARIABLE_MASK (EFI_VARIABLE_NON_VOLATILE | \ EFI_VARIABLE_BOOTSERVICE_ACCESS | \ EFI_VARIABLE_RUNTIME_ACCESS | \ EFI_VARIABLE_HARDWARE_ERROR_RECORD | \ EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | \ EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS | \ EFI_VARIABLE_APPEND_WRITE) /* * Length of a GUID string (strlen("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")) * not including trailing NUL */ #define EFI_VARIABLE_GUID_LEN UUID_STRING_LEN /* * The type of search to perform when calling boottime->locate_handle */ #define EFI_LOCATE_ALL_HANDLES 0 #define EFI_LOCATE_BY_REGISTER_NOTIFY 1 #define EFI_LOCATE_BY_PROTOCOL 2 /* * EFI Device Path information */ #define EFI_DEV_HW 0x01 #define EFI_DEV_PCI 1 #define EFI_DEV_PCCARD 2 #define EFI_DEV_MEM_MAPPED 3 #define EFI_DEV_VENDOR 4 #define EFI_DEV_CONTROLLER 5 #define EFI_DEV_ACPI 0x02 #define EFI_DEV_BASIC_ACPI 1 #define EFI_DEV_EXPANDED_ACPI 2 #define EFI_DEV_MSG 0x03 #define EFI_DEV_MSG_ATAPI 1 #define EFI_DEV_MSG_SCSI 2 #define EFI_DEV_MSG_FC 3 #define EFI_DEV_MSG_1394 4 #define EFI_DEV_MSG_USB 5 #define EFI_DEV_MSG_USB_CLASS 15 #define EFI_DEV_MSG_I20 6 #define EFI_DEV_MSG_MAC 11 #define EFI_DEV_MSG_IPV4 12 #define EFI_DEV_MSG_IPV6 13 #define EFI_DEV_MSG_INFINIBAND 9 #define EFI_DEV_MSG_UART 14 #define EFI_DEV_MSG_VENDOR 10 #define EFI_DEV_MEDIA 0x04 #define EFI_DEV_MEDIA_HARD_DRIVE 1 #define EFI_DEV_MEDIA_CDROM 2 #define EFI_DEV_MEDIA_VENDOR 3 #define EFI_DEV_MEDIA_FILE 4 #define EFI_DEV_MEDIA_PROTOCOL 5 #define EFI_DEV_BIOS_BOOT 0x05 #define EFI_DEV_END_PATH 0x7F #define EFI_DEV_END_PATH2 0xFF #define EFI_DEV_END_INSTANCE 0x01 #define EFI_DEV_END_ENTIRE 0xFF struct efi_generic_dev_path { u8 type; u8 sub_type; u16 length; } __attribute ((packed)); struct efi_dev_path { u8 type; /* can be replaced with unnamed */ u8 sub_type; /* struct efi_generic_dev_path; */ u16 length; /* once we've moved to -std=c11 */ union { struct { u32 hid; u32 uid; } acpi; struct { u8 fn; u8 dev; } pci; }; } __attribute ((packed)); #if IS_ENABLED(CONFIG_EFI_DEV_PATH_PARSER) struct device *efi_get_device_by_path(struct efi_dev_path **node, size_t *len); #endif static inline void memrange_efi_to_native(u64 *addr, u64 *npages) { *npages = PFN_UP(*addr + (*npages<kobj); } int efivars_register(struct efivars *efivars, const struct efivar_operations *ops, struct kobject *kobject); int efivars_unregister(struct efivars *efivars); struct kobject *efivars_kobject(void); int efivar_supports_writes(void); int efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *), void *data, bool duplicates, struct list_head *head); int efivar_entry_add(struct efivar_entry *entry, struct list_head *head); int efivar_entry_remove(struct efivar_entry *entry); int __efivar_entry_delete(struct efivar_entry *entry); int efivar_entry_delete(struct efivar_entry *entry); int efivar_entry_size(struct efivar_entry *entry, unsigned long *size); int __efivar_entry_get(struct efivar_entry *entry, u32 *attributes, unsigned long *size, void *data); int efivar_entry_get(struct efivar_entry *entry, u32 *attributes, unsigned long *size, void *data); int efivar_entry_set(struct efivar_entry *entry, u32 attributes, unsigned long size, void *data, struct list_head *head); int efivar_entry_set_get_size(struct efivar_entry *entry, u32 attributes, unsigned long *size, void *data, bool *set); int efivar_entry_set_safe(efi_char16_t *name, efi_guid_t vendor, u32 attributes, bool block, unsigned long size, void *data); int efivar_entry_iter_begin(void); void efivar_entry_iter_end(void); int __efivar_entry_iter(int (*func)(struct efivar_entry *, void *), struct list_head *head, void *data, struct efivar_entry **prev); int efivar_entry_iter(int (*func)(struct efivar_entry *, void *), struct list_head *head, void *data); struct efivar_entry *efivar_entry_find(efi_char16_t *name, efi_guid_t guid, struct list_head *head, bool remove); bool efivar_validate(efi_guid_t vendor, efi_char16_t *var_name, u8 *data, unsigned long data_size); bool efivar_variable_is_removable(efi_guid_t vendor, const char *name, size_t len); extern struct work_struct efivar_work; void efivar_run_worker(void); #if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE) int efivars_sysfs_init(void); #define EFIVARS_DATA_SIZE_MAX 1024 #endif /* CONFIG_EFI_VARS */ extern bool efi_capsule_pending(int *reset_type); extern int efi_capsule_supported(efi_guid_t guid, u32 flags, size_t size, int *reset); extern int efi_capsule_update(efi_capsule_header_t *capsule, phys_addr_t *pages); #ifdef CONFIG_EFI_RUNTIME_MAP int efi_runtime_map_init(struct kobject *); int efi_get_runtime_map_size(void); int efi_get_runtime_map_desc_size(void); int efi_runtime_map_copy(void *buf, size_t bufsz); #else static inline int efi_runtime_map_init(struct kobject *kobj) { return 0; } static inline int efi_get_runtime_map_size(void) { return 0; } static inline int efi_get_runtime_map_desc_size(void) { return 0; } static inline int efi_runtime_map_copy(void *buf, size_t bufsz) { return 0; } #endif /* prototypes shared between arch specific and generic stub code */ void efi_printk(efi_system_table_t *sys_table_arg, char *str); void efi_free(efi_system_table_t *sys_table_arg, unsigned long size, unsigned long addr); char *efi_convert_cmdline(efi_system_table_t *sys_table_arg, efi_loaded_image_t *image, int *cmd_line_len); efi_status_t efi_get_memory_map(efi_system_table_t *sys_table_arg, struct efi_boot_memmap *map); efi_status_t efi_low_alloc_above(efi_system_table_t *sys_table_arg, unsigned long size, unsigned long align, unsigned long *addr, unsigned long min); static inline efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg, unsigned long size, unsigned long align, unsigned long *addr) { /* * Don't allocate at 0x0. It will confuse code that * checks pointers against NULL. Skip the first 8 * bytes so we start at a nice even number. */ return efi_low_alloc_above(sys_table_arg, size, align, addr, 0x8); } efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg, unsigned long size, unsigned long align, unsigned long *addr, unsigned long max); efi_status_t efi_relocate_kernel(efi_system_table_t *sys_table_arg, unsigned long *image_addr, unsigned long image_size, unsigned long alloc_size, unsigned long preferred_addr, unsigned long alignment, unsigned long min_addr); efi_status_t handle_cmdline_files(efi_system_table_t *sys_table_arg, efi_loaded_image_t *image, char *cmd_line, char *option_string, unsigned long max_addr, unsigned long *load_addr, unsigned long *load_size); efi_status_t efi_parse_options(char const *cmdline); efi_status_t efi_setup_gop(efi_system_table_t *sys_table_arg, struct screen_info *si, efi_guid_t *proto, unsigned long size); bool efi_runtime_disabled(void); extern void efi_call_virt_check_flags(unsigned long flags, const char *call); extern unsigned long efi_call_virt_save_flags(void); enum efi_secureboot_mode efi_get_secureboot(efi_system_table_t *sys_table); #ifdef CONFIG_RESET_ATTACK_MITIGATION void efi_enable_reset_attack_mitigation(efi_system_table_t *sys_table_arg); #else static inline void efi_enable_reset_attack_mitigation(efi_system_table_t *sys_table_arg) { } #endif efi_status_t efi_random_get_seed(efi_system_table_t *sys_table_arg); void efi_retrieve_tpm2_eventlog(efi_system_table_t *sys_table); #define arch_efi_call_virt(p, f, args...) ((p)->f(args)) /* * Arch code can implement the following three template macros, avoiding * reptition for the void/non-void return cases of {__,}efi_call_virt(): * * * arch_efi_call_virt_setup() * * Sets up the environment for the call (e.g. switching page tables, * allowing kernel-mode use of floating point, if required). * * * arch_efi_call_virt() * * Performs the call. The last expression in the macro must be the call * itself, allowing the logic to be shared by the void and non-void * cases. * * * arch_efi_call_virt_teardown() * * Restores the usual kernel environment once the call has returned. */ #define efi_call_virt_pointer(p, f, args...) \ ({ \ efi_status_t __s; \ unsigned long __flags; \ \ arch_efi_call_virt_setup(); \ \ __flags = efi_call_virt_save_flags(); \ __s = arch_efi_call_virt(p, f, args); \ efi_call_virt_check_flags(__flags, __stringify(f)); \ \ arch_efi_call_virt_teardown(); \ \ __s; \ }) #define __efi_call_virt_pointer(p, f, args...) \ ({ \ unsigned long __flags; \ \ arch_efi_call_virt_setup(); \ \ __flags = efi_call_virt_save_flags(); \ arch_efi_call_virt(p, f, args); \ efi_call_virt_check_flags(__flags, __stringify(f)); \ \ arch_efi_call_virt_teardown(); \ }) typedef efi_status_t (*efi_exit_boot_map_processing)( efi_system_table_t *sys_table_arg, struct efi_boot_memmap *map, void *priv); efi_status_t efi_exit_boot_services(efi_system_table_t *sys_table, void *handle, struct efi_boot_memmap *map, void *priv, efi_exit_boot_map_processing priv_func); #define EFI_RANDOM_SEED_SIZE 64U struct linux_efi_random_seed { u32 size; u8 bits[]; }; struct linux_efi_tpm_eventlog { u32 size; u32 final_events_preboot_size; u8 version; u8 log[]; }; extern int efi_tpm_eventlog_init(void); extern unsigned long rci2_table_phys; struct efi_tcg2_final_events_table { u64 version; u64 nr_events; u8 events[]; }; extern int efi_tpm_final_log_size; /* * efi_runtime_service() function identifiers. * "NONE" is used by efi_recover_from_page_fault() to check if the page * fault happened while executing an efi runtime service. */ enum efi_rts_ids { EFI_NONE, EFI_GET_TIME, EFI_SET_TIME, EFI_GET_WAKEUP_TIME, EFI_SET_WAKEUP_TIME, EFI_GET_VARIABLE, EFI_GET_NEXT_VARIABLE, EFI_SET_VARIABLE, EFI_QUERY_VARIABLE_INFO, EFI_GET_NEXT_HIGH_MONO_COUNT, EFI_RESET_SYSTEM, EFI_UPDATE_CAPSULE, EFI_QUERY_CAPSULE_CAPS, }; /* * efi_runtime_work: Details of EFI Runtime Service work * @arg<1-5>: EFI Runtime Service function arguments * @status: Status of executing EFI Runtime Service * @efi_rts_id: EFI Runtime Service function identifier * @efi_rts_comp: Struct used for handling completions */ struct efi_runtime_work { void *arg1; void *arg2; void *arg3; void *arg4; void *arg5; efi_status_t status; struct work_struct work; enum efi_rts_ids efi_rts_id; struct completion efi_rts_comp; }; /* Workqueue to queue EFI Runtime Services */ extern struct workqueue_struct *efi_rts_wq; extern struct efi_runtime_work efi_rts_work; struct linux_efi_memreserve { int size; // allocated size of the array atomic_t count; // number of entries used phys_addr_t next; // pa of next struct instance struct { phys_addr_t base; phys_addr_t size; } entry[0]; }; #define EFI_MEMRESERVE_SIZE(count) (sizeof(struct linux_efi_memreserve) + \ (count) * sizeof(((struct linux_efi_memreserve *)0)->entry[0])) #define EFI_MEMRESERVE_COUNT(size) (((size) - sizeof(struct linux_efi_memreserve)) \ / sizeof(((struct linux_efi_memreserve *)0)->entry[0])) /* * The LINUX_EFI_MOK_VARIABLE_TABLE_GUID config table can be provided * to the kernel by an EFI boot loader. The table contains a packed * sequence of these entries, one for each named MOK variable. * The sequence is terminated by an entry with a completely NULL * name and 0 data size. */ struct efi_mokvar_table_entry { char name[256]; u64 data_size; u8 data[]; } __attribute((packed)); #ifdef CONFIG_LOAD_UEFI_KEYS extern void __init efi_mokvar_table_init(void); extern struct efi_mokvar_table_entry *efi_mokvar_entry_next( struct efi_mokvar_table_entry **mokvar_entry); extern struct efi_mokvar_table_entry *efi_mokvar_entry_find(const char *name); #else static inline void efi_mokvar_table_init(void) { } static inline struct efi_mokvar_table_entry *efi_mokvar_entry_next( struct efi_mokvar_table_entry **mokvar_entry) { return NULL; } static inline struct efi_mokvar_table_entry *efi_mokvar_entry_find( const char *name) { return NULL; } #endif #endif /* _LINUX_EFI_H */