Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
a418417
Documentation
LICENSES
arch
alpha
boot
configs
include
kernel
syscalls
.gitignore
Makefile
asm-offsets.c
audit.c
bugs.c
console.c
core_cia.c
core_irongate.c
core_marvel.c
core_mcpcia.c
core_polaris.c
core_t2.c
core_titan.c
core_tsunami.c
core_wildfire.c
entry.S
err_common.c
err_ev6.c
err_ev7.c
err_impl.h
err_marvel.c
err_titan.c
es1888.c
gct.c
head.S
io.c
irq.c
irq_alpha.c
irq_i8259.c
irq_impl.h
irq_pyxis.c
irq_srm.c
machvec_impl.h
module.c
osf_sys.c
pc873xx.c
pc873xx.h
pci-sysfs.c
pci.c
pci_impl.h
pci_iommu.c
perf_event.c
process.c
proto.h
ptrace.c
rtc.c
setup.c
signal.c
smc37c669.c
smc37c93x.c
smp.c
srm_env.c
srmcons.c
sys_alcor.c
sys_cabriolet.c
sys_dp264.c
sys_eiger.c
sys_marvel.c
sys_miata.c
sys_mikasa.c
sys_nautilus.c
sys_noritake.c
sys_rawhide.c
sys_ruffian.c
sys_rx164.c
sys_sable.c
sys_sx164.c
sys_takara.c
sys_titan.c
sys_wildfire.c
systbls.S
termios.c
time.c
traps.c
vmlinux.lds.S
lib
math-emu
mm
Kbuild
Kconfig
Kconfig.debug
Makefile
arc
arm
arm64
csky
hexagon
loongarch
m68k
microblaze
mips
nios2
openrisc
parisc
powerpc
riscv
s390
sh
sparc
um
x86
xtensa
.gitignore
Kconfig
block
certs
crypto
drivers
fs
include
init
io_uring
ipc
kernel
lib
mm
net
rust
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
arch
/
alpha
/
kernel
/
machvec_impl.h
Copy path
Blame
Blame
Latest commit
History
History
136 lines (120 loc) · 4.36 KB
Breadcrumbs
linux
/
arch
/
alpha
/
kernel
/
machvec_impl.h
Top
File metadata and controls
Code
Blame
136 lines (120 loc) · 4.36 KB
Raw
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/alpha/kernel/machvec_impl.h * * Copyright (C) 1997, 1998 Richard Henderson * * This file has goodies to help simplify instantiation of machine vectors. */ /* Whee. These systems don't have an HAE: IRONGATE, MARVEL, POLARIS, TSUNAMI, TITAN, WILDFIRE Fix things up for the GENERIC kernel by defining the HAE address to be that of the cache. Now we can read and write it as we like. ;-) */ #define IRONGATE_HAE_ADDRESS (&alpha_mv.hae_cache) #define MARVEL_HAE_ADDRESS (&alpha_mv.hae_cache) #define POLARIS_HAE_ADDRESS (&alpha_mv.hae_cache) #define TSUNAMI_HAE_ADDRESS (&alpha_mv.hae_cache) #define TITAN_HAE_ADDRESS (&alpha_mv.hae_cache) #define WILDFIRE_HAE_ADDRESS (&alpha_mv.hae_cache) #ifdef CIA_ONE_HAE_WINDOW #define CIA_HAE_ADDRESS (&alpha_mv.hae_cache) #endif #ifdef MCPCIA_ONE_HAE_WINDOW #define MCPCIA_HAE_ADDRESS (&alpha_mv.hae_cache) #endif #ifdef T2_ONE_HAE_WINDOW #define T2_HAE_ADDRESS (&alpha_mv.hae_cache) #endif /* Only a few systems don't define IACK_SC, handling all interrupts through the SRM console. But splitting out that one case from IO() below seems like such a pain. Define this to get things to compile. */ #define JENSEN_IACK_SC 1 #define T2_IACK_SC 1 #define WILDFIRE_IACK_SC 1 /* FIXME */ /* * Some helpful macros for filling in the blanks. */ #define CAT1(x,y) x##y #define CAT(x,y) CAT1(x,y) #define DO_DEFAULT_RTC .rtc_port = 0x70 #define DO_EV5_MMU \ .max_asn = EV5_MAX_ASN \ #define DO_EV6_MMU \ .max_asn = EV6_MAX_ASN \ #define DO_EV7_MMU \ .max_asn = EV6_MAX_ASN \ #define IO_LITE(UP,low) \ .hae_register = (unsigned long *) CAT(UP,_HAE_ADDRESS), \ .iack_sc = CAT(UP,_IACK_SC), \ .mv_ioread8 = CAT(low,_ioread8), \ .mv_ioread16 = CAT(low,_ioread16), \ .mv_ioread32 = CAT(low,_ioread32), \ .mv_ioread64 = CAT(low,_ioread64), \ .mv_iowrite8 = CAT(low,_iowrite8), \ .mv_iowrite16 = CAT(low,_iowrite16), \ .mv_iowrite32 = CAT(low,_iowrite32), \ .mv_iowrite64 = CAT(low,_iowrite64), \ .mv_readb = CAT(low,_readb), \ .mv_readw = CAT(low,_readw), \ .mv_readl = CAT(low,_readl), \ .mv_readq = CAT(low,_readq), \ .mv_writeb = CAT(low,_writeb), \ .mv_writew = CAT(low,_writew), \ .mv_writel = CAT(low,_writel), \ .mv_writeq = CAT(low,_writeq), \ .mv_ioportmap = CAT(low,_ioportmap), \ .mv_ioremap = CAT(low,_ioremap), \ .mv_iounmap = CAT(low,_iounmap), \ .mv_is_ioaddr = CAT(low,_is_ioaddr), \ .mv_is_mmio = CAT(low,_is_mmio) \ #define IO(UP,low) \ IO_LITE(UP,low), \ .pci_ops = &CAT(low,_pci_ops), \ .mv_pci_tbi = CAT(low,_pci_tbi) #define DO_APECS_IO IO(APECS,apecs) #define DO_CIA_IO IO(CIA,cia) #define DO_IRONGATE_IO IO(IRONGATE,irongate) #define DO_LCA_IO IO(LCA,lca) #define DO_MARVEL_IO IO(MARVEL,marvel) #define DO_MCPCIA_IO IO(MCPCIA,mcpcia) #define DO_POLARIS_IO IO(POLARIS,polaris) #define DO_T2_IO IO(T2,t2) #define DO_TSUNAMI_IO IO(TSUNAMI,tsunami) #define DO_TITAN_IO IO(TITAN,titan) #define DO_WILDFIRE_IO IO(WILDFIRE,wildfire) #define DO_PYXIS_IO IO_LITE(CIA,cia_bwx), \ .pci_ops = &cia_pci_ops, \ .mv_pci_tbi = cia_pci_tbi /* * In a GENERIC kernel, we have lots of these vectors floating about, * all but one of which we want to go away. In a non-GENERIC kernel, * we want only one, ever. * * Accomplish this in the GENERIC kernel by putting all of the vectors * in the .init.data section where they'll go away. We'll copy the * one we want to the real alpha_mv vector in setup_arch. * * Accomplish this in a non-GENERIC kernel by ifdef'ing out all but * one of the vectors, which will not reside in .init.data. We then * alias this one vector to alpha_mv, so no copy is needed. * * Upshot: set __initdata to nothing for non-GENERIC kernels. */ #ifdef CONFIG_ALPHA_GENERIC #define __initmv __initdata #define ALIAS_MV(x) #else #define __initmv __refdata /* GCC actually has a syntax for defining aliases, but is under some delusion that you shouldn't be able to declare it extern somewhere else beforehand. Fine. We'll do it ourselves. */ #if 0 #define ALIAS_MV(system) \ struct alpha_machine_vector alpha_mv __attribute__((alias(#system "_mv"))); \ EXPORT_SYMBOL(alpha_mv); #else #define ALIAS_MV(system) \ asm(".global alpha_mv\nalpha_mv = " #system "_mv"); \ EXPORT_SYMBOL(alpha_mv); #endif #endif /* GENERIC */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
You can’t perform that action at this time.