/
usr
/
src
/
linux-headers-5.15.0-181
/
arch
/
alpha
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-181/arch/alpha/include/asm
mkdir
upload
Name
Size
Mode
Actions
a.out.h
574
0644
edit
dl
rm
agp.h
490
0644
edit
dl
rm
agp_backend.h
948
0644
edit
dl
rm
asm-offsets.h
35
0644
edit
dl
rm
asm-prototypes.h
505
0644
edit
dl
rm
atomic.h
8749
0644
edit
dl
rm
barrier.h
507
0644
edit
dl
rm
bitops.h
9039
0644
edit
dl
rm
bug.h
571
0644
edit
dl
rm
cache.h
507
0644
edit
dl
rm
cacheflush.h
2039
0644
edit
dl
rm
checksum.h
2012
0644
edit
dl
rm
cmpxchg.h
1928
0644
edit
dl
rm
compiler.h
158
0644
edit
dl
rm
console.h
1084
0644
edit
dl
rm
core_apecs.h
17338
0644
edit
dl
rm
core_cia.h
15817
0644
edit
dl
rm
core_irongate.h
6793
0644
edit
dl
rm
core_lca.h
11650
0644
edit
dl
rm
core_marvel.h
9382
0644
edit
dl
rm
core_mcpcia.h
11747
0644
edit
dl
rm
core_polaris.h
2987
0644
edit
dl
rm
core_t2.h
19595
0644
edit
dl
rm
core_titan.h
11471
0644
edit
dl
rm
core_tsunami.h
8485
0644
edit
dl
rm
core_wildfire.h
8655
0644
edit
dl
rm
delay.h
264
0644
edit
dl
rm
device.h
129
0644
edit
dl
rm
div64.h
31
0644
edit
dl
rm
dma-mapping.h
342
0644
edit
dl
rm
dma.h
12664
0644
edit
dl
rm
elf.h
5765
0644
edit
dl
rm
emergency-restart.h
149
0644
edit
dl
rm
err_common.h
3316
0644
edit
dl
rm
err_ev6.h
116
0644
edit
dl
rm
err_ev7.h
4472
0644
edit
dl
rm
extable.h
1459
0644
edit
dl
rm
floppy.h
3171
0644
edit
dl
rm
fpu.h
1820
0644
edit
dl
rm
ftrace.h
12
0644
edit
dl
rm
futex.h
2017
0644
edit
dl
rm
gct.h
1042
0644
edit
dl
rm
hardirq.h
223
0644
edit
dl
rm
hwrpb.h
7066
0644
edit
dl
rm
hw_irq.h
302
0644
edit
dl
rm
io.h
14873
0644
edit
dl
rm
io_trivial.h
3206
0644
edit
dl
rm
irq.h
2363
0644
edit
dl
rm
irqflags.h
1194
0644
edit
dl
rm
irq_regs.h
34
0644
edit
dl
rm
jensen.h
8603
0644
edit
dl
rm
Kbuild
141
0644
edit
dl
rm
kdebug.h
32
0644
edit
dl
rm
linkage.h
256
0644
edit
dl
rm
local.h
2654
0644
edit
dl
rm
machvec.h
3621
0644
edit
dl
rm
mc146818rtc.h
680
0644
edit
dl
rm
mce.h
4135
0644
edit
dl
rm
mmu.h
203
0644
edit
dl
rm
mmu_context.h
7241
0644
edit
dl
rm
module.h
329
0644
edit
dl
rm
page.h
2397
0644
edit
dl
rm
pal.h
5127
0644
edit
dl
rm
param.h
284
0644
edit
dl
rm
parport.h
536
0644
edit
dl
rm
pci.h
2733
0644
edit
dl
rm
percpu.h
527
0644
edit
dl
rm
perf_event.h
105
0644
edit
dl
rm
pgalloc.h
761
0644
edit
dl
rm
pgtable.h
12577
0644
edit
dl
rm
processor.h
1677
0644
edit
dl
rm
ptrace.h
754
0644
edit
dl
rm
rwonce.h
812
0644
edit
dl
rm
serial.h
1034
0644
edit
dl
rm
setup.h
1465
0644
edit
dl
rm
sfp-machine.h
2929
0644
edit
dl
rm
shmparam.h
191
0644
edit
dl
rm
signal.h
627
0644
edit
dl
rm
smp.h
1377
0644
edit
dl
rm
socket.h
310
0644
edit
dl
rm
sparsemem.h
410
0644
edit
dl
rm
special_insns.h
925
0644
edit
dl
rm
spinlock.h
2915
0644
edit
dl
rm
spinlock_types.h
413
0644
edit
dl
rm
string.h
2481
0644
edit
dl
rm
switch_to.h
406
0644
edit
dl
rm
syscall.h
379
0644
edit
dl
rm
termios.h
3054
0644
edit
dl
rm
thread_info.h
3749
0644
edit
dl
rm
timex.h
827
0644
edit
dl
rm
tlb.h
257
0644
edit
dl
rm
tlbflush.h
3424
0644
edit
dl
rm
topology.h
271
0644
edit
dl
rm
types.h
143
0644
edit
dl
rm
uaccess.h
9767
0644
edit
dl
rm
ucontext.h
348
0644
edit
dl
rm
unistd.h
561
0644
edit
dl
rm
user.h
2192
0644
edit
dl
rm
vga.h
2050
0644
edit
dl
rm
vmalloc.h
93
0644
edit
dl
rm
word-at-a-time.h
1376
0644
edit
dl
rm
wrperfmon.h
2623
0644
edit
dl
rm
xchg.h
5287
0644
edit
dl
rm
xor.h
21833
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/arch/alpha/include/asm/jensen.h
(8603B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_JENSEN_H #define __ALPHA_JENSEN_H #include <asm/compiler.h> /* * Defines for the AlphaPC EISA IO and memory address space. */ /* * NOTE! The memory operations do not set any memory barriers, as it's * not needed for cases like a frame buffer that is essentially memory-like. * You need to do them by hand if the operations depend on ordering. * * Similarly, the port IO operations do a "mb" only after a write operation: * if an mb is needed before (as in the case of doing memory mapped IO * first, and then a port IO operation to the same device), it needs to be * done by hand. * * After the above has bitten me 100 times, I'll give up and just do the * mb all the time, but right now I'm hoping this will work out. Avoiding * mb's may potentially be a noticeable speed improvement, but I can't * honestly say I've tested it. * * Handling interrupts that need to do mb's to synchronize to non-interrupts * is another fun race area. Don't do it (because if you do, I'll have to * do *everything* with interrupts disabled, ugh). */ /* * EISA Interrupt Acknowledge address */ #define EISA_INTA (IDENT_ADDR + 0x100000000UL) /* * FEPROM addresses */ #define EISA_FEPROM0 (IDENT_ADDR + 0x180000000UL) #define EISA_FEPROM1 (IDENT_ADDR + 0x1A0000000UL) /* * VL82C106 base address */ #define EISA_VL82C106 (IDENT_ADDR + 0x1C0000000UL) /* * EISA "Host Address Extension" address (bits 25-31 of the EISA address) */ #define EISA_HAE (IDENT_ADDR + 0x1D0000000UL) /* * "SYSCTL" register address */ #define EISA_SYSCTL (IDENT_ADDR + 0x1E0000000UL) /* * "spare" register address */ #define EISA_SPARE (IDENT_ADDR + 0x1F0000000UL) /* * EISA memory address offset */ #define EISA_MEM (IDENT_ADDR + 0x200000000UL) /* * EISA IO address offset */ #define EISA_IO (IDENT_ADDR + 0x300000000UL) #ifdef __KERNEL__ #ifndef __EXTERN_INLINE #define __EXTERN_INLINE extern inline #define __IO_EXTERN_INLINE #endif /* * Handle the "host address register". This needs to be set * to the high 7 bits of the EISA address. This is also needed * for EISA IO addresses, which are only 16 bits wide (the * hae needs to be set to 0). * * HAE isn't needed for the local IO operations, though. */ #define JENSEN_HAE_ADDRESS EISA_HAE #define JENSEN_HAE_MASK 0x1ffffff __EXTERN_INLINE void jensen_set_hae(unsigned long addr) { /* hae on the Jensen is bits 31:25 shifted right */ addr >>= 25; if (addr != alpha_mv.hae_cache) set_hae(addr); } #define vuip volatile unsigned int * /* * IO functions * * The "local" functions are those that don't go out to the EISA bus, * but instead act on the VL82C106 chip directly.. This is mainly the * keyboard, RTC, printer and first two serial lines.. * * The local stuff makes for some complications, but it seems to be * gone in the PCI version. I hope I can get DEC suckered^H^H^H^H^H^H^H^H * convinced that I need one of the newer machines. */ __EXTERN_INLINE unsigned int jensen_local_inb(unsigned long addr) { return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); } __EXTERN_INLINE void jensen_local_outb(u8 b, unsigned long addr) { *(vuip)((addr << 9) + EISA_VL82C106) = b; mb(); } __EXTERN_INLINE unsigned int jensen_bus_inb(unsigned long addr) { long result; jensen_set_hae(0); result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); return __kernel_extbl(result, addr & 3); } __EXTERN_INLINE void jensen_bus_outb(u8 b, unsigned long addr) { jensen_set_hae(0); *(vuip)((addr << 7) + EISA_IO + 0x00) = b * 0x01010101; mb(); } /* * It seems gcc is not very good at optimizing away logical * operations that result in operations across inline functions. * Which is why this is a macro. */ #define jensen_is_local(addr) ( \ /* keyboard */ (addr == 0x60 || addr == 0x64) || \ /* RTC */ (addr == 0x170 || addr == 0x171) || \ /* mb COM2 */ (addr >= 0x2f8 && addr <= 0x2ff) || \ /* mb LPT1 */ (addr >= 0x3bc && addr <= 0x3be) || \ /* mb COM2 */ (addr >= 0x3f8 && addr <= 0x3ff)) __EXTERN_INLINE u8 jensen_inb(unsigned long addr) { if (jensen_is_local(addr)) return jensen_local_inb(addr); else return jensen_bus_inb(addr); } __EXTERN_INLINE void jensen_outb(u8 b, unsigned long addr) { if (jensen_is_local(addr)) jensen_local_outb(b, addr); else jensen_bus_outb(b, addr); } __EXTERN_INLINE u16 jensen_inw(unsigned long addr) { long result; jensen_set_hae(0); result = *(volatile int *) ((addr << 7) + EISA_IO + 0x20); result >>= (addr & 3) * 8; return 0xffffUL & result; } __EXTERN_INLINE u32 jensen_inl(unsigned long addr) { jensen_set_hae(0); return *(vuip) ((addr << 7) + EISA_IO + 0x60); } __EXTERN_INLINE void jensen_outw(u16 b, unsigned long addr) { jensen_set_hae(0); *(vuip) ((addr << 7) + EISA_IO + 0x20) = b * 0x00010001; mb(); } __EXTERN_INLINE void jensen_outl(u32 b, unsigned long addr) { jensen_set_hae(0); *(vuip) ((addr << 7) + EISA_IO + 0x60) = b; mb(); } /* * Memory functions. */ __EXTERN_INLINE u8 jensen_readb(const volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; long result; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x00); result >>= (addr & 3) * 8; return 0xffUL & result; } __EXTERN_INLINE u16 jensen_readw(const volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; long result; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x20); result >>= (addr & 3) * 8; return 0xffffUL & result; } __EXTERN_INLINE u32 jensen_readl(const volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; return *(vuip) ((addr << 7) + EISA_MEM + 0x60); } __EXTERN_INLINE u64 jensen_readq(const volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; unsigned long r0, r1; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; addr = (addr << 7) + EISA_MEM + 0x60; r0 = *(vuip) (addr); r1 = *(vuip) (addr + (4 << 7)); return r1 << 32 | r0; } __EXTERN_INLINE void jensen_writeb(u8 b, volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; *(vuip) ((addr << 7) + EISA_MEM + 0x00) = b * 0x01010101; } __EXTERN_INLINE void jensen_writew(u16 b, volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; *(vuip) ((addr << 7) + EISA_MEM + 0x20) = b * 0x00010001; } __EXTERN_INLINE void jensen_writel(u32 b, volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; *(vuip) ((addr << 7) + EISA_MEM + 0x60) = b; } __EXTERN_INLINE void jensen_writeq(u64 b, volatile void __iomem *xaddr) { unsigned long addr = (unsigned long) xaddr; jensen_set_hae(addr); addr &= JENSEN_HAE_MASK; addr = (addr << 7) + EISA_MEM + 0x60; *(vuip) (addr) = b; *(vuip) (addr + (4 << 7)) = b >> 32; } __EXTERN_INLINE void __iomem *jensen_ioportmap(unsigned long addr) { return (void __iomem *)addr; } __EXTERN_INLINE void __iomem *jensen_ioremap(unsigned long addr, unsigned long size) { return (void __iomem *)(addr + 0x100000000ul); } __EXTERN_INLINE int jensen_is_ioaddr(unsigned long addr) { return (long)addr >= 0; } __EXTERN_INLINE int jensen_is_mmio(const volatile void __iomem *addr) { return (unsigned long)addr >= 0x100000000ul; } /* New-style ioread interface. All the routines are so ugly for Jensen that it doesn't make sense to merge them. */ #define IOPORT(OS, NS) \ __EXTERN_INLINE unsigned int jensen_ioread##NS(const void __iomem *xaddr) \ { \ if (jensen_is_mmio(xaddr)) \ return jensen_read##OS(xaddr - 0x100000000ul); \ else \ return jensen_in##OS((unsigned long)xaddr); \ } \ __EXTERN_INLINE void jensen_iowrite##NS(u##NS b, void __iomem *xaddr) \ { \ if (jensen_is_mmio(xaddr)) \ jensen_write##OS(b, xaddr - 0x100000000ul); \ else \ jensen_out##OS(b, (unsigned long)xaddr); \ } IOPORT(b, 8) IOPORT(w, 16) IOPORT(l, 32) #undef IOPORT #undef vuip #undef __IO_PREFIX #define __IO_PREFIX jensen #define jensen_trivial_rw_bw 0 #define jensen_trivial_rw_lq 0 #define jensen_trivial_io_bw 0 #define jensen_trivial_io_lq 0 #define jensen_trivial_iounmap 1 #include <asm/io_trivial.h> #ifdef __IO_EXTERN_INLINE #undef __EXTERN_INLINE #undef __IO_EXTERN_INLINE #endif #endif /* __KERNEL__ */ #endif /* __ALPHA_JENSEN_H */
Save
cmd:
run