/
usr
/
src
/
linux-headers-5.15.0-181
/
arch
/
powerpc
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-181/arch/powerpc/include/asm
mkdir
upload
Name
Size
Mode
Actions
book3s/
-
0755
rm
nohash/
-
0755
rm
vdso/
-
0755
rm
8xx_immap.h
14099
0644
edit
dl
rm
accounting.h
908
0644
edit
dl
rm
agp.h
525
0644
edit
dl
rm
archrandom.h
838
0644
edit
dl
rm
asm-compat.h
1882
0644
edit
dl
rm
asm-const.h
468
0644
edit
dl
rm
asm-offsets.h
35
0644
edit
dl
rm
asm-prototypes.h
5130
0644
edit
dl
rm
async_tx.h
908
0644
edit
dl
rm
atomic.h
14267
0644
edit
dl
rm
backlight.h
1115
0644
edit
dl
rm
barrier.h
3977
0644
edit
dl
rm
bitops.h
7913
0644
edit
dl
rm
bootx.h
1142
0644
edit
dl
rm
bpf_perf_event.h
233
0644
edit
dl
rm
btext.h
1006
0644
edit
dl
rm
bug.h
4090
0644
edit
dl
rm
cache.h
2888
0644
edit
dl
rm
cacheflush.h
3851
0644
edit
dl
rm
cell-pmu.h
3496
0644
edit
dl
rm
cell-regs.h
9799
0644
edit
dl
rm
checksum.h
5723
0644
edit
dl
rm
clocksource.h
185
0644
edit
dl
rm
cmpxchg.h
12280
0644
edit
dl
rm
code-patching-asm.h
397
0644
edit
dl
rm
code-patching.h
5443
0644
edit
dl
rm
compat.h
3304
0644
edit
dl
rm
context_tracking.h
245
0644
edit
dl
rm
copro.h
593
0644
edit
dl
rm
cpm.h
25
0644
edit
dl
rm
cpm1.h
21711
0644
edit
dl
rm
cpm2.h
49598
0644
edit
dl
rm
cpufeature.h
998
0644
edit
dl
rm
cpuidle.h
3407
0644
edit
dl
rm
cputable.h
23211
0644
edit
dl
rm
cputhreads.h
3856
0644
edit
dl
rm
cputime.h
3069
0644
edit
dl
rm
cpu_has_feature.h
1339
0644
edit
dl
rm
cpu_setup_power.h
507
0644
edit
dl
rm
crashdump-ppc64.h
624
0644
edit
dl
rm
current.h
680
0644
edit
dl
rm
dbdma.h
3809
0644
edit
dl
rm
dbell.h
4025
0644
edit
dl
rm
dcr-generic.h
930
0644
edit
dl
rm
dcr-mmio.h
1026
0644
edit
dl
rm
dcr-native.h
3859
0644
edit
dl
rm
dcr-regs.h
5846
0644
edit
dl
rm
dcr.h
2108
0644
edit
dl
rm
debug.h
1886
0644
edit
dl
rm
delay.h
3297
0644
edit
dl
rm
device.h
1016
0644
edit
dl
rm
disassemble.h
2189
0644
edit
dl
rm
dma-direct.h
391
0644
edit
dl
rm
dma.h
10725
0644
edit
dl
rm
drmem.h
2970
0644
edit
dl
rm
dtl.h
1515
0644
edit
dl
rm
dt_cpu_ftrs.h
756
0644
edit
dl
rm
edac.h
1105
0644
edit
dl
rm
eeh.h
15367
0644
edit
dl
rm
eeh_event.h
826
0644
edit
dl
rm
ehv_pic.h
963
0644
edit
dl
rm
elf.h
6283
0644
edit
dl
rm
elfnote.h
527
0644
edit
dl
rm
emergency-restart.h
43
0644
edit
dl
rm
emulated_ops.h
2072
0644
edit
dl
rm
epapr_hcalls.h
16827
0644
edit
dl
rm
exception-64e.h
5785
0644
edit
dl
rm
exception-64s.h
4350
0644
edit
dl
rm
exec.h
246
0644
edit
dl
rm
extable.h
1205
0644
edit
dl
rm
fadump-internal.h
4352
0644
edit
dl
rm
fadump.h
1095
0644
edit
dl
rm
fb.h
483
0644
edit
dl
rm
feature-fixups.h
9828
0644
edit
dl
rm
firmware.h
5327
0644
edit
dl
rm
fixmap.h
3723
0644
edit
dl
rm
floppy.h
5111
0644
edit
dl
rm
fsl_85xx_cache_sram.h
812
0644
edit
dl
rm
fsl_gtm.h
1203
0644
edit
dl
rm
fsl_hcalls.h
17615
0644
edit
dl
rm
fsl_lbc.h
10489
0644
edit
dl
rm
fsl_pamu_stash.h
411
0644
edit
dl
rm
fsl_pm.h
1183
0644
edit
dl
rm
fs_pd.h
1046
0644
edit
dl
rm
ftrace.h
3550
0644
edit
dl
rm
futex.h
2246
0644
edit
dl
rm
grackle.h
331
0644
edit
dl
rm
hardirq.h
948
0644
edit
dl
rm
head-64.h
5507
0644
edit
dl
rm
heathrow.h
2595
0644
edit
dl
rm
highmem.h
2079
0644
edit
dl
rm
hmi.h
971
0644
edit
dl
rm
hugetlb.h
2186
0644
edit
dl
rm
hvcall.h
21250
0644
edit
dl
rm
hvconsole.h
790
0644
edit
dl
rm
hvcserver.h
1473
0644
edit
dl
rm
hvsi.h
2850
0644
edit
dl
rm
hw_breakpoint.h
3735
0644
edit
dl
rm
hw_irq.h
11218
0644
edit
dl
rm
hydra.h
2948
0644
edit
dl
rm
i8259.h
361
0644
edit
dl
rm
ibmebus.h
2204
0644
edit
dl
rm
icswx.h
5090
0644
edit
dl
rm
ide.h
586
0644
edit
dl
rm
idle.h
2372
0644
edit
dl
rm
imc-pmu.h
3983
0644
edit
dl
rm
immap_cpm2.h
10749
0644
edit
dl
rm
inst.h
3683
0644
edit
dl
rm
interrupt.h
18353
0644
edit
dl
rm
io-defs.h
3164
0644
edit
dl
rm
io-workarounds.h
1313
0644
edit
dl
rm
io.h
31387
0644
edit
dl
rm
iommu.h
10283
0644
edit
dl
rm
io_event_irq.h
1746
0644
edit
dl
rm
ipic.h
3141
0644
edit
dl
rm
irq.h
1320
0644
edit
dl
rm
irqflags.h
1777
0644
edit
dl
rm
irq_work.h
213
0644
edit
dl
rm
isa-bridge.h
654
0644
edit
dl
rm
jump_label.h
1351
0644
edit
dl
rm
kasan.h
1396
0644
edit
dl
rm
Kbuild
286
0644
edit
dl
rm
kdebug.h
291
0644
edit
dl
rm
kdump.h
1399
0644
edit
dl
rm
kexec.h
4838
0644
edit
dl
rm
kexec_ranges.h
943
0644
edit
dl
rm
keylargo.h
11061
0644
edit
dl
rm
kfence.h
650
0644
edit
dl
rm
kgdb.h
2156
0644
edit
dl
rm
kprobes.h
2815
0644
edit
dl
rm
kup.h
3297
0644
edit
dl
rm
kvm_asm.h
4952
0644
edit
dl
rm
kvm_book3s.h
17220
0644
edit
dl
rm
kvm_book3s_32.h
816
0644
edit
dl
rm
kvm_book3s_64.h
18333
0644
edit
dl
rm
kvm_book3s_asm.h
3777
0644
edit
dl
rm
kvm_book3s_uvmem.h
2738
0644
edit
dl
rm
kvm_booke.h
2233
0644
edit
dl
rm
kvm_booke_hv_asm.h
1960
0644
edit
dl
rm
kvm_fpu.h
2199
0644
edit
dl
rm
kvm_guest.h
566
0644
edit
dl
rm
kvm_host.h
21966
0644
edit
dl
rm
kvm_para.h
752
0644
edit
dl
rm
kvm_ppc.h
36699
0644
edit
dl
rm
libata-portmap.h
249
0644
edit
dl
rm
linkage.h
501
0644
edit
dl
rm
livepatch.h
1140
0644
edit
dl
rm
local.h
3258
0644
edit
dl
rm
lppaca.h
5015
0644
edit
dl
rm
lv1call.h
18555
0644
edit
dl
rm
machdep.h
9630
0644
edit
dl
rm
macio.h
3985
0644
edit
dl
rm
mc146818rtc.h
736
0644
edit
dl
rm
mce.h
6396
0644
edit
dl
rm
mediabay.h
1375
0644
edit
dl
rm
membarrier.h
877
0644
edit
dl
rm
mem_encrypt.h
532
0644
edit
dl
rm
mman.h
1471
0644
edit
dl
rm
mmiowb.h
374
0644
edit
dl
rm
mmu.h
11244
0644
edit
dl
rm
mmu_context.h
9646
0644
edit
dl
rm
mmzone.h
1003
0644
edit
dl
rm
module.h
2284
0644
edit
dl
rm
module.lds.h
95
0644
edit
dl
rm
mpc5xxx.h
439
0644
edit
dl
rm
mpc6xx.h
143
0644
edit
dl
rm
mpc52xx.h
11100
0644
edit
dl
rm
mpc52xx_psc.h
10125
0644
edit
dl
rm
mpc85xx.h
2382
0644
edit
dl
rm
mpc5121.h
3863
0644
edit
dl
rm
mpc8260.h
742
0644
edit
dl
rm
mpic.h
14309
0644
edit
dl
rm
mpic_msgr.h
3441
0644
edit
dl
rm
mpic_timer.h
1183
0644
edit
dl
rm
msi_bitmap.h
867
0644
edit
dl
rm
nmi.h
579
0644
edit
dl
rm
nvram.h
2834
0644
edit
dl
rm
ohare.h
1684
0644
edit
dl
rm
opal-api.h
31680
0644
edit
dl
rm
opal.h
17843
0644
edit
dl
rm
paca.h
8783
0644
edit
dl
rm
page.h
10362
0644
edit
dl
rm
page_32.h
1626
0644
edit
dl
rm
page_64.h
2716
0644
edit
dl
rm
paravirt.h
3881
0644
edit
dl
rm
parport.h
956
0644
edit
dl
rm
pasemi_dma.h
23273
0644
edit
dl
rm
pci-bridge.h
9481
0644
edit
dl
rm
pci.h
3605
0644
edit
dl
rm
percpu.h
815
0644
edit
dl
rm
perf_event.h
1509
0644
edit
dl
rm
perf_event_fsl_emb.h
1252
0644
edit
dl
rm
perf_event_server.h
7104
0644
edit
dl
rm
pgalloc.h
2067
0644
edit
dl
rm
pgtable-be-types.h
2601
0644
edit
dl
rm
pgtable-types.h
1895
0644
edit
dl
rm
pgtable.h
4047
0644
edit
dl
rm
pkeys.h
4279
0644
edit
dl
rm
plpar_wrappers.h
10193
0644
edit
dl
rm
pmac_feature.h
13396
0644
edit
dl
rm
pmac_low_i2c.h
3100
0644
edit
dl
rm
pmac_pfunc.h
8237
0644
edit
dl
rm
pmc.h
1116
0644
edit
dl
rm
pmi.h
1177
0644
edit
dl
rm
pnv-ocxl.h
3069
0644
edit
dl
rm
pnv-pci.h
2432
0644
edit
dl
rm
powernv.h
454
0644
edit
dl
rm
ppc-opcode.h
31419
0644
edit
dl
rm
ppc-pci.h
2282
0644
edit
dl
rm
ppc4xx.h
328
0644
edit
dl
rm
ppc_asm.h
20530
0644
edit
dl
rm
probes.h
1542
0644
edit
dl
rm
processor.h
11898
0644
edit
dl
rm
prom.h
7324
0644
edit
dl
rm
ps3.h
15219
0644
edit
dl
rm
ps3av.h
23422
0644
edit
dl
rm
ps3gpu.h
1928
0644
edit
dl
rm
ps3stor.h
1408
0644
edit
dl
rm
pte-walk.h
2281
0644
edit
dl
rm
ptrace.h
10508
0644
edit
dl
rm
qspinlock.h
2064
0644
edit
dl
rm
qspinlock_paravirt.h
221
0644
edit
dl
rm
reg.h
64465
0644
edit
dl
rm
reg_8xx.h
2867
0644
edit
dl
rm
reg_a2.h
6128
0644
edit
dl
rm
reg_booke.h
33882
0644
edit
dl
rm
reg_fsl_emb.h
3961
0644
edit
dl
rm
rheap.h
2578
0644
edit
dl
rm
rio.h
424
0644
edit
dl
rm
rtas-types.h
2939
0644
edit
dl
rm
rtas.h
12574
0644
edit
dl
rm
runlatch.h
1184
0644
edit
dl
rm
seccomp.h
1043
0644
edit
dl
rm
sections.h
1982
0644
edit
dl
rm
secure_boot.h
476
0644
edit
dl
rm
security_features.h
3509
0644
edit
dl
rm
secvar.h
765
0644
edit
dl
rm
serial.h
473
0644
edit
dl
rm
setjmp.h
400
0644
edit
dl
rm
setup.h
2475
0644
edit
dl
rm
set_memory.h
1160
0644
edit
dl
rm
sfp-machine.h
12676
0644
edit
dl
rm
shmparam.h
206
0644
edit
dl
rm
signal.h
320
0644
edit
dl
rm
simple_spinlock.h
6662
0644
edit
dl
rm
simple_spinlock_types.h
481
0644
edit
dl
rm
slice.h
1121
0644
edit
dl
rm
smp.h
7804
0644
edit
dl
rm
smu.h
19789
0644
edit
dl
rm
sparsemem.h
843
0644
edit
dl
rm
spinlock.h
472
0644
edit
dl
rm
spinlock_types.h
382
0644
edit
dl
rm
spu.h
23963
0644
edit
dl
rm
spu_csa.h
6166
0644
edit
dl
rm
spu_info.h
272
0644
edit
dl
rm
spu_priv1.h
5186
0644
edit
dl
rm
sstep.h
4730
0644
edit
dl
rm
stackprotector.h
788
0644
edit
dl
rm
stacktrace.h
297
0644
edit
dl
rm
string.h
2522
0644
edit
dl
rm
svm.h
652
0644
edit
dl
rm
swab.h
173
0644
edit
dl
rm
swiotlb.h
374
0644
edit
dl
rm
switch_to.h
2966
0644
edit
dl
rm
synch.h
2067
0644
edit
dl
rm
syscall.h
3057
0644
edit
dl
rm
syscalls.h
2189
0644
edit
dl
rm
task_size_32.h
544
0644
edit
dl
rm
task_size_64.h
2390
0644
edit
dl
rm
tce.h
892
0644
edit
dl
rm
termios.h
653
0644
edit
dl
rm
thread_info.h
6166
0644
edit
dl
rm
time.h
2997
0644
edit
dl
rm
timex.h
463
0644
edit
dl
rm
tlb.h
2308
0644
edit
dl
rm
tlbflush.h
271
0644
edit
dl
rm
tm.h
624
0644
edit
dl
rm
topology.h
3536
0644
edit
dl
rm
trace.h
4695
0644
edit
dl
rm
trace_clock.h
372
0644
edit
dl
rm
tsi108.h
3264
0644
edit
dl
rm
tsi108_irq.h
3916
0644
edit
dl
rm
tsi108_pci.h
1191
0644
edit
dl
rm
types.h
822
0644
edit
dl
rm
uaccess.h
14207
0644
edit
dl
rm
udbg.h
2003
0644
edit
dl
rm
uic.h
403
0644
edit
dl
rm
ultravisor-api.h
941
0644
edit
dl
rm
ultravisor.h
2101
0644
edit
dl
rm
uninorth.h
8410
0644
edit
dl
rm
unistd.h
1445
0644
edit
dl
rm
uprobes.h
801
0644
edit
dl
rm
user.h
2192
0644
edit
dl
rm
vas.h
7580
0644
edit
dl
rm
vdso.h
1096
0644
edit
dl
rm
vdso_datapage.h
3570
0644
edit
dl
rm
vermagic.h
490
0644
edit
dl
rm
vga.h
1273
0644
edit
dl
rm
vio.h
4734
0644
edit
dl
rm
vmalloc.h
554
0644
edit
dl
rm
word-at-a-time.h
4878
0644
edit
dl
rm
xics.h
4539
0644
edit
dl
rm
xive-regs.h
5083
0644
edit
dl
rm
xive.h
5191
0644
edit
dl
rm
xmon.h
733
0644
edit
dl
rm
xor.h
1017
0644
edit
dl
rm
xor_altivec.h
683
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/arch/powerpc/include/asm/immap_cpm2.h
(10749B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * CPM2 Internal Memory Map * Copyright (c) 1999 Dan Malek (dmalek@jlc.net) * * The Internal Memory Map for devices with CPM2 on them. This * is the superset of all CPM2 devices (8260, 8266, 8280, 8272, * 8560). */ #ifdef __KERNEL__ #ifndef __IMMAP_CPM2__ #define __IMMAP_CPM2__ #include <linux/types.h> /* System configuration registers. */ typedef struct sys_82xx_conf { u32 sc_siumcr; u32 sc_sypcr; u8 res1[6]; u16 sc_swsr; u8 res2[20]; u32 sc_bcr; u8 sc_ppc_acr; u8 res3[3]; u32 sc_ppc_alrh; u32 sc_ppc_alrl; u8 sc_lcl_acr; u8 res4[3]; u32 sc_lcl_alrh; u32 sc_lcl_alrl; u32 sc_tescr1; u32 sc_tescr2; u32 sc_ltescr1; u32 sc_ltescr2; u32 sc_pdtea; u8 sc_pdtem; u8 res5[3]; u32 sc_ldtea; u8 sc_ldtem; u8 res6[163]; } sysconf_82xx_cpm2_t; typedef struct sys_85xx_conf { u32 sc_cear; u16 sc_ceer; u16 sc_cemr; u8 res1[70]; u32 sc_smaer; u8 res2[4]; u32 sc_smevr; u32 sc_smctr; u32 sc_lmaer; u8 res3[4]; u32 sc_lmevr; u32 sc_lmctr; u8 res4[144]; } sysconf_85xx_cpm2_t; typedef union sys_conf { sysconf_82xx_cpm2_t siu_82xx; sysconf_85xx_cpm2_t siu_85xx; } sysconf_cpm2_t; /* Memory controller registers. */ typedef struct mem_ctlr { u32 memc_br0; u32 memc_or0; u32 memc_br1; u32 memc_or1; u32 memc_br2; u32 memc_or2; u32 memc_br3; u32 memc_or3; u32 memc_br4; u32 memc_or4; u32 memc_br5; u32 memc_or5; u32 memc_br6; u32 memc_or6; u32 memc_br7; u32 memc_or7; u32 memc_br8; u32 memc_or8; u32 memc_br9; u32 memc_or9; u32 memc_br10; u32 memc_or10; u32 memc_br11; u32 memc_or11; u8 res1[8]; u32 memc_mar; u8 res2[4]; u32 memc_mamr; u32 memc_mbmr; u32 memc_mcmr; u8 res3[8]; u16 memc_mptpr; u8 res4[2]; u32 memc_mdr; u8 res5[4]; u32 memc_psdmr; u32 memc_lsdmr; u8 memc_purt; u8 res6[3]; u8 memc_psrt; u8 res7[3]; u8 memc_lurt; u8 res8[3]; u8 memc_lsrt; u8 res9[3]; u32 memc_immr; u32 memc_pcibr0; u32 memc_pcibr1; u8 res10[16]; u32 memc_pcimsk0; u32 memc_pcimsk1; u8 res11[52]; } memctl_cpm2_t; /* System Integration Timers. */ typedef struct sys_int_timers { u8 res1[32]; u16 sit_tmcntsc; u8 res2[2]; u32 sit_tmcnt; u8 res3[4]; u32 sit_tmcntal; u8 res4[16]; u16 sit_piscr; u8 res5[2]; u32 sit_pitc; u32 sit_pitr; u8 res6[94]; u8 res7[390]; } sit_cpm2_t; #define PISCR_PIRQ_MASK ((u16)0xff00) #define PISCR_PS ((u16)0x0080) #define PISCR_PIE ((u16)0x0004) #define PISCR_PTF ((u16)0x0002) #define PISCR_PTE ((u16)0x0001) /* PCI Controller. */ typedef struct pci_ctlr { u32 pci_omisr; u32 pci_omimr; u8 res1[8]; u32 pci_ifqpr; u32 pci_ofqpr; u8 res2[8]; u32 pci_imr0; u32 pci_imr1; u32 pci_omr0; u32 pci_omr1; u32 pci_odr; u8 res3[4]; u32 pci_idr; u8 res4[20]; u32 pci_imisr; u32 pci_imimr; u8 res5[24]; u32 pci_ifhpr; u8 res6[4]; u32 pci_iftpr; u8 res7[4]; u32 pci_iphpr; u8 res8[4]; u32 pci_iptpr; u8 res9[4]; u32 pci_ofhpr; u8 res10[4]; u32 pci_oftpr; u8 res11[4]; u32 pci_ophpr; u8 res12[4]; u32 pci_optpr; u8 res13[8]; u32 pci_mucr; u8 res14[8]; u32 pci_qbar; u8 res15[12]; u32 pci_dmamr0; u32 pci_dmasr0; u32 pci_dmacdar0; u8 res16[4]; u32 pci_dmasar0; u8 res17[4]; u32 pci_dmadar0; u8 res18[4]; u32 pci_dmabcr0; u32 pci_dmandar0; u8 res19[86]; u32 pci_dmamr1; u32 pci_dmasr1; u32 pci_dmacdar1; u8 res20[4]; u32 pci_dmasar1; u8 res21[4]; u32 pci_dmadar1; u8 res22[4]; u32 pci_dmabcr1; u32 pci_dmandar1; u8 res23[88]; u32 pci_dmamr2; u32 pci_dmasr2; u32 pci_dmacdar2; u8 res24[4]; u32 pci_dmasar2; u8 res25[4]; u32 pci_dmadar2; u8 res26[4]; u32 pci_dmabcr2; u32 pci_dmandar2; u8 res27[88]; u32 pci_dmamr3; u32 pci_dmasr3; u32 pci_dmacdar3; u8 res28[4]; u32 pci_dmasar3; u8 res29[4]; u32 pci_dmadar3; u8 res30[4]; u32 pci_dmabcr3; u32 pci_dmandar3; u8 res31[344]; u32 pci_potar0; u8 res32[4]; u32 pci_pobar0; u8 res33[4]; u32 pci_pocmr0; u8 res34[4]; u32 pci_potar1; u8 res35[4]; u32 pci_pobar1; u8 res36[4]; u32 pci_pocmr1; u8 res37[4]; u32 pci_potar2; u8 res38[4]; u32 pci_pobar2; u8 res39[4]; u32 pci_pocmr2; u8 res40[50]; u32 pci_ptcr; u32 pci_gpcr; u32 pci_gcr; u32 pci_esr; u32 pci_emr; u32 pci_ecr; u32 pci_eacr; u8 res41[4]; u32 pci_edcr; u8 res42[4]; u32 pci_eccr; u8 res43[44]; u32 pci_pitar1; u8 res44[4]; u32 pci_pibar1; u8 res45[4]; u32 pci_picmr1; u8 res46[4]; u32 pci_pitar0; u8 res47[4]; u32 pci_pibar0; u8 res48[4]; u32 pci_picmr0; u8 res49[4]; u32 pci_cfg_addr; u32 pci_cfg_data; u32 pci_int_ack; u8 res50[756]; } pci_cpm2_t; /* Interrupt Controller. */ typedef struct interrupt_controller { u16 ic_sicr; u8 res1[2]; u32 ic_sivec; u32 ic_sipnrh; u32 ic_sipnrl; u32 ic_siprr; u32 ic_scprrh; u32 ic_scprrl; u32 ic_simrh; u32 ic_simrl; u32 ic_siexr; u8 res2[88]; } intctl_cpm2_t; /* Clocks and Reset. */ typedef struct clk_and_reset { u32 car_sccr; u8 res1[4]; u32 car_scmr; u8 res2[4]; u32 car_rsr; u32 car_rmr; u8 res[104]; } car_cpm2_t; /* Input/Output Port control/status registers. * Names consistent with processor manual, although they are different * from the original 8xx names....... */ typedef struct io_port { u32 iop_pdira; u32 iop_ppara; u32 iop_psora; u32 iop_podra; u32 iop_pdata; u8 res1[12]; u32 iop_pdirb; u32 iop_pparb; u32 iop_psorb; u32 iop_podrb; u32 iop_pdatb; u8 res2[12]; u32 iop_pdirc; u32 iop_pparc; u32 iop_psorc; u32 iop_podrc; u32 iop_pdatc; u8 res3[12]; u32 iop_pdird; u32 iop_ppard; u32 iop_psord; u32 iop_podrd; u32 iop_pdatd; u8 res4[12]; } iop_cpm2_t; /* Communication Processor Module Timers */ typedef struct cpm_timers { u8 cpmt_tgcr1; u8 res1[3]; u8 cpmt_tgcr2; u8 res2[11]; u16 cpmt_tmr1; u16 cpmt_tmr2; u16 cpmt_trr1; u16 cpmt_trr2; u16 cpmt_tcr1; u16 cpmt_tcr2; u16 cpmt_tcn1; u16 cpmt_tcn2; u16 cpmt_tmr3; u16 cpmt_tmr4; u16 cpmt_trr3; u16 cpmt_trr4; u16 cpmt_tcr3; u16 cpmt_tcr4; u16 cpmt_tcn3; u16 cpmt_tcn4; u16 cpmt_ter1; u16 cpmt_ter2; u16 cpmt_ter3; u16 cpmt_ter4; u8 res3[584]; } cpmtimer_cpm2_t; /* DMA control/status registers. */ typedef struct sdma_csr { u8 res0[24]; u8 sdma_sdsr; u8 res1[3]; u8 sdma_sdmr; u8 res2[3]; u8 sdma_idsr1; u8 res3[3]; u8 sdma_idmr1; u8 res4[3]; u8 sdma_idsr2; u8 res5[3]; u8 sdma_idmr2; u8 res6[3]; u8 sdma_idsr3; u8 res7[3]; u8 sdma_idmr3; u8 res8[3]; u8 sdma_idsr4; u8 res9[3]; u8 sdma_idmr4; u8 res10[707]; } sdma_cpm2_t; /* Fast controllers */ typedef struct fcc { u32 fcc_gfmr; u32 fcc_fpsmr; u16 fcc_ftodr; u8 res1[2]; u16 fcc_fdsr; u8 res2[2]; u16 fcc_fcce; u8 res3[2]; u16 fcc_fccm; u8 res4[2]; u8 fcc_fccs; u8 res5[3]; u8 fcc_ftirr_phy[4]; } fcc_t; /* Fast controllers continued */ typedef struct fcc_c { u32 fcc_firper; u32 fcc_firer; u32 fcc_firsr_hi; u32 fcc_firsr_lo; u8 fcc_gfemr; u8 res1[15]; } fcc_c_t; /* TC Layer */ typedef struct tclayer { u16 tc_tcmode; u16 tc_cdsmr; u16 tc_tcer; u16 tc_rcc; u16 tc_tcmr; u16 tc_fcc; u16 tc_ccc; u16 tc_icc; u16 tc_tcc; u16 tc_ecc; u8 res1[12]; } tclayer_t; /* I2C */ typedef struct i2c { u8 i2c_i2mod; u8 res1[3]; u8 i2c_i2add; u8 res2[3]; u8 i2c_i2brg; u8 res3[3]; u8 i2c_i2com; u8 res4[3]; u8 i2c_i2cer; u8 res5[3]; u8 i2c_i2cmr; u8 res6[331]; } i2c_cpm2_t; typedef struct scc { /* Serial communication channels */ u32 scc_gsmrl; u32 scc_gsmrh; u16 scc_psmr; u8 res1[2]; u16 scc_todr; u16 scc_dsr; u16 scc_scce; u8 res2[2]; u16 scc_sccm; u8 res3; u8 scc_sccs; u8 res4[8]; } scc_t; typedef struct smc { /* Serial management channels */ u8 res1[2]; u16 smc_smcmr; u8 res2[2]; u8 smc_smce; u8 res3[3]; u8 smc_smcm; u8 res4[5]; } smc_t; /* Serial Peripheral Interface. */ typedef struct spi_ctrl { u16 spi_spmode; u8 res1[4]; u8 spi_spie; u8 res2[3]; u8 spi_spim; u8 res3[2]; u8 spi_spcom; u8 res4[82]; } spictl_cpm2_t; /* CPM Mux. */ typedef struct cpmux { u8 cmx_si1cr; u8 res1; u8 cmx_si2cr; u8 res2; u32 cmx_fcr; u32 cmx_scr; u8 cmx_smr; u8 res3; u16 cmx_uar; u8 res4[16]; } cpmux_t; /* SIRAM control */ typedef struct siram { u16 si_amr; u16 si_bmr; u16 si_cmr; u16 si_dmr; u8 si_gmr; u8 res1; u8 si_cmdr; u8 res2; u8 si_str; u8 res3; u16 si_rsr; } siramctl_t; typedef struct mcc { u16 mcc_mcce; u8 res1[2]; u16 mcc_mccm; u8 res2[2]; u8 mcc_mccf; u8 res3[7]; } mcc_t; typedef struct comm_proc { u32 cp_cpcr; u32 cp_rccr; u8 res1[14]; u16 cp_rter; u8 res2[2]; u16 cp_rtmr; u16 cp_rtscr; u8 res3[2]; u32 cp_rtsr; u8 res4[12]; } cpm_cpm2_t; /* USB Controller. */ typedef struct cpm_usb_ctlr { u8 usb_usmod; u8 usb_usadr; u8 usb_uscom; u8 res1[1]; __be16 usb_usep[4]; u8 res2[4]; __be16 usb_usber; u8 res3[2]; __be16 usb_usbmr; u8 usb_usbs; u8 res4[7]; } usb_cpm2_t; /* ...and the whole thing wrapped up.... */ typedef struct immap { /* Some references are into the unique and known dpram spaces, * others are from the generic base. */ #define im_dprambase im_dpram1 u8 im_dpram1[16*1024]; u8 res1[16*1024]; u8 im_dpram2[4*1024]; u8 res2[8*1024]; u8 im_dpram3[4*1024]; u8 res3[16*1024]; sysconf_cpm2_t im_siu_conf; /* SIU Configuration */ memctl_cpm2_t im_memctl; /* Memory Controller */ sit_cpm2_t im_sit; /* System Integration Timers */ pci_cpm2_t im_pci; /* PCI Controller */ intctl_cpm2_t im_intctl; /* Interrupt Controller */ car_cpm2_t im_clkrst; /* Clocks and reset */ iop_cpm2_t im_ioport; /* IO Port control/status */ cpmtimer_cpm2_t im_cpmtimer; /* CPM timers */ sdma_cpm2_t im_sdma; /* SDMA control/status */ fcc_t im_fcc[3]; /* Three FCCs */ u8 res4z[32]; fcc_c_t im_fcc_c[3]; /* Continued FCCs */ u8 res4[32]; tclayer_t im_tclayer[8]; /* Eight TCLayers */ u16 tc_tcgsr; u16 tc_tcger; /* First set of baud rate generators. */ u8 res[236]; u32 im_brgc5; u32 im_brgc6; u32 im_brgc7; u32 im_brgc8; u8 res5[608]; i2c_cpm2_t im_i2c; /* I2C control/status */ cpm_cpm2_t im_cpm; /* Communication processor */ /* Second set of baud rate generators. */ u32 im_brgc1; u32 im_brgc2; u32 im_brgc3; u32 im_brgc4; scc_t im_scc[4]; /* Four SCCs */ smc_t im_smc[2]; /* Couple of SMCs */ spictl_cpm2_t im_spi; /* A SPI */ cpmux_t im_cpmux; /* CPM clock route mux */ siramctl_t im_siramctl1; /* First SI RAM Control */ mcc_t im_mcc1; /* First MCC */ siramctl_t im_siramctl2; /* Second SI RAM Control */ mcc_t im_mcc2; /* Second MCC */ usb_cpm2_t im_usb; /* USB Controller */ u8 res6[1153]; u16 im_si1txram[256]; u8 res7[512]; u16 im_si1rxram[256]; u8 res8[512]; u16 im_si2txram[256]; u8 res9[512]; u16 im_si2rxram[256]; u8 res10[512]; u8 res11[4096]; } cpm2_map_t; extern cpm2_map_t __iomem *cpm2_immr; #endif /* __IMMAP_CPM2__ */ #endif /* __KERNEL__ */
Save
cmd:
run