/usr/src/linux-headers-5.15.0-190/arch/mips/include/asm
NameSizeModeActions
dec/-0755rm
fw/-0755rm
ip32/-0755rm
mach-ar7/-0755rm
mach-ath25/-0755rm
mach-ath79/-0755rm
mach-au1x00/-0755rm
mach-bcm47xx/-0755rm
mach-bcm63xx/-0755rm
mach-bmips/-0755rm
mach-cavium-octeon/-0755rm
mach-cobalt/-0755rm
mach-db1x00/-0755rm
mach-dec/-0755rm
mach-generic/-0755rm
mach-ingenic/-0755rm
mach-ip22/-0755rm
mach-ip27/-0755rm
mach-ip28/-0755rm
mach-ip30/-0755rm
mach-ip32/-0755rm
mach-jazz/-0755rm
mach-lantiq/-0755rm
mach-loongson2ef/-0755rm
mach-loongson32/-0755rm
mach-loongson64/-0755rm
mach-malta/-0755rm
mach-n64/-0755rm
mach-netlogic/-0755rm
mach-pic32/-0755rm
mach-ralink/-0755rm
mach-rc32434/-0755rm
mach-rm/-0755rm
mach-sibyte/-0755rm
mach-tx39xx/-0755rm
mach-tx49xx/-0755rm
mach-vr41xx/-0755rm
mips-boards/-0755rm
netlogic/-0755rm
octeon/-0755rm
pci/-0755rm
sgi/-0755rm
sibyte/-0755rm
sn/-0755rm
txx9/-0755rm
vdso/-0755rm
vr41xx/-0755rm
xtalk/-0755rm
abi.h8530644editdlrm
addrspace.h40390644editdlrm
amon.h4090644editdlrm
arch_hweight.h7920644editdlrm
asm-eva.h73430644editdlrm
asm-offsets.h350644editdlrm
asm-prototypes.h2280644editdlrm
asm.h66880644editdlrm
asmmacro-32.h25290644editdlrm
asmmacro-64.h12540644editdlrm
asmmacro.h146390644editdlrm
atomic.h82990644editdlrm
barrier.h35070644editdlrm
bcache.h20860644editdlrm
bitops.h109140644editdlrm
bitrev.h6080644editdlrm
bmips-spaces.h2680644editdlrm
bmips.h30970644editdlrm
bootinfo.h49280644editdlrm
branch.h25030644editdlrm
break.h7870644editdlrm
bug.h7590644editdlrm
bugs.h6400644editdlrm
cache.h5270644editdlrm
cacheflush.h48630644editdlrm
cacheops.h38010644editdlrm
cdmm.h37610644editdlrm
cevt-r4k.h8230644editdlrm
checksum.h57430644editdlrm
clocksource.h2730644editdlrm
cmp.h4920644editdlrm
cmpxchg.h88800644editdlrm
compat-signal.h6400644editdlrm
compat.h38660644editdlrm
compiler.h26690644editdlrm
cop2.h18120644editdlrm
cpu-features.h227230644editdlrm
cpu-info.h62760644editdlrm
cpu-type.h42560644editdlrm
cpu.h169550644editdlrm
cpufeature.h5100644editdlrm
debug.h4470644editdlrm
delay.h8410644editdlrm
div64.h22230644editdlrm
dma-direct.h2550644editdlrm
dma-mapping.h3650644editdlrm
dma.h101610644editdlrm
dmi.h5470644editdlrm
ds1287.h3330644editdlrm
dsemul.h35950644editdlrm
dsp.h17470644editdlrm
edac.h8390644editdlrm
elf.h155590644editdlrm
elfcore-compat.h8410644editdlrm
errno.h4290644editdlrm
eva.h7960644editdlrm
exec.h5790644editdlrm
extable.h2410644editdlrm
fb.h3720644editdlrm
fixmap.h22190644editdlrm
floppy.h16090644editdlrm
fpregdef.h27260644editdlrm
fpu.h73320644editdlrm
fpu_emulator.h48440644editdlrm
ftrace.h26590644editdlrm
futex.h52410644editdlrm
ginvt.h10560644editdlrm
gio_device.h14110644editdlrm
gt64120.h192180644editdlrm
hardirq.h5440644editdlrm
hazards.h86730644editdlrm
highmem.h17410644editdlrm
hpet.h19740644editdlrm
hugetlb.h21650644editdlrm
hw_irq.h4750644editdlrm
i8259.h24400644editdlrm
ide.h3300644editdlrm
idle.h7270644editdlrm
inst.h23980644editdlrm
io.h173340644editdlrm
irq.h24080644editdlrm
irqflags.h42060644editdlrm
irq_cpu.h4270644editdlrm
irq_gt641xx.h20740644editdlrm
irq_regs.h5400644editdlrm
isa-rev.h5560644editdlrm
isadep.h6030644editdlrm
jazz.h81920644editdlrm
jazzdma.h28260644editdlrm
jump_label.h15710644editdlrm
Kbuild4140644editdlrm
kdebug.h3030644editdlrm
kexec.h14900644editdlrm
kgdb.h12220644editdlrm
kprobes.h17270644editdlrm
kvm_host.h304880644editdlrm
kvm_types.h1840644editdlrm
linkage.h3060644editdlrm
llsc.h9230644editdlrm
local.h54730644editdlrm
maar.h42700644editdlrm
machine.h27950644editdlrm
mc146818-time.h37790644editdlrm
mc146818rtc.h4500644editdlrm
mips-cm.h168570644editdlrm
mips-cpc.h57660644editdlrm
mips-cps.h64940644editdlrm
mips-gic.h123870644editdlrm
mips-r2-to-r6-emul.h20950644editdlrm
mipsmtregs.h111710644editdlrm
mipsprom.h21460644editdlrm
mipsregs.h969260644editdlrm
mips_mt.h7070644editdlrm
mmiowb.h1970644editdlrm
mmu.h5550644editdlrm
mmu_context.h62050644editdlrm
mmzone.h4270644editdlrm
module.h23880644editdlrm
msa.h75250644editdlrm
msc01_ic.h67090644editdlrm
paccess.h31400644editdlrm
page.h76100644editdlrm
pci.h39020644editdlrm
perf_event.h3360644editdlrm
pgalloc.h25710644editdlrm
pgtable-32.h81490644editdlrm
pgtable-64.h97090644editdlrm
pgtable-bits.h78520644editdlrm
pgtable.h185290644editdlrm
pm-cps.h15150644editdlrm
pm.h38710644editdlrm
prefetch.h21480644editdlrm
processor.h113210644editdlrm
prom.h6960644editdlrm
ptrace.h55820644editdlrm
r4k-timer.h6040644editdlrm
r4kcache.h113730644editdlrm
reboot.h4400644editdlrm
reg.h260644editdlrm
regdef.h26930644editdlrm
rtlx.h21480644editdlrm
seccomp.h8100644editdlrm
setup.h9410644editdlrm
sgialib.h17430644editdlrm
sgiarcs.h140220644editdlrm
shmparam.h3520644editdlrm
sigcontext.h10600644editdlrm
signal.h10420644editdlrm
sim.h20700644editdlrm
smp-cps.h9980644editdlrm
smp-ops.h24760644editdlrm
smp.h36960644editdlrm
sni.h74950644editdlrm
socket.h13770644editdlrm
sparsemem.h4860644editdlrm
spinlock.h8220644editdlrm
spinlock_types.h1880644editdlrm
spram.h2610644editdlrm
stackframe.h111570644editdlrm
stackprotector.h11770644editdlrm
stacktrace.h21990644editdlrm
string.h6920644editdlrm
switch_to.h44550644editdlrm
sync.h78230644editdlrm
syscall.h37030644editdlrm
termios.h29330644editdlrm
thread_info.h66400644editdlrm
time.h16170644editdlrm
timex.h29370644editdlrm
tlb.h6130644editdlrm
tlbdebug.h4030644editdlrm
tlbex.h9770644editdlrm
tlbflush.h16830644editdlrm
tlbmisc.h3200644editdlrm
topology.h6190644editdlrm
traps.h12290644editdlrm
txx9irq.h7430644editdlrm
txx9pio.h5920644editdlrm
txx9tmr.h16250644editdlrm
types.h4590644editdlrm
uaccess.h164500644editdlrm
uasm.h95780644editdlrm
unaligned-emul.h268560644editdlrm
unistd.h18600644editdlrm
unroll.h28600644editdlrm
uprobes.h11410644editdlrm
vdso.h14690644editdlrm
vermagic.h23720644editdlrm
vga.h12910644editdlrm
vmalloc.h900644editdlrm
vpe.h28430644editdlrm
war.h22820644editdlrm
watch.h8270644editdlrm
wbflush.h6940644editdlrm
yamon-dt.h17170644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/arch/mips/include/asm/sgiarcs.h (14022B)
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * ARC firmware interface defines. * * Copyright (C) 1996 David S. Miller (davem@davemloft.net) * Copyright (C) 1999, 2001 Ralf Baechle (ralf@gnu.org) * Copyright (C) 1999 Silicon Graphics, Inc. */ #ifndef _ASM_SGIARCS_H #define _ASM_SGIARCS_H #include #include #include /* Various ARCS error codes. */ #define PROM_ESUCCESS 0x00 #define PROM_E2BIG 0x01 #define PROM_EACCESS 0x02 #define PROM_EAGAIN 0x03 #define PROM_EBADF 0x04 #define PROM_EBUSY 0x05 #define PROM_EFAULT 0x06 #define PROM_EINVAL 0x07 #define PROM_EIO 0x08 #define PROM_EISDIR 0x09 #define PROM_EMFILE 0x0a #define PROM_EMLINK 0x0b #define PROM_ENAMETOOLONG 0x0c #define PROM_ENODEV 0x0d #define PROM_ENOENT 0x0e #define PROM_ENOEXEC 0x0f #define PROM_ENOMEM 0x10 #define PROM_ENOSPC 0x11 #define PROM_ENOTDIR 0x12 #define PROM_ENOTTY 0x13 #define PROM_ENXIO 0x14 #define PROM_EROFS 0x15 /* SGI ARCS specific errno's. */ #define PROM_EADDRNOTAVAIL 0x1f #define PROM_ETIMEDOUT 0x20 #define PROM_ECONNABORTED 0x21 #define PROM_ENOCONNECT 0x22 /* Device classes, types, and identifiers for prom * device inventory queries. */ enum linux_devclass { system, processor, cache, adapter, controller, peripheral, memory }; enum linux_devtypes { /* Generic stuff. */ Arc, Cpu, Fpu, /* Primary insn and data caches. */ picache, pdcache, /* Secondary insn, data, and combined caches. */ sicache, sdcache, sccache, memdev, eisa_adapter, tc_adapter, scsi_adapter, dti_adapter, multifunc_adapter, dsk_controller, tp_controller, cdrom_controller, worm_controller, serial_controller, net_controller, disp_controller, parallel_controller, ptr_controller, kbd_controller, audio_controller, misc_controller, disk_peripheral, flpy_peripheral, tp_peripheral, modem_peripheral, monitor_peripheral, printer_peripheral, ptr_peripheral, kbd_peripheral, term_peripheral, line_peripheral, net_peripheral, misc_peripheral, anon }; enum linux_identifier { bogus, ronly, removable, consin, consout, input, output }; /* A prom device tree component. */ struct linux_component { enum linux_devclass class; /* node class */ enum linux_devtypes type; /* node type */ enum linux_identifier iflags; /* node flags */ USHORT vers; /* node version */ USHORT rev; /* node revision */ ULONG key; /* completely magic */ ULONG amask; /* XXX affinity mask??? */ ULONG cdsize; /* size of configuration data */ ULONG ilen; /* length of string identifier */ _PULONG iname; /* string identifier */ }; typedef struct linux_component pcomponent; struct linux_sysid { char vend[8], prod[8]; }; /* ARCS prom memory descriptors. */ enum arcs_memtypes { arcs_eblock, /* exception block */ arcs_rvpage, /* ARCS romvec page */ arcs_fcontig, /* Contiguous and free */ arcs_free, /* Generic free memory */ arcs_bmem, /* Borken memory, don't use */ arcs_prog, /* A loaded program resides here */ arcs_atmp, /* ARCS temporary storage area, wish Sparc OpenBoot told this */ arcs_aperm, /* ARCS permanent storage... */ }; /* ARC has slightly different types than ARCS */ enum arc_memtypes { arc_eblock, /* exception block */ arc_rvpage, /* romvec page */ arc_free, /* Generic free memory */ arc_bmem, /* Borken memory, don't use */ arc_prog, /* A loaded program resides here */ arc_atmp, /* temporary storage area */ arc_aperm, /* permanent storage */ arc_fcontig, /* Contiguous and free */ }; union linux_memtypes { enum arcs_memtypes arcs; enum arc_memtypes arc; }; struct linux_mdesc { union linux_memtypes type; ULONG base; ULONG pages; }; /* Time of day descriptor. */ struct linux_tinfo { unsigned short yr; unsigned short mnth; unsigned short day; unsigned short hr; unsigned short min; unsigned short sec; unsigned short msec; }; /* ARCS virtual dirents. */ struct linux_vdirent { ULONG namelen; unsigned char attr; char fname[32]; /* XXX empirical, should be a define */ }; /* Other stuff for files. */ enum linux_omode { rdonly, wronly, rdwr, wronly_creat, rdwr_creat, wronly_ssede, rdwr_ssede, dirent, dirent_creat }; enum linux_seekmode { absolute, relative }; enum linux_mountops { media_load, media_unload }; /* This prom has a bolixed design. */ struct linux_bigint { #ifdef __MIPSEL__ u32 lo; s32 hi; #else /* !(__MIPSEL__) */ s32 hi; u32 lo; #endif }; struct linux_finfo { struct linux_bigint begin; struct linux_bigint end; struct linux_bigint cur; enum linux_devtypes dtype; unsigned long namelen; unsigned char attr; char name[32]; /* XXX empirical, should be define */ }; /* This describes the vector containing function pointers to the ARC firmware functions. */ struct linux_romvec { LONG load; /* Load an executable image. */ LONG invoke; /* Invoke a standalong image. */ LONG exec; /* Load and begin execution of a standalone image. */ LONG halt; /* Halt the machine. */ LONG pdown; /* Power down the machine. */ LONG restart; /* XXX soft reset??? */ LONG reboot; /* Reboot the machine. */ LONG imode; /* Enter PROM interactive mode. */ LONG _unused1; /* Was ReturnFromMain(). */ /* PROM device tree interface. */ LONG next_component; LONG child_component; LONG parent_component; LONG component_data; LONG child_add; LONG comp_del; LONG component_by_path; /* Misc. stuff. */ LONG cfg_save; LONG get_sysid; /* Probing for memory. */ LONG get_mdesc; LONG _unused2; /* was Signal() */ LONG get_tinfo; LONG get_rtime; /* File type operations. */ LONG get_vdirent; LONG open; LONG close; LONG read; LONG get_rstatus; LONG write; LONG seek; LONG mount; /* Dealing with firmware environment variables. */ LONG get_evar; LONG set_evar; LONG get_finfo; LONG set_finfo; /* Miscellaneous. */ LONG cache_flush; LONG TestUnicodeCharacter; /* ARC; not sure if ARCS too */ LONG GetDisplayStatus; }; /* The SGI ARCS parameter block is in a fixed location for standalone * programs to access PROM facilities easily. */ typedef struct _SYSTEM_PARAMETER_BLOCK { ULONG magic; /* magic cookie */ #define PROMBLOCK_MAGIC 0x53435241 ULONG len; /* length of parm block */ USHORT ver; /* ARCS firmware version */ USHORT rev; /* ARCS firmware revision */ _PLONG rs_block; /* Restart block. */ _PLONG dbg_block; /* Debug block. */ _PLONG gevect; /* XXX General vector??? */ _PLONG utlbvect; /* XXX UTLB vector??? */ ULONG rveclen; /* Size of romvec struct. */ _PVOID romvec; /* Function interface. */ ULONG pveclen; /* Length of private vector. */ _PVOID pvector; /* Private vector. */ ULONG adap_cnt; /* Adapter count. */ ULONG adap_typ0; /* First adapter type. */ ULONG adap_vcnt0; /* Adapter 0 vector count. */ _PVOID adap_vector; /* Adapter 0 vector ptr. */ ULONG adap_typ1; /* Second adapter type. */ ULONG adap_vcnt1; /* Adapter 1 vector count. */ _PVOID adap_vector1; /* Adapter 1 vector ptr. */ /* More adapter vectors go here... */ } SYSTEM_PARAMETER_BLOCK, *PSYSTEM_PARAMETER_BLOCK; #define PROMBLOCK ((PSYSTEM_PARAMETER_BLOCK) (int)0xA0001000) #define ROMVECTOR ((struct linux_romvec *) (long)(PROMBLOCK)->romvec) /* Cache layout parameter block. */ union linux_cache_key { struct param { #ifdef __MIPSEL__ unsigned short size; unsigned char lsize; unsigned char bsize; #else /* !(__MIPSEL__) */ unsigned char bsize; unsigned char lsize; unsigned short size; #endif } info; unsigned long allinfo; }; /* Configuration data. */ struct linux_cdata { char *name; int mlen; enum linux_devtypes type; }; /* Common SGI ARCS firmware file descriptors. */ #define SGIPROM_STDIN 0 #define SGIPROM_STDOUT 1 /* Common SGI ARCS firmware file types. */ #define SGIPROM_ROFILE 0x01 /* read-only file */ #define SGIPROM_HFILE 0x02 /* hidden file */ #define SGIPROM_SFILE 0x04 /* System file */ #define SGIPROM_AFILE 0x08 /* Archive file */ #define SGIPROM_DFILE 0x10 /* Directory file */ #define SGIPROM_DELFILE 0x20 /* Deleted file */ /* SGI ARCS boot record information. */ struct sgi_partition { unsigned char flag; #define SGIPART_UNUSED 0x00 #define SGIPART_ACTIVE 0x80 unsigned char shead, ssect, scyl; /* unused */ unsigned char systype; /* OS type, Irix or NT */ unsigned char ehead, esect, ecyl; /* unused */ unsigned char rsect0, rsect1, rsect2, rsect3; unsigned char tsect0, tsect1, tsect2, tsect3; }; #define SGIBBLOCK_MAGIC 0xaa55 #define SGIBBLOCK_MAXPART 0x0004 struct sgi_bootblock { unsigned char _unused[446]; struct sgi_partition partitions[SGIBBLOCK_MAXPART]; unsigned short magic; }; /* BIOS parameter block. */ struct sgi_bparm_block { unsigned short bytes_sect; /* bytes per sector */ unsigned char sect_clust; /* sectors per cluster */ unsigned short sect_resv; /* reserved sectors */ unsigned char nfats; /* # of allocation tables */ unsigned short nroot_dirents; /* # of root directory entries */ unsigned short sect_volume; /* sectors in volume */ unsigned char media_type; /* media descriptor */ unsigned short sect_fat; /* sectors per allocation table */ unsigned short sect_track; /* sectors per track */ unsigned short nheads; /* # of heads */ unsigned short nhsects; /* # of hidden sectors */ }; struct sgi_bsector { unsigned char jmpinfo[3]; unsigned char manuf_name[8]; struct sgi_bparm_block info; }; /* Debugging block used with SGI symmon symbolic debugger. */ #define SMB_DEBUG_MAGIC 0xfeeddead struct linux_smonblock { unsigned long magic; void (*handler)(void); /* Breakpoint routine. */ unsigned long dtable_base; /* Base addr of dbg table. */ int (*printf)(const char *fmt, ...); unsigned long btable_base; /* Breakpoint table. */ unsigned long mpflushreqs; /* SMP cache flush request list. */ unsigned long ntab; /* Name table. */ unsigned long stab; /* Symbol table. */ int smax; /* Max # of symbols. */ }; /* * Macros for calling a 32-bit ARC implementation from 64-bit code */ #if defined(CONFIG_64BIT) && defined(CONFIG_FW_ARC32) extern long call_o32(long vec, void *stack, ...); extern u64 o32_stk[4096]; #define O32_STK (&o32_stk[ARRAY_SIZE(o32_stk)]) #define ARC_CALL0(dest) \ ({ long __res; \ long __vec = (long) romvec->dest; \ __res = call_o32(__vec, O32_STK); \ __res; \ }) #define ARC_CALL1(dest, a1) \ ({ long __res; \ int __a1 = (int) (long) (a1); \ long __vec = (long) romvec->dest; \ __res = call_o32(__vec, O32_STK, __a1); \ __res; \ }) #define ARC_CALL2(dest, a1, a2) \ ({ long __res; \ int __a1 = (int) (long) (a1); \ int __a2 = (int) (long) (a2); \ long __vec = (long) romvec->dest; \ __res = call_o32(__vec, O32_STK, __a1, __a2); \ __res; \ }) #define ARC_CALL3(dest, a1, a2, a3) \ ({ long __res; \ int __a1 = (int) (long) (a1); \ int __a2 = (int) (long) (a2); \ int __a3 = (int) (long) (a3); \ long __vec = (long) romvec->dest; \ __res = call_o32(__vec, O32_STK, __a1, __a2, __a3); \ __res; \ }) #define ARC_CALL4(dest, a1, a2, a3, a4) \ ({ long __res; \ int __a1 = (int) (long) (a1); \ int __a2 = (int) (long) (a2); \ int __a3 = (int) (long) (a3); \ int __a4 = (int) (long) (a4); \ long __vec = (long) romvec->dest; \ __res = call_o32(__vec, O32_STK, __a1, __a2, __a3, __a4); \ __res; \ }) #define ARC_CALL5(dest, a1, a2, a3, a4, a5) \ ({ long __res; \ int __a1 = (int) (long) (a1); \ int __a2 = (int) (long) (a2); \ int __a3 = (int) (long) (a3); \ int __a4 = (int) (long) (a4); \ int __a5 = (int) (long) (a5); \ long __vec = (long) romvec->dest; \ __res = call_o32(__vec, O32_STK, __a1, __a2, __a3, __a4, __a5); \ __res; \ }) #endif /* defined(CONFIG_64BIT) && defined(CONFIG_FW_ARC32) */ #if (defined(CONFIG_32BIT) && defined(CONFIG_FW_ARC32)) || \ (defined(CONFIG_64BIT) && defined(CONFIG_FW_ARC64)) #define ARC_CALL0(dest) \ ({ long __res; \ long (*__vec)(void) = (void *) romvec->dest; \ \ __res = __vec(); \ __res; \ }) #define ARC_CALL1(dest, a1) \ ({ long __res; \ long __a1 = (long) (a1); \ long (*__vec)(long) = (void *) romvec->dest; \ \ __res = __vec(__a1); \ __res; \ }) #define ARC_CALL2(dest, a1, a2) \ ({ long __res; \ long __a1 = (long) (a1); \ long __a2 = (long) (a2); \ long (*__vec)(long, long) = (void *) romvec->dest; \ \ __res = __vec(__a1, __a2); \ __res; \ }) #define ARC_CALL3(dest, a1, a2, a3) \ ({ long __res; \ long __a1 = (long) (a1); \ long __a2 = (long) (a2); \ long __a3 = (long) (a3); \ long (*__vec)(long, long, long) = (void *) romvec->dest; \ \ __res = __vec(__a1, __a2, __a3); \ __res; \ }) #define ARC_CALL4(dest, a1, a2, a3, a4) \ ({ long __res; \ long __a1 = (long) (a1); \ long __a2 = (long) (a2); \ long __a3 = (long) (a3); \ long __a4 = (long) (a4); \ long (*__vec)(long, long, long, long) = (void *) romvec->dest; \ \ __res = __vec(__a1, __a2, __a3, __a4); \ __res; \ }) #define ARC_CALL5(dest, a1, a2, a3, a4, a5) \ ({ long __res; \ long __a1 = (long) (a1); \ long __a2 = (long) (a2); \ long __a3 = (long) (a3); \ long __a4 = (long) (a4); \ long __a5 = (long) (a5); \ long (*__vec)(long, long, long, long, long); \ __vec = (void *) romvec->dest; \ \ __res = __vec(__a1, __a2, __a3, __a4, __a5); \ __res; \ }) #endif /* both kernel and ARC either 32-bit or 64-bit */ #endif /* _ASM_SGIARCS_H */