mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS update from Ralf Baechle: "This is the MIPS update for 3.7. A fair chunk of them are platform updates to the Cavium Octeon SOC (which involves machine generated header files of considerable size), Atheros ATH79xx, RMI aka Netlogic aka Broadcom XLP, Broadcom BCM63xx platforms. Support for the commercial MIPS simulator MIPSsim has been removed as MIPS Technologies is shifting away from this product and Qemu is offering various more powerful platforms. The generic MIPS code can now also probe for no-execute / write-only TLB features implemented without the full SmartMIPS extension as permitted by the latest MIPS processor architecture. Lots of small changes to generic code." * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (78 commits) MIPS: ath79: Fix CPU/DDR frequency calculation for SRIF PLLs MIPS: ath79: use correct fractional dividers for {CPU,DDR}_PLL on AR934x MIPS: BCM63XX: Properly handle mac address octet overflow MIPS: Kconfig: Avoid build errors by hiding USE_OF from the user. MIPS: Replace `-' in defconfig filename wth `_' for consistency. MIPS: Wire kcmp syscall. MIPS: MIPSsim: Remove the MIPSsim platform. MIPS: NOTIFY_RESUME is not needed in TIF masks MIPS: Merge the identical "return from syscall" per-ABI code MIPS: Unobfuscate _TIF..._MASK MIPS: Prevent hitting do_notify_resume() with !user_mode(regs). MIPS: Replace 'kernel_uses_smartmips_rixi' with 'cpu_has_rixi'. MIPS: Add base architecture support for RI and XI. MIPS: Optimise TLB handlers for MIPS32/64 R2 cores. MIPS: uasm: Add INS and EXT instructions. MIPS: Avoid pipeline stalls on some MIPS32R2 cores. MIPS: Make VPE count to be one-based. MIPS: Add new end of interrupt functionality for GIC. MIPS: Add EIC support for GIC. MIPS: Code clean-ups for the GIC. ...
This commit is contained in:
commit
de390bba79
@ -0,0 +1,83 @@
|
||||
Lantiq FALCON pinmux controller
|
||||
|
||||
Required properties:
|
||||
- compatible: "lantiq,pinctrl-falcon"
|
||||
- reg: Should contain the physical address and length of the gpio/pinmux
|
||||
register range
|
||||
|
||||
Please refer to pinctrl-bindings.txt in this directory for details of the
|
||||
common pinctrl bindings used by client devices, including the meaning of the
|
||||
phrase "pin configuration node".
|
||||
|
||||
Lantiq's pin configuration nodes act as a container for an abitrary number of
|
||||
subnodes. Each of these subnodes represents some desired configuration for a
|
||||
pin, a group, or a list of pins or groups. This configuration can include the
|
||||
mux function to select on those group(s), and two pin configuration parameters:
|
||||
pull-up and open-drain
|
||||
|
||||
The name of each subnode is not important as long as it is unique; all subnodes
|
||||
should be enumerated and processed purely based on their content.
|
||||
|
||||
Each subnode only affects those parameters that are explicitly listed. In
|
||||
other words, a subnode that lists a mux function but no pin configuration
|
||||
parameters implies no information about any pin configuration parameters.
|
||||
Similarly, a pin subnode that describes a pullup parameter implies no
|
||||
information about e.g. the mux function.
|
||||
|
||||
We support 2 types of nodes.
|
||||
|
||||
Definition of mux function groups:
|
||||
|
||||
Required subnode-properties:
|
||||
- lantiq,groups : An array of strings. Each string contains the name of a group.
|
||||
Valid values for these names are listed below.
|
||||
- lantiq,function: A string containing the name of the function to mux to the
|
||||
group. Valid values for function names are listed below.
|
||||
|
||||
Valid values for group and function names:
|
||||
|
||||
mux groups:
|
||||
por, ntr, ntr8k, hrst, mdio, bootled, asc0, spi, spi cs0, spi cs1, i2c,
|
||||
jtag, slic, pcm, asc1
|
||||
|
||||
functions:
|
||||
rst, ntr, mdio, led, asc, spi, i2c, jtag, slic, pcm
|
||||
|
||||
|
||||
Definition of pin configurations:
|
||||
|
||||
Required subnode-properties:
|
||||
- lantiq,pins : An array of strings. Each string contains the name of a pin.
|
||||
Valid values for these names are listed below.
|
||||
|
||||
Optional subnode-properties:
|
||||
- lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
|
||||
0: none, 1: down
|
||||
- lantiq,drive-current: Boolean, enables drive-current
|
||||
- lantiq,slew-rate: Boolean, enables slew-rate
|
||||
|
||||
Example:
|
||||
pinmux0 {
|
||||
compatible = "lantiq,pinctrl-falcon";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&state_default>;
|
||||
|
||||
state_default: pinmux {
|
||||
asc0 {
|
||||
lantiq,groups = "asc0";
|
||||
lantiq,function = "asc";
|
||||
};
|
||||
ntr {
|
||||
lantiq,groups = "ntr8k";
|
||||
lantiq,function = "ntr";
|
||||
};
|
||||
i2c {
|
||||
lantiq,groups = "i2c";
|
||||
lantiq,function = "i2c";
|
||||
};
|
||||
hrst {
|
||||
lantiq,groups = "hrst";
|
||||
lantiq,function = "rst";
|
||||
};
|
||||
};
|
||||
};
|
@ -0,0 +1,97 @@
|
||||
Lantiq XWAY pinmux controller
|
||||
|
||||
Required properties:
|
||||
- compatible: "lantiq,pinctrl-xway" or "lantiq,pinctrl-xr9"
|
||||
- reg: Should contain the physical address and length of the gpio/pinmux
|
||||
register range
|
||||
|
||||
Please refer to pinctrl-bindings.txt in this directory for details of the
|
||||
common pinctrl bindings used by client devices, including the meaning of the
|
||||
phrase "pin configuration node".
|
||||
|
||||
Lantiq's pin configuration nodes act as a container for an abitrary number of
|
||||
subnodes. Each of these subnodes represents some desired configuration for a
|
||||
pin, a group, or a list of pins or groups. This configuration can include the
|
||||
mux function to select on those group(s), and two pin configuration parameters:
|
||||
pull-up and open-drain
|
||||
|
||||
The name of each subnode is not important as long as it is unique; all subnodes
|
||||
should be enumerated and processed purely based on their content.
|
||||
|
||||
Each subnode only affects those parameters that are explicitly listed. In
|
||||
other words, a subnode that lists a mux function but no pin configuration
|
||||
parameters implies no information about any pin configuration parameters.
|
||||
Similarly, a pin subnode that describes a pullup parameter implies no
|
||||
information about e.g. the mux function.
|
||||
|
||||
We support 2 types of nodes.
|
||||
|
||||
Definition of mux function groups:
|
||||
|
||||
Required subnode-properties:
|
||||
- lantiq,groups : An array of strings. Each string contains the name of a group.
|
||||
Valid values for these names are listed below.
|
||||
- lantiq,function: A string containing the name of the function to mux to the
|
||||
group. Valid values for function names are listed below.
|
||||
|
||||
Valid values for group and function names:
|
||||
|
||||
mux groups:
|
||||
exin0, exin1, exin2, jtag, ebu a23, ebu a24, ebu a25, ebu clk, ebu cs1,
|
||||
ebu wait, nand ale, nand cs1, nand cle, spi, spi_cs1, spi_cs2, spi_cs3,
|
||||
spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi , gpt1, gpt2,
|
||||
gpt3, clkout0, clkout1, clkout2, clkout3, gnt1, gnt2, gnt3, req1, req2,
|
||||
req3
|
||||
|
||||
additional mux groups (XR9 only):
|
||||
mdio, nand rdy, nand rd, exin3, exin4, gnt4, req4
|
||||
|
||||
functions:
|
||||
spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, mdio
|
||||
|
||||
|
||||
|
||||
Definition of pin configurations:
|
||||
|
||||
Required subnode-properties:
|
||||
- lantiq,pins : An array of strings. Each string contains the name of a pin.
|
||||
Valid values for these names are listed below.
|
||||
|
||||
Optional subnode-properties:
|
||||
- lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
|
||||
0: none, 1: down, 2: up.
|
||||
- lantiq,open-drain: Boolean, enables open-drain on the defined pin.
|
||||
|
||||
Valid values for XWAY pin names:
|
||||
Pinconf pins can be referenced via the names io0-io31.
|
||||
|
||||
Valid values for XR9 pin names:
|
||||
Pinconf pins can be referenced via the names io0-io55.
|
||||
|
||||
Example:
|
||||
gpio: pinmux@E100B10 {
|
||||
compatible = "lantiq,pinctrl-xway";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&state_default>;
|
||||
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
reg = <0xE100B10 0xA0>;
|
||||
|
||||
state_default: pinmux {
|
||||
stp {
|
||||
lantiq,groups = "stp";
|
||||
lantiq,function = "stp";
|
||||
};
|
||||
pci {
|
||||
lantiq,groups = "gnt1";
|
||||
lantiq,function = "pci";
|
||||
};
|
||||
conf_out {
|
||||
lantiq,pins = "io4", "io5", "io6"; /* stp */
|
||||
lantiq,open-drain;
|
||||
lantiq,pull = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
33
Documentation/devicetree/bindings/spi/spi-octeon.txt
Normal file
33
Documentation/devicetree/bindings/spi/spi-octeon.txt
Normal file
@ -0,0 +1,33 @@
|
||||
Cavium, Inc. OCTEON SOC SPI master controller.
|
||||
|
||||
Required properties:
|
||||
- compatible : "cavium,octeon-3010-spi"
|
||||
- reg : The register base for the controller.
|
||||
- interrupts : One interrupt, used by the controller.
|
||||
- #address-cells : <1>, as required by generic SPI binding.
|
||||
- #size-cells : <0>, also as required by generic SPI binding.
|
||||
|
||||
Child nodes as per the generic SPI binding.
|
||||
|
||||
Example:
|
||||
|
||||
spi@1070000001000 {
|
||||
compatible = "cavium,octeon-3010-spi";
|
||||
reg = <0x10700 0x00001000 0x0 0x100>;
|
||||
interrupts = <0 58>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
eeprom@0 {
|
||||
compatible = "st,m95256", "atmel,at25";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <5000000>;
|
||||
spi-cpha;
|
||||
spi-cpol;
|
||||
|
||||
pagesize = <64>;
|
||||
size = <32768>;
|
||||
address-width = <16>;
|
||||
};
|
||||
};
|
||||
|
@ -15,8 +15,8 @@ platforms += lantiq
|
||||
platforms += lasat
|
||||
platforms += loongson
|
||||
platforms += loongson1
|
||||
platforms += mipssim
|
||||
platforms += mti-malta
|
||||
platforms += mti-sead3
|
||||
platforms += netlogic
|
||||
platforms += pmc-sierra
|
||||
platforms += pnx833x
|
||||
|
@ -242,6 +242,8 @@ config LANTIQ
|
||||
select HAVE_MACH_CLKDEV
|
||||
select CLKDEV_LOOKUP
|
||||
select USE_OF
|
||||
select PINCTRL
|
||||
select PINCTRL_LANTIQ
|
||||
|
||||
config LASAT
|
||||
bool "LASAT Networks platforms"
|
||||
@ -320,24 +322,35 @@ config MIPS_MALTA
|
||||
This enables support for the MIPS Technologies Malta evaluation
|
||||
board.
|
||||
|
||||
config MIPS_SIM
|
||||
bool 'MIPS simulator (MIPSsim)'
|
||||
config MIPS_SEAD3
|
||||
bool "MIPS SEAD3 board"
|
||||
select BOOT_ELF32
|
||||
select BOOT_RAW
|
||||
select CEVT_R4K
|
||||
select CSRC_R4K
|
||||
select CPU_MIPSR2_IRQ_VI
|
||||
select CPU_MIPSR2_IRQ_EI
|
||||
select DMA_NONCOHERENT
|
||||
select SYS_HAS_EARLY_PRINTK
|
||||
select IRQ_CPU
|
||||
select BOOT_RAW
|
||||
select IRQ_GIC
|
||||
select MIPS_BOARDS_GEN
|
||||
select MIPS_CPU_SCACHE
|
||||
select MIPS_MSC
|
||||
select SYS_HAS_CPU_MIPS32_R1
|
||||
select SYS_HAS_CPU_MIPS32_R2
|
||||
select SYS_HAS_CPU_MIPS64_R1
|
||||
select SYS_HAS_EARLY_PRINTK
|
||||
select SYS_SUPPORTS_32BIT_KERNEL
|
||||
select SYS_SUPPORTS_64BIT_KERNEL
|
||||
select SYS_SUPPORTS_BIG_ENDIAN
|
||||
select SYS_SUPPORTS_MULTITHREADING
|
||||
select SYS_SUPPORTS_LITTLE_ENDIAN
|
||||
select SYS_SUPPORTS_SMARTMIPS
|
||||
select USB_ARCH_HAS_EHCI
|
||||
select USB_EHCI_BIG_ENDIAN_DESC
|
||||
select USB_EHCI_BIG_ENDIAN_MMIO
|
||||
help
|
||||
This option enables support for MIPS Technologies MIPSsim software
|
||||
emulator.
|
||||
This enables support for the MIPS Technologies SEAD3 evaluation
|
||||
board.
|
||||
|
||||
config NEC_MARKEINS
|
||||
bool "NEC EMMA2RH Mark-eins board"
|
||||
@ -831,6 +844,7 @@ config NLM_XLP_BOARD
|
||||
select ZONE_DMA if 64BIT
|
||||
select SYNC_R4K
|
||||
select SYS_HAS_EARLY_PRINTK
|
||||
select USE_OF
|
||||
help
|
||||
This board is based on Netlogic XLP Processor.
|
||||
Say Y here if you have a XLP based board.
|
||||
@ -1749,7 +1763,6 @@ config HARDWARE_WATCHPOINTS
|
||||
menu "Kernel type"
|
||||
|
||||
choice
|
||||
|
||||
prompt "Kernel code model"
|
||||
help
|
||||
You should only select this option if you have a workload that
|
||||
@ -1880,6 +1893,18 @@ config SIBYTE_DMA_PAGEOPS
|
||||
config CPU_HAS_PREFETCH
|
||||
bool
|
||||
|
||||
config CPU_GENERIC_DUMP_TLB
|
||||
bool
|
||||
default y if !(CPU_R3000 || CPU_R6000 || CPU_R8000 || CPU_TX39XX)
|
||||
|
||||
config CPU_R4K_FPU
|
||||
bool
|
||||
default y if !(CPU_R3000 || CPU_R6000 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
|
||||
|
||||
config CPU_R4K_CACHE_TLB
|
||||
bool
|
||||
default y if !(CPU_R3000 || CPU_R8000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
|
||||
|
||||
choice
|
||||
prompt "MIPS MT options"
|
||||
|
||||
@ -1955,7 +1980,6 @@ config SCHED_SMT
|
||||
config SYS_SUPPORTS_SCHED_SMT
|
||||
bool
|
||||
|
||||
|
||||
config SYS_SUPPORTS_MULTITHREADING
|
||||
bool
|
||||
|
||||
@ -2360,12 +2384,10 @@ config SECCOMP
|
||||
If unsure, say Y. Only embedded should say N here.
|
||||
|
||||
config USE_OF
|
||||
bool "Flattened Device Tree support"
|
||||
bool
|
||||
select OF
|
||||
select OF_EARLY_FLATTREE
|
||||
select IRQ_DOMAIN
|
||||
help
|
||||
Include support for flattened device tree machine descriptions.
|
||||
|
||||
endmenu
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
#include <linux/err.h>
|
||||
#include <linux/clk.h>
|
||||
|
||||
#include <asm/div64.h>
|
||||
|
||||
#include <asm/mach-ath79/ath79.h>
|
||||
#include <asm/mach-ath79/ar71xx_regs.h>
|
||||
#include "common.h"
|
||||
@ -166,11 +168,34 @@ static void __init ar933x_clocks_init(void)
|
||||
ath79_uart_clk.rate = ath79_ref_clk.rate;
|
||||
}
|
||||
|
||||
static u32 __init ar934x_get_pll_freq(u32 ref, u32 ref_div, u32 nint, u32 nfrac,
|
||||
u32 frac, u32 out_div)
|
||||
{
|
||||
u64 t;
|
||||
u32 ret;
|
||||
|
||||
t = ath79_ref_clk.rate;
|
||||
t *= nint;
|
||||
do_div(t, ref_div);
|
||||
ret = t;
|
||||
|
||||
t = ath79_ref_clk.rate;
|
||||
t *= nfrac;
|
||||
do_div(t, ref_div * frac);
|
||||
ret += t;
|
||||
|
||||
ret /= (1 << out_div);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void __init ar934x_clocks_init(void)
|
||||
{
|
||||
u32 pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv;
|
||||
u32 pll, out_div, ref_div, nint, nfrac, frac, clk_ctrl, postdiv;
|
||||
u32 cpu_pll, ddr_pll;
|
||||
u32 bootstrap;
|
||||
void __iomem *dpll_base;
|
||||
|
||||
dpll_base = ioremap(AR934X_SRIF_BASE, AR934X_SRIF_SIZE);
|
||||
|
||||
bootstrap = ath79_reset_rr(AR934X_RESET_REG_BOOTSTRAP);
|
||||
if (bootstrap & AR934X_BOOTSTRAP_REF_CLK_40)
|
||||
@ -178,33 +203,59 @@ static void __init ar934x_clocks_init(void)
|
||||
else
|
||||
ath79_ref_clk.rate = 25 * 1000 * 1000;
|
||||
|
||||
pll = ath79_pll_rr(AR934X_PLL_CPU_CONFIG_REG);
|
||||
out_div = (pll >> AR934X_PLL_CPU_CONFIG_OUTDIV_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_OUTDIV_MASK;
|
||||
ref_div = (pll >> AR934X_PLL_CPU_CONFIG_REFDIV_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_REFDIV_MASK;
|
||||
nint = (pll >> AR934X_PLL_CPU_CONFIG_NINT_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_NINT_MASK;
|
||||
frac = (pll >> AR934X_PLL_CPU_CONFIG_NFRAC_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_NFRAC_MASK;
|
||||
pll = __raw_readl(dpll_base + AR934X_SRIF_CPU_DPLL2_REG);
|
||||
if (pll & AR934X_SRIF_DPLL2_LOCAL_PLL) {
|
||||
out_div = (pll >> AR934X_SRIF_DPLL2_OUTDIV_SHIFT) &
|
||||
AR934X_SRIF_DPLL2_OUTDIV_MASK;
|
||||
pll = __raw_readl(dpll_base + AR934X_SRIF_CPU_DPLL1_REG);
|
||||
nint = (pll >> AR934X_SRIF_DPLL1_NINT_SHIFT) &
|
||||
AR934X_SRIF_DPLL1_NINT_MASK;
|
||||
nfrac = pll & AR934X_SRIF_DPLL1_NFRAC_MASK;
|
||||
ref_div = (pll >> AR934X_SRIF_DPLL1_REFDIV_SHIFT) &
|
||||
AR934X_SRIF_DPLL1_REFDIV_MASK;
|
||||
frac = 1 << 18;
|
||||
} else {
|
||||
pll = ath79_pll_rr(AR934X_PLL_CPU_CONFIG_REG);
|
||||
out_div = (pll >> AR934X_PLL_CPU_CONFIG_OUTDIV_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_OUTDIV_MASK;
|
||||
ref_div = (pll >> AR934X_PLL_CPU_CONFIG_REFDIV_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_REFDIV_MASK;
|
||||
nint = (pll >> AR934X_PLL_CPU_CONFIG_NINT_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_NINT_MASK;
|
||||
nfrac = (pll >> AR934X_PLL_CPU_CONFIG_NFRAC_SHIFT) &
|
||||
AR934X_PLL_CPU_CONFIG_NFRAC_MASK;
|
||||
frac = 1 << 6;
|
||||
}
|
||||
|
||||
cpu_pll = nint * ath79_ref_clk.rate / ref_div;
|
||||
cpu_pll += frac * ath79_ref_clk.rate / (ref_div * (2 << 6));
|
||||
cpu_pll /= (1 << out_div);
|
||||
cpu_pll = ar934x_get_pll_freq(ath79_ref_clk.rate, ref_div, nint,
|
||||
nfrac, frac, out_div);
|
||||
|
||||
pll = ath79_pll_rr(AR934X_PLL_DDR_CONFIG_REG);
|
||||
out_div = (pll >> AR934X_PLL_DDR_CONFIG_OUTDIV_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_OUTDIV_MASK;
|
||||
ref_div = (pll >> AR934X_PLL_DDR_CONFIG_REFDIV_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_REFDIV_MASK;
|
||||
nint = (pll >> AR934X_PLL_DDR_CONFIG_NINT_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_NINT_MASK;
|
||||
frac = (pll >> AR934X_PLL_DDR_CONFIG_NFRAC_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_NFRAC_MASK;
|
||||
pll = __raw_readl(dpll_base + AR934X_SRIF_DDR_DPLL2_REG);
|
||||
if (pll & AR934X_SRIF_DPLL2_LOCAL_PLL) {
|
||||
out_div = (pll >> AR934X_SRIF_DPLL2_OUTDIV_SHIFT) &
|
||||
AR934X_SRIF_DPLL2_OUTDIV_MASK;
|
||||
pll = __raw_readl(dpll_base + AR934X_SRIF_DDR_DPLL1_REG);
|
||||
nint = (pll >> AR934X_SRIF_DPLL1_NINT_SHIFT) &
|
||||
AR934X_SRIF_DPLL1_NINT_MASK;
|
||||
nfrac = pll & AR934X_SRIF_DPLL1_NFRAC_MASK;
|
||||
ref_div = (pll >> AR934X_SRIF_DPLL1_REFDIV_SHIFT) &
|
||||
AR934X_SRIF_DPLL1_REFDIV_MASK;
|
||||
frac = 1 << 18;
|
||||
} else {
|
||||
pll = ath79_pll_rr(AR934X_PLL_DDR_CONFIG_REG);
|
||||
out_div = (pll >> AR934X_PLL_DDR_CONFIG_OUTDIV_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_OUTDIV_MASK;
|
||||
ref_div = (pll >> AR934X_PLL_DDR_CONFIG_REFDIV_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_REFDIV_MASK;
|
||||
nint = (pll >> AR934X_PLL_DDR_CONFIG_NINT_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_NINT_MASK;
|
||||
nfrac = (pll >> AR934X_PLL_DDR_CONFIG_NFRAC_SHIFT) &
|
||||
AR934X_PLL_DDR_CONFIG_NFRAC_MASK;
|
||||
frac = 1 << 10;
|
||||
}
|
||||
|
||||
ddr_pll = nint * ath79_ref_clk.rate / ref_div;
|
||||
ddr_pll += frac * ath79_ref_clk.rate / (ref_div * (2 << 10));
|
||||
ddr_pll /= (1 << out_div);
|
||||
ddr_pll = ar934x_get_pll_freq(ath79_ref_clk.rate, ref_div, nint,
|
||||
nfrac, frac, out_div);
|
||||
|
||||
clk_ctrl = ath79_pll_rr(AR934X_PLL_CPU_DDR_CLK_CTRL_REG);
|
||||
|
||||
@ -240,6 +291,8 @@ static void __init ar934x_clocks_init(void)
|
||||
|
||||
ath79_wdt_clk.rate = ath79_ref_clk.rate;
|
||||
ath79_uart_clk.rate = ath79_ref_clk.rate;
|
||||
|
||||
iounmap(dpll_base);
|
||||
}
|
||||
|
||||
void __init ath79_clocks_init(void)
|
||||
|
@ -25,17 +25,7 @@
|
||||
#include "common.h"
|
||||
#include "dev-usb.h"
|
||||
|
||||
static struct resource ath79_ohci_resources[] = {
|
||||
[0] = {
|
||||
/* .start and .end fields are filled dynamically */
|
||||
.flags = IORESOURCE_MEM,
|
||||
},
|
||||
[1] = {
|
||||
.start = ATH79_MISC_IRQ_OHCI,
|
||||
.end = ATH79_MISC_IRQ_OHCI,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
static struct resource ath79_ohci_resources[2];
|
||||
|
||||
static u64 ath79_ohci_dmamask = DMA_BIT_MASK(32);
|
||||
|
||||
@ -54,17 +44,7 @@ static struct platform_device ath79_ohci_device = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct resource ath79_ehci_resources[] = {
|
||||
[0] = {
|
||||
/* .start and .end fields are filled dynamically */
|
||||
.flags = IORESOURCE_MEM,
|
||||
},
|
||||
[1] = {
|
||||
.start = ATH79_CPU_IRQ_USB,
|
||||
.end = ATH79_CPU_IRQ_USB,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
static struct resource ath79_ehci_resources[2];
|
||||
|
||||
static u64 ath79_ehci_dmamask = DMA_BIT_MASK(32);
|
||||
|
||||
@ -90,6 +70,20 @@ static struct platform_device ath79_ehci_device = {
|
||||
},
|
||||
};
|
||||
|
||||
static void __init ath79_usb_init_resource(struct resource res[2],
|
||||
unsigned long base,
|
||||
unsigned long size,
|
||||
int irq)
|
||||
{
|
||||
res[0].flags = IORESOURCE_MEM;
|
||||
res[0].start = base;
|
||||
res[0].end = base + size - 1;
|
||||
|
||||
res[1].flags = IORESOURCE_IRQ;
|
||||
res[1].start = irq;
|
||||
res[1].end = irq;
|
||||
}
|
||||
|
||||
#define AR71XX_USB_RESET_MASK (AR71XX_RESET_USB_HOST | \
|
||||
AR71XX_RESET_USB_PHY | \
|
||||
AR71XX_RESET_USB_OHCI_DLL)
|
||||
@ -114,12 +108,12 @@ static void __init ath79_usb_setup(void)
|
||||
|
||||
mdelay(900);
|
||||
|
||||
ath79_ohci_resources[0].start = AR71XX_OHCI_BASE;
|
||||
ath79_ohci_resources[0].end = AR71XX_OHCI_BASE + AR71XX_OHCI_SIZE - 1;
|
||||
ath79_usb_init_resource(ath79_ohci_resources, AR71XX_OHCI_BASE,
|
||||
AR71XX_OHCI_SIZE, ATH79_MISC_IRQ_OHCI);
|
||||
platform_device_register(&ath79_ohci_device);
|
||||
|
||||
ath79_ehci_resources[0].start = AR71XX_EHCI_BASE;
|
||||
ath79_ehci_resources[0].end = AR71XX_EHCI_BASE + AR71XX_EHCI_SIZE - 1;
|
||||
ath79_usb_init_resource(ath79_ehci_resources, AR71XX_EHCI_BASE,
|
||||
AR71XX_EHCI_SIZE, ATH79_CPU_IRQ_USB);
|
||||
ath79_ehci_device.dev.platform_data = &ath79_ehci_pdata_v1;
|
||||
platform_device_register(&ath79_ehci_device);
|
||||
}
|
||||
@ -143,10 +137,8 @@ static void __init ar7240_usb_setup(void)
|
||||
|
||||
iounmap(usb_ctrl_base);
|
||||
|
||||
ath79_ohci_resources[0].start = AR7240_OHCI_BASE;
|
||||
ath79_ohci_resources[0].end = AR7240_OHCI_BASE + AR7240_OHCI_SIZE - 1;
|
||||
ath79_ohci_resources[1].start = ATH79_CPU_IRQ_USB;
|
||||
ath79_ohci_resources[1].end = ATH79_CPU_IRQ_USB;
|
||||
ath79_usb_init_resource(ath79_ohci_resources, AR7240_OHCI_BASE,
|
||||
AR7240_OHCI_SIZE, ATH79_CPU_IRQ_USB);
|
||||
platform_device_register(&ath79_ohci_device);
|
||||
}
|
||||
|
||||
@ -161,8 +153,8 @@ static void __init ar724x_usb_setup(void)
|
||||
ath79_device_reset_clear(AR724X_RESET_USB_PHY);
|
||||
mdelay(10);
|
||||
|
||||
ath79_ehci_resources[0].start = AR724X_EHCI_BASE;
|
||||
ath79_ehci_resources[0].end = AR724X_EHCI_BASE + AR724X_EHCI_SIZE - 1;
|
||||
ath79_usb_init_resource(ath79_ehci_resources, AR724X_EHCI_BASE,
|
||||
AR724X_EHCI_SIZE, ATH79_CPU_IRQ_USB);
|
||||
ath79_ehci_device.dev.platform_data = &ath79_ehci_pdata_v2;
|
||||
platform_device_register(&ath79_ehci_device);
|
||||
}
|
||||
@ -178,8 +170,8 @@ static void __init ar913x_usb_setup(void)
|
||||
ath79_device_reset_clear(AR913X_RESET_USB_PHY);
|
||||
mdelay(10);
|
||||
|
||||
ath79_ehci_resources[0].start = AR913X_EHCI_BASE;
|
||||
ath79_ehci_resources[0].end = AR913X_EHCI_BASE + AR913X_EHCI_SIZE - 1;
|
||||
ath79_usb_init_resource(ath79_ehci_resources, AR913X_EHCI_BASE,
|
||||
AR913X_EHCI_SIZE, ATH79_CPU_IRQ_USB);
|
||||
ath79_ehci_device.dev.platform_data = &ath79_ehci_pdata_v2;
|
||||
platform_device_register(&ath79_ehci_device);
|
||||
}
|
||||
@ -195,8 +187,34 @@ static void __init ar933x_usb_setup(void)
|
||||
ath79_device_reset_clear(AR933X_RESET_USB_PHY);
|
||||
mdelay(10);
|
||||
|
||||
ath79_ehci_resources[0].start = AR933X_EHCI_BASE;
|
||||
ath79_ehci_resources[0].end = AR933X_EHCI_BASE + AR933X_EHCI_SIZE - 1;
|
||||
ath79_usb_init_resource(ath79_ehci_resources, AR933X_EHCI_BASE,
|
||||
AR933X_EHCI_SIZE, ATH79_CPU_IRQ_USB);
|
||||
ath79_ehci_device.dev.platform_data = &ath79_ehci_pdata_v2;
|
||||
platform_device_register(&ath79_ehci_device);
|
||||
}
|
||||
|
||||
static void __init ar934x_usb_setup(void)
|
||||
{
|
||||
u32 bootstrap;
|
||||
|
||||
bootstrap = ath79_reset_rr(AR934X_RESET_REG_BOOTSTRAP);
|
||||
if (bootstrap & AR934X_BOOTSTRAP_USB_MODE_DEVICE)
|
||||
return;
|
||||
|
||||
ath79_device_reset_set(AR934X_RESET_USBSUS_OVERRIDE);
|
||||
udelay(1000);
|
||||
|
||||
ath79_device_reset_clear(AR934X_RESET_USB_PHY);
|
||||
udelay(1000);
|
||||
|
||||
ath79_device_reset_clear(AR934X_RESET_USB_PHY_ANALOG);
|
||||
udelay(1000);
|
||||
|
||||
ath79_device_reset_clear(AR934X_RESET_USB_HOST);
|
||||
udelay(1000);
|
||||
|
||||
ath79_usb_init_resource(ath79_ehci_resources, AR934X_EHCI_BASE,
|
||||
AR934X_EHCI_SIZE, ATH79_CPU_IRQ_USB);
|
||||
ath79_ehci_device.dev.platform_data = &ath79_ehci_pdata_v2;
|
||||
platform_device_register(&ath79_ehci_device);
|
||||
}
|
||||
@ -213,6 +231,8 @@ void __init ath79_register_usb(void)
|
||||
ar913x_usb_setup();
|
||||
else if (soc_is_ar933x())
|
||||
ar933x_usb_setup();
|
||||
else if (soc_is_ar934x())
|
||||
ar934x_usb_setup();
|
||||
else
|
||||
BUG();
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "dev-gpio-buttons.h"
|
||||
#include "dev-leds-gpio.h"
|
||||
#include "dev-spi.h"
|
||||
#include "dev-usb.h"
|
||||
#include "dev-wmac.h"
|
||||
#include "pci.h"
|
||||
|
||||
@ -126,6 +127,7 @@ static void __init db120_setup(void)
|
||||
db120_gpio_keys);
|
||||
ath79_register_spi(&db120_spi_data, db120_spi_info,
|
||||
ARRAY_SIZE(db120_spi_info));
|
||||
ath79_register_usb();
|
||||
ath79_register_wmac(art + DB120_WMAC_CALDATA_OFFSET);
|
||||
db120_pci_init(art + DB120_PCIE_CALDATA_OFFSET);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
obj-y += clk.o cpu.o cs.o gpio.o irq.o prom.o setup.o timer.o \
|
||||
dev-dsp.o dev-enet.o dev-flash.o dev-pcmcia.o dev-rng.o \
|
||||
dev-spi.o dev-uart.o dev-wdt.o
|
||||
dev-spi.o dev-uart.o dev-wdt.o dev-usb-usbd.o
|
||||
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
||||
|
||||
obj-y += boards/
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <bcm63xx_dev_flash.h>
|
||||
#include <bcm63xx_dev_pcmcia.h>
|
||||
#include <bcm63xx_dev_spi.h>
|
||||
#include <bcm63xx_dev_usb_usbd.h>
|
||||
#include <board_bcm963xx.h>
|
||||
|
||||
#define PFX "board_bcm963xx: "
|
||||
@ -42,6 +43,12 @@ static struct board_info __initdata board_96328avng = {
|
||||
|
||||
.has_uart0 = 1,
|
||||
.has_pci = 1,
|
||||
.has_usbd = 0,
|
||||
|
||||
.usbd = {
|
||||
.use_fullspeed = 0,
|
||||
.port_no = 0,
|
||||
},
|
||||
|
||||
.leds = {
|
||||
{
|
||||
@ -713,7 +720,7 @@ const char *board_get_name(void)
|
||||
*/
|
||||
static int board_get_mac_address(u8 *mac)
|
||||
{
|
||||
u8 *p;
|
||||
u8 *oui;
|
||||
int count;
|
||||
|
||||
if (mac_addr_used >= nvram.mac_addr_count) {
|
||||
@ -722,21 +729,23 @@ static int board_get_mac_address(u8 *mac)
|
||||
}
|
||||
|
||||
memcpy(mac, nvram.mac_addr_base, ETH_ALEN);
|
||||
p = mac + ETH_ALEN - 1;
|
||||
oui = mac + ETH_ALEN/2 - 1;
|
||||
count = mac_addr_used;
|
||||
|
||||
while (count--) {
|
||||
u8 *p = mac + ETH_ALEN - 1;
|
||||
|
||||
do {
|
||||
(*p)++;
|
||||
if (*p != 0)
|
||||
break;
|
||||
p--;
|
||||
} while (p != mac);
|
||||
}
|
||||
} while (p != oui);
|
||||
|
||||
if (p == mac) {
|
||||
printk(KERN_ERR PFX "unable to fetch mac address\n");
|
||||
return -ENODEV;
|
||||
if (p == oui) {
|
||||
printk(KERN_ERR PFX "unable to fetch mac address\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
|
||||
mac_addr_used++;
|
||||
@ -888,6 +897,9 @@ int __init board_register_devices(void)
|
||||
!board_get_mac_address(board.enet1.mac_addr))
|
||||
bcm63xx_enet_register(1, &board.enet1);
|
||||
|
||||
if (board.has_usbd)
|
||||
bcm63xx_usbd_register(&board.usbd);
|
||||
|
||||
if (board.has_dsp)
|
||||
bcm63xx_dsp_register(&board.dsp);
|
||||
|
||||
|
@ -160,7 +160,9 @@ static struct clk clk_pcm = {
|
||||
*/
|
||||
static void usbh_set(struct clk *clk, int enable)
|
||||
{
|
||||
if (BCMCPU_IS_6348())
|
||||
if (BCMCPU_IS_6328())
|
||||
bcm_hwclock_set(CKCTL_6328_USBH_EN, enable);
|
||||
else if (BCMCPU_IS_6348())
|
||||
bcm_hwclock_set(CKCTL_6348_USBH_EN, enable);
|
||||
else if (BCMCPU_IS_6368())
|
||||
bcm_hwclock_set(CKCTL_6368_USBH_EN, enable);
|
||||
@ -170,6 +172,21 @@ static struct clk clk_usbh = {
|
||||
.set = usbh_set,
|
||||
};
|
||||
|
||||
/*
|
||||
* USB device clock
|
||||
*/
|
||||
static void usbd_set(struct clk *clk, int enable)
|
||||
{
|
||||
if (BCMCPU_IS_6328())
|
||||
bcm_hwclock_set(CKCTL_6328_USBD_EN, enable);
|
||||
else if (BCMCPU_IS_6368())
|
||||
bcm_hwclock_set(CKCTL_6368_USBD_EN, enable);
|
||||
}
|
||||
|
||||
static struct clk clk_usbd = {
|
||||
.set = usbd_set,
|
||||
};
|
||||
|
||||
/*
|
||||
* SPI clock
|
||||
*/
|
||||
@ -284,6 +301,8 @@ struct clk *clk_get(struct device *dev, const char *id)
|
||||
return &clk_ephy;
|
||||
if (!strcmp(id, "usbh"))
|
||||
return &clk_usbh;
|
||||
if (!strcmp(id, "usbd"))
|
||||
return &clk_usbd;
|
||||
if (!strcmp(id, "spi"))
|
||||
return &clk_spi;
|
||||
if (!strcmp(id, "xtm"))
|
||||
|
65
arch/mips/bcm63xx/dev-usb-usbd.c
Normal file
65
arch/mips/bcm63xx/dev-usb-usbd.c
Normal file
@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
* Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
|
||||
* Copyright (C) 2012 Kevin Cernekee <cernekee@gmail.com>
|
||||
* Copyright (C) 2012 Broadcom Corporation
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <bcm63xx_cpu.h>
|
||||
#include <bcm63xx_dev_usb_usbd.h>
|
||||
|
||||
#define NUM_MMIO 2
|
||||
#define NUM_IRQ 7
|
||||
|
||||
static struct resource usbd_resources[NUM_MMIO + NUM_IRQ];
|
||||
|
||||
static u64 usbd_dmamask = DMA_BIT_MASK(32);
|
||||
|
||||
static struct platform_device bcm63xx_usbd_device = {
|
||||
.name = "bcm63xx_udc",
|
||||
.id = -1,
|
||||
.num_resources = ARRAY_SIZE(usbd_resources),
|
||||
.resource = usbd_resources,
|
||||
.dev = {
|
||||
.dma_mask = &usbd_dmamask,
|
||||
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||
},
|
||||
};
|
||||
|
||||
int __init bcm63xx_usbd_register(const struct bcm63xx_usbd_platform_data *pd)
|
||||
{
|
||||
const int irq_list[NUM_IRQ] = { IRQ_USBD,
|
||||
IRQ_USBD_RXDMA0, IRQ_USBD_TXDMA0,
|
||||
IRQ_USBD_RXDMA1, IRQ_USBD_TXDMA1,
|
||||
IRQ_USBD_RXDMA2, IRQ_USBD_TXDMA2 };
|
||||
int i;
|
||||
|
||||
if (!BCMCPU_IS_6328() && !BCMCPU_IS_6368())
|
||||
return 0;
|
||||
|
||||
usbd_resources[0].start = bcm63xx_regset_address(RSET_USBD);
|
||||
usbd_resources[0].end = usbd_resources[0].start + RSET_USBD_SIZE - 1;
|
||||
usbd_resources[0].flags = IORESOURCE_MEM;
|
||||
|
||||
usbd_resources[1].start = bcm63xx_regset_address(RSET_USBDMA);
|
||||
usbd_resources[1].end = usbd_resources[1].start + RSET_USBDMA_SIZE - 1;
|
||||
usbd_resources[1].flags = IORESOURCE_MEM;
|
||||
|
||||
for (i = 0; i < NUM_IRQ; i++) {
|
||||
struct resource *r = &usbd_resources[NUM_MMIO + i];
|
||||
|
||||
r->start = r->end = bcm63xx_get_irq_number(irq_list[i]);
|
||||
r->flags = IORESOURCE_IRQ;
|
||||
}
|
||||
|
||||
platform_device_add_data(&bcm63xx_usbd_device, pd, sizeof(*pd));
|
||||
|
||||
return platform_device_register(&bcm63xx_usbd_device);
|
||||
}
|
@ -56,8 +56,8 @@ static void __internal_irq_unmask_64(unsigned int irq) __maybe_unused;
|
||||
#define is_ext_irq_cascaded 0
|
||||
#define ext_irq_start 0
|
||||
#define ext_irq_end 0
|
||||
#define ext_irq_count 0
|
||||
#define ext_irq_cfg_reg1 0
|
||||
#define ext_irq_count 4
|
||||
#define ext_irq_cfg_reg1 PERF_EXTIRQ_CFG_REG_6345
|
||||
#define ext_irq_cfg_reg2 0
|
||||
#endif
|
||||
#ifdef CONFIG_BCM63XX_CPU_6348
|
||||
@ -143,11 +143,15 @@ static void bcm63xx_init_irq(void)
|
||||
irq_stat_addr += PERF_IRQSTAT_6338_REG;
|
||||
irq_mask_addr += PERF_IRQMASK_6338_REG;
|
||||
irq_bits = 32;
|
||||
ext_irq_count = 4;
|
||||
ext_irq_cfg_reg1 = PERF_EXTIRQ_CFG_REG_6338;
|
||||
break;
|
||||
case BCM6345_CPU_ID:
|
||||
irq_stat_addr += PERF_IRQSTAT_6345_REG;
|
||||
irq_mask_addr += PERF_IRQMASK_6345_REG;
|
||||
irq_bits = 32;
|
||||
ext_irq_count = 4;
|
||||
ext_irq_cfg_reg1 = PERF_EXTIRQ_CFG_REG_6345;
|
||||
break;
|
||||
case BCM6348_CPU_ID:
|
||||
irq_stat_addr += PERF_IRQSTAT_6348_REG;
|
||||
@ -434,7 +438,8 @@ static int bcm63xx_external_irq_set_type(struct irq_data *d,
|
||||
reg = bcm_perf_readl(regaddr);
|
||||
irq %= 4;
|
||||
|
||||
if (BCMCPU_IS_6348()) {
|
||||
switch (bcm63xx_get_cpu_id()) {
|
||||
case BCM6348_CPU_ID:
|
||||
if (levelsense)
|
||||
reg |= EXTIRQ_CFG_LEVELSENSE_6348(irq);
|
||||
else
|
||||
@ -447,9 +452,13 @@ static int bcm63xx_external_irq_set_type(struct irq_data *d,
|
||||
reg |= EXTIRQ_CFG_BOTHEDGE_6348(irq);
|
||||
else
|
||||
reg &= ~EXTIRQ_CFG_BOTHEDGE_6348(irq);
|
||||
}
|
||||
break;
|
||||
|
||||
if (BCMCPU_IS_6338() || BCMCPU_IS_6358() || BCMCPU_IS_6368()) {
|
||||
case BCM6328_CPU_ID:
|
||||
case BCM6338_CPU_ID:
|
||||
case BCM6345_CPU_ID:
|
||||
case BCM6358_CPU_ID:
|
||||
case BCM6368_CPU_ID:
|
||||
if (levelsense)
|
||||
reg |= EXTIRQ_CFG_LEVELSENSE(irq);
|
||||
else
|
||||
@ -462,6 +471,9 @@ static int bcm63xx_external_irq_set_type(struct irq_data *d,
|
||||
reg |= EXTIRQ_CFG_BOTHEDGE(irq);
|
||||
else
|
||||
reg &= ~EXTIRQ_CFG_BOTHEDGE(irq);
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
||||
bcm_perf_writel(reg, regaddr);
|
||||
|
@ -74,6 +74,9 @@ void bcm63xx_machine_reboot(void)
|
||||
case BCM6338_CPU_ID:
|
||||
perf_regs[0] = PERF_EXTIRQ_CFG_REG_6338;
|
||||
break;
|
||||
case BCM6345_CPU_ID:
|
||||
perf_regs[0] = PERF_EXTIRQ_CFG_REG_6345;
|
||||
break;
|
||||
case BCM6348_CPU_ID:
|
||||
perf_regs[0] = PERF_EXTIRQ_CFG_REG_6348;
|
||||
break;
|
||||
@ -83,6 +86,9 @@ void bcm63xx_machine_reboot(void)
|
||||
}
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
if (!perf_regs[i])
|
||||
break;
|
||||
|
||||
reg = bcm_perf_readl(perf_regs[i]);
|
||||
if (BCMCPU_IS_6348()) {
|
||||
reg &= ~EXTIRQ_CFG_MASK_ALL_6348;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* for more details.
|
||||
*
|
||||
* Copyright (C) 2007 by Ralf Baechle
|
||||
* Copyright (C) 2009, 2010 Cavium Networks, Inc.
|
||||
* Copyright (C) 2009, 2012 Cavium, Inc.
|
||||
*/
|
||||
#include <linux/clocksource.h>
|
||||
#include <linux/export.h>
|
||||
@ -18,6 +18,33 @@
|
||||
#include <asm/octeon/cvmx-ipd-defs.h>
|
||||
#include <asm/octeon/cvmx-mio-defs.h>
|
||||
|
||||
|
||||
static u64 f;
|
||||
static u64 rdiv;
|
||||
static u64 sdiv;
|
||||
static u64 octeon_udelay_factor;
|
||||
static u64 octeon_ndelay_factor;
|
||||
|
||||
void __init octeon_setup_delays(void)
|
||||
{
|
||||
octeon_udelay_factor = octeon_get_clock_rate() / 1000000;
|
||||
/*
|
||||
* For __ndelay we divide by 2^16, so the factor is multiplied
|
||||
* by the same amount.
|
||||
*/
|
||||
octeon_ndelay_factor = (octeon_udelay_factor * 0x10000ull) / 1000ull;
|
||||
|
||||
preset_lpj = octeon_get_clock_rate() / HZ;
|
||||
|
||||
if (current_cpu_type() == CPU_CAVIUM_OCTEON2) {
|
||||
union cvmx_mio_rst_boot rst_boot;
|
||||
rst_boot.u64 = cvmx_read_csr(CVMX_MIO_RST_BOOT);
|
||||
rdiv = rst_boot.s.c_mul; /* CPU clock */
|
||||
sdiv = rst_boot.s.pnr_mul; /* I/O clock */
|
||||
f = (0x8000000000000000ull / sdiv) * 2;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the current core's cvmcount counter to the value of the
|
||||
* IPD_CLK_COUNT. We do this on all cores as they are brought
|
||||
@ -30,17 +57,6 @@ void octeon_init_cvmcount(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
unsigned loops = 2;
|
||||
u64 f = 0;
|
||||
u64 rdiv = 0;
|
||||
u64 sdiv = 0;
|
||||
if (current_cpu_type() == CPU_CAVIUM_OCTEON2) {
|
||||
union cvmx_mio_rst_boot rst_boot;
|
||||
rst_boot.u64 = cvmx_read_csr(CVMX_MIO_RST_BOOT);
|
||||
rdiv = rst_boot.s.c_mul; /* CPU clock */
|
||||
sdiv = rst_boot.s.pnr_mul; /* I/O clock */
|
||||
f = (0x8000000000000000ull / sdiv) * 2;
|
||||
}
|
||||
|
||||
|
||||
/* Clobber loops so GCC will not unroll the following while loop. */
|
||||
asm("" : "+r" (loops));
|
||||
@ -57,9 +73,9 @@ void octeon_init_cvmcount(void)
|
||||
if (f != 0) {
|
||||
asm("dmultu\t%[cnt],%[f]\n\t"
|
||||
"mfhi\t%[cnt]"
|
||||
: [cnt] "+r" (ipd_clk_count),
|
||||
[f] "=r" (f)
|
||||
: : "hi", "lo");
|
||||
: [cnt] "+r" (ipd_clk_count)
|
||||
: [f] "r" (f)
|
||||
: "hi", "lo");
|
||||
}
|
||||
}
|
||||
write_c0_cvmcount(ipd_clk_count);
|
||||
@ -109,21 +125,6 @@ void __init plat_time_init(void)
|
||||
clocksource_register_hz(&clocksource_mips, octeon_get_clock_rate());
|
||||
}
|
||||
|
||||
static u64 octeon_udelay_factor;
|
||||
static u64 octeon_ndelay_factor;
|
||||
|
||||
void __init octeon_setup_delays(void)
|
||||
{
|
||||
octeon_udelay_factor = octeon_get_clock_rate() / 1000000;
|
||||
/*
|
||||
* For __ndelay we divide by 2^16, so the factor is multiplied
|
||||
* by the same amount.
|
||||
*/
|
||||
octeon_ndelay_factor = (octeon_udelay_factor * 0x10000ull) / 1000ull;
|
||||
|
||||
preset_lpj = octeon_get_clock_rate() / HZ;
|
||||
}
|
||||
|
||||
void __udelay(unsigned long us)
|
||||
{
|
||||
u64 cur, end, inc;
|
||||
@ -163,3 +164,35 @@ void __delay(unsigned long loops)
|
||||
cur = read_c0_cvmcount();
|
||||
}
|
||||
EXPORT_SYMBOL(__delay);
|
||||
|
||||
|
||||
/**
|
||||
* octeon_io_clk_delay - wait for a given number of io clock cycles to pass.
|
||||
*
|
||||
* We scale the wait by the clock ratio, and then wait for the
|
||||
* corresponding number of core clocks.
|
||||
*
|
||||
* @count: The number of clocks to wait.
|
||||
*/
|
||||
void octeon_io_clk_delay(unsigned long count)
|
||||
{
|
||||
u64 cur, end;
|
||||
|
||||
cur = read_c0_cvmcount();
|
||||
if (rdiv != 0) {
|
||||
end = count * rdiv;
|
||||
if (f != 0) {
|
||||
asm("dmultu\t%[cnt],%[f]\n\t"
|
||||
"mfhi\t%[cnt]"
|
||||
: [cnt] "+r" (end)
|
||||
: [f] "r" (f)
|
||||
: "hi", "lo");
|
||||
}
|
||||
end = cur + end;
|
||||
} else {
|
||||
end = cur + count;
|
||||
}
|
||||
while (end > cur)
|
||||
cur = read_c0_cvmcount();
|
||||
}
|
||||
EXPORT_SYMBOL(octeon_io_clk_delay);
|
||||
|
@ -130,7 +130,7 @@ void __cvmx_interrupt_gmxx_enable(int interface)
|
||||
if (num_ports) {
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN38XX)
|
||||
|| OCTEON_IS_MODEL(OCTEON_CN58XX))
|
||||
gmx_tx_int_en.s.ncb_nxa = 1;
|
||||
gmx_tx_int_en.cn38xx.ncb_nxa = 1;
|
||||
gmx_tx_int_en.s.pko_nxa = 1;
|
||||
}
|
||||
gmx_tx_int_en.s.undflw = (1 << num_ports) - 1;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -548,6 +548,8 @@ void __init prom_init(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
octeon_setup_delays();
|
||||
|
||||
/*
|
||||
* BIST should always be enabled when doing a soft reset. L2
|
||||
* Cache locking for instance is not cleared unless BIST is
|
||||
@ -611,7 +613,6 @@ void __init prom_init(void)
|
||||
mips_hpt_frequency = octeon_get_clock_rate();
|
||||
|
||||
octeon_init_cvmcount();
|
||||
octeon_setup_delays();
|
||||
|
||||
_machine_restart = octeon_restart;
|
||||
_machine_halt = octeon_halt;
|
||||
|
@ -1,64 +0,0 @@
|
||||
CONFIG_MIPS_SIM=y
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_HZ_100=y
|
||||
# CONFIG_SECCOMP is not set
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
# CONFIG_SWAP is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_LOG_BUF_SHIFT=14
|
||||
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
|
||||
CONFIG_EXPERT=y
|
||||
CONFIG_SLAB=y
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
CONFIG_MODVERSIONS=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
# CONFIG_BLK_DEV_BSG is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_ADVANCED_ROUTER=y
|
||||
CONFIG_IP_PNP=y
|
||||
CONFIG_IP_PNP_DHCP=y
|
||||
CONFIG_IP_PNP_BOOTP=y
|
||||
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||
# CONFIG_INET_LRO is not set
|
||||
# CONFIG_IPV6 is not set
|
||||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
||||
# CONFIG_STANDALONE is not set
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
# CONFIG_FW_LOADER is not set
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_NBD=y
|
||||
# CONFIG_MISC_DEVICES is not set
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_NET_ETHERNET=y
|
||||
CONFIG_MIPS_SIM_NET=y
|
||||
# CONFIG_NETDEV_1000 is not set
|
||||
# CONFIG_NETDEV_10000 is not set
|
||||
# CONFIG_INPUT is not set
|
||||
# CONFIG_SERIO is not set
|
||||
# CONFIG_VT is not set
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_SERIAL_8250_NR_UARTS=1
|
||||
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
|
||||
# CONFIG_HW_RANDOM is not set
|
||||
# CONFIG_HWMON is not set
|
||||
# CONFIG_USB_SUPPORT is not set
|
||||
# CONFIG_DNOTIFY is not set
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_ROMFS_FS=y
|
||||
CONFIG_NFS_FS=y
|
||||
CONFIG_NFS_V3=y
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
# CONFIG_SCHED_DEBUG is not set
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_CMDLINE_BOOL=y
|
||||
CONFIG_CMDLINE="nfsroot=192.168.192.169:/u1/mipsel,timeo=20 ip=dhcp"
|
||||
# CONFIG_CRC32 is not set
|
@ -1,14 +1,12 @@
|
||||
CONFIG_NLM_XLP_BOARD=y
|
||||
CONFIG_64BIT=y
|
||||
CONFIG_PAGE_SIZE_16KB=y
|
||||
# CONFIG_HW_PERF_EVENTS is not set
|
||||
CONFIG_KSM=y
|
||||
CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
|
||||
CONFIG_SMP=y
|
||||
CONFIG_NO_HZ=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
# CONFIG_SECCOMP is not set
|
||||
CONFIG_USE_OF=y
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_CROSS_COMPILE=""
|
||||
# CONFIG_LOCALVERSION_AUTO is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_POSIX_MQUEUE=y
|
||||
@ -19,13 +17,13 @@ CONFIG_TASK_DELAY_ACCT=y
|
||||
CONFIG_TASK_XACCT=y
|
||||
CONFIG_TASK_IO_ACCOUNTING=y
|
||||
CONFIG_AUDIT=y
|
||||
CONFIG_NO_HZ=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_CGROUPS=y
|
||||
CONFIG_NAMESPACES=y
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
CONFIG_RD_BZIP2=y
|
||||
CONFIG_RD_LZMA=y
|
||||
CONFIG_INITRAMFS_COMPRESSION_LZMA=y
|
||||
CONFIG_KALLSYMS_ALL=y
|
||||
CONFIG_EMBEDDED=y
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
@ -35,6 +33,29 @@ CONFIG_MODULE_UNLOAD=y
|
||||
CONFIG_MODVERSIONS=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
CONFIG_BLK_DEV_INTEGRITY=y
|
||||
CONFIG_PARTITION_ADVANCED=y
|
||||
CONFIG_ACORN_PARTITION=y
|
||||
CONFIG_ACORN_PARTITION_ICS=y
|
||||
CONFIG_ACORN_PARTITION_RISCIX=y
|
||||
CONFIG_OSF_PARTITION=y
|
||||
CONFIG_AMIGA_PARTITION=y
|
||||
CONFIG_ATARI_PARTITION=y
|
||||
CONFIG_MAC_PARTITION=y
|
||||
CONFIG_BSD_DISKLABEL=y
|
||||
CONFIG_MINIX_SUBPARTITION=y
|
||||
CONFIG_SOLARIS_X86_PARTITION=y
|
||||
CONFIG_UNIXWARE_DISKLABEL=y
|
||||
CONFIG_LDM_PARTITION=y
|
||||
CONFIG_SGI_PARTITION=y
|
||||
CONFIG_ULTRIX_PARTITION=y
|
||||
CONFIG_SUN_PARTITION=y
|
||||
CONFIG_KARMA_PARTITION=y
|
||||
CONFIG_EFI_PARTITION=y
|
||||
CONFIG_SYSV68_PARTITION=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCI_DEBUG=y
|
||||
CONFIG_PCI_REALLOC_ENABLE_AUTO=y
|
||||
CONFIG_PCI_STUB=y
|
||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||
CONFIG_BINFMT_MISC=y
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
@ -169,7 +190,6 @@ CONFIG_IP_NF_MATCH_ECN=m
|
||||
CONFIG_IP_NF_MATCH_TTL=m
|
||||
CONFIG_IP_NF_FILTER=m
|
||||
CONFIG_IP_NF_TARGET_REJECT=m
|
||||
CONFIG_IP_NF_TARGET_LOG=m
|
||||
CONFIG_IP_NF_TARGET_ULOG=m
|
||||
CONFIG_NF_NAT=m
|
||||
CONFIG_IP_NF_TARGET_MASQUERADE=m
|
||||
@ -185,7 +205,6 @@ CONFIG_IP_NF_ARPTABLES=m
|
||||
CONFIG_IP_NF_ARPFILTER=m
|
||||
CONFIG_IP_NF_ARP_MANGLE=m
|
||||
CONFIG_NF_CONNTRACK_IPV6=m
|
||||
CONFIG_IP6_NF_QUEUE=m
|
||||
CONFIG_IP6_NF_IPTABLES=m
|
||||
CONFIG_IP6_NF_MATCH_AH=m
|
||||
CONFIG_IP6_NF_MATCH_EUI64=m
|
||||
@ -196,7 +215,6 @@ CONFIG_IP6_NF_MATCH_IPV6HEADER=m
|
||||
CONFIG_IP6_NF_MATCH_MH=m
|
||||
CONFIG_IP6_NF_MATCH_RT=m
|
||||
CONFIG_IP6_NF_TARGET_HL=m
|
||||
CONFIG_IP6_NF_TARGET_LOG=m
|
||||
CONFIG_IP6_NF_FILTER=m
|
||||
CONFIG_IP6_NF_TARGET_REJECT=m
|
||||
CONFIG_IP6_NF_MANGLE=m
|
||||
@ -247,9 +265,6 @@ CONFIG_IPDDP_ENCAP=y
|
||||
CONFIG_IPDDP_DECAP=y
|
||||
CONFIG_X25=m
|
||||
CONFIG_LAPB=m
|
||||
CONFIG_ECONET=m
|
||||
CONFIG_ECONET_AUNUDP=y
|
||||
CONFIG_ECONET_NATIVE=y
|
||||
CONFIG_WAN_ROUTER=m
|
||||
CONFIG_PHONET=m
|
||||
CONFIG_IEEE802154=m
|
||||
@ -296,11 +311,21 @@ CONFIG_NET_ACT_SIMP=m
|
||||
CONFIG_NET_ACT_SKBEDIT=m
|
||||
CONFIG_DCB=y
|
||||
CONFIG_NET_PKTGEN=m
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
# CONFIG_STANDALONE is not set
|
||||
CONFIG_CONNECTOR=y
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_CMDLINE_PARTS=y
|
||||
CONFIG_MTD_CHAR=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_CFI=y
|
||||
CONFIG_MTD_CFI_ADV_OPTIONS=y
|
||||
CONFIG_MTD_CFI_LE_BYTE_SWAP=y
|
||||
CONFIG_MTD_CFI_GEOMETRY=y
|
||||
CONFIG_MTD_CFI_INTELEXT=y
|
||||
CONFIG_MTD_PHYSMAP=y
|
||||
CONFIG_MTD_PHYSMAP_OF=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_CRYPTOLOOP=m
|
||||
CONFIG_BLK_DEV_NBD=m
|
||||
@ -309,7 +334,6 @@ CONFIG_BLK_DEV_RAM=y
|
||||
CONFIG_BLK_DEV_RAM_SIZE=65536
|
||||
CONFIG_CDROM_PKTCDVD=y
|
||||
CONFIG_RAID_ATTRS=m
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_SCSI_TGT=m
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_CHR_DEV_ST=m
|
||||
@ -336,6 +360,48 @@ CONFIG_SCSI_DH_EMC=m
|
||||
CONFIG_SCSI_DH_ALUA=m
|
||||
CONFIG_SCSI_OSD_INITIATOR=m
|
||||
CONFIG_SCSI_OSD_ULD=m
|
||||
CONFIG_ATA=y
|
||||
CONFIG_SATA_AHCI=y
|
||||
CONFIG_SATA_SIL24=y
|
||||
# CONFIG_ATA_SFF is not set
|
||||
CONFIG_NETDEVICES=y
|
||||
# CONFIG_NET_VENDOR_3COM is not set
|
||||
# CONFIG_NET_VENDOR_ADAPTEC is not set
|
||||
# CONFIG_NET_VENDOR_ALTEON is not set
|
||||
# CONFIG_NET_VENDOR_AMD is not set
|
||||
# CONFIG_NET_VENDOR_ATHEROS is not set
|
||||
# CONFIG_NET_VENDOR_BROADCOM is not set
|
||||
# CONFIG_NET_VENDOR_BROCADE is not set
|
||||
# CONFIG_NET_VENDOR_CHELSIO is not set
|
||||
# CONFIG_NET_VENDOR_DEC is not set
|
||||
# CONFIG_NET_VENDOR_DLINK is not set
|
||||
# CONFIG_NET_VENDOR_EMULEX is not set
|
||||
# CONFIG_NET_VENDOR_EXAR is not set
|
||||
# CONFIG_NET_VENDOR_HP is not set
|
||||
CONFIG_E1000E=y
|
||||
# CONFIG_NET_VENDOR_I825XX is not set
|
||||
CONFIG_SKY2=y
|
||||
# CONFIG_NET_VENDOR_MELLANOX is not set
|
||||
# CONFIG_NET_VENDOR_MICREL is not set
|
||||
# CONFIG_NET_VENDOR_MYRI is not set
|
||||
# CONFIG_NET_VENDOR_NATSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NVIDIA is not set
|
||||
# CONFIG_NET_VENDOR_OKI is not set
|
||||
# CONFIG_NET_PACKET_ENGINE is not set
|
||||
# CONFIG_NET_VENDOR_QLOGIC is not set
|
||||
# CONFIG_NET_VENDOR_REALTEK is not set
|
||||
# CONFIG_NET_VENDOR_RDC is not set
|
||||
# CONFIG_NET_VENDOR_SEEQ is not set
|
||||
# CONFIG_NET_VENDOR_SILAN is not set
|
||||
# CONFIG_NET_VENDOR_SIS is not set
|
||||
# CONFIG_NET_VENDOR_SMSC is not set
|
||||
# CONFIG_NET_VENDOR_STMICRO is not set
|
||||
# CONFIG_NET_VENDOR_SUN is not set
|
||||
# CONFIG_NET_VENDOR_TEHUTI is not set
|
||||
# CONFIG_NET_VENDOR_TI is not set
|
||||
# CONFIG_NET_VENDOR_TOSHIBA is not set
|
||||
# CONFIG_NET_VENDOR_VIA is not set
|
||||
# CONFIG_NET_VENDOR_WIZNET is not set
|
||||
# CONFIG_INPUT_MOUSEDEV is not set
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
CONFIG_INPUT_EVBUG=m
|
||||
@ -359,16 +425,23 @@ CONFIG_SERIAL_8250_EXTENDED=y
|
||||
CONFIG_SERIAL_8250_MANY_PORTS=y
|
||||
CONFIG_SERIAL_8250_SHARE_IRQ=y
|
||||
CONFIG_SERIAL_8250_RSA=y
|
||||
CONFIG_SERIAL_OF_PLATFORM=y
|
||||
CONFIG_HW_RANDOM=y
|
||||
CONFIG_HW_RANDOM_TIMERIOMEM=m
|
||||
CONFIG_RAW_DRIVER=m
|
||||
# CONFIG_HWMON is not set
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_OCORES=y
|
||||
CONFIG_SENSORS_LM90=y
|
||||
CONFIG_THERMAL=y
|
||||
# CONFIG_VGA_CONSOLE is not set
|
||||
# CONFIG_HID_SUPPORT is not set
|
||||
# CONFIG_USB_SUPPORT is not set
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_DS1374=y
|
||||
CONFIG_UIO=y
|
||||
CONFIG_UIO_PDRV=m
|
||||
CONFIG_UIO_PDRV_GENIRQ=m
|
||||
# CONFIG_IOMMU_SUPPORT is not set
|
||||
CONFIG_EXT2_FS=y
|
||||
CONFIG_EXT2_FS_XATTR=y
|
||||
CONFIG_EXT2_FS_POSIX_ACL=y
|
||||
@ -380,15 +453,10 @@ CONFIG_EXT4_FS=y
|
||||
CONFIG_EXT4_FS_POSIX_ACL=y
|
||||
CONFIG_EXT4_FS_SECURITY=y
|
||||
CONFIG_GFS2_FS=m
|
||||
CONFIG_GFS2_FS_LOCKING_DLM=y
|
||||
CONFIG_OCFS2_FS=m
|
||||
CONFIG_BTRFS_FS=m
|
||||
CONFIG_BTRFS_FS_POSIX_ACL=y
|
||||
CONFIG_NILFS2_FS=m
|
||||
CONFIG_QUOTA_NETLINK_INTERFACE=y
|
||||
# CONFIG_PRINT_QUOTA_WARNING is not set
|
||||
CONFIG_QFMT_V1=m
|
||||
CONFIG_QFMT_V2=m
|
||||
CONFIG_AUTOFS4_FS=m
|
||||
CONFIG_FUSE_FS=y
|
||||
CONFIG_CUSE=m
|
||||
@ -414,6 +482,7 @@ CONFIG_HFSPLUS_FS=m
|
||||
CONFIG_BEFS_FS=m
|
||||
CONFIG_BFS_FS=m
|
||||
CONFIG_EFS_FS=m
|
||||
CONFIG_JFFS2_FS=y
|
||||
CONFIG_CRAMFS=m
|
||||
CONFIG_SQUASHFS=m
|
||||
CONFIG_VXFS_FS=m
|
||||
@ -426,7 +495,6 @@ CONFIG_SYSV_FS=m
|
||||
CONFIG_UFS_FS=m
|
||||
CONFIG_EXOFS_FS=m
|
||||
CONFIG_NFS_FS=m
|
||||
CONFIG_NFS_V3=y
|
||||
CONFIG_NFS_V3_ACL=y
|
||||
CONFIG_NFS_V4=y
|
||||
CONFIG_NFS_FSCACHE=y
|
||||
@ -449,25 +517,6 @@ CONFIG_NCPFS_NLS=y
|
||||
CONFIG_NCPFS_EXTRAS=y
|
||||
CONFIG_CODA_FS=m
|
||||
CONFIG_AFS_FS=m
|
||||
CONFIG_PARTITION_ADVANCED=y
|
||||
CONFIG_ACORN_PARTITION=y
|
||||
CONFIG_ACORN_PARTITION_ICS=y
|
||||
CONFIG_ACORN_PARTITION_RISCIX=y
|
||||
CONFIG_OSF_PARTITION=y
|
||||
CONFIG_AMIGA_PARTITION=y
|
||||
CONFIG_ATARI_PARTITION=y
|
||||
CONFIG_MAC_PARTITION=y
|
||||
CONFIG_BSD_DISKLABEL=y
|
||||
CONFIG_MINIX_SUBPARTITION=y
|
||||
CONFIG_SOLARIS_X86_PARTITION=y
|
||||
CONFIG_UNIXWARE_DISKLABEL=y
|
||||
CONFIG_LDM_PARTITION=y
|
||||
CONFIG_SGI_PARTITION=y
|
||||
CONFIG_ULTRIX_PARTITION=y
|
||||
CONFIG_SUN_PARTITION=y
|
||||
CONFIG_KARMA_PARTITION=y
|
||||
CONFIG_EFI_PARTITION=y
|
||||
CONFIG_SYSV68_PARTITION=y
|
||||
CONFIG_NLS=y
|
||||
CONFIG_NLS_DEFAULT="cp437"
|
||||
CONFIG_NLS_CODEPAGE_437=m
|
||||
@ -517,12 +566,10 @@ CONFIG_SCHEDSTATS=y
|
||||
CONFIG_TIMER_STATS=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_MEMORY_INIT=y
|
||||
CONFIG_SYSCTL_SYSCALL_CHECK=y
|
||||
CONFIG_SCHED_TRACER=y
|
||||
CONFIG_BLK_DEV_IO_TRACE=y
|
||||
CONFIG_KGDB=y
|
||||
CONFIG_SECURITY=y
|
||||
CONFIG_SECURITY_NETWORK=y
|
||||
CONFIG_LSM_MMAP_MIN_ADDR=0
|
||||
CONFIG_SECURITY_SELINUX=y
|
||||
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
|
||||
|
124
arch/mips/configs/sead3_defconfig
Normal file
124
arch/mips/configs/sead3_defconfig
Normal file
@ -0,0 +1,124 @@
|
||||
CONFIG_MIPS_SEAD3=y
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_CPU_MIPS32_R2=y
|
||||
CONFIG_HZ_100=y
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_POSIX_MQUEUE=y
|
||||
CONFIG_NO_HZ=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
CONFIG_LOG_BUF_SHIFT=15
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_SLAB=y
|
||||
CONFIG_PROFILING=y
|
||||
CONFIG_OPROFILE=y
|
||||
CONFIG_MODULES=y
|
||||
# CONFIG_BLK_DEV_BSG is not set
|
||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_PNP=y
|
||||
CONFIG_IP_PNP_DHCP=y
|
||||
CONFIG_IP_PNP_BOOTP=y
|
||||
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||
# CONFIG_INET_LRO is not set
|
||||
# CONFIG_INET_DIAG is not set
|
||||
# CONFIG_IPV6 is not set
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_CHAR=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_CFI=y
|
||||
CONFIG_MTD_CFI_INTELEXT=y
|
||||
CONFIG_MTD_PHYSMAP=y
|
||||
CONFIG_MTD_UBI=y
|
||||
CONFIG_MTD_UBI_GLUEBI=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_CRYPTOLOOP=m
|
||||
CONFIG_SCSI=y
|
||||
# CONFIG_SCSI_PROC_FS is not set
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_CHR_DEV_SG=y
|
||||
# CONFIG_SCSI_LOWLEVEL is not set
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_SMSC911X=y
|
||||
# CONFIG_NET_VENDOR_WIZNET is not set
|
||||
CONFIG_MARVELL_PHY=y
|
||||
CONFIG_DAVICOM_PHY=y
|
||||
CONFIG_QSEMI_PHY=y
|
||||
CONFIG_LXT_PHY=y
|
||||
CONFIG_CICADA_PHY=y
|
||||
CONFIG_VITESSE_PHY=y
|
||||
CONFIG_SMSC_PHY=y
|
||||
CONFIG_BROADCOM_PHY=y
|
||||
CONFIG_ICPLUS_PHY=y
|
||||
# CONFIG_WLAN is not set
|
||||
# CONFIG_INPUT_MOUSEDEV is not set
|
||||
# CONFIG_INPUT_KEYBOARD is not set
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
# CONFIG_SERIO is not set
|
||||
# CONFIG_CONSOLE_TRANSLATIONS is not set
|
||||
CONFIG_VT_HW_CONSOLE_BINDING=y
|
||||
CONFIG_LEGACY_PTY_COUNT=32
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_SERIAL_8250_NR_UARTS=2
|
||||
CONFIG_SERIAL_8250_RUNTIME_UARTS=2
|
||||
# CONFIG_HW_RANDOM is not set
|
||||
CONFIG_I2C=y
|
||||
# CONFIG_I2C_COMPAT is not set
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
# CONFIG_I2C_HELPER_AUTO is not set
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SENSORS_ADT7475=y
|
||||
CONFIG_BACKLIGHT_LCD_SUPPORT=y
|
||||
CONFIG_LCD_CLASS_DEVICE=y
|
||||
CONFIG_BACKLIGHT_CLASS_DEVICE=y
|
||||
# CONFIG_VGA_CONSOLE is not set
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_ROOT_HUB_TT=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_MMC=y
|
||||
CONFIG_MMC_DEBUG=y
|
||||
CONFIG_MMC_SPI=y
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_M41T80=y
|
||||
CONFIG_EXT3_FS=y
|
||||
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
|
||||
CONFIG_XFS_FS=y
|
||||
CONFIG_XFS_QUOTA=y
|
||||
CONFIG_XFS_POSIX_ACL=y
|
||||
CONFIG_QUOTA=y
|
||||
# CONFIG_PRINT_QUOTA_WARNING is not set
|
||||
CONFIG_MSDOS_FS=m
|
||||
CONFIG_VFAT_FS=m
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_JFFS2_FS=y
|
||||
CONFIG_NFS_FS=y
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_ASCII=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_NLS_ISO8859_15=y
|
||||
CONFIG_NLS_UTF8=y
|
||||
# CONFIG_FTRACE is not set
|
||||
CONFIG_CRYPTO=y
|
||||
CONFIG_CRYPTO_CBC=y
|
||||
CONFIG_CRYPTO_ECB=y
|
||||
CONFIG_CRYPTO_AES=y
|
||||
CONFIG_CRYPTO_ARC4=y
|
||||
# CONFIG_CRYPTO_ANSI_CPRNG is not set
|
||||
# CONFIG_CRYPTO_HW is not set
|
@ -95,8 +95,8 @@
|
||||
#ifndef cpu_has_smartmips
|
||||
#define cpu_has_smartmips (cpu_data[0].ases & MIPS_ASE_SMARTMIPS)
|
||||
#endif
|
||||
#ifndef kernel_uses_smartmips_rixi
|
||||
#define kernel_uses_smartmips_rixi 0
|
||||
#ifndef cpu_has_rixi
|
||||
#define cpu_has_rixi (cpu_data[0].options & MIPS_CPU_RIXI)
|
||||
#endif
|
||||
#ifndef cpu_has_vtag_icache
|
||||
#define cpu_has_vtag_icache (cpu_data[0].icache.flags & MIPS_CACHE_VTAG)
|
||||
|
@ -94,6 +94,7 @@
|
||||
#define PRID_IMP_24KE 0x9600
|
||||
#define PRID_IMP_74K 0x9700
|
||||
#define PRID_IMP_1004K 0x9900
|
||||
#define PRID_IMP_1074K 0x9a00
|
||||
#define PRID_IMP_M14KC 0x9c00
|
||||
|
||||
/*
|
||||
@ -319,6 +320,7 @@ enum cpu_type_enum {
|
||||
#define MIPS_CPU_VINT 0x00080000 /* CPU supports MIPSR2 vectored interrupts */
|
||||
#define MIPS_CPU_VEIC 0x00100000 /* CPU supports MIPSR2 external interrupt controller mode */
|
||||
#define MIPS_CPU_ULRI 0x00200000 /* CPU has ULRI feature */
|
||||
#define MIPS_CPU_RIXI 0x00400000 /* CPU has TLB Read/eXec Inhibit */
|
||||
|
||||
/*
|
||||
* CPU ASE encodings
|
||||
|
@ -33,13 +33,13 @@
|
||||
REG32(_gic_base + segment##_##SECTION_OFS + offset)
|
||||
|
||||
#define GIC_ABS_REG(segment, offset) \
|
||||
(_gic_base + segment##_##SECTION_OFS + offset##_##OFS)
|
||||
(_gic_base + segment##_##SECTION_OFS + offset##_##OFS)
|
||||
#define GIC_REG_ABS_ADDR(segment, offset) \
|
||||
(_gic_base + segment##_##SECTION_OFS + offset)
|
||||
(_gic_base + segment##_##SECTION_OFS + offset)
|
||||
|
||||
#ifdef GICISBYTELITTLEENDIAN
|
||||
#define GICREAD(reg, data) (data) = (reg), (data) = le32_to_cpu(data)
|
||||
#define GICWRITE(reg, data) (reg) = cpu_to_le32(data)
|
||||
#define GICREAD(reg, data) ((data) = (reg), (data) = le32_to_cpu(data))
|
||||
#define GICWRITE(reg, data) ((reg) = cpu_to_le32(data))
|
||||
#define GICBIS(reg, bits) \
|
||||
({unsigned int data; \
|
||||
GICREAD(reg, data); \
|
||||
@ -48,9 +48,9 @@
|
||||
})
|
||||
|
||||
#else
|
||||
#define GICREAD(reg, data) (data) = (reg)
|
||||
#define GICWRITE(reg, data) (reg) = (data)
|
||||
#define GICBIS(reg, bits) (reg) |= (bits)
|
||||
#define GICREAD(reg, data) ((data) = (reg))
|
||||
#define GICWRITE(reg, data) ((reg) = (data))
|
||||
#define GICBIS(reg, bits) ((reg) |= (bits))
|
||||
#endif
|
||||
|
||||
|
||||
@ -304,15 +304,15 @@
|
||||
GIC_SH_MAP_TO_VPE_REG_BIT(vpe))
|
||||
|
||||
struct gic_pcpu_mask {
|
||||
DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS);
|
||||
DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS);
|
||||
};
|
||||
|
||||
struct gic_pending_regs {
|
||||
DECLARE_BITMAP(pending, GIC_NUM_INTRS);
|
||||
DECLARE_BITMAP(pending, GIC_NUM_INTRS);
|
||||
};
|
||||
|
||||
struct gic_intrmask_regs {
|
||||
DECLARE_BITMAP(intrmask, GIC_NUM_INTRS);
|
||||
DECLARE_BITMAP(intrmask, GIC_NUM_INTRS);
|
||||
};
|
||||
|
||||
/*
|
||||
@ -341,15 +341,44 @@ struct gic_shared_intr_map {
|
||||
unsigned int local_intr_mask;
|
||||
};
|
||||
|
||||
/* GIC nomenclature for Core Interrupt Pins. */
|
||||
#define GIC_CPU_INT0 0 /* Core Interrupt 2 */
|
||||
#define GIC_CPU_INT1 1 /* . */
|
||||
#define GIC_CPU_INT2 2 /* . */
|
||||
#define GIC_CPU_INT3 3 /* . */
|
||||
#define GIC_CPU_INT4 4 /* . */
|
||||
#define GIC_CPU_INT5 5 /* Core Interrupt 5 */
|
||||
|
||||
/* Local GIC interrupts. */
|
||||
#define GIC_INT_TMR (GIC_CPU_INT5)
|
||||
#define GIC_INT_PERFCTR (GIC_CPU_INT5)
|
||||
|
||||
/* Add 2 to convert non-EIC hardware interrupt to EIC vector number. */
|
||||
#define GIC_CPU_TO_VEC_OFFSET (2)
|
||||
|
||||
/* Mapped interrupt to pin X, then GIC will generate the vector (X+1). */
|
||||
#define GIC_PIN_TO_VEC_OFFSET (1)
|
||||
|
||||
extern unsigned long _gic_base;
|
||||
extern unsigned int gic_irq_base;
|
||||
extern unsigned int gic_irq_flags[];
|
||||
extern struct gic_shared_intr_map gic_shared_intr_map[];
|
||||
|
||||
extern void gic_init(unsigned long gic_base_addr,
|
||||
unsigned long gic_addrspace_size, struct gic_intr_map *intrmap,
|
||||
unsigned int intrmap_size, unsigned int irqbase);
|
||||
|
||||
extern void gic_clocksource_init(unsigned int);
|
||||
extern unsigned int gic_get_int(void);
|
||||
extern void gic_send_ipi(unsigned int intr);
|
||||
extern unsigned int plat_ipi_call_int_xlate(unsigned int);
|
||||
extern unsigned int plat_ipi_resched_int_xlate(unsigned int);
|
||||
extern void gic_bind_eic_interrupt(int irq, int set);
|
||||
extern unsigned int gic_get_timer_pending(void);
|
||||
extern void gic_enable_interrupt(int irq_vec);
|
||||
extern void gic_disable_interrupt(int irq_vec);
|
||||
extern void gic_irq_ack(struct irq_data *d);
|
||||
extern void gic_finish_irq(struct irq_data *d);
|
||||
extern void gic_platform_init(int irqs, struct irq_chip *irq_controller);
|
||||
|
||||
#endif /* _ASM_GICREGS_H */
|
||||
|
@ -63,6 +63,10 @@
|
||||
|
||||
#define AR934X_WMAC_BASE (AR71XX_APB_BASE + 0x00100000)
|
||||
#define AR934X_WMAC_SIZE 0x20000
|
||||
#define AR934X_EHCI_BASE 0x1b000000
|
||||
#define AR934X_EHCI_SIZE 0x200
|
||||
#define AR934X_SRIF_BASE (AR71XX_APB_BASE + 0x00116000)
|
||||
#define AR934X_SRIF_SIZE 0x1000
|
||||
|
||||
/*
|
||||
* DDR_CTRL block
|
||||
@ -288,6 +292,11 @@
|
||||
#define AR933X_RESET_USB_PHY BIT(4)
|
||||
#define AR933X_RESET_USBSUS_OVERRIDE BIT(3)
|
||||
|
||||
#define AR934X_RESET_USB_PHY_ANALOG BIT(11)
|
||||
#define AR934X_RESET_USB_HOST BIT(5)
|
||||
#define AR934X_RESET_USB_PHY BIT(4)
|
||||
#define AR934X_RESET_USBSUS_OVERRIDE BIT(3)
|
||||
|
||||
#define AR933X_BOOTSTRAP_REF_CLK_40 BIT(0)
|
||||
|
||||
#define AR934X_BOOTSTRAP_SW_OPTION8 BIT(23)
|
||||
@ -399,4 +408,25 @@
|
||||
#define AR933X_GPIO_COUNT 30
|
||||
#define AR934X_GPIO_COUNT 23
|
||||
|
||||
/*
|
||||
* SRIF block
|
||||
*/
|
||||
#define AR934X_SRIF_CPU_DPLL1_REG 0x1c0
|
||||
#define AR934X_SRIF_CPU_DPLL2_REG 0x1c4
|
||||
#define AR934X_SRIF_CPU_DPLL3_REG 0x1c8
|
||||
|
||||
#define AR934X_SRIF_DDR_DPLL1_REG 0x240
|
||||
#define AR934X_SRIF_DDR_DPLL2_REG 0x244
|
||||
#define AR934X_SRIF_DDR_DPLL3_REG 0x248
|
||||
|
||||
#define AR934X_SRIF_DPLL1_REFDIV_SHIFT 27
|
||||
#define AR934X_SRIF_DPLL1_REFDIV_MASK 0x1f
|
||||
#define AR934X_SRIF_DPLL1_NINT_SHIFT 18
|
||||
#define AR934X_SRIF_DPLL1_NINT_MASK 0x1ff
|
||||
#define AR934X_SRIF_DPLL1_NFRAC_MASK 0x0003ffff
|
||||
|
||||
#define AR934X_SRIF_DPLL2_LOCAL_PLL BIT(30)
|
||||
#define AR934X_SRIF_DPLL2_OUTDIV_SHIFT 13
|
||||
#define AR934X_SRIF_DPLL2_OUTDIV_MASK 0x7
|
||||
|
||||
#endif /* __ASM_MACH_AR71XX_REGS_H */
|
||||
|
@ -120,6 +120,8 @@ enum bcm63xx_regs_set {
|
||||
RSET_OHCI0,
|
||||
RSET_OHCI_PRIV,
|
||||
RSET_USBH_PRIV,
|
||||
RSET_USBD,
|
||||
RSET_USBDMA,
|
||||
RSET_MPI,
|
||||
RSET_PCMCIA,
|
||||
RSET_PCIE,
|
||||
@ -162,6 +164,8 @@ enum bcm63xx_regs_set {
|
||||
#define RSET_UDC_SIZE 256
|
||||
#define RSET_OHCI_SIZE 256
|
||||
#define RSET_EHCI_SIZE 256
|
||||
#define RSET_USBD_SIZE 256
|
||||
#define RSET_USBDMA_SIZE 1280
|
||||
#define RSET_PCMCIA_SIZE 12
|
||||
#define RSET_M2M_SIZE 256
|
||||
#define RSET_ATM_SIZE 4096
|
||||
@ -183,10 +187,11 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6328_GPIO_BASE (0xb0000080)
|
||||
#define BCM_6328_SPI_BASE (0xdeadbeef)
|
||||
#define BCM_6328_UDC0_BASE (0xdeadbeef)
|
||||
#define BCM_6328_USBDMA_BASE (0xdeadbeef)
|
||||
#define BCM_6328_OHCI0_BASE (0xdeadbeef)
|
||||
#define BCM_6328_USBDMA_BASE (0xb000c000)
|
||||
#define BCM_6328_OHCI0_BASE (0xb0002600)
|
||||
#define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6328_USBH_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6328_USBH_PRIV_BASE (0xb0002700)
|
||||
#define BCM_6328_USBD_BASE (0xb0002400)
|
||||
#define BCM_6328_MPI_BASE (0xdeadbeef)
|
||||
#define BCM_6328_PCMCIA_BASE (0xdeadbeef)
|
||||
#define BCM_6328_PCIE_BASE (0xb0e40000)
|
||||
@ -199,7 +204,7 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6328_ENETDMAC_BASE (0xb000da00)
|
||||
#define BCM_6328_ENETDMAS_BASE (0xb000dc00)
|
||||
#define BCM_6328_ENETSW_BASE (0xb0e00000)
|
||||
#define BCM_6328_EHCI0_BASE (0x10002500)
|
||||
#define BCM_6328_EHCI0_BASE (0xb0002500)
|
||||
#define BCM_6328_SDRAM_BASE (0xdeadbeef)
|
||||
#define BCM_6328_MEMC_BASE (0xdeadbeef)
|
||||
#define BCM_6328_DDR_BASE (0xb0003000)
|
||||
@ -232,6 +237,7 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6338_OHCI0_BASE (0xdeadbeef)
|
||||
#define BCM_6338_OHCI_PRIV_BASE (0xfffe3000)
|
||||
#define BCM_6338_USBH_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6338_USBD_BASE (0xdeadbeef)
|
||||
#define BCM_6338_MPI_BASE (0xfffe3160)
|
||||
#define BCM_6338_PCMCIA_BASE (0xdeadbeef)
|
||||
#define BCM_6338_PCIE_BASE (0xdeadbeef)
|
||||
@ -286,6 +292,7 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6345_OHCI0_BASE (0xfffe2100)
|
||||
#define BCM_6345_OHCI_PRIV_BASE (0xfffe2200)
|
||||
#define BCM_6345_USBH_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6345_USBD_BASE (0xdeadbeef)
|
||||
#define BCM_6345_SDRAM_REGS_BASE (0xfffe2300)
|
||||
#define BCM_6345_DSL_BASE (0xdeadbeef)
|
||||
#define BCM_6345_UBUS_BASE (0xdeadbeef)
|
||||
@ -319,9 +326,11 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6348_GPIO_BASE (0xfffe0400)
|
||||
#define BCM_6348_SPI_BASE (0xfffe0c00)
|
||||
#define BCM_6348_UDC0_BASE (0xfffe1000)
|
||||
#define BCM_6348_USBDMA_BASE (0xdeadbeef)
|
||||
#define BCM_6348_OHCI0_BASE (0xfffe1b00)
|
||||
#define BCM_6348_OHCI_PRIV_BASE (0xfffe1c00)
|
||||
#define BCM_6348_USBH_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6348_USBD_BASE (0xdeadbeef)
|
||||
#define BCM_6348_MPI_BASE (0xfffe2000)
|
||||
#define BCM_6348_PCMCIA_BASE (0xfffe2054)
|
||||
#define BCM_6348_PCIE_BASE (0xdeadbeef)
|
||||
@ -362,9 +371,11 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6358_GPIO_BASE (0xfffe0080)
|
||||
#define BCM_6358_SPI_BASE (0xfffe0800)
|
||||
#define BCM_6358_UDC0_BASE (0xfffe0800)
|
||||
#define BCM_6358_USBDMA_BASE (0xdeadbeef)
|
||||
#define BCM_6358_OHCI0_BASE (0xfffe1400)
|
||||
#define BCM_6358_OHCI_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6358_USBH_PRIV_BASE (0xfffe1500)
|
||||
#define BCM_6358_USBD_BASE (0xdeadbeef)
|
||||
#define BCM_6358_MPI_BASE (0xfffe1000)
|
||||
#define BCM_6358_PCMCIA_BASE (0xfffe1054)
|
||||
#define BCM_6358_PCIE_BASE (0xdeadbeef)
|
||||
@ -406,9 +417,11 @@ enum bcm63xx_regs_set {
|
||||
#define BCM_6368_GPIO_BASE (0xb0000080)
|
||||
#define BCM_6368_SPI_BASE (0xb0000800)
|
||||
#define BCM_6368_UDC0_BASE (0xdeadbeef)
|
||||
#define BCM_6368_USBDMA_BASE (0xb0004800)
|
||||
#define BCM_6368_OHCI0_BASE (0xb0001600)
|
||||
#define BCM_6368_OHCI_PRIV_BASE (0xdeadbeef)
|
||||
#define BCM_6368_USBH_PRIV_BASE (0xb0001700)
|
||||
#define BCM_6368_USBD_BASE (0xb0001400)
|
||||
#define BCM_6368_MPI_BASE (0xb0001000)
|
||||
#define BCM_6368_PCMCIA_BASE (0xb0001054)
|
||||
#define BCM_6368_PCIE_BASE (0xdeadbeef)
|
||||
@ -458,6 +471,8 @@ extern const unsigned long *bcm63xx_regs_base;
|
||||
__GEN_RSET_BASE(__cpu, OHCI0) \
|
||||
__GEN_RSET_BASE(__cpu, OHCI_PRIV) \
|
||||
__GEN_RSET_BASE(__cpu, USBH_PRIV) \
|
||||
__GEN_RSET_BASE(__cpu, USBD) \
|
||||
__GEN_RSET_BASE(__cpu, USBDMA) \
|
||||
__GEN_RSET_BASE(__cpu, MPI) \
|
||||
__GEN_RSET_BASE(__cpu, PCMCIA) \
|
||||
__GEN_RSET_BASE(__cpu, PCIE) \
|
||||
@ -499,6 +514,8 @@ extern const unsigned long *bcm63xx_regs_base;
|
||||
[RSET_OHCI0] = BCM_## __cpu ##_OHCI0_BASE, \
|
||||
[RSET_OHCI_PRIV] = BCM_## __cpu ##_OHCI_PRIV_BASE, \
|
||||
[RSET_USBH_PRIV] = BCM_## __cpu ##_USBH_PRIV_BASE, \
|
||||
[RSET_USBD] = BCM_## __cpu ##_USBD_BASE, \
|
||||
[RSET_USBDMA] = BCM_## __cpu ##_USBDMA_BASE, \
|
||||
[RSET_MPI] = BCM_## __cpu ##_MPI_BASE, \
|
||||
[RSET_PCMCIA] = BCM_## __cpu ##_PCMCIA_BASE, \
|
||||
[RSET_PCIE] = BCM_## __cpu ##_PCIE_BASE, \
|
||||
@ -569,6 +586,13 @@ enum bcm63xx_irq {
|
||||
IRQ_ENET_PHY,
|
||||
IRQ_OHCI0,
|
||||
IRQ_EHCI0,
|
||||
IRQ_USBD,
|
||||
IRQ_USBD_RXDMA0,
|
||||
IRQ_USBD_TXDMA0,
|
||||
IRQ_USBD_RXDMA1,
|
||||
IRQ_USBD_TXDMA1,
|
||||
IRQ_USBD_RXDMA2,
|
||||
IRQ_USBD_TXDMA2,
|
||||
IRQ_ENET0_RXDMA,
|
||||
IRQ_ENET0_TXDMA,
|
||||
IRQ_ENET1_RXDMA,
|
||||
@ -602,8 +626,15 @@ enum bcm63xx_irq {
|
||||
#define BCM_6328_ENET0_IRQ 0
|
||||
#define BCM_6328_ENET1_IRQ 0
|
||||
#define BCM_6328_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12)
|
||||
#define BCM_6328_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9)
|
||||
#define BCM_6328_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
|
||||
#define BCM_6328_OHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 9)
|
||||
#define BCM_6328_EHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 10)
|
||||
#define BCM_6328_USBD_IRQ (IRQ_INTERNAL_BASE + 4)
|
||||
#define BCM_6328_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 5)
|
||||
#define BCM_6328_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 6)
|
||||
#define BCM_6328_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 7)
|
||||
#define BCM_6328_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 8)
|
||||
#define BCM_6328_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 9)
|
||||
#define BCM_6328_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 10)
|
||||
#define BCM_6328_PCMCIA_IRQ 0
|
||||
#define BCM_6328_ENET0_RXDMA_IRQ 0
|
||||
#define BCM_6328_ENET0_TXDMA_IRQ 0
|
||||
@ -615,10 +646,10 @@ enum bcm63xx_irq {
|
||||
#define BCM_6328_ENETSW_RXDMA1_IRQ (BCM_6328_HIGH_IRQ_BASE + 1)
|
||||
#define BCM_6328_ENETSW_RXDMA2_IRQ (BCM_6328_HIGH_IRQ_BASE + 2)
|
||||
#define BCM_6328_ENETSW_RXDMA3_IRQ (BCM_6328_HIGH_IRQ_BASE + 3)
|
||||
#define BCM_6328_ENETSW_TXDMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 4)
|
||||
#define BCM_6328_ENETSW_TXDMA1_IRQ (BCM_6328_HIGH_IRQ_BASE + 5)
|
||||
#define BCM_6328_ENETSW_TXDMA2_IRQ (BCM_6328_HIGH_IRQ_BASE + 6)
|
||||
#define BCM_6328_ENETSW_TXDMA3_IRQ (BCM_6328_HIGH_IRQ_BASE + 7)
|
||||
#define BCM_6328_ENETSW_TXDMA0_IRQ 0
|
||||
#define BCM_6328_ENETSW_TXDMA1_IRQ 0
|
||||
#define BCM_6328_ENETSW_TXDMA2_IRQ 0
|
||||
#define BCM_6328_ENETSW_TXDMA3_IRQ 0
|
||||
#define BCM_6328_XTM_IRQ (BCM_6328_HIGH_IRQ_BASE + 31)
|
||||
#define BCM_6328_XTM_DMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 11)
|
||||
|
||||
@ -642,6 +673,13 @@ enum bcm63xx_irq {
|
||||
#define BCM_6338_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
||||
#define BCM_6338_OHCI0_IRQ 0
|
||||
#define BCM_6338_EHCI0_IRQ 0
|
||||
#define BCM_6338_USBD_IRQ 0
|
||||
#define BCM_6338_USBD_RXDMA0_IRQ 0
|
||||
#define BCM_6338_USBD_TXDMA0_IRQ 0
|
||||
#define BCM_6338_USBD_RXDMA1_IRQ 0
|
||||
#define BCM_6338_USBD_TXDMA1_IRQ 0
|
||||
#define BCM_6338_USBD_RXDMA2_IRQ 0
|
||||
#define BCM_6338_USBD_TXDMA2_IRQ 0
|
||||
#define BCM_6338_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
|
||||
#define BCM_6338_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
|
||||
#define BCM_6338_ENET1_RXDMA_IRQ 0
|
||||
@ -673,6 +711,13 @@ enum bcm63xx_irq {
|
||||
#define BCM_6345_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12)
|
||||
#define BCM_6345_OHCI0_IRQ 0
|
||||
#define BCM_6345_EHCI0_IRQ 0
|
||||
#define BCM_6345_USBD_IRQ 0
|
||||
#define BCM_6345_USBD_RXDMA0_IRQ 0
|
||||
#define BCM_6345_USBD_TXDMA0_IRQ 0
|
||||
#define BCM_6345_USBD_RXDMA1_IRQ 0
|
||||
#define BCM_6345_USBD_TXDMA1_IRQ 0
|
||||
#define BCM_6345_USBD_RXDMA2_IRQ 0
|
||||
#define BCM_6345_USBD_TXDMA2_IRQ 0
|
||||
#define BCM_6345_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 1)
|
||||
#define BCM_6345_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 2)
|
||||
#define BCM_6345_ENET1_RXDMA_IRQ 0
|
||||
@ -704,6 +749,13 @@ enum bcm63xx_irq {
|
||||
#define BCM_6348_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
||||
#define BCM_6348_OHCI0_IRQ (IRQ_INTERNAL_BASE + 12)
|
||||
#define BCM_6348_EHCI0_IRQ 0
|
||||
#define BCM_6348_USBD_IRQ 0
|
||||
#define BCM_6348_USBD_RXDMA0_IRQ 0
|
||||
#define BCM_6348_USBD_TXDMA0_IRQ 0
|
||||
#define BCM_6348_USBD_RXDMA1_IRQ 0
|
||||
#define BCM_6348_USBD_TXDMA1_IRQ 0
|
||||
#define BCM_6348_USBD_RXDMA2_IRQ 0
|
||||
#define BCM_6348_USBD_TXDMA2_IRQ 0
|
||||
#define BCM_6348_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 20)
|
||||
#define BCM_6348_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 21)
|
||||
#define BCM_6348_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 22)
|
||||
@ -735,6 +787,13 @@ enum bcm63xx_irq {
|
||||
#define BCM_6358_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
||||
#define BCM_6358_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5)
|
||||
#define BCM_6358_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
|
||||
#define BCM_6358_USBD_IRQ 0
|
||||
#define BCM_6358_USBD_RXDMA0_IRQ 0
|
||||
#define BCM_6358_USBD_TXDMA0_IRQ 0
|
||||
#define BCM_6358_USBD_RXDMA1_IRQ 0
|
||||
#define BCM_6358_USBD_TXDMA1_IRQ 0
|
||||
#define BCM_6358_USBD_RXDMA2_IRQ 0
|
||||
#define BCM_6358_USBD_TXDMA2_IRQ 0
|
||||
#define BCM_6358_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
|
||||
#define BCM_6358_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
|
||||
#define BCM_6358_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17)
|
||||
@ -775,6 +834,13 @@ enum bcm63xx_irq {
|
||||
#define BCM_6368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 15)
|
||||
#define BCM_6368_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5)
|
||||
#define BCM_6368_EHCI0_IRQ (IRQ_INTERNAL_BASE + 7)
|
||||
#define BCM_6368_USBD_IRQ (IRQ_INTERNAL_BASE + 8)
|
||||
#define BCM_6368_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 26)
|
||||
#define BCM_6368_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 27)
|
||||
#define BCM_6368_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 28)
|
||||
#define BCM_6368_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 29)
|
||||
#define BCM_6368_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 30)
|
||||
#define BCM_6368_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 31)
|
||||
#define BCM_6368_PCMCIA_IRQ 0
|
||||
#define BCM_6368_ENET0_RXDMA_IRQ 0
|
||||
#define BCM_6368_ENET0_TXDMA_IRQ 0
|
||||
@ -815,6 +881,13 @@ extern const int *bcm63xx_irqs;
|
||||
[IRQ_ENET_PHY] = BCM_## __cpu ##_ENET_PHY_IRQ, \
|
||||
[IRQ_OHCI0] = BCM_## __cpu ##_OHCI0_IRQ, \
|
||||
[IRQ_EHCI0] = BCM_## __cpu ##_EHCI0_IRQ, \
|
||||
[IRQ_USBD] = BCM_## __cpu ##_USBD_IRQ, \
|
||||
[IRQ_USBD_RXDMA0] = BCM_## __cpu ##_USBD_RXDMA0_IRQ, \
|
||||
[IRQ_USBD_TXDMA0] = BCM_## __cpu ##_USBD_TXDMA0_IRQ, \
|
||||
[IRQ_USBD_RXDMA1] = BCM_## __cpu ##_USBD_RXDMA1_IRQ, \
|
||||
[IRQ_USBD_TXDMA1] = BCM_## __cpu ##_USBD_TXDMA1_IRQ, \
|
||||
[IRQ_USBD_RXDMA2] = BCM_## __cpu ##_USBD_RXDMA2_IRQ, \
|
||||
[IRQ_USBD_TXDMA2] = BCM_## __cpu ##_USBD_TXDMA2_IRQ, \
|
||||
[IRQ_ENET0_RXDMA] = BCM_## __cpu ##_ENET0_RXDMA_IRQ, \
|
||||
[IRQ_ENET0_TXDMA] = BCM_## __cpu ##_ENET0_TXDMA_IRQ, \
|
||||
[IRQ_ENET1_RXDMA] = BCM_## __cpu ##_ENET1_RXDMA_IRQ, \
|
||||
|
17
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_usb_usbd.h
Normal file
17
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_usb_usbd.h
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef BCM63XX_DEV_USB_USBD_H_
|
||||
#define BCM63XX_DEV_USB_USBD_H_
|
||||
|
||||
/*
|
||||
* usb device platform data
|
||||
*/
|
||||
struct bcm63xx_usbd_platform_data {
|
||||
/* board can only support full speed (USB 1.1) */
|
||||
int use_fullspeed;
|
||||
|
||||
/* 0-based port index, for chips with >1 USB PHY */
|
||||
int port_no;
|
||||
};
|
||||
|
||||
int bcm63xx_usbd_register(const struct bcm63xx_usbd_platform_data *pd);
|
||||
|
||||
#endif /* BCM63XX_DEV_USB_USBD_H_ */
|
38
arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
Normal file
38
arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
Normal file
@ -0,0 +1,38 @@
|
||||
#ifndef BCM63XX_IUDMA_H_
|
||||
#define BCM63XX_IUDMA_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/*
|
||||
* rx/tx dma descriptor
|
||||
*/
|
||||
struct bcm_enet_desc {
|
||||
u32 len_stat;
|
||||
u32 address;
|
||||
};
|
||||
|
||||
/* control */
|
||||
#define DMADESC_LENGTH_SHIFT 16
|
||||
#define DMADESC_LENGTH_MASK (0xfff << DMADESC_LENGTH_SHIFT)
|
||||
#define DMADESC_OWNER_MASK (1 << 15)
|
||||
#define DMADESC_EOP_MASK (1 << 14)
|
||||
#define DMADESC_SOP_MASK (1 << 13)
|
||||
#define DMADESC_ESOP_MASK (DMADESC_EOP_MASK | DMADESC_SOP_MASK)
|
||||
#define DMADESC_WRAP_MASK (1 << 12)
|
||||
#define DMADESC_USB_NOZERO_MASK (1 << 1)
|
||||
#define DMADESC_USB_ZERO_MASK (1 << 0)
|
||||
|
||||
/* status */
|
||||
#define DMADESC_UNDER_MASK (1 << 9)
|
||||
#define DMADESC_APPEND_CRC (1 << 8)
|
||||
#define DMADESC_OVSIZE_MASK (1 << 4)
|
||||
#define DMADESC_RXER_MASK (1 << 2)
|
||||
#define DMADESC_CRC_MASK (1 << 1)
|
||||
#define DMADESC_OV_MASK (1 << 0)
|
||||
#define DMADESC_ERR_MASK (DMADESC_UNDER_MASK | \
|
||||
DMADESC_OVSIZE_MASK | \
|
||||
DMADESC_RXER_MASK | \
|
||||
DMADESC_CRC_MASK | \
|
||||
DMADESC_OV_MASK)
|
||||
|
||||
#endif /* ! BCM63XX_IUDMA_H_ */
|
@ -161,6 +161,7 @@
|
||||
/* External Interrupt Configuration register */
|
||||
#define PERF_EXTIRQ_CFG_REG_6328 0x18
|
||||
#define PERF_EXTIRQ_CFG_REG_6338 0x14
|
||||
#define PERF_EXTIRQ_CFG_REG_6345 0x14
|
||||
#define PERF_EXTIRQ_CFG_REG_6348 0x14
|
||||
#define PERF_EXTIRQ_CFG_REG_6358 0x14
|
||||
#define PERF_EXTIRQ_CFG_REG_6368 0x18
|
||||
@ -543,6 +544,12 @@
|
||||
#define GPIO_MODE_6368_SPI_SSN5 (1 << 31)
|
||||
|
||||
|
||||
#define GPIO_PINMUX_OTHR_REG 0x24
|
||||
#define GPIO_PINMUX_OTHR_6328_USB_SHIFT 12
|
||||
#define GPIO_PINMUX_OTHR_6328_USB_MASK (3 << GPIO_PINMUX_OTHR_6328_USB_SHIFT)
|
||||
#define GPIO_PINMUX_OTHR_6328_USB_HOST (1 << GPIO_PINMUX_OTHR_6328_USB_SHIFT)
|
||||
#define GPIO_PINMUX_OTHR_6328_USB_DEV (2 << GPIO_PINMUX_OTHR_6328_USB_SHIFT)
|
||||
|
||||
#define GPIO_BASEMODE_6368_REG 0x38
|
||||
#define GPIO_BASEMODE_6368_UART2 0x1
|
||||
#define GPIO_BASEMODE_6368_GPIO 0x0
|
||||
@ -670,6 +677,12 @@
|
||||
#define ENETDMA_BUFALLOC_FORCE_SHIFT 31
|
||||
#define ENETDMA_BUFALLOC_FORCE_MASK (1 << ENETDMA_BUFALLOC_FORCE_SHIFT)
|
||||
|
||||
/* Global interrupt status */
|
||||
#define ENETDMA_GLB_IRQSTAT_REG (0x40)
|
||||
|
||||
/* Global interrupt mask */
|
||||
#define ENETDMA_GLB_IRQMASK_REG (0x44)
|
||||
|
||||
/* Channel Configuration register */
|
||||
#define ENETDMA_CHANCFG_REG(x) (0x100 + (x) * 0x10)
|
||||
#define ENETDMA_CHANCFG_EN_SHIFT 0
|
||||
@ -709,9 +722,11 @@
|
||||
/* Channel Configuration register */
|
||||
#define ENETDMAC_CHANCFG_REG(x) ((x) * 0x10)
|
||||
#define ENETDMAC_CHANCFG_EN_SHIFT 0
|
||||
#define ENETDMAC_CHANCFG_EN_MASK (1 << ENETDMA_CHANCFG_EN_SHIFT)
|
||||
#define ENETDMAC_CHANCFG_EN_MASK (1 << ENETDMAC_CHANCFG_EN_SHIFT)
|
||||
#define ENETDMAC_CHANCFG_PKTHALT_SHIFT 1
|
||||
#define ENETDMAC_CHANCFG_PKTHALT_MASK (1 << ENETDMA_CHANCFG_PKTHALT_SHIFT)
|
||||
#define ENETDMAC_CHANCFG_PKTHALT_MASK (1 << ENETDMAC_CHANCFG_PKTHALT_SHIFT)
|
||||
#define ENETDMAC_CHANCFG_BUFHALT_SHIFT 2
|
||||
#define ENETDMAC_CHANCFG_BUFHALT_MASK (1 << ENETDMAC_CHANCFG_BUFHALT_SHIFT)
|
||||
|
||||
/* Interrupt Control/Status register */
|
||||
#define ENETDMAC_IR_REG(x) (0x4 + (x) * 0x10)
|
||||
@ -770,6 +785,8 @@
|
||||
#define USBH_PRIV_SWAP_6358_REG 0x0
|
||||
#define USBH_PRIV_SWAP_6368_REG 0x1c
|
||||
|
||||
#define USBH_PRIV_SWAP_USBD_SHIFT 6
|
||||
#define USBH_PRIV_SWAP_USBD_MASK (1 << USBH_PRIV_SWAP_USBD_SHIFT)
|
||||
#define USBH_PRIV_SWAP_EHCI_ENDN_SHIFT 4
|
||||
#define USBH_PRIV_SWAP_EHCI_ENDN_MASK (1 << USBH_PRIV_SWAP_EHCI_ENDN_SHIFT)
|
||||
#define USBH_PRIV_SWAP_EHCI_DATA_SHIFT 3
|
||||
@ -779,6 +796,12 @@
|
||||
#define USBH_PRIV_SWAP_OHCI_DATA_SHIFT 0
|
||||
#define USBH_PRIV_SWAP_OHCI_DATA_MASK (1 << USBH_PRIV_SWAP_OHCI_DATA_SHIFT)
|
||||
|
||||
#define USBH_PRIV_UTMI_CTL_6368_REG 0x10
|
||||
#define USBH_PRIV_UTMI_CTL_NODRIV_SHIFT 12
|
||||
#define USBH_PRIV_UTMI_CTL_NODRIV_MASK (0xf << USBH_PRIV_UTMI_CTL_NODRIV_SHIFT)
|
||||
#define USBH_PRIV_UTMI_CTL_HOSTB_SHIFT 0
|
||||
#define USBH_PRIV_UTMI_CTL_HOSTB_MASK (0xf << USBH_PRIV_UTMI_CTL_HOSTB_SHIFT)
|
||||
|
||||
#define USBH_PRIV_TEST_6358_REG 0x24
|
||||
#define USBH_PRIV_TEST_6368_REG 0x14
|
||||
|
||||
@ -787,6 +810,147 @@
|
||||
#define USBH_PRIV_SETUP_IOC_MASK (1 << USBH_PRIV_SETUP_IOC_SHIFT)
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
* _REG relative to RSET_USBD
|
||||
*************************************************************************/
|
||||
|
||||
/* General control */
|
||||
#define USBD_CONTROL_REG 0x00
|
||||
#define USBD_CONTROL_TXZLENINS_SHIFT 14
|
||||
#define USBD_CONTROL_TXZLENINS_MASK (1 << USBD_CONTROL_TXZLENINS_SHIFT)
|
||||
#define USBD_CONTROL_AUTO_CSRS_SHIFT 13
|
||||
#define USBD_CONTROL_AUTO_CSRS_MASK (1 << USBD_CONTROL_AUTO_CSRS_SHIFT)
|
||||
#define USBD_CONTROL_RXZSCFG_SHIFT 12
|
||||
#define USBD_CONTROL_RXZSCFG_MASK (1 << USBD_CONTROL_RXZSCFG_SHIFT)
|
||||
#define USBD_CONTROL_INIT_SEL_SHIFT 8
|
||||
#define USBD_CONTROL_INIT_SEL_MASK (0xf << USBD_CONTROL_INIT_SEL_SHIFT)
|
||||
#define USBD_CONTROL_FIFO_RESET_SHIFT 6
|
||||
#define USBD_CONTROL_FIFO_RESET_MASK (3 << USBD_CONTROL_FIFO_RESET_SHIFT)
|
||||
#define USBD_CONTROL_SETUPERRLOCK_SHIFT 5
|
||||
#define USBD_CONTROL_SETUPERRLOCK_MASK (1 << USBD_CONTROL_SETUPERRLOCK_SHIFT)
|
||||
#define USBD_CONTROL_DONE_CSRS_SHIFT 0
|
||||
#define USBD_CONTROL_DONE_CSRS_MASK (1 << USBD_CONTROL_DONE_CSRS_SHIFT)
|
||||
|
||||
/* Strap options */
|
||||
#define USBD_STRAPS_REG 0x04
|
||||
#define USBD_STRAPS_APP_SELF_PWR_SHIFT 10
|
||||
#define USBD_STRAPS_APP_SELF_PWR_MASK (1 << USBD_STRAPS_APP_SELF_PWR_SHIFT)
|
||||
#define USBD_STRAPS_APP_DISCON_SHIFT 9
|
||||
#define USBD_STRAPS_APP_DISCON_MASK (1 << USBD_STRAPS_APP_DISCON_SHIFT)
|
||||
#define USBD_STRAPS_APP_CSRPRGSUP_SHIFT 8
|
||||
#define USBD_STRAPS_APP_CSRPRGSUP_MASK (1 << USBD_STRAPS_APP_CSRPRGSUP_SHIFT)
|
||||
#define USBD_STRAPS_APP_RMTWKUP_SHIFT 6
|
||||
#define USBD_STRAPS_APP_RMTWKUP_MASK (1 << USBD_STRAPS_APP_RMTWKUP_SHIFT)
|
||||
#define USBD_STRAPS_APP_RAM_IF_SHIFT 7
|
||||
#define USBD_STRAPS_APP_RAM_IF_MASK (1 << USBD_STRAPS_APP_RAM_IF_SHIFT)
|
||||
#define USBD_STRAPS_APP_8BITPHY_SHIFT 2
|
||||
#define USBD_STRAPS_APP_8BITPHY_MASK (1 << USBD_STRAPS_APP_8BITPHY_SHIFT)
|
||||
#define USBD_STRAPS_SPEED_SHIFT 0
|
||||
#define USBD_STRAPS_SPEED_MASK (3 << USBD_STRAPS_SPEED_SHIFT)
|
||||
|
||||
/* Stall control */
|
||||
#define USBD_STALL_REG 0x08
|
||||
#define USBD_STALL_UPDATE_SHIFT 7
|
||||
#define USBD_STALL_UPDATE_MASK (1 << USBD_STALL_UPDATE_SHIFT)
|
||||
#define USBD_STALL_ENABLE_SHIFT 6
|
||||
#define USBD_STALL_ENABLE_MASK (1 << USBD_STALL_ENABLE_SHIFT)
|
||||
#define USBD_STALL_EPNUM_SHIFT 0
|
||||
#define USBD_STALL_EPNUM_MASK (0xf << USBD_STALL_EPNUM_SHIFT)
|
||||
|
||||
/* General status */
|
||||
#define USBD_STATUS_REG 0x0c
|
||||
#define USBD_STATUS_SOF_SHIFT 16
|
||||
#define USBD_STATUS_SOF_MASK (0x7ff << USBD_STATUS_SOF_SHIFT)
|
||||
#define USBD_STATUS_SPD_SHIFT 12
|
||||
#define USBD_STATUS_SPD_MASK (3 << USBD_STATUS_SPD_SHIFT)
|
||||
#define USBD_STATUS_ALTINTF_SHIFT 8
|
||||
#define USBD_STATUS_ALTINTF_MASK (0xf << USBD_STATUS_ALTINTF_SHIFT)
|
||||
#define USBD_STATUS_INTF_SHIFT 4
|
||||
#define USBD_STATUS_INTF_MASK (0xf << USBD_STATUS_INTF_SHIFT)
|
||||
#define USBD_STATUS_CFG_SHIFT 0
|
||||
#define USBD_STATUS_CFG_MASK (0xf << USBD_STATUS_CFG_SHIFT)
|
||||
|
||||
/* Other events */
|
||||
#define USBD_EVENTS_REG 0x10
|
||||
#define USBD_EVENTS_USB_LINK_SHIFT 10
|
||||
#define USBD_EVENTS_USB_LINK_MASK (1 << USBD_EVENTS_USB_LINK_SHIFT)
|
||||
|
||||
/* IRQ status */
|
||||
#define USBD_EVENT_IRQ_STATUS_REG 0x14
|
||||
|
||||
/* IRQ level (2 bits per IRQ event) */
|
||||
#define USBD_EVENT_IRQ_CFG_HI_REG 0x18
|
||||
|
||||
#define USBD_EVENT_IRQ_CFG_LO_REG 0x1c
|
||||
|
||||
#define USBD_EVENT_IRQ_CFG_SHIFT(x) ((x & 0xf) << 1)
|
||||
#define USBD_EVENT_IRQ_CFG_MASK(x) (3 << USBD_EVENT_IRQ_CFG_SHIFT(x))
|
||||
#define USBD_EVENT_IRQ_CFG_RISING(x) (0 << USBD_EVENT_IRQ_CFG_SHIFT(x))
|
||||
#define USBD_EVENT_IRQ_CFG_FALLING(x) (1 << USBD_EVENT_IRQ_CFG_SHIFT(x))
|
||||
|
||||
/* IRQ mask (1=unmasked) */
|
||||
#define USBD_EVENT_IRQ_MASK_REG 0x20
|
||||
|
||||
/* IRQ bits */
|
||||
#define USBD_EVENT_IRQ_USB_LINK 10
|
||||
#define USBD_EVENT_IRQ_SETCFG 9
|
||||
#define USBD_EVENT_IRQ_SETINTF 8
|
||||
#define USBD_EVENT_IRQ_ERRATIC_ERR 7
|
||||
#define USBD_EVENT_IRQ_SET_CSRS 6
|
||||
#define USBD_EVENT_IRQ_SUSPEND 5
|
||||
#define USBD_EVENT_IRQ_EARLY_SUSPEND 4
|
||||
#define USBD_EVENT_IRQ_SOF 3
|
||||
#define USBD_EVENT_IRQ_ENUM_ON 2
|
||||
#define USBD_EVENT_IRQ_SETUP 1
|
||||
#define USBD_EVENT_IRQ_USB_RESET 0
|
||||
|
||||
/* TX FIFO partitioning */
|
||||
#define USBD_TXFIFO_CONFIG_REG 0x40
|
||||
#define USBD_TXFIFO_CONFIG_END_SHIFT 16
|
||||
#define USBD_TXFIFO_CONFIG_END_MASK (0xff << USBD_TXFIFO_CONFIG_END_SHIFT)
|
||||
#define USBD_TXFIFO_CONFIG_START_SHIFT 0
|
||||
#define USBD_TXFIFO_CONFIG_START_MASK (0xff << USBD_TXFIFO_CONFIG_START_SHIFT)
|
||||
|
||||
/* RX FIFO partitioning */
|
||||
#define USBD_RXFIFO_CONFIG_REG 0x44
|
||||
#define USBD_RXFIFO_CONFIG_END_SHIFT 16
|
||||
#define USBD_RXFIFO_CONFIG_END_MASK (0xff << USBD_TXFIFO_CONFIG_END_SHIFT)
|
||||
#define USBD_RXFIFO_CONFIG_START_SHIFT 0
|
||||
#define USBD_RXFIFO_CONFIG_START_MASK (0xff << USBD_TXFIFO_CONFIG_START_SHIFT)
|
||||
|
||||
/* TX FIFO/endpoint configuration */
|
||||
#define USBD_TXFIFO_EPSIZE_REG 0x48
|
||||
|
||||
/* RX FIFO/endpoint configuration */
|
||||
#define USBD_RXFIFO_EPSIZE_REG 0x4c
|
||||
|
||||
/* Endpoint<->DMA mappings */
|
||||
#define USBD_EPNUM_TYPEMAP_REG 0x50
|
||||
#define USBD_EPNUM_TYPEMAP_TYPE_SHIFT 8
|
||||
#define USBD_EPNUM_TYPEMAP_TYPE_MASK (0x3 << USBD_EPNUM_TYPEMAP_TYPE_SHIFT)
|
||||
#define USBD_EPNUM_TYPEMAP_DMA_CH_SHIFT 0
|
||||
#define USBD_EPNUM_TYPEMAP_DMA_CH_MASK (0xf << USBD_EPNUM_TYPEMAP_DMACH_SHIFT)
|
||||
|
||||
/* Misc per-endpoint settings */
|
||||
#define USBD_CSR_SETUPADDR_REG 0x80
|
||||
#define USBD_CSR_SETUPADDR_DEF 0xb550
|
||||
|
||||
#define USBD_CSR_EP_REG(x) (0x84 + (x) * 4)
|
||||
#define USBD_CSR_EP_MAXPKT_SHIFT 19
|
||||
#define USBD_CSR_EP_MAXPKT_MASK (0x7ff << USBD_CSR_EP_MAXPKT_SHIFT)
|
||||
#define USBD_CSR_EP_ALTIFACE_SHIFT 15
|
||||
#define USBD_CSR_EP_ALTIFACE_MASK (0xf << USBD_CSR_EP_ALTIFACE_SHIFT)
|
||||
#define USBD_CSR_EP_IFACE_SHIFT 11
|
||||
#define USBD_CSR_EP_IFACE_MASK (0xf << USBD_CSR_EP_IFACE_SHIFT)
|
||||
#define USBD_CSR_EP_CFG_SHIFT 7
|
||||
#define USBD_CSR_EP_CFG_MASK (0xf << USBD_CSR_EP_CFG_SHIFT)
|
||||
#define USBD_CSR_EP_TYPE_SHIFT 5
|
||||
#define USBD_CSR_EP_TYPE_MASK (3 << USBD_CSR_EP_TYPE_SHIFT)
|
||||
#define USBD_CSR_EP_DIR_SHIFT 4
|
||||
#define USBD_CSR_EP_DIR_MASK (1 << USBD_CSR_EP_DIR_SHIFT)
|
||||
#define USBD_CSR_EP_LOG_SHIFT 0
|
||||
#define USBD_CSR_EP_LOG_MASK (0xf << USBD_CSR_EP_LOG_SHIFT)
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
* _REG relative to RSET_MPI
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/leds.h>
|
||||
#include <bcm63xx_dev_enet.h>
|
||||
#include <bcm63xx_dev_usb_usbd.h>
|
||||
#include <bcm63xx_dev_dsp.h>
|
||||
|
||||
/*
|
||||
@ -44,6 +45,7 @@ struct board_info {
|
||||
unsigned int has_pccard:1;
|
||||
unsigned int has_ohci0:1;
|
||||
unsigned int has_ehci0:1;
|
||||
unsigned int has_usbd:1;
|
||||
unsigned int has_dsp:1;
|
||||
unsigned int has_uart0:1;
|
||||
unsigned int has_uart1:1;
|
||||
@ -52,6 +54,9 @@ struct board_info {
|
||||
struct bcm63xx_enet_platform_data enet0;
|
||||
struct bcm63xx_enet_platform_data enet1;
|
||||
|
||||
/* USB config */
|
||||
struct bcm63xx_usbd_platform_data usbd;
|
||||
|
||||
/* DSP config */
|
||||
struct bcm63xx_dsp_platform_data dsp;
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
#define cpu_has_veic 0
|
||||
#define cpu_hwrena_impl_bits 0xc0000000
|
||||
|
||||
#define kernel_uses_smartmips_rixi (cpu_data[0].cputype != CPU_CAVIUM_OCTEON)
|
||||
#define cpu_has_rixi (cpu_data[0].cputype != CPU_CAVIUM_OCTEON)
|
||||
|
||||
#define ARCH_HAS_IRQ_PER_CPU 1
|
||||
#define ARCH_HAS_SPINLOCK_PREFETCH 1
|
||||
|
@ -21,10 +21,11 @@ enum octeon_irq {
|
||||
OCTEON_IRQ_TIMER,
|
||||
/* sources in CIU_INTX_EN0 */
|
||||
OCTEON_IRQ_WORKQ0,
|
||||
OCTEON_IRQ_WDOG0 = OCTEON_IRQ_WORKQ0 + 16,
|
||||
OCTEON_IRQ_WDOG15 = OCTEON_IRQ_WDOG0 + 15,
|
||||
OCTEON_IRQ_MBOX0 = OCTEON_IRQ_WDOG0 + 16,
|
||||
OCTEON_IRQ_WDOG0 = OCTEON_IRQ_WORKQ0 + 64,
|
||||
OCTEON_IRQ_MBOX0 = OCTEON_IRQ_WDOG0 + 32,
|
||||
OCTEON_IRQ_MBOX1,
|
||||
OCTEON_IRQ_MBOX2,
|
||||
OCTEON_IRQ_MBOX3,
|
||||
OCTEON_IRQ_PCI_INT0,
|
||||
OCTEON_IRQ_PCI_INT1,
|
||||
OCTEON_IRQ_PCI_INT2,
|
||||
|
@ -20,4 +20,6 @@
|
||||
|
||||
#define MIPS_CPU_TIMER_IRQ 7
|
||||
|
||||
#define MAX_IM 5
|
||||
|
||||
#endif /* _FALCON_IRQ__ */
|
||||
|
@ -57,6 +57,10 @@ extern __iomem void *ltq_sys1_membase;
|
||||
#define ltq_sys1_w32_mask(clear, set, reg) \
|
||||
ltq_sys1_w32((ltq_sys1_r32(reg) & ~(clear)) | (set), reg)
|
||||
|
||||
/* allow the gpio and pinctrl drivers to talk to eachother */
|
||||
extern int pinctrl_falcon_get_range_size(int id);
|
||||
extern void pinctrl_falcon_add_gpio_range(struct pinctrl_gpio_range *range);
|
||||
|
||||
/*
|
||||
* to keep the irq code generic we need to define this to 0 as falcon
|
||||
* has no EIU/EBU
|
||||
|
@ -1,10 +1,7 @@
|
||||
#ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H
|
||||
#define __ASM_MIPS_MACH_LANTIQ_GPIO_H
|
||||
|
||||
static inline int gpio_to_irq(unsigned int gpio)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#define gpio_to_irq __gpio_to_irq
|
||||
|
||||
#define gpio_get_value __gpio_get_value
|
||||
#define gpio_set_value __gpio_set_value
|
||||
|
@ -21,4 +21,6 @@
|
||||
|
||||
#define MIPS_CPU_TIMER_IRQ 7
|
||||
|
||||
#define MAX_IM 5
|
||||
|
||||
#endif
|
||||
|
@ -4,9 +4,10 @@
|
||||
* for more details.
|
||||
*
|
||||
* Copyright (C) 2003, 2004 Chris Dearman
|
||||
* Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
|
||||
*/
|
||||
#ifndef __ASM_MACH_SIM_CPU_FEATURE_OVERRIDES_H
|
||||
#define __ASM_MACH_SIM_CPU_FEATURE_OVERRIDES_H
|
||||
#ifndef __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H
|
||||
#define __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H
|
||||
|
||||
|
||||
/*
|
||||
@ -16,7 +17,7 @@
|
||||
#define cpu_has_tlb 1
|
||||
#define cpu_has_4kex 1
|
||||
#define cpu_has_4k_cache 1
|
||||
#define cpu_has_fpu 0
|
||||
/* #define cpu_has_fpu ? */
|
||||
/* #define cpu_has_32fpr ? */
|
||||
#define cpu_has_counter 1
|
||||
/* #define cpu_has_watch ? */
|
||||
@ -27,15 +28,19 @@
|
||||
/* #define cpu_has_prefetch ? */
|
||||
#define cpu_has_mcheck 1
|
||||
/* #define cpu_has_ejtag ? */
|
||||
#ifdef CONFIG_CPU_HAS_LLSC
|
||||
#define cpu_has_llsc 1
|
||||
#else
|
||||
#define cpu_has_llsc 0
|
||||
#endif
|
||||
/* #define cpu_has_vtag_icache ? */
|
||||
/* #define cpu_has_dc_aliases ? */
|
||||
/* #define cpu_has_ic_fills_f_dc ? */
|
||||
#define cpu_has_clo_clz 1
|
||||
#define cpu_has_nofpuex 0
|
||||
/* #define cpu_has_64bits ? */
|
||||
/* #define cpu_has_64bit_zero_reg ? */
|
||||
/* #define cpu_has_inclusive_pcaches ? */
|
||||
#define cpu_icache_snoops_remote_store 1
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CPU_MIPS64
|
||||
@ -57,11 +62,11 @@
|
||||
/* #define cpu_has_vtag_icache ? */
|
||||
/* #define cpu_has_dc_aliases ? */
|
||||
/* #define cpu_has_ic_fills_f_dc ? */
|
||||
#define cpu_has_clo_clz 1
|
||||
#define cpu_has_nofpuex 0
|
||||
/* #define cpu_has_64bits ? */
|
||||
/* #define cpu_has_64bit_zero_reg ? */
|
||||
/* #define cpu_has_inclusive_pcaches ? */
|
||||
#define cpu_icache_snoops_remote_store 1
|
||||
#endif
|
||||
|
||||
#endif /* __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H */
|
9
arch/mips/include/asm/mach-sead3/irq.h
Normal file
9
arch/mips/include/asm/mach-sead3/irq.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef __ASM_MACH_MIPS_IRQ_H
|
||||
#define __ASM_MACH_MIPS_IRQ_H
|
||||
|
||||
#define NR_IRQS 256
|
||||
|
||||
|
||||
#include_next <irq.h>
|
||||
|
||||
#endif /* __ASM_MACH_MIPS_IRQ_H */
|
52
arch/mips/include/asm/mach-sead3/kernel-entry-init.h
Normal file
52
arch/mips/include/asm/mach-sead3/kernel-entry-init.h
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
* Chris Dearman (chris@mips.com)
|
||||
* Copyright (C) 2007 Mips Technologies, Inc.
|
||||
*/
|
||||
#ifndef __ASM_MACH_MIPS_KERNEL_ENTRY_INIT_H
|
||||
#define __ASM_MACH_MIPS_KERNEL_ENTRY_INIT_H
|
||||
|
||||
.macro kernel_entry_setup
|
||||
#ifdef CONFIG_MIPS_MT_SMTC
|
||||
mfc0 t0, CP0_CONFIG
|
||||
bgez t0, 9f
|
||||
mfc0 t0, CP0_CONFIG, 1
|
||||
bgez t0, 9f
|
||||
mfc0 t0, CP0_CONFIG, 2
|
||||
bgez t0, 9f
|
||||
mfc0 t0, CP0_CONFIG, 3
|
||||
and t0, 1<<2
|
||||
bnez t0, 0f
|
||||
9 :
|
||||
/* Assume we came from YAMON... */
|
||||
PTR_LA v0, 0x9fc00534 /* YAMON print */
|
||||
lw v0, (v0)
|
||||
move a0, zero
|
||||
PTR_LA a1, nonmt_processor
|
||||
jal v0
|
||||
|
||||
PTR_LA v0, 0x9fc00520 /* YAMON exit */
|
||||
lw v0, (v0)
|
||||
li a0, 1
|
||||
jal v0
|
||||
|
||||
1 : b 1b
|
||||
|
||||
__INITDATA
|
||||
nonmt_processor :
|
||||
.asciz "SMTC kernel requires the MT ASE to run\n"
|
||||
__FINIT
|
||||
0 :
|
||||
#endif
|
||||
.endm
|
||||
|
||||
/*
|
||||
* Do SMP slave processor setup necessary before we can safely execute C code.
|
||||
*/
|
||||
.macro smp_slave_setup
|
||||
.endm
|
||||
|
||||
#endif /* __ASM_MACH_MIPS_KERNEL_ENTRY_INIT_H */
|
@ -5,8 +5,8 @@
|
||||
*
|
||||
* Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org>
|
||||
*/
|
||||
#ifndef __ASM_MIPS_MACH_MIPSSIM_WAR_H
|
||||
#define __ASM_MIPS_MACH_MIPSSIM_WAR_H
|
||||
#ifndef __ASM_MIPS_MACH_MIPS_WAR_H
|
||||
#define __ASM_MIPS_MACH_MIPS_WAR_H
|
||||
|
||||
#define R4600_V1_INDEX_ICACHEOP_WAR 0
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
@ -14,12 +14,12 @@
|
||||
#define R5432_CP0_INTERRUPT_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
#define MIPS4K_ICACHE_REFILL_WAR 0
|
||||
#define MIPS_CACHE_SYNC_WAR 0
|
||||
#define MIPS4K_ICACHE_REFILL_WAR 1
|
||||
#define MIPS_CACHE_SYNC_WAR 1
|
||||
#define TX49XX_ICACHE_INDEX_INV_WAR 0
|
||||
#define RM9000_CDEX_SMP_WAR 0
|
||||
#define ICACHE_REFILLS_WORKAROUND_WAR 0
|
||||
#define ICACHE_REFILLS_WORKAROUND_WAR 1
|
||||
#define R10000_LLSC_WAR 0
|
||||
#define MIPS34K_MISSED_ITLB_WAR 0
|
||||
|
||||
#endif /* __ASM_MIPS_MACH_MIPSSIM_WAR_H */
|
||||
#endif /* __ASM_MIPS_MACH_MIPS_WAR_H */
|
@ -1,31 +1,16 @@
|
||||
/*
|
||||
* Carsten Langgaard, carstenl@mips.com
|
||||
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
|
||||
*
|
||||
* ########################################################################
|
||||
*
|
||||
* This program is free software; you can distribute it and/or modify it
|
||||
* under the terms of the GNU General Public License (Version 2) as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
*
|
||||
* ########################################################################
|
||||
*
|
||||
* Defines for the Malta interrupt controller.
|
||||
* 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.
|
||||
*
|
||||
* Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved.
|
||||
* Carsten Langgaard <carstenl@mips.com>
|
||||
* Steven J. Hill <sjhill@mips.com>
|
||||
*/
|
||||
#ifndef _MIPS_MALTAINT_H
|
||||
#define _MIPS_MALTAINT_H
|
||||
|
||||
#include <irq.h>
|
||||
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
|
||||
|
||||
/*
|
||||
* Interrupts 0..15 are used for Malta ISA compatible interrupts
|
||||
@ -78,26 +63,6 @@
|
||||
#define MSC01E_INT_PERFCTR 10
|
||||
#define MSC01E_INT_CPUCTR 11
|
||||
|
||||
/* GIC's Nomenclature for Core Interrupt Pins on the Malta */
|
||||
#define GIC_CPU_INT0 0 /* Core Interrupt 2 */
|
||||
#define GIC_CPU_INT1 1 /* . */
|
||||
#define GIC_CPU_INT2 2 /* . */
|
||||
#define GIC_CPU_INT3 3 /* . */
|
||||
#define GIC_CPU_INT4 4 /* . */
|
||||
#define GIC_CPU_INT5 5 /* Core Interrupt 5 */
|
||||
|
||||
/* MALTA GIC local interrupts */
|
||||
#define GIC_INT_TMR (GIC_CPU_INT5)
|
||||
#define GIC_INT_PERFCTR (GIC_CPU_INT5)
|
||||
|
||||
/* GIC constants */
|
||||
/* Add 2 to convert non-eic hw int # to eic vector # */
|
||||
#define GIC_CPU_TO_VEC_OFFSET (2)
|
||||
/* If we map an intr to pin X, GIC will actually generate vector X+1 */
|
||||
#define GIC_PIN_TO_VEC_OFFSET (1)
|
||||
|
||||
#define GIC_EXT_INTR(x) x
|
||||
|
||||
/* External Interrupts used for IPI */
|
||||
#define GIC_IPI_EXT_INTR_RESCHED_VPE0 16
|
||||
#define GIC_IPI_EXT_INTR_CALLFNC_VPE0 17
|
||||
@ -108,10 +73,4 @@
|
||||
#define GIC_IPI_EXT_INTR_RESCHED_VPE3 22
|
||||
#define GIC_IPI_EXT_INTR_CALLFNC_VPE3 23
|
||||
|
||||
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
extern void maltaint_init(void);
|
||||
#endif
|
||||
|
||||
#endif /* !(_MIPS_MALTAINT_H) */
|
||||
|
19
arch/mips/include/asm/mips-boards/sead3int.h
Normal file
19
arch/mips/include/asm/mips-boards/sead3int.h
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
* Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved.
|
||||
* Douglas Leung <douglas@mips.com>
|
||||
* Steven J. Hill <sjhill@mips.com>
|
||||
*/
|
||||
#ifndef _MIPS_SEAD3INT_H
|
||||
#define _MIPS_SEAD3INT_H
|
||||
|
||||
/* SEAD-3 GIC address space definitions. */
|
||||
#define GIC_BASE_ADDR 0x1b1c0000
|
||||
#define GIC_ADDRSPACE_SZ (128 * 1024)
|
||||
|
||||
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 0)
|
||||
|
||||
#endif /* !(_MIPS_SEAD3INT_H) */
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2005 MIPS Technologies, Inc. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can distribute it and/or modify it
|
||||
* under the terms of the GNU General Public License (Version 2) as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
*/
|
||||
#ifndef _MIPS_SIMINT_H
|
||||
#define _MIPS_SIMINT_H
|
||||
|
||||
#include <irq.h>
|
||||
|
||||
#define SIM_INT_BASE 0
|
||||
#define MIPSCPU_INT_MB0 2
|
||||
#define MIPS_CPU_TIMER_IRQ 7
|
||||
|
||||
|
||||
#define MSC01E_INT_BASE 64
|
||||
|
||||
#define MSC01E_INT_CPUCTR 11
|
||||
|
||||
#endif
|
@ -590,12 +590,15 @@
|
||||
#define MIPS_CONF3_VEIC (_ULCAST_(1) << 6)
|
||||
#define MIPS_CONF3_LPA (_ULCAST_(1) << 7)
|
||||
#define MIPS_CONF3_DSP (_ULCAST_(1) << 10)
|
||||
#define MIPS_CONF3_RXI (_ULCAST_(1) << 12)
|
||||
#define MIPS_CONF3_ULRI (_ULCAST_(1) << 13)
|
||||
|
||||
#define MIPS_CONF4_MMUSIZEEXT (_ULCAST_(255) << 0)
|
||||
#define MIPS_CONF4_MMUEXTDEF (_ULCAST_(3) << 14)
|
||||
#define MIPS_CONF4_MMUEXTDEF_MMUSIZEEXT (_ULCAST_(1) << 14)
|
||||
|
||||
#define MIPS_CONF6_SYND (_ULCAST_(1) << 13)
|
||||
|
||||
#define MIPS_CONF7_WII (_ULCAST_(1) << 31)
|
||||
|
||||
#define MIPS_CONF7_RPS (_ULCAST_(1) << 2)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,64 +28,43 @@
|
||||
#ifndef __CVMX_ASXX_DEFS_H__
|
||||
#define __CVMX_ASXX_DEFS_H__
|
||||
|
||||
#define CVMX_ASXX_GMII_RX_CLK_SET(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000180ull + (((block_id) & 0) * 0x8000000ull))
|
||||
#define CVMX_ASXX_GMII_RX_DAT_SET(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000188ull + (((block_id) & 0) * 0x8000000ull))
|
||||
#define CVMX_ASXX_INT_EN(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000018ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_INT_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000010ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_MII_RX_DAT_SET(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000190ull + (((block_id) & 0) * 0x8000000ull))
|
||||
#define CVMX_ASXX_PRT_LOOP(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000040ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_BYPASS(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000248ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_BYPASS_SETTING(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000250ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_COMP(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000220ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_DATA_DRV(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000218ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_FCRAM_MODE(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000210ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_NCTL_STRONG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000230ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_NCTL_WEAK(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000240ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_PCTL_STRONG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000228ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_PCTL_WEAK(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000238ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RLD_SETTING(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000258ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RX_CLK_SETX(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000020ull + (((offset) & 3) * 8) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RX_PRT_EN(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000000ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RX_WOL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000100ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RX_WOL_MSK(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000108ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RX_WOL_POWOK(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000118ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_RX_WOL_SIG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000110ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_TX_CLK_SETX(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000048ull + (((offset) & 3) * 8) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_TX_COMP_BYP(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000068ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_TX_HI_WATERX(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000080ull + (((offset) & 3) * 8) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_TX_PRT_EN(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000008ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_ASXX_GMII_RX_CLK_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000180ull))
|
||||
#define CVMX_ASXX_GMII_RX_DAT_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000188ull))
|
||||
#define CVMX_ASXX_INT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000018ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000010ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_MII_RX_DAT_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000190ull))
|
||||
#define CVMX_ASXX_PRT_LOOP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000040ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_BYPASS(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000248ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_BYPASS_SETTING(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000250ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_COMP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000220ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_DATA_DRV(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000218ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_FCRAM_MODE(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000210ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_NCTL_STRONG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000230ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_NCTL_WEAK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000240ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_PCTL_STRONG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000228ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_PCTL_WEAK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000238ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RLD_SETTING(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000258ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RX_CLK_SETX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000020ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
|
||||
#define CVMX_ASXX_RX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000000ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RX_WOL(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000100ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RX_WOL_MSK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000108ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RX_WOL_POWOK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000118ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_RX_WOL_SIG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000110ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_TX_CLK_SETX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000048ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
|
||||
#define CVMX_ASXX_TX_COMP_BYP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000068ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_ASXX_TX_HI_WATERX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000080ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
|
||||
#define CVMX_ASXX_TX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000008ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
|
||||
union cvmx_asxx_gmii_rx_clk_set {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_gmii_rx_clk_set_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_gmii_rx_clk_set_s cn30xx;
|
||||
struct cvmx_asxx_gmii_rx_clk_set_s cn31xx;
|
||||
@ -95,8 +74,13 @@ union cvmx_asxx_gmii_rx_clk_set {
|
||||
union cvmx_asxx_gmii_rx_dat_set {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_gmii_rx_dat_set_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_gmii_rx_dat_set_s cn30xx;
|
||||
struct cvmx_asxx_gmii_rx_dat_set_s cn31xx;
|
||||
@ -106,18 +90,34 @@ union cvmx_asxx_gmii_rx_dat_set {
|
||||
union cvmx_asxx_int_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_int_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t txpsh:4;
|
||||
uint64_t txpop:4;
|
||||
uint64_t ovrflw:4;
|
||||
#else
|
||||
uint64_t ovrflw:4;
|
||||
uint64_t txpop:4;
|
||||
uint64_t txpsh:4;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_int_en_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_11_63:53;
|
||||
uint64_t txpsh:3;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t txpop:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t ovrflw:3;
|
||||
#else
|
||||
uint64_t ovrflw:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t txpop:3;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t txpsh:3;
|
||||
uint64_t reserved_11_63:53;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_int_en_cn30xx cn31xx;
|
||||
struct cvmx_asxx_int_en_s cn38xx;
|
||||
@ -130,18 +130,34 @@ union cvmx_asxx_int_en {
|
||||
union cvmx_asxx_int_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_int_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t txpsh:4;
|
||||
uint64_t txpop:4;
|
||||
uint64_t ovrflw:4;
|
||||
#else
|
||||
uint64_t ovrflw:4;
|
||||
uint64_t txpop:4;
|
||||
uint64_t txpsh:4;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_int_reg_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_11_63:53;
|
||||
uint64_t txpsh:3;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t txpop:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t ovrflw:3;
|
||||
#else
|
||||
uint64_t ovrflw:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t txpop:3;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t txpsh:3;
|
||||
uint64_t reserved_11_63:53;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_int_reg_cn30xx cn31xx;
|
||||
struct cvmx_asxx_int_reg_s cn38xx;
|
||||
@ -154,8 +170,13 @@ union cvmx_asxx_int_reg {
|
||||
union cvmx_asxx_mii_rx_dat_set {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_mii_rx_dat_set_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_mii_rx_dat_set_s cn30xx;
|
||||
struct cvmx_asxx_mii_rx_dat_set_s cn50xx;
|
||||
@ -164,15 +185,28 @@ union cvmx_asxx_mii_rx_dat_set {
|
||||
union cvmx_asxx_prt_loop {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_prt_loop_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t ext_loop:4;
|
||||
uint64_t int_loop:4;
|
||||
#else
|
||||
uint64_t int_loop:4;
|
||||
uint64_t ext_loop:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_prt_loop_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t ext_loop:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t int_loop:3;
|
||||
#else
|
||||
uint64_t int_loop:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t ext_loop:3;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_prt_loop_cn30xx cn31xx;
|
||||
struct cvmx_asxx_prt_loop_s cn38xx;
|
||||
@ -185,8 +219,13 @@ union cvmx_asxx_prt_loop {
|
||||
union cvmx_asxx_rld_bypass {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_bypass_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t bypass:1;
|
||||
#else
|
||||
uint64_t bypass:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_bypass_s cn38xx;
|
||||
struct cvmx_asxx_rld_bypass_s cn38xxp2;
|
||||
@ -197,8 +236,13 @@ union cvmx_asxx_rld_bypass {
|
||||
union cvmx_asxx_rld_bypass_setting {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_bypass_setting_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_bypass_setting_s cn38xx;
|
||||
struct cvmx_asxx_rld_bypass_setting_s cn38xxp2;
|
||||
@ -209,14 +253,26 @@ union cvmx_asxx_rld_bypass_setting {
|
||||
union cvmx_asxx_rld_comp {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_comp_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t pctl:5;
|
||||
uint64_t nctl:4;
|
||||
#else
|
||||
uint64_t nctl:4;
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_comp_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t pctl:4;
|
||||
uint64_t nctl:4;
|
||||
#else
|
||||
uint64_t nctl:4;
|
||||
uint64_t pctl:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_asxx_rld_comp_cn38xx cn38xxp2;
|
||||
struct cvmx_asxx_rld_comp_s cn58xx;
|
||||
@ -226,9 +282,15 @@ union cvmx_asxx_rld_comp {
|
||||
union cvmx_asxx_rld_data_drv {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_data_drv_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t pctl:4;
|
||||
uint64_t nctl:4;
|
||||
#else
|
||||
uint64_t nctl:4;
|
||||
uint64_t pctl:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_data_drv_s cn38xx;
|
||||
struct cvmx_asxx_rld_data_drv_s cn38xxp2;
|
||||
@ -239,8 +301,13 @@ union cvmx_asxx_rld_data_drv {
|
||||
union cvmx_asxx_rld_fcram_mode {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_fcram_mode_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t mode:1;
|
||||
#else
|
||||
uint64_t mode:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_fcram_mode_s cn38xx;
|
||||
struct cvmx_asxx_rld_fcram_mode_s cn38xxp2;
|
||||
@ -249,8 +316,13 @@ union cvmx_asxx_rld_fcram_mode {
|
||||
union cvmx_asxx_rld_nctl_strong {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_nctl_strong_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t nctl:5;
|
||||
#else
|
||||
uint64_t nctl:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_nctl_strong_s cn38xx;
|
||||
struct cvmx_asxx_rld_nctl_strong_s cn38xxp2;
|
||||
@ -261,8 +333,13 @@ union cvmx_asxx_rld_nctl_strong {
|
||||
union cvmx_asxx_rld_nctl_weak {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_nctl_weak_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t nctl:5;
|
||||
#else
|
||||
uint64_t nctl:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_nctl_weak_s cn38xx;
|
||||
struct cvmx_asxx_rld_nctl_weak_s cn38xxp2;
|
||||
@ -273,8 +350,13 @@ union cvmx_asxx_rld_nctl_weak {
|
||||
union cvmx_asxx_rld_pctl_strong {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_pctl_strong_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t pctl:5;
|
||||
#else
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_pctl_strong_s cn38xx;
|
||||
struct cvmx_asxx_rld_pctl_strong_s cn38xxp2;
|
||||
@ -285,8 +367,13 @@ union cvmx_asxx_rld_pctl_strong {
|
||||
union cvmx_asxx_rld_pctl_weak {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_pctl_weak_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t pctl:5;
|
||||
#else
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_pctl_weak_s cn38xx;
|
||||
struct cvmx_asxx_rld_pctl_weak_s cn38xxp2;
|
||||
@ -297,16 +384,30 @@ union cvmx_asxx_rld_pctl_weak {
|
||||
union cvmx_asxx_rld_setting {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rld_setting_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t dfaset:5;
|
||||
uint64_t dfalag:1;
|
||||
uint64_t dfalead:1;
|
||||
uint64_t dfalock:1;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t dfalock:1;
|
||||
uint64_t dfalead:1;
|
||||
uint64_t dfalag:1;
|
||||
uint64_t dfaset:5;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rld_setting_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_asxx_rld_setting_cn38xx cn38xxp2;
|
||||
struct cvmx_asxx_rld_setting_s cn58xx;
|
||||
@ -316,8 +417,13 @@ union cvmx_asxx_rld_setting {
|
||||
union cvmx_asxx_rx_clk_setx {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rx_clk_setx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rx_clk_setx_s cn30xx;
|
||||
struct cvmx_asxx_rx_clk_setx_s cn31xx;
|
||||
@ -331,12 +437,22 @@ union cvmx_asxx_rx_clk_setx {
|
||||
union cvmx_asxx_rx_prt_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rx_prt_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t prt_en:4;
|
||||
#else
|
||||
uint64_t prt_en:4;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rx_prt_en_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_3_63:61;
|
||||
uint64_t prt_en:3;
|
||||
#else
|
||||
uint64_t prt_en:3;
|
||||
uint64_t reserved_3_63:61;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_rx_prt_en_cn30xx cn31xx;
|
||||
struct cvmx_asxx_rx_prt_en_s cn38xx;
|
||||
@ -349,9 +465,15 @@ union cvmx_asxx_rx_prt_en {
|
||||
union cvmx_asxx_rx_wol {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rx_wol_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t status:1;
|
||||
uint64_t enable:1;
|
||||
#else
|
||||
uint64_t enable:1;
|
||||
uint64_t status:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rx_wol_s cn38xx;
|
||||
struct cvmx_asxx_rx_wol_s cn38xxp2;
|
||||
@ -360,7 +482,11 @@ union cvmx_asxx_rx_wol {
|
||||
union cvmx_asxx_rx_wol_msk {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rx_wol_msk_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t msk:64;
|
||||
#else
|
||||
uint64_t msk:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rx_wol_msk_s cn38xx;
|
||||
struct cvmx_asxx_rx_wol_msk_s cn38xxp2;
|
||||
@ -369,8 +495,13 @@ union cvmx_asxx_rx_wol_msk {
|
||||
union cvmx_asxx_rx_wol_powok {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rx_wol_powok_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t powerok:1;
|
||||
#else
|
||||
uint64_t powerok:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rx_wol_powok_s cn38xx;
|
||||
struct cvmx_asxx_rx_wol_powok_s cn38xxp2;
|
||||
@ -379,8 +510,13 @@ union cvmx_asxx_rx_wol_powok {
|
||||
union cvmx_asxx_rx_wol_sig {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_rx_wol_sig_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t sig:32;
|
||||
#else
|
||||
uint64_t sig:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_rx_wol_sig_s cn38xx;
|
||||
struct cvmx_asxx_rx_wol_sig_s cn38xxp2;
|
||||
@ -389,8 +525,13 @@ union cvmx_asxx_rx_wol_sig {
|
||||
union cvmx_asxx_tx_clk_setx {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_tx_clk_setx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t setting:5;
|
||||
#else
|
||||
uint64_t setting:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_tx_clk_setx_s cn30xx;
|
||||
struct cvmx_asxx_tx_clk_setx_s cn31xx;
|
||||
@ -404,34 +545,67 @@ union cvmx_asxx_tx_clk_setx {
|
||||
union cvmx_asxx_tx_comp_byp {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_tx_comp_byp_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_0_63:64;
|
||||
#else
|
||||
uint64_t reserved_0_63:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_tx_comp_byp_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t bypass:1;
|
||||
uint64_t pctl:4;
|
||||
uint64_t nctl:4;
|
||||
#else
|
||||
uint64_t nctl:4;
|
||||
uint64_t pctl:4;
|
||||
uint64_t bypass:1;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_tx_comp_byp_cn30xx cn31xx;
|
||||
struct cvmx_asxx_tx_comp_byp_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t pctl:4;
|
||||
uint64_t nctl:4;
|
||||
#else
|
||||
uint64_t nctl:4;
|
||||
uint64_t pctl:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_asxx_tx_comp_byp_cn38xx cn38xxp2;
|
||||
struct cvmx_asxx_tx_comp_byp_cn50xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t bypass:1;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t nctl:5;
|
||||
#else
|
||||
uint64_t nctl:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t bypass:1;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} cn50xx;
|
||||
struct cvmx_asxx_tx_comp_byp_cn58xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t nctl:5;
|
||||
#else
|
||||
uint64_t nctl:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t pctl:5;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} cn58xx;
|
||||
struct cvmx_asxx_tx_comp_byp_cn58xx cn58xxp1;
|
||||
};
|
||||
@ -439,12 +613,22 @@ union cvmx_asxx_tx_comp_byp {
|
||||
union cvmx_asxx_tx_hi_waterx {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_tx_hi_waterx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t mark:4;
|
||||
#else
|
||||
uint64_t mark:4;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_tx_hi_waterx_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_3_63:61;
|
||||
uint64_t mark:3;
|
||||
#else
|
||||
uint64_t mark:3;
|
||||
uint64_t reserved_3_63:61;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_tx_hi_waterx_cn30xx cn31xx;
|
||||
struct cvmx_asxx_tx_hi_waterx_s cn38xx;
|
||||
@ -457,12 +641,22 @@ union cvmx_asxx_tx_hi_waterx {
|
||||
union cvmx_asxx_tx_prt_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_asxx_tx_prt_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t prt_en:4;
|
||||
#else
|
||||
uint64_t prt_en:4;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_asxx_tx_prt_en_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_3_63:61;
|
||||
uint64_t prt_en:3;
|
||||
#else
|
||||
uint64_t prt_en:3;
|
||||
uint64_t reserved_3_63:61;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_asxx_tx_prt_en_cn30xx cn31xx;
|
||||
struct cvmx_asxx_tx_prt_en_s cn38xx;
|
||||
|
File diff suppressed because it is too large
Load Diff
7108
arch/mips/include/asm/octeon/cvmx-ciu2-defs.h
Normal file
7108
arch/mips/include/asm/octeon/cvmx-ciu2-defs.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,27 +28,43 @@
|
||||
#ifndef __CVMX_DBG_DEFS_H__
|
||||
#define __CVMX_DBG_DEFS_H__
|
||||
|
||||
#define CVMX_DBG_DATA \
|
||||
CVMX_ADD_IO_SEG(0x00011F00000001E8ull)
|
||||
#define CVMX_DBG_DATA (CVMX_ADD_IO_SEG(0x00011F00000001E8ull))
|
||||
|
||||
union cvmx_dbg_data {
|
||||
uint64_t u64;
|
||||
struct cvmx_dbg_data_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_23_63:41;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t data:17;
|
||||
#else
|
||||
uint64_t data:17;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t reserved_23_63:41;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dbg_data_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_31_63:33;
|
||||
uint64_t pll_mul:3;
|
||||
uint64_t reserved_23_27:5;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t data:17;
|
||||
#else
|
||||
uint64_t data:17;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t reserved_23_27:5;
|
||||
uint64_t pll_mul:3;
|
||||
uint64_t reserved_31_63:33;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_dbg_data_cn30xx cn31xx;
|
||||
struct cvmx_dbg_data_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t d_mul:4;
|
||||
uint64_t dclk_mul2:1;
|
||||
@ -56,15 +72,32 @@ union cvmx_dbg_data {
|
||||
uint64_t c_mul:5;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t data:17;
|
||||
#else
|
||||
uint64_t data:17;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t cclk_div2:1;
|
||||
uint64_t dclk_mul2:1;
|
||||
uint64_t d_mul:4;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_dbg_data_cn38xx cn38xxp2;
|
||||
struct cvmx_dbg_data_cn30xx cn50xx;
|
||||
struct cvmx_dbg_data_cn58xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t rem:6;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t data:17;
|
||||
#else
|
||||
uint64_t data:17;
|
||||
uint64_t dsel_ext:1;
|
||||
uint64_t c_mul:5;
|
||||
uint64_t rem:6;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} cn58xx;
|
||||
struct cvmx_dbg_data_cn58xx cn58xxp1;
|
||||
};
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2011 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -55,52 +55,107 @@
|
||||
#define CVMX_DPI_REQ_ERR_SKIP_COMP (CVMX_ADD_IO_SEG(0x0001DF0000000838ull))
|
||||
#define CVMX_DPI_REQ_GBL_EN (CVMX_ADD_IO_SEG(0x0001DF0000000050ull))
|
||||
#define CVMX_DPI_SLI_PRTX_CFG(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000900ull) + ((offset) & 3) * 8)
|
||||
static inline uint64_t CVMX_DPI_SLI_PRTX_ERR(unsigned long offset)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS1))
|
||||
return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + (offset) * 8;
|
||||
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS2))
|
||||
return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
|
||||
return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + (offset) * 8;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
|
||||
}
|
||||
|
||||
#define CVMX_DPI_SLI_PRTX_ERR_INFO(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000940ull) + ((offset) & 3) * 8)
|
||||
|
||||
union cvmx_dpi_bist_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_bist_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_47_63:17;
|
||||
uint64_t bist:47;
|
||||
#else
|
||||
uint64_t bist:47;
|
||||
uint64_t reserved_47_63:17;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_bist_status_s cn61xx;
|
||||
struct cvmx_dpi_bist_status_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_45_63:19;
|
||||
uint64_t bist:45;
|
||||
#else
|
||||
uint64_t bist:45;
|
||||
uint64_t reserved_45_63:19;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_dpi_bist_status_cn63xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_37_63:27;
|
||||
uint64_t bist:37;
|
||||
#else
|
||||
uint64_t bist:37;
|
||||
uint64_t reserved_37_63:27;
|
||||
#endif
|
||||
} cn63xxp1;
|
||||
struct cvmx_dpi_bist_status_s cn66xx;
|
||||
struct cvmx_dpi_bist_status_cn63xx cn68xx;
|
||||
struct cvmx_dpi_bist_status_cn63xx cn68xxp1;
|
||||
struct cvmx_dpi_bist_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t clk:1;
|
||||
uint64_t en:1;
|
||||
#else
|
||||
uint64_t en:1;
|
||||
uint64_t clk:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_ctl_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t en:1;
|
||||
#else
|
||||
uint64_t en:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_dpi_ctl_s cn63xx;
|
||||
struct cvmx_dpi_ctl_s cn63xxp1;
|
||||
struct cvmx_dpi_ctl_s cn66xx;
|
||||
struct cvmx_dpi_ctl_s cn68xx;
|
||||
struct cvmx_dpi_ctl_s cn68xxp1;
|
||||
struct cvmx_dpi_ctl_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_counts {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_counts_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_39_63:25;
|
||||
uint64_t fcnt:7;
|
||||
uint64_t dbell:32;
|
||||
#else
|
||||
uint64_t dbell:32;
|
||||
uint64_t fcnt:7;
|
||||
uint64_t reserved_39_63:25;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_counts_s cn61xx;
|
||||
struct cvmx_dpi_dmax_counts_s cn63xx;
|
||||
@ -108,13 +163,19 @@ union cvmx_dpi_dmax_counts {
|
||||
struct cvmx_dpi_dmax_counts_s cn66xx;
|
||||
struct cvmx_dpi_dmax_counts_s cn68xx;
|
||||
struct cvmx_dpi_dmax_counts_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_counts_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_dbell {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_dbell_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t dbell:16;
|
||||
#else
|
||||
uint64_t dbell:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_dbell_s cn61xx;
|
||||
struct cvmx_dpi_dmax_dbell_s cn63xx;
|
||||
@ -122,31 +183,48 @@ union cvmx_dpi_dmax_dbell {
|
||||
struct cvmx_dpi_dmax_dbell_s cn66xx;
|
||||
struct cvmx_dpi_dmax_dbell_s cn68xx;
|
||||
struct cvmx_dpi_dmax_dbell_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_dbell_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_err_rsp_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_err_rsp_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t status:6;
|
||||
#else
|
||||
uint64_t status:6;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_err_rsp_status_s cn61xx;
|
||||
struct cvmx_dpi_dmax_err_rsp_status_s cn66xx;
|
||||
struct cvmx_dpi_dmax_err_rsp_status_s cn68xx;
|
||||
struct cvmx_dpi_dmax_err_rsp_status_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_err_rsp_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_ibuff_saddr {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_62_63:2;
|
||||
uint64_t csize:14;
|
||||
uint64_t reserved_41_47:7;
|
||||
uint64_t idle:1;
|
||||
uint64_t saddr:33;
|
||||
uint64_t reserved_0_6:7;
|
||||
#else
|
||||
uint64_t reserved_0_6:7;
|
||||
uint64_t saddr:33;
|
||||
uint64_t idle:1;
|
||||
uint64_t reserved_41_47:7;
|
||||
uint64_t csize:14;
|
||||
uint64_t reserved_62_63:2;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_62_63:2;
|
||||
uint64_t csize:14;
|
||||
uint64_t reserved_41_47:7;
|
||||
@ -154,47 +232,78 @@ union cvmx_dpi_dmax_ibuff_saddr {
|
||||
uint64_t reserved_36_39:4;
|
||||
uint64_t saddr:29;
|
||||
uint64_t reserved_0_6:7;
|
||||
#else
|
||||
uint64_t reserved_0_6:7;
|
||||
uint64_t saddr:29;
|
||||
uint64_t reserved_36_39:4;
|
||||
uint64_t idle:1;
|
||||
uint64_t reserved_41_47:7;
|
||||
uint64_t csize:14;
|
||||
uint64_t reserved_62_63:2;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn63xx;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn63xxp1;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn66xx;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_s cn68xx;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_iflight {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_iflight_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_3_63:61;
|
||||
uint64_t cnt:3;
|
||||
#else
|
||||
uint64_t cnt:3;
|
||||
uint64_t reserved_3_63:61;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_iflight_s cn61xx;
|
||||
struct cvmx_dpi_dmax_iflight_s cn66xx;
|
||||
struct cvmx_dpi_dmax_iflight_s cn68xx;
|
||||
struct cvmx_dpi_dmax_iflight_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_iflight_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_naddr {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_naddr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_40_63:24;
|
||||
uint64_t addr:40;
|
||||
#else
|
||||
uint64_t addr:40;
|
||||
uint64_t reserved_40_63:24;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_naddr_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_36_63:28;
|
||||
uint64_t addr:36;
|
||||
#else
|
||||
uint64_t addr:36;
|
||||
uint64_t reserved_36_63:28;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_dpi_dmax_naddr_cn61xx cn63xx;
|
||||
struct cvmx_dpi_dmax_naddr_cn61xx cn63xxp1;
|
||||
struct cvmx_dpi_dmax_naddr_cn61xx cn66xx;
|
||||
struct cvmx_dpi_dmax_naddr_s cn68xx;
|
||||
struct cvmx_dpi_dmax_naddr_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_naddr_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_reqbnk0 {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_reqbnk0_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t state:64;
|
||||
#else
|
||||
uint64_t state:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_reqbnk0_s cn61xx;
|
||||
struct cvmx_dpi_dmax_reqbnk0_s cn63xx;
|
||||
@ -202,12 +311,17 @@ union cvmx_dpi_dmax_reqbnk0 {
|
||||
struct cvmx_dpi_dmax_reqbnk0_s cn66xx;
|
||||
struct cvmx_dpi_dmax_reqbnk0_s cn68xx;
|
||||
struct cvmx_dpi_dmax_reqbnk0_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_reqbnk0_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dmax_reqbnk1 {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dmax_reqbnk1_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t state:64;
|
||||
#else
|
||||
uint64_t state:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dmax_reqbnk1_s cn61xx;
|
||||
struct cvmx_dpi_dmax_reqbnk1_s cn63xx;
|
||||
@ -215,11 +329,13 @@ union cvmx_dpi_dmax_reqbnk1 {
|
||||
struct cvmx_dpi_dmax_reqbnk1_s cn66xx;
|
||||
struct cvmx_dpi_dmax_reqbnk1_s cn68xx;
|
||||
struct cvmx_dpi_dmax_reqbnk1_s cn68xxp1;
|
||||
struct cvmx_dpi_dmax_reqbnk1_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dma_control {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dma_control_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_62_63:2;
|
||||
uint64_t dici_mode:1;
|
||||
uint64_t pkt_en1:1;
|
||||
@ -240,9 +356,32 @@ union cvmx_dpi_dma_control {
|
||||
uint64_t o_es:2;
|
||||
uint64_t o_mode:1;
|
||||
uint64_t reserved_0_13:14;
|
||||
#else
|
||||
uint64_t reserved_0_13:14;
|
||||
uint64_t o_mode:1;
|
||||
uint64_t o_es:2;
|
||||
uint64_t o_ns:1;
|
||||
uint64_t o_ro:1;
|
||||
uint64_t o_add1:1;
|
||||
uint64_t fpa_que:3;
|
||||
uint64_t dwb_ichk:9;
|
||||
uint64_t dwb_denb:1;
|
||||
uint64_t b0_lend:1;
|
||||
uint64_t reserved_34_47:14;
|
||||
uint64_t dma_enb:6;
|
||||
uint64_t reserved_54_55:2;
|
||||
uint64_t pkt_en:1;
|
||||
uint64_t pkt_hp:1;
|
||||
uint64_t commit_mode:1;
|
||||
uint64_t ffp_dis:1;
|
||||
uint64_t pkt_en1:1;
|
||||
uint64_t dici_mode:1;
|
||||
uint64_t reserved_62_63:2;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dma_control_s cn61xx;
|
||||
struct cvmx_dpi_dma_control_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_61_63:3;
|
||||
uint64_t pkt_en1:1;
|
||||
uint64_t ffp_dis:1;
|
||||
@ -262,8 +401,30 @@ union cvmx_dpi_dma_control {
|
||||
uint64_t o_es:2;
|
||||
uint64_t o_mode:1;
|
||||
uint64_t reserved_0_13:14;
|
||||
#else
|
||||
uint64_t reserved_0_13:14;
|
||||
uint64_t o_mode:1;
|
||||
uint64_t o_es:2;
|
||||
uint64_t o_ns:1;
|
||||
uint64_t o_ro:1;
|
||||
uint64_t o_add1:1;
|
||||
uint64_t fpa_que:3;
|
||||
uint64_t dwb_ichk:9;
|
||||
uint64_t dwb_denb:1;
|
||||
uint64_t b0_lend:1;
|
||||
uint64_t reserved_34_47:14;
|
||||
uint64_t dma_enb:6;
|
||||
uint64_t reserved_54_55:2;
|
||||
uint64_t pkt_en:1;
|
||||
uint64_t pkt_hp:1;
|
||||
uint64_t commit_mode:1;
|
||||
uint64_t ffp_dis:1;
|
||||
uint64_t pkt_en1:1;
|
||||
uint64_t reserved_61_63:3;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_dpi_dma_control_cn63xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_59_63:5;
|
||||
uint64_t commit_mode:1;
|
||||
uint64_t pkt_hp:1;
|
||||
@ -281,17 +442,42 @@ union cvmx_dpi_dma_control {
|
||||
uint64_t o_es:2;
|
||||
uint64_t o_mode:1;
|
||||
uint64_t reserved_0_13:14;
|
||||
#else
|
||||
uint64_t reserved_0_13:14;
|
||||
uint64_t o_mode:1;
|
||||
uint64_t o_es:2;
|
||||
uint64_t o_ns:1;
|
||||
uint64_t o_ro:1;
|
||||
uint64_t o_add1:1;
|
||||
uint64_t fpa_que:3;
|
||||
uint64_t dwb_ichk:9;
|
||||
uint64_t dwb_denb:1;
|
||||
uint64_t b0_lend:1;
|
||||
uint64_t reserved_34_47:14;
|
||||
uint64_t dma_enb:6;
|
||||
uint64_t reserved_54_55:2;
|
||||
uint64_t pkt_en:1;
|
||||
uint64_t pkt_hp:1;
|
||||
uint64_t commit_mode:1;
|
||||
uint64_t reserved_59_63:5;
|
||||
#endif
|
||||
} cn63xxp1;
|
||||
struct cvmx_dpi_dma_control_cn63xx cn66xx;
|
||||
struct cvmx_dpi_dma_control_s cn68xx;
|
||||
struct cvmx_dpi_dma_control_cn63xx cn68xxp1;
|
||||
struct cvmx_dpi_dma_control_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dma_engx_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dma_engx_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t qen:8;
|
||||
#else
|
||||
uint64_t qen:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dma_engx_en_s cn61xx;
|
||||
struct cvmx_dpi_dma_engx_en_s cn63xx;
|
||||
@ -299,63 +485,101 @@ union cvmx_dpi_dma_engx_en {
|
||||
struct cvmx_dpi_dma_engx_en_s cn66xx;
|
||||
struct cvmx_dpi_dma_engx_en_s cn68xx;
|
||||
struct cvmx_dpi_dma_engx_en_s cn68xxp1;
|
||||
struct cvmx_dpi_dma_engx_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_dma_ppx_cnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_dma_ppx_cnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t cnt:16;
|
||||
#else
|
||||
uint64_t cnt:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_dma_ppx_cnt_s cn61xx;
|
||||
struct cvmx_dpi_dma_ppx_cnt_s cn68xx;
|
||||
struct cvmx_dpi_dma_ppx_cnt_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_engx_buf {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_engx_buf_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_37_63:27;
|
||||
uint64_t compblks:5;
|
||||
uint64_t reserved_9_31:23;
|
||||
uint64_t base:5;
|
||||
uint64_t blks:4;
|
||||
#else
|
||||
uint64_t blks:4;
|
||||
uint64_t base:5;
|
||||
uint64_t reserved_9_31:23;
|
||||
uint64_t compblks:5;
|
||||
uint64_t reserved_37_63:27;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_engx_buf_s cn61xx;
|
||||
struct cvmx_dpi_engx_buf_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t base:4;
|
||||
uint64_t blks:4;
|
||||
#else
|
||||
uint64_t blks:4;
|
||||
uint64_t base:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_dpi_engx_buf_cn63xx cn63xxp1;
|
||||
struct cvmx_dpi_engx_buf_s cn66xx;
|
||||
struct cvmx_dpi_engx_buf_s cn68xx;
|
||||
struct cvmx_dpi_engx_buf_s cn68xxp1;
|
||||
struct cvmx_dpi_engx_buf_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_info_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_info_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t ffp:4;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t ncb:1;
|
||||
uint64_t rsl:1;
|
||||
#else
|
||||
uint64_t rsl:1;
|
||||
uint64_t ncb:1;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t ffp:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_info_reg_s cn61xx;
|
||||
struct cvmx_dpi_info_reg_s cn63xx;
|
||||
struct cvmx_dpi_info_reg_cn63xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t ncb:1;
|
||||
uint64_t rsl:1;
|
||||
#else
|
||||
uint64_t rsl:1;
|
||||
uint64_t ncb:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} cn63xxp1;
|
||||
struct cvmx_dpi_info_reg_s cn66xx;
|
||||
struct cvmx_dpi_info_reg_s cn68xx;
|
||||
struct cvmx_dpi_info_reg_s cn68xxp1;
|
||||
struct cvmx_dpi_info_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_int_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_int_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t sprt3_rst:1;
|
||||
uint64_t sprt2_rst:1;
|
||||
@ -373,9 +597,29 @@ union cvmx_dpi_int_en {
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t nderr:1;
|
||||
#else
|
||||
uint64_t nderr:1;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t dmadbo:8;
|
||||
uint64_t req_badadr:1;
|
||||
uint64_t req_badlen:1;
|
||||
uint64_t req_ovrflw:1;
|
||||
uint64_t req_undflw:1;
|
||||
uint64_t req_anull:1;
|
||||
uint64_t req_inull:1;
|
||||
uint64_t req_badfil:1;
|
||||
uint64_t reserved_23_23:1;
|
||||
uint64_t sprt0_rst:1;
|
||||
uint64_t sprt1_rst:1;
|
||||
uint64_t sprt2_rst:1;
|
||||
uint64_t sprt3_rst:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_int_en_s cn61xx;
|
||||
struct cvmx_dpi_int_en_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_26_63:38;
|
||||
uint64_t sprt1_rst:1;
|
||||
uint64_t sprt0_rst:1;
|
||||
@ -391,16 +635,35 @@ union cvmx_dpi_int_en {
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t nderr:1;
|
||||
#else
|
||||
uint64_t nderr:1;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t dmadbo:8;
|
||||
uint64_t req_badadr:1;
|
||||
uint64_t req_badlen:1;
|
||||
uint64_t req_ovrflw:1;
|
||||
uint64_t req_undflw:1;
|
||||
uint64_t req_anull:1;
|
||||
uint64_t req_inull:1;
|
||||
uint64_t req_badfil:1;
|
||||
uint64_t reserved_23_23:1;
|
||||
uint64_t sprt0_rst:1;
|
||||
uint64_t sprt1_rst:1;
|
||||
uint64_t reserved_26_63:38;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_dpi_int_en_cn63xx cn63xxp1;
|
||||
struct cvmx_dpi_int_en_s cn66xx;
|
||||
struct cvmx_dpi_int_en_cn63xx cn68xx;
|
||||
struct cvmx_dpi_int_en_cn63xx cn68xxp1;
|
||||
struct cvmx_dpi_int_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_int_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_int_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t sprt3_rst:1;
|
||||
uint64_t sprt2_rst:1;
|
||||
@ -418,9 +681,29 @@ union cvmx_dpi_int_reg {
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t nderr:1;
|
||||
#else
|
||||
uint64_t nderr:1;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t dmadbo:8;
|
||||
uint64_t req_badadr:1;
|
||||
uint64_t req_badlen:1;
|
||||
uint64_t req_ovrflw:1;
|
||||
uint64_t req_undflw:1;
|
||||
uint64_t req_anull:1;
|
||||
uint64_t req_inull:1;
|
||||
uint64_t req_badfil:1;
|
||||
uint64_t reserved_23_23:1;
|
||||
uint64_t sprt0_rst:1;
|
||||
uint64_t sprt1_rst:1;
|
||||
uint64_t sprt2_rst:1;
|
||||
uint64_t sprt3_rst:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_int_reg_s cn61xx;
|
||||
struct cvmx_dpi_int_reg_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_26_63:38;
|
||||
uint64_t sprt1_rst:1;
|
||||
uint64_t sprt0_rst:1;
|
||||
@ -436,31 +719,62 @@ union cvmx_dpi_int_reg {
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t nderr:1;
|
||||
#else
|
||||
uint64_t nderr:1;
|
||||
uint64_t nfovr:1;
|
||||
uint64_t reserved_2_7:6;
|
||||
uint64_t dmadbo:8;
|
||||
uint64_t req_badadr:1;
|
||||
uint64_t req_badlen:1;
|
||||
uint64_t req_ovrflw:1;
|
||||
uint64_t req_undflw:1;
|
||||
uint64_t req_anull:1;
|
||||
uint64_t req_inull:1;
|
||||
uint64_t req_badfil:1;
|
||||
uint64_t reserved_23_23:1;
|
||||
uint64_t sprt0_rst:1;
|
||||
uint64_t sprt1_rst:1;
|
||||
uint64_t reserved_26_63:38;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_dpi_int_reg_cn63xx cn63xxp1;
|
||||
struct cvmx_dpi_int_reg_s cn66xx;
|
||||
struct cvmx_dpi_int_reg_cn63xx cn68xx;
|
||||
struct cvmx_dpi_int_reg_cn63xx cn68xxp1;
|
||||
struct cvmx_dpi_int_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_ncbx_cfg {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_ncbx_cfg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t molr:6;
|
||||
#else
|
||||
uint64_t molr:6;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_ncbx_cfg_s cn61xx;
|
||||
struct cvmx_dpi_ncbx_cfg_s cn66xx;
|
||||
struct cvmx_dpi_ncbx_cfg_s cn68xx;
|
||||
struct cvmx_dpi_ncbx_cfg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_pint_info {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_pint_info_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t iinfo:6;
|
||||
uint64_t reserved_6_7:2;
|
||||
uint64_t sinfo:6;
|
||||
#else
|
||||
uint64_t sinfo:6;
|
||||
uint64_t reserved_6_7:2;
|
||||
uint64_t iinfo:6;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_pint_info_s cn61xx;
|
||||
struct cvmx_dpi_pint_info_s cn63xx;
|
||||
@ -468,13 +782,19 @@ union cvmx_dpi_pint_info {
|
||||
struct cvmx_dpi_pint_info_s cn66xx;
|
||||
struct cvmx_dpi_pint_info_s cn68xx;
|
||||
struct cvmx_dpi_pint_info_s cn68xxp1;
|
||||
struct cvmx_dpi_pint_info_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_pkt_err_rsp {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_pkt_err_rsp_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t pkterr:1;
|
||||
#else
|
||||
uint64_t pkterr:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_pkt_err_rsp_s cn61xx;
|
||||
struct cvmx_dpi_pkt_err_rsp_s cn63xx;
|
||||
@ -482,13 +802,19 @@ union cvmx_dpi_pkt_err_rsp {
|
||||
struct cvmx_dpi_pkt_err_rsp_s cn66xx;
|
||||
struct cvmx_dpi_pkt_err_rsp_s cn68xx;
|
||||
struct cvmx_dpi_pkt_err_rsp_s cn68xxp1;
|
||||
struct cvmx_dpi_pkt_err_rsp_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_req_err_rsp {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_req_err_rsp_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t qerr:8;
|
||||
#else
|
||||
uint64_t qerr:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_req_err_rsp_s cn61xx;
|
||||
struct cvmx_dpi_req_err_rsp_s cn63xx;
|
||||
@ -496,13 +822,19 @@ union cvmx_dpi_req_err_rsp {
|
||||
struct cvmx_dpi_req_err_rsp_s cn66xx;
|
||||
struct cvmx_dpi_req_err_rsp_s cn68xx;
|
||||
struct cvmx_dpi_req_err_rsp_s cn68xxp1;
|
||||
struct cvmx_dpi_req_err_rsp_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_req_err_rsp_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_req_err_rsp_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t en:8;
|
||||
#else
|
||||
uint64_t en:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_req_err_rsp_en_s cn61xx;
|
||||
struct cvmx_dpi_req_err_rsp_en_s cn63xx;
|
||||
@ -510,13 +842,19 @@ union cvmx_dpi_req_err_rsp_en {
|
||||
struct cvmx_dpi_req_err_rsp_en_s cn66xx;
|
||||
struct cvmx_dpi_req_err_rsp_en_s cn68xx;
|
||||
struct cvmx_dpi_req_err_rsp_en_s cn68xxp1;
|
||||
struct cvmx_dpi_req_err_rsp_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_req_err_rst {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_req_err_rst_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t qerr:8;
|
||||
#else
|
||||
uint64_t qerr:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_req_err_rst_s cn61xx;
|
||||
struct cvmx_dpi_req_err_rst_s cn63xx;
|
||||
@ -524,13 +862,19 @@ union cvmx_dpi_req_err_rst {
|
||||
struct cvmx_dpi_req_err_rst_s cn66xx;
|
||||
struct cvmx_dpi_req_err_rst_s cn68xx;
|
||||
struct cvmx_dpi_req_err_rst_s cn68xxp1;
|
||||
struct cvmx_dpi_req_err_rst_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_req_err_rst_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_req_err_rst_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t en:8;
|
||||
#else
|
||||
uint64_t en:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_req_err_rst_en_s cn61xx;
|
||||
struct cvmx_dpi_req_err_rst_en_s cn63xx;
|
||||
@ -538,27 +882,41 @@ union cvmx_dpi_req_err_rst_en {
|
||||
struct cvmx_dpi_req_err_rst_en_s cn66xx;
|
||||
struct cvmx_dpi_req_err_rst_en_s cn68xx;
|
||||
struct cvmx_dpi_req_err_rst_en_s cn68xxp1;
|
||||
struct cvmx_dpi_req_err_rst_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_req_err_skip_comp {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_req_err_skip_comp_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_24_63:40;
|
||||
uint64_t en_rst:8;
|
||||
uint64_t reserved_8_15:8;
|
||||
uint64_t en_rsp:8;
|
||||
#else
|
||||
uint64_t en_rsp:8;
|
||||
uint64_t reserved_8_15:8;
|
||||
uint64_t en_rst:8;
|
||||
uint64_t reserved_24_63:40;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_req_err_skip_comp_s cn61xx;
|
||||
struct cvmx_dpi_req_err_skip_comp_s cn66xx;
|
||||
struct cvmx_dpi_req_err_skip_comp_s cn68xx;
|
||||
struct cvmx_dpi_req_err_skip_comp_s cn68xxp1;
|
||||
struct cvmx_dpi_req_err_skip_comp_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_req_gbl_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_req_gbl_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t qen:8;
|
||||
#else
|
||||
uint64_t qen:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_req_gbl_en_s cn61xx;
|
||||
struct cvmx_dpi_req_gbl_en_s cn63xx;
|
||||
@ -566,11 +924,13 @@ union cvmx_dpi_req_gbl_en {
|
||||
struct cvmx_dpi_req_gbl_en_s cn66xx;
|
||||
struct cvmx_dpi_req_gbl_en_s cn68xx;
|
||||
struct cvmx_dpi_req_gbl_en_s cn68xxp1;
|
||||
struct cvmx_dpi_req_gbl_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_sli_prtx_cfg {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_sli_prtx_cfg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_25_63:39;
|
||||
uint64_t halt:1;
|
||||
uint64_t qlm_cfg:4;
|
||||
@ -584,9 +944,25 @@ union cvmx_dpi_sli_prtx_cfg {
|
||||
uint64_t mrrs_lim:1;
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t mrrs:2;
|
||||
#else
|
||||
uint64_t mrrs:2;
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t mrrs_lim:1;
|
||||
uint64_t mps:1;
|
||||
uint64_t reserved_5_6:2;
|
||||
uint64_t mps_lim:1;
|
||||
uint64_t molr:6;
|
||||
uint64_t reserved_14_15:2;
|
||||
uint64_t rd_mode:1;
|
||||
uint64_t reserved_17_19:3;
|
||||
uint64_t qlm_cfg:4;
|
||||
uint64_t halt:1;
|
||||
uint64_t reserved_25_63:39;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_sli_prtx_cfg_s cn61xx;
|
||||
struct cvmx_dpi_sli_prtx_cfg_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_25_63:39;
|
||||
uint64_t halt:1;
|
||||
uint64_t reserved_21_23:3;
|
||||
@ -601,18 +977,40 @@ union cvmx_dpi_sli_prtx_cfg {
|
||||
uint64_t mrrs_lim:1;
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t mrrs:2;
|
||||
#else
|
||||
uint64_t mrrs:2;
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t mrrs_lim:1;
|
||||
uint64_t mps:1;
|
||||
uint64_t reserved_5_6:2;
|
||||
uint64_t mps_lim:1;
|
||||
uint64_t molr:6;
|
||||
uint64_t reserved_14_15:2;
|
||||
uint64_t rd_mode:1;
|
||||
uint64_t reserved_17_19:3;
|
||||
uint64_t qlm_cfg:1;
|
||||
uint64_t reserved_21_23:3;
|
||||
uint64_t halt:1;
|
||||
uint64_t reserved_25_63:39;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_dpi_sli_prtx_cfg_cn63xx cn63xxp1;
|
||||
struct cvmx_dpi_sli_prtx_cfg_s cn66xx;
|
||||
struct cvmx_dpi_sli_prtx_cfg_cn63xx cn68xx;
|
||||
struct cvmx_dpi_sli_prtx_cfg_cn63xx cn68xxp1;
|
||||
struct cvmx_dpi_sli_prtx_cfg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_sli_prtx_err {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_sli_prtx_err_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:61;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t addr:61;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_sli_prtx_err_s cn61xx;
|
||||
struct cvmx_dpi_sli_prtx_err_s cn63xx;
|
||||
@ -620,17 +1018,27 @@ union cvmx_dpi_sli_prtx_err {
|
||||
struct cvmx_dpi_sli_prtx_err_s cn66xx;
|
||||
struct cvmx_dpi_sli_prtx_err_s cn68xx;
|
||||
struct cvmx_dpi_sli_prtx_err_s cn68xxp1;
|
||||
struct cvmx_dpi_sli_prtx_err_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_dpi_sli_prtx_err_info {
|
||||
uint64_t u64;
|
||||
struct cvmx_dpi_sli_prtx_err_info_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t lock:1;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t type:1;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t reqq:3;
|
||||
#else
|
||||
uint64_t reqq:3;
|
||||
uint64_t reserved_3_3:1;
|
||||
uint64_t type:1;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t lock:1;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_dpi_sli_prtx_err_info_s cn61xx;
|
||||
struct cvmx_dpi_sli_prtx_err_info_s cn63xx;
|
||||
@ -638,6 +1046,7 @@ union cvmx_dpi_sli_prtx_err_info {
|
||||
struct cvmx_dpi_sli_prtx_err_info_s cn66xx;
|
||||
struct cvmx_dpi_sli_prtx_err_info_s cn68xx;
|
||||
struct cvmx_dpi_sli_prtx_err_info_s cn68xxp1;
|
||||
struct cvmx_dpi_sli_prtx_err_info_s cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -34,7 +34,10 @@
|
||||
#define CVMX_GPIO_CLK_QLMX(offset) (CVMX_ADD_IO_SEG(0x00010700000008E0ull) + ((offset) & 1) * 8)
|
||||
#define CVMX_GPIO_DBG_ENA (CVMX_ADD_IO_SEG(0x00010700000008A0ull))
|
||||
#define CVMX_GPIO_INT_CLR (CVMX_ADD_IO_SEG(0x0001070000000898ull))
|
||||
#define CVMX_GPIO_MULTI_CAST (CVMX_ADD_IO_SEG(0x00010700000008B0ull))
|
||||
#define CVMX_GPIO_PIN_ENA (CVMX_ADD_IO_SEG(0x00010700000008B8ull))
|
||||
#define CVMX_GPIO_RX_DAT (CVMX_ADD_IO_SEG(0x0001070000000880ull))
|
||||
#define CVMX_GPIO_TIM_CTL (CVMX_ADD_IO_SEG(0x00010700000008A0ull))
|
||||
#define CVMX_GPIO_TX_CLR (CVMX_ADD_IO_SEG(0x0001070000000890ull))
|
||||
#define CVMX_GPIO_TX_SET (CVMX_ADD_IO_SEG(0x0001070000000888ull))
|
||||
#define CVMX_GPIO_XBIT_CFGX(offset) (CVMX_ADD_IO_SEG(0x0001070000000900ull) + ((offset) & 31) * 8 - 8*16)
|
||||
@ -42,6 +45,7 @@
|
||||
union cvmx_gpio_bit_cfgx {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_bit_cfgx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t synce_sel:2;
|
||||
uint64_t clk_gen:1;
|
||||
@ -52,8 +56,21 @@ union cvmx_gpio_bit_cfgx {
|
||||
uint64_t int_en:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t tx_oe:1;
|
||||
#else
|
||||
uint64_t tx_oe:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t int_en:1;
|
||||
uint64_t int_type:1;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t clk_sel:2;
|
||||
uint64_t clk_gen:1;
|
||||
uint64_t synce_sel:2;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t fil_cnt:4;
|
||||
@ -61,12 +78,22 @@ union cvmx_gpio_bit_cfgx {
|
||||
uint64_t int_en:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t tx_oe:1;
|
||||
#else
|
||||
uint64_t tx_oe:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t int_en:1;
|
||||
uint64_t int_type:1;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx cn31xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx cn38xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx cn38xxp2;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx cn50xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_15_63:49;
|
||||
uint64_t clk_gen:1;
|
||||
uint64_t clk_sel:2;
|
||||
@ -76,22 +103,44 @@ union cvmx_gpio_bit_cfgx {
|
||||
uint64_t int_en:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t tx_oe:1;
|
||||
#else
|
||||
uint64_t tx_oe:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t int_en:1;
|
||||
uint64_t int_type:1;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t clk_sel:2;
|
||||
uint64_t clk_gen:1;
|
||||
uint64_t reserved_15_63:49;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn52xx cn52xxp1;
|
||||
struct cvmx_gpio_bit_cfgx_cn52xx cn56xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn52xx cn56xxp1;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx cn58xx;
|
||||
struct cvmx_gpio_bit_cfgx_cn30xx cn58xxp1;
|
||||
struct cvmx_gpio_bit_cfgx_s cn61xx;
|
||||
struct cvmx_gpio_bit_cfgx_s cn63xx;
|
||||
struct cvmx_gpio_bit_cfgx_s cn63xxp1;
|
||||
struct cvmx_gpio_bit_cfgx_s cn66xx;
|
||||
struct cvmx_gpio_bit_cfgx_s cn68xx;
|
||||
struct cvmx_gpio_bit_cfgx_s cn68xxp1;
|
||||
struct cvmx_gpio_bit_cfgx_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_boot_ena {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_boot_ena_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t boot_ena:4;
|
||||
uint64_t reserved_0_7:8;
|
||||
#else
|
||||
uint64_t reserved_0_7:8;
|
||||
uint64_t boot_ena:4;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_boot_ena_s cn30xx;
|
||||
struct cvmx_gpio_boot_ena_s cn31xx;
|
||||
@ -101,33 +150,87 @@ union cvmx_gpio_boot_ena {
|
||||
union cvmx_gpio_clk_genx {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_clk_genx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t n:32;
|
||||
#else
|
||||
uint64_t n:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_clk_genx_s cn52xx;
|
||||
struct cvmx_gpio_clk_genx_s cn52xxp1;
|
||||
struct cvmx_gpio_clk_genx_s cn56xx;
|
||||
struct cvmx_gpio_clk_genx_s cn56xxp1;
|
||||
struct cvmx_gpio_clk_genx_s cn61xx;
|
||||
struct cvmx_gpio_clk_genx_s cn63xx;
|
||||
struct cvmx_gpio_clk_genx_s cn63xxp1;
|
||||
struct cvmx_gpio_clk_genx_s cn66xx;
|
||||
struct cvmx_gpio_clk_genx_s cn68xx;
|
||||
struct cvmx_gpio_clk_genx_s cn68xxp1;
|
||||
struct cvmx_gpio_clk_genx_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_clk_qlmx {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_clk_qlmx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_11_63:53;
|
||||
uint64_t qlm_sel:3;
|
||||
uint64_t reserved_3_7:5;
|
||||
uint64_t div:1;
|
||||
uint64_t lane_sel:2;
|
||||
#else
|
||||
uint64_t lane_sel:2;
|
||||
uint64_t div:1;
|
||||
uint64_t reserved_3_7:5;
|
||||
uint64_t qlm_sel:3;
|
||||
uint64_t reserved_11_63:53;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_clk_qlmx_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_10_63:54;
|
||||
uint64_t qlm_sel:2;
|
||||
uint64_t reserved_3_7:5;
|
||||
uint64_t div:1;
|
||||
uint64_t lane_sel:2;
|
||||
#else
|
||||
uint64_t lane_sel:2;
|
||||
uint64_t div:1;
|
||||
uint64_t reserved_3_7:5;
|
||||
uint64_t qlm_sel:2;
|
||||
uint64_t reserved_10_63:54;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_gpio_clk_qlmx_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_3_63:61;
|
||||
uint64_t div:1;
|
||||
uint64_t lane_sel:2;
|
||||
} s;
|
||||
struct cvmx_gpio_clk_qlmx_s cn63xx;
|
||||
struct cvmx_gpio_clk_qlmx_s cn63xxp1;
|
||||
#else
|
||||
uint64_t lane_sel:2;
|
||||
uint64_t div:1;
|
||||
uint64_t reserved_3_63:61;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_gpio_clk_qlmx_cn63xx cn63xxp1;
|
||||
struct cvmx_gpio_clk_qlmx_cn61xx cn66xx;
|
||||
struct cvmx_gpio_clk_qlmx_s cn68xx;
|
||||
struct cvmx_gpio_clk_qlmx_s cn68xxp1;
|
||||
struct cvmx_gpio_clk_qlmx_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_dbg_ena {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_dbg_ena_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_21_63:43;
|
||||
uint64_t dbg_ena:21;
|
||||
#else
|
||||
uint64_t dbg_ena:21;
|
||||
uint64_t reserved_21_63:43;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_dbg_ena_s cn30xx;
|
||||
struct cvmx_gpio_dbg_ena_s cn31xx;
|
||||
@ -137,8 +240,13 @@ union cvmx_gpio_dbg_ena {
|
||||
union cvmx_gpio_int_clr {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_int_clr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t type:16;
|
||||
#else
|
||||
uint64_t type:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_int_clr_s cn30xx;
|
||||
struct cvmx_gpio_int_clr_s cn31xx;
|
||||
@ -151,21 +259,69 @@ union cvmx_gpio_int_clr {
|
||||
struct cvmx_gpio_int_clr_s cn56xxp1;
|
||||
struct cvmx_gpio_int_clr_s cn58xx;
|
||||
struct cvmx_gpio_int_clr_s cn58xxp1;
|
||||
struct cvmx_gpio_int_clr_s cn61xx;
|
||||
struct cvmx_gpio_int_clr_s cn63xx;
|
||||
struct cvmx_gpio_int_clr_s cn63xxp1;
|
||||
struct cvmx_gpio_int_clr_s cn66xx;
|
||||
struct cvmx_gpio_int_clr_s cn68xx;
|
||||
struct cvmx_gpio_int_clr_s cn68xxp1;
|
||||
struct cvmx_gpio_int_clr_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_multi_cast {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_multi_cast_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t en:1;
|
||||
#else
|
||||
uint64_t en:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_multi_cast_s cn61xx;
|
||||
struct cvmx_gpio_multi_cast_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_pin_ena {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_pin_ena_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t ena19:1;
|
||||
uint64_t ena18:1;
|
||||
uint64_t reserved_0_17:18;
|
||||
#else
|
||||
uint64_t reserved_0_17:18;
|
||||
uint64_t ena18:1;
|
||||
uint64_t ena19:1;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_pin_ena_s cn66xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_rx_dat {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_rx_dat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_24_63:40;
|
||||
uint64_t dat:24;
|
||||
#else
|
||||
uint64_t dat:24;
|
||||
uint64_t reserved_24_63:40;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_rx_dat_s cn30xx;
|
||||
struct cvmx_gpio_rx_dat_s cn31xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t dat:16;
|
||||
#else
|
||||
uint64_t dat:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn38xxp2;
|
||||
struct cvmx_gpio_rx_dat_s cn50xx;
|
||||
@ -175,21 +331,59 @@ union cvmx_gpio_rx_dat {
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn56xxp1;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn58xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn58xxp1;
|
||||
struct cvmx_gpio_rx_dat_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t dat:20;
|
||||
#else
|
||||
uint64_t dat:20;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn63xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn63xxp1;
|
||||
struct cvmx_gpio_rx_dat_cn61xx cn66xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn68xx;
|
||||
struct cvmx_gpio_rx_dat_cn38xx cn68xxp1;
|
||||
struct cvmx_gpio_rx_dat_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_tim_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_tim_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t sel:4;
|
||||
#else
|
||||
uint64_t sel:4;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_tim_ctl_s cn68xx;
|
||||
struct cvmx_gpio_tim_ctl_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_gpio_tx_clr {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_tx_clr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_24_63:40;
|
||||
uint64_t clr:24;
|
||||
#else
|
||||
uint64_t clr:24;
|
||||
uint64_t reserved_24_63:40;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_tx_clr_s cn30xx;
|
||||
struct cvmx_gpio_tx_clr_s cn31xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t clr:16;
|
||||
#else
|
||||
uint64_t clr:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn38xxp2;
|
||||
struct cvmx_gpio_tx_clr_s cn50xx;
|
||||
@ -199,21 +393,44 @@ union cvmx_gpio_tx_clr {
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn56xxp1;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn58xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn58xxp1;
|
||||
struct cvmx_gpio_tx_clr_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t clr:20;
|
||||
#else
|
||||
uint64_t clr:20;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn63xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn63xxp1;
|
||||
struct cvmx_gpio_tx_clr_cn61xx cn66xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn68xx;
|
||||
struct cvmx_gpio_tx_clr_cn38xx cn68xxp1;
|
||||
struct cvmx_gpio_tx_clr_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_tx_set {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_tx_set_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_24_63:40;
|
||||
uint64_t set:24;
|
||||
#else
|
||||
uint64_t set:24;
|
||||
uint64_t reserved_24_63:40;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_tx_set_s cn30xx;
|
||||
struct cvmx_gpio_tx_set_s cn31xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t set:16;
|
||||
#else
|
||||
uint64_t set:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn38xxp2;
|
||||
struct cvmx_gpio_tx_set_s cn50xx;
|
||||
@ -223,23 +440,72 @@ union cvmx_gpio_tx_set {
|
||||
struct cvmx_gpio_tx_set_cn38xx cn56xxp1;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn58xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn58xxp1;
|
||||
struct cvmx_gpio_tx_set_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t set:20;
|
||||
#else
|
||||
uint64_t set:20;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn63xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn63xxp1;
|
||||
struct cvmx_gpio_tx_set_cn61xx cn66xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn68xx;
|
||||
struct cvmx_gpio_tx_set_cn38xx cn68xxp1;
|
||||
struct cvmx_gpio_tx_set_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_gpio_xbit_cfgx {
|
||||
uint64_t u64;
|
||||
struct cvmx_gpio_xbit_cfgx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t synce_sel:2;
|
||||
uint64_t clk_gen:1;
|
||||
uint64_t clk_sel:2;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t int_type:1;
|
||||
uint64_t int_en:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t tx_oe:1;
|
||||
#else
|
||||
uint64_t tx_oe:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t int_en:1;
|
||||
uint64_t int_type:1;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t clk_sel:2;
|
||||
uint64_t clk_gen:1;
|
||||
uint64_t synce_sel:2;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_gpio_xbit_cfgx_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t tx_oe:1;
|
||||
} s;
|
||||
struct cvmx_gpio_xbit_cfgx_s cn30xx;
|
||||
struct cvmx_gpio_xbit_cfgx_s cn31xx;
|
||||
struct cvmx_gpio_xbit_cfgx_s cn50xx;
|
||||
#else
|
||||
uint64_t tx_oe:1;
|
||||
uint64_t rx_xor:1;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t fil_cnt:4;
|
||||
uint64_t fil_sel:4;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_gpio_xbit_cfgx_cn30xx cn31xx;
|
||||
struct cvmx_gpio_xbit_cfgx_cn30xx cn50xx;
|
||||
struct cvmx_gpio_xbit_cfgx_s cn61xx;
|
||||
struct cvmx_gpio_xbit_cfgx_s cn66xx;
|
||||
struct cvmx_gpio_xbit_cfgx_s cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -44,9 +44,15 @@
|
||||
union cvmx_l2d_bst0 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_bst0_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_35_63:29;
|
||||
uint64_t ftl:1;
|
||||
uint64_t q0stat:34;
|
||||
#else
|
||||
uint64_t q0stat:34;
|
||||
uint64_t ftl:1;
|
||||
uint64_t reserved_35_63:29;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_bst0_s cn30xx;
|
||||
struct cvmx_l2d_bst0_s cn31xx;
|
||||
@ -64,8 +70,13 @@ union cvmx_l2d_bst0 {
|
||||
union cvmx_l2d_bst1 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_bst1_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_34_63:30;
|
||||
uint64_t q1stat:34;
|
||||
#else
|
||||
uint64_t q1stat:34;
|
||||
uint64_t reserved_34_63:30;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_bst1_s cn30xx;
|
||||
struct cvmx_l2d_bst1_s cn31xx;
|
||||
@ -83,8 +94,13 @@ union cvmx_l2d_bst1 {
|
||||
union cvmx_l2d_bst2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_bst2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_34_63:30;
|
||||
uint64_t q2stat:34;
|
||||
#else
|
||||
uint64_t q2stat:34;
|
||||
uint64_t reserved_34_63:30;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_bst2_s cn30xx;
|
||||
struct cvmx_l2d_bst2_s cn31xx;
|
||||
@ -102,8 +118,13 @@ union cvmx_l2d_bst2 {
|
||||
union cvmx_l2d_bst3 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_bst3_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_34_63:30;
|
||||
uint64_t q3stat:34;
|
||||
#else
|
||||
uint64_t q3stat:34;
|
||||
uint64_t reserved_34_63:30;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_bst3_s cn30xx;
|
||||
struct cvmx_l2d_bst3_s cn31xx;
|
||||
@ -121,6 +142,7 @@ union cvmx_l2d_bst3 {
|
||||
union cvmx_l2d_err {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_err_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t bmhclsel:1;
|
||||
uint64_t ded_err:1;
|
||||
@ -128,6 +150,15 @@ union cvmx_l2d_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t bmhclsel:1;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_err_s cn30xx;
|
||||
struct cvmx_l2d_err_s cn31xx;
|
||||
@ -145,48 +176,97 @@ union cvmx_l2d_err {
|
||||
union cvmx_l2d_fadr {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fadr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_19_63:45;
|
||||
uint64_t fadru:1;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t fset:3;
|
||||
uint64_t fadr:11;
|
||||
#else
|
||||
uint64_t fadr:11;
|
||||
uint64_t fset:3;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t fadru:1;
|
||||
uint64_t reserved_19_63:45;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fadr_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_13_13:1;
|
||||
uint64_t fset:2;
|
||||
uint64_t reserved_9_10:2;
|
||||
uint64_t fadr:9;
|
||||
#else
|
||||
uint64_t fadr:9;
|
||||
uint64_t reserved_9_10:2;
|
||||
uint64_t fset:2;
|
||||
uint64_t reserved_13_13:1;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_l2d_fadr_cn31xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_13_13:1;
|
||||
uint64_t fset:2;
|
||||
uint64_t reserved_10_10:1;
|
||||
uint64_t fadr:10;
|
||||
#else
|
||||
uint64_t fadr:10;
|
||||
uint64_t reserved_10_10:1;
|
||||
uint64_t fset:2;
|
||||
uint64_t reserved_13_13:1;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} cn31xx;
|
||||
struct cvmx_l2d_fadr_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t fset:3;
|
||||
uint64_t fadr:11;
|
||||
#else
|
||||
uint64_t fadr:11;
|
||||
uint64_t fset:3;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_l2d_fadr_cn38xx cn38xxp2;
|
||||
struct cvmx_l2d_fadr_cn50xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t fset:3;
|
||||
uint64_t reserved_8_10:3;
|
||||
uint64_t fadr:8;
|
||||
#else
|
||||
uint64_t fadr:8;
|
||||
uint64_t reserved_8_10:3;
|
||||
uint64_t fset:3;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} cn50xx;
|
||||
struct cvmx_l2d_fadr_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t fset:3;
|
||||
uint64_t reserved_10_10:1;
|
||||
uint64_t fadr:10;
|
||||
#else
|
||||
uint64_t fadr:10;
|
||||
uint64_t reserved_10_10:1;
|
||||
uint64_t fset:3;
|
||||
uint64_t fowmsk:4;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_l2d_fadr_cn52xx cn52xxp1;
|
||||
struct cvmx_l2d_fadr_s cn56xx;
|
||||
@ -198,9 +278,15 @@ union cvmx_l2d_fadr {
|
||||
union cvmx_l2d_fsyn0 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fsyn0_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t fsyn_ow1:10;
|
||||
uint64_t fsyn_ow0:10;
|
||||
#else
|
||||
uint64_t fsyn_ow0:10;
|
||||
uint64_t fsyn_ow1:10;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fsyn0_s cn30xx;
|
||||
struct cvmx_l2d_fsyn0_s cn31xx;
|
||||
@ -218,9 +304,15 @@ union cvmx_l2d_fsyn0 {
|
||||
union cvmx_l2d_fsyn1 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fsyn1_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t fsyn_ow3:10;
|
||||
uint64_t fsyn_ow2:10;
|
||||
#else
|
||||
uint64_t fsyn_ow2:10;
|
||||
uint64_t fsyn_ow3:10;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fsyn1_s cn30xx;
|
||||
struct cvmx_l2d_fsyn1_s cn31xx;
|
||||
@ -238,8 +330,13 @@ union cvmx_l2d_fsyn1 {
|
||||
union cvmx_l2d_fus0 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fus0_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_34_63:30;
|
||||
uint64_t q0fus:34;
|
||||
#else
|
||||
uint64_t q0fus:34;
|
||||
uint64_t reserved_34_63:30;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fus0_s cn30xx;
|
||||
struct cvmx_l2d_fus0_s cn31xx;
|
||||
@ -257,8 +354,13 @@ union cvmx_l2d_fus0 {
|
||||
union cvmx_l2d_fus1 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fus1_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_34_63:30;
|
||||
uint64_t q1fus:34;
|
||||
#else
|
||||
uint64_t q1fus:34;
|
||||
uint64_t reserved_34_63:30;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fus1_s cn30xx;
|
||||
struct cvmx_l2d_fus1_s cn31xx;
|
||||
@ -276,8 +378,13 @@ union cvmx_l2d_fus1 {
|
||||
union cvmx_l2d_fus2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fus2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_34_63:30;
|
||||
uint64_t q2fus:34;
|
||||
#else
|
||||
uint64_t q2fus:34;
|
||||
uint64_t reserved_34_63:30;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fus2_s cn30xx;
|
||||
struct cvmx_l2d_fus2_s cn31xx;
|
||||
@ -295,61 +402,123 @@ union cvmx_l2d_fus2 {
|
||||
union cvmx_l2d_fus3 {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2d_fus3_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_40_63:24;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_34_36:3;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t reserved_34_36:3;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_40_63:24;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2d_fus3_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_35_63:29;
|
||||
uint64_t crip_64k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_64k:1;
|
||||
uint64_t reserved_35_63:29;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_l2d_fus3_cn31xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_35_63:29;
|
||||
uint64_t crip_128k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_128k:1;
|
||||
uint64_t reserved_35_63:29;
|
||||
#endif
|
||||
} cn31xx;
|
||||
struct cvmx_l2d_fus3_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_36_63:28;
|
||||
uint64_t crip_256k:1;
|
||||
uint64_t crip_512k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_512k:1;
|
||||
uint64_t crip_256k:1;
|
||||
uint64_t reserved_36_63:28;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_l2d_fus3_cn38xx cn38xxp2;
|
||||
struct cvmx_l2d_fus3_cn50xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_40_63:24;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t crip_32k:1;
|
||||
uint64_t crip_64k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_64k:1;
|
||||
uint64_t crip_32k:1;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_40_63:24;
|
||||
#endif
|
||||
} cn50xx;
|
||||
struct cvmx_l2d_fus3_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_40_63:24;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t crip_128k:1;
|
||||
uint64_t crip_256k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_256k:1;
|
||||
uint64_t crip_128k:1;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_40_63:24;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_l2d_fus3_cn52xx cn52xxp1;
|
||||
struct cvmx_l2d_fus3_cn56xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_40_63:24;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t crip_512k:1;
|
||||
uint64_t crip_1024k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_1024k:1;
|
||||
uint64_t crip_512k:1;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t ema_ctl:3;
|
||||
uint64_t reserved_40_63:24;
|
||||
#endif
|
||||
} cn56xx;
|
||||
struct cvmx_l2d_fus3_cn56xx cn56xxp1;
|
||||
struct cvmx_l2d_fus3_cn58xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_39_63:25;
|
||||
uint64_t ema_ctl:2;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t crip_512k:1;
|
||||
uint64_t crip_1024k:1;
|
||||
uint64_t q3fus:34;
|
||||
#else
|
||||
uint64_t q3fus:34;
|
||||
uint64_t crip_1024k:1;
|
||||
uint64_t crip_512k:1;
|
||||
uint64_t reserved_36_36:1;
|
||||
uint64_t ema_ctl:2;
|
||||
uint64_t reserved_39_63:25;
|
||||
#endif
|
||||
} cn58xx;
|
||||
struct cvmx_l2d_fus3_cn58xx cn58xxp1;
|
||||
};
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -33,6 +33,7 @@
|
||||
union cvmx_l2t_err {
|
||||
uint64_t u64;
|
||||
struct cvmx_l2t_err_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t fadru:1;
|
||||
uint64_t lck_intena2:1;
|
||||
@ -47,8 +48,25 @@ union cvmx_l2t_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t fsyn:6;
|
||||
uint64_t fadr:10;
|
||||
uint64_t fset:3;
|
||||
uint64_t lckerr:1;
|
||||
uint64_t lck_intena:1;
|
||||
uint64_t lckerr2:1;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t fadru:1;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_l2t_err_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t lckerr2:1;
|
||||
@ -64,8 +82,26 @@ union cvmx_l2t_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t fsyn:6;
|
||||
uint64_t fadr:8;
|
||||
uint64_t reserved_19_20:2;
|
||||
uint64_t fset:2;
|
||||
uint64_t reserved_23_23:1;
|
||||
uint64_t lckerr:1;
|
||||
uint64_t lck_intena:1;
|
||||
uint64_t lckerr2:1;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_l2t_err_cn31xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t lckerr2:1;
|
||||
@ -81,8 +117,26 @@ union cvmx_l2t_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t fsyn:6;
|
||||
uint64_t fadr:9;
|
||||
uint64_t reserved_20_20:1;
|
||||
uint64_t fset:2;
|
||||
uint64_t reserved_23_23:1;
|
||||
uint64_t lckerr:1;
|
||||
uint64_t lck_intena:1;
|
||||
uint64_t lckerr2:1;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} cn31xx;
|
||||
struct cvmx_l2t_err_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t lckerr2:1;
|
||||
@ -96,9 +150,25 @@ union cvmx_l2t_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t fsyn:6;
|
||||
uint64_t fadr:10;
|
||||
uint64_t fset:3;
|
||||
uint64_t lckerr:1;
|
||||
uint64_t lck_intena:1;
|
||||
uint64_t lckerr2:1;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_l2t_err_cn38xx cn38xxp2;
|
||||
struct cvmx_l2t_err_cn50xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t lckerr2:1;
|
||||
@ -113,8 +183,25 @@ union cvmx_l2t_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t fsyn:6;
|
||||
uint64_t fadr:7;
|
||||
uint64_t reserved_18_20:3;
|
||||
uint64_t fset:3;
|
||||
uint64_t lckerr:1;
|
||||
uint64_t lck_intena:1;
|
||||
uint64_t lckerr2:1;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} cn50xx;
|
||||
struct cvmx_l2t_err_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t lckerr2:1;
|
||||
@ -129,6 +216,22 @@ union cvmx_l2t_err {
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ecc_ena:1;
|
||||
#else
|
||||
uint64_t ecc_ena:1;
|
||||
uint64_t sec_intena:1;
|
||||
uint64_t ded_intena:1;
|
||||
uint64_t sec_err:1;
|
||||
uint64_t ded_err:1;
|
||||
uint64_t fsyn:6;
|
||||
uint64_t fadr:9;
|
||||
uint64_t reserved_20_20:1;
|
||||
uint64_t fset:3;
|
||||
uint64_t lckerr:1;
|
||||
uint64_t lck_intena:1;
|
||||
uint64_t lckerr2:1;
|
||||
uint64_t lck_intena2:1;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_l2t_err_cn52xx cn52xxp1;
|
||||
struct cvmx_l2t_err_s cn56xx;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -45,8 +45,13 @@
|
||||
union cvmx_led_blink {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_blink_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t rate:8;
|
||||
#else
|
||||
uint64_t rate:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_blink_s cn38xx;
|
||||
struct cvmx_led_blink_s cn38xxp2;
|
||||
@ -59,8 +64,13 @@ union cvmx_led_blink {
|
||||
union cvmx_led_clk_phase {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_clk_phase_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t phase:7;
|
||||
#else
|
||||
uint64_t phase:7;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_clk_phase_s cn38xx;
|
||||
struct cvmx_led_clk_phase_s cn38xxp2;
|
||||
@ -73,8 +83,13 @@ union cvmx_led_clk_phase {
|
||||
union cvmx_led_cylon {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_cylon_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t rate:16;
|
||||
#else
|
||||
uint64_t rate:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_cylon_s cn38xx;
|
||||
struct cvmx_led_cylon_s cn38xxp2;
|
||||
@ -87,8 +102,13 @@ union cvmx_led_cylon {
|
||||
union cvmx_led_dbg {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_dbg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t dbg_en:1;
|
||||
#else
|
||||
uint64_t dbg_en:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_dbg_s cn38xx;
|
||||
struct cvmx_led_dbg_s cn38xxp2;
|
||||
@ -101,8 +121,13 @@ union cvmx_led_dbg {
|
||||
union cvmx_led_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t en:1;
|
||||
#else
|
||||
uint64_t en:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_en_s cn38xx;
|
||||
struct cvmx_led_en_s cn38xxp2;
|
||||
@ -115,8 +140,13 @@ union cvmx_led_en {
|
||||
union cvmx_led_polarity {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_polarity_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t polarity:1;
|
||||
#else
|
||||
uint64_t polarity:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_polarity_s cn38xx;
|
||||
struct cvmx_led_polarity_s cn38xxp2;
|
||||
@ -129,8 +159,13 @@ union cvmx_led_polarity {
|
||||
union cvmx_led_prt {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_prt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t prt_en:8;
|
||||
#else
|
||||
uint64_t prt_en:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_prt_s cn38xx;
|
||||
struct cvmx_led_prt_s cn38xxp2;
|
||||
@ -143,8 +178,13 @@ union cvmx_led_prt {
|
||||
union cvmx_led_prt_fmt {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_prt_fmt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t format:4;
|
||||
#else
|
||||
uint64_t format:4;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_prt_fmt_s cn38xx;
|
||||
struct cvmx_led_prt_fmt_s cn38xxp2;
|
||||
@ -157,8 +197,13 @@ union cvmx_led_prt_fmt {
|
||||
union cvmx_led_prt_statusx {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_prt_statusx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t status:6;
|
||||
#else
|
||||
uint64_t status:6;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_prt_statusx_s cn38xx;
|
||||
struct cvmx_led_prt_statusx_s cn38xxp2;
|
||||
@ -171,8 +216,13 @@ union cvmx_led_prt_statusx {
|
||||
union cvmx_led_udd_cntx {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_udd_cntx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t cnt:6;
|
||||
#else
|
||||
uint64_t cnt:6;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_udd_cntx_s cn38xx;
|
||||
struct cvmx_led_udd_cntx_s cn38xxp2;
|
||||
@ -185,8 +235,13 @@ union cvmx_led_udd_cntx {
|
||||
union cvmx_led_udd_datx {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_udd_datx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t dat:32;
|
||||
#else
|
||||
uint64_t dat:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_udd_datx_s cn38xx;
|
||||
struct cvmx_led_udd_datx_s cn38xxp2;
|
||||
@ -199,8 +254,13 @@ union cvmx_led_udd_datx {
|
||||
union cvmx_led_udd_dat_clrx {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_udd_dat_clrx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t clr:32;
|
||||
#else
|
||||
uint64_t clr:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_udd_dat_clrx_s cn38xx;
|
||||
struct cvmx_led_udd_dat_clrx_s cn38xxp2;
|
||||
@ -213,8 +273,13 @@ union cvmx_led_udd_dat_clrx {
|
||||
union cvmx_led_udd_dat_setx {
|
||||
uint64_t u64;
|
||||
struct cvmx_led_udd_dat_setx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t set:32;
|
||||
#else
|
||||
uint64_t set:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_led_udd_dat_setx_s cn38xx;
|
||||
struct cvmx_led_udd_dat_setx_s cn38xxp2;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -47,6 +47,7 @@
|
||||
union cvmx_mixx_bist {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_bist_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t opfdat:1;
|
||||
uint64_t mrgdat:1;
|
||||
@ -54,24 +55,46 @@ union cvmx_mixx_bist {
|
||||
uint64_t ipfdat:1;
|
||||
uint64_t irfdat:1;
|
||||
uint64_t orfdat:1;
|
||||
#else
|
||||
uint64_t orfdat:1;
|
||||
uint64_t irfdat:1;
|
||||
uint64_t ipfdat:1;
|
||||
uint64_t mrqdat:1;
|
||||
uint64_t mrgdat:1;
|
||||
uint64_t opfdat:1;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_bist_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t mrqdat:1;
|
||||
uint64_t ipfdat:1;
|
||||
uint64_t irfdat:1;
|
||||
uint64_t orfdat:1;
|
||||
#else
|
||||
uint64_t orfdat:1;
|
||||
uint64_t irfdat:1;
|
||||
uint64_t ipfdat:1;
|
||||
uint64_t mrqdat:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_mixx_bist_cn52xx cn52xxp1;
|
||||
struct cvmx_mixx_bist_cn52xx cn56xx;
|
||||
struct cvmx_mixx_bist_cn52xx cn56xxp1;
|
||||
struct cvmx_mixx_bist_s cn61xx;
|
||||
struct cvmx_mixx_bist_s cn63xx;
|
||||
struct cvmx_mixx_bist_s cn63xxp1;
|
||||
struct cvmx_mixx_bist_s cn66xx;
|
||||
struct cvmx_mixx_bist_s cn68xx;
|
||||
struct cvmx_mixx_bist_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t ts_thresh:4;
|
||||
uint64_t crc_strip:1;
|
||||
@ -81,8 +104,20 @@ union cvmx_mixx_ctl {
|
||||
uint64_t lendian:1;
|
||||
uint64_t nbtarb:1;
|
||||
uint64_t mrq_hwm:2;
|
||||
#else
|
||||
uint64_t mrq_hwm:2;
|
||||
uint64_t nbtarb:1;
|
||||
uint64_t lendian:1;
|
||||
uint64_t reset:1;
|
||||
uint64_t en:1;
|
||||
uint64_t busy:1;
|
||||
uint64_t crc_strip:1;
|
||||
uint64_t ts_thresh:4;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_ctl_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t crc_strip:1;
|
||||
uint64_t busy:1;
|
||||
@ -91,17 +126,32 @@ union cvmx_mixx_ctl {
|
||||
uint64_t lendian:1;
|
||||
uint64_t nbtarb:1;
|
||||
uint64_t mrq_hwm:2;
|
||||
#else
|
||||
uint64_t mrq_hwm:2;
|
||||
uint64_t nbtarb:1;
|
||||
uint64_t lendian:1;
|
||||
uint64_t reset:1;
|
||||
uint64_t en:1;
|
||||
uint64_t busy:1;
|
||||
uint64_t crc_strip:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_mixx_ctl_cn52xx cn52xxp1;
|
||||
struct cvmx_mixx_ctl_cn52xx cn56xx;
|
||||
struct cvmx_mixx_ctl_cn52xx cn56xxp1;
|
||||
struct cvmx_mixx_ctl_s cn61xx;
|
||||
struct cvmx_mixx_ctl_s cn63xx;
|
||||
struct cvmx_mixx_ctl_s cn63xxp1;
|
||||
struct cvmx_mixx_ctl_s cn66xx;
|
||||
struct cvmx_mixx_ctl_s cn68xx;
|
||||
struct cvmx_mixx_ctl_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_intena {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_intena_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t tsena:1;
|
||||
uint64_t orunena:1;
|
||||
@ -111,8 +161,20 @@ union cvmx_mixx_intena {
|
||||
uint64_t othena:1;
|
||||
uint64_t ivfena:1;
|
||||
uint64_t ovfena:1;
|
||||
#else
|
||||
uint64_t ovfena:1;
|
||||
uint64_t ivfena:1;
|
||||
uint64_t othena:1;
|
||||
uint64_t ithena:1;
|
||||
uint64_t data_drpena:1;
|
||||
uint64_t irunena:1;
|
||||
uint64_t orunena:1;
|
||||
uint64_t tsena:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_intena_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t orunena:1;
|
||||
uint64_t irunena:1;
|
||||
@ -121,84 +183,148 @@ union cvmx_mixx_intena {
|
||||
uint64_t othena:1;
|
||||
uint64_t ivfena:1;
|
||||
uint64_t ovfena:1;
|
||||
#else
|
||||
uint64_t ovfena:1;
|
||||
uint64_t ivfena:1;
|
||||
uint64_t othena:1;
|
||||
uint64_t ithena:1;
|
||||
uint64_t data_drpena:1;
|
||||
uint64_t irunena:1;
|
||||
uint64_t orunena:1;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_mixx_intena_cn52xx cn52xxp1;
|
||||
struct cvmx_mixx_intena_cn52xx cn56xx;
|
||||
struct cvmx_mixx_intena_cn52xx cn56xxp1;
|
||||
struct cvmx_mixx_intena_s cn61xx;
|
||||
struct cvmx_mixx_intena_s cn63xx;
|
||||
struct cvmx_mixx_intena_s cn63xxp1;
|
||||
struct cvmx_mixx_intena_s cn66xx;
|
||||
struct cvmx_mixx_intena_s cn68xx;
|
||||
struct cvmx_mixx_intena_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_ircnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_ircnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t ircnt:20;
|
||||
#else
|
||||
uint64_t ircnt:20;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_ircnt_s cn52xx;
|
||||
struct cvmx_mixx_ircnt_s cn52xxp1;
|
||||
struct cvmx_mixx_ircnt_s cn56xx;
|
||||
struct cvmx_mixx_ircnt_s cn56xxp1;
|
||||
struct cvmx_mixx_ircnt_s cn61xx;
|
||||
struct cvmx_mixx_ircnt_s cn63xx;
|
||||
struct cvmx_mixx_ircnt_s cn63xxp1;
|
||||
struct cvmx_mixx_ircnt_s cn66xx;
|
||||
struct cvmx_mixx_ircnt_s cn68xx;
|
||||
struct cvmx_mixx_ircnt_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_irhwm {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_irhwm_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_40_63:24;
|
||||
uint64_t ibplwm:20;
|
||||
uint64_t irhwm:20;
|
||||
#else
|
||||
uint64_t irhwm:20;
|
||||
uint64_t ibplwm:20;
|
||||
uint64_t reserved_40_63:24;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_irhwm_s cn52xx;
|
||||
struct cvmx_mixx_irhwm_s cn52xxp1;
|
||||
struct cvmx_mixx_irhwm_s cn56xx;
|
||||
struct cvmx_mixx_irhwm_s cn56xxp1;
|
||||
struct cvmx_mixx_irhwm_s cn61xx;
|
||||
struct cvmx_mixx_irhwm_s cn63xx;
|
||||
struct cvmx_mixx_irhwm_s cn63xxp1;
|
||||
struct cvmx_mixx_irhwm_s cn66xx;
|
||||
struct cvmx_mixx_irhwm_s cn68xx;
|
||||
struct cvmx_mixx_irhwm_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_iring1 {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_iring1_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_60_63:4;
|
||||
uint64_t isize:20;
|
||||
uint64_t ibase:37;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t ibase:37;
|
||||
uint64_t isize:20;
|
||||
uint64_t reserved_60_63:4;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_iring1_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_60_63:4;
|
||||
uint64_t isize:20;
|
||||
uint64_t reserved_36_39:4;
|
||||
uint64_t ibase:33;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t ibase:33;
|
||||
uint64_t reserved_36_39:4;
|
||||
uint64_t isize:20;
|
||||
uint64_t reserved_60_63:4;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_mixx_iring1_cn52xx cn52xxp1;
|
||||
struct cvmx_mixx_iring1_cn52xx cn56xx;
|
||||
struct cvmx_mixx_iring1_cn52xx cn56xxp1;
|
||||
struct cvmx_mixx_iring1_s cn61xx;
|
||||
struct cvmx_mixx_iring1_s cn63xx;
|
||||
struct cvmx_mixx_iring1_s cn63xxp1;
|
||||
struct cvmx_mixx_iring1_s cn66xx;
|
||||
struct cvmx_mixx_iring1_s cn68xx;
|
||||
struct cvmx_mixx_iring1_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_iring2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_iring2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_52_63:12;
|
||||
uint64_t itlptr:20;
|
||||
uint64_t reserved_20_31:12;
|
||||
uint64_t idbell:20;
|
||||
#else
|
||||
uint64_t idbell:20;
|
||||
uint64_t reserved_20_31:12;
|
||||
uint64_t itlptr:20;
|
||||
uint64_t reserved_52_63:12;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_iring2_s cn52xx;
|
||||
struct cvmx_mixx_iring2_s cn52xxp1;
|
||||
struct cvmx_mixx_iring2_s cn56xx;
|
||||
struct cvmx_mixx_iring2_s cn56xxp1;
|
||||
struct cvmx_mixx_iring2_s cn61xx;
|
||||
struct cvmx_mixx_iring2_s cn63xx;
|
||||
struct cvmx_mixx_iring2_s cn63xxp1;
|
||||
struct cvmx_mixx_iring2_s cn66xx;
|
||||
struct cvmx_mixx_iring2_s cn68xx;
|
||||
struct cvmx_mixx_iring2_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_isr {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_isr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t ts:1;
|
||||
uint64_t orun:1;
|
||||
@ -208,8 +334,20 @@ union cvmx_mixx_isr {
|
||||
uint64_t orthresh:1;
|
||||
uint64_t idblovf:1;
|
||||
uint64_t odblovf:1;
|
||||
#else
|
||||
uint64_t odblovf:1;
|
||||
uint64_t idblovf:1;
|
||||
uint64_t orthresh:1;
|
||||
uint64_t irthresh:1;
|
||||
uint64_t data_drp:1;
|
||||
uint64_t irun:1;
|
||||
uint64_t orun:1;
|
||||
uint64_t ts:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_isr_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t orun:1;
|
||||
uint64_t irun:1;
|
||||
@ -218,117 +356,211 @@ union cvmx_mixx_isr {
|
||||
uint64_t orthresh:1;
|
||||
uint64_t idblovf:1;
|
||||
uint64_t odblovf:1;
|
||||
#else
|
||||
uint64_t odblovf:1;
|
||||
uint64_t idblovf:1;
|
||||
uint64_t orthresh:1;
|
||||
uint64_t irthresh:1;
|
||||
uint64_t data_drp:1;
|
||||
uint64_t irun:1;
|
||||
uint64_t orun:1;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_mixx_isr_cn52xx cn52xxp1;
|
||||
struct cvmx_mixx_isr_cn52xx cn56xx;
|
||||
struct cvmx_mixx_isr_cn52xx cn56xxp1;
|
||||
struct cvmx_mixx_isr_s cn61xx;
|
||||
struct cvmx_mixx_isr_s cn63xx;
|
||||
struct cvmx_mixx_isr_s cn63xxp1;
|
||||
struct cvmx_mixx_isr_s cn66xx;
|
||||
struct cvmx_mixx_isr_s cn68xx;
|
||||
struct cvmx_mixx_isr_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_orcnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_orcnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t orcnt:20;
|
||||
#else
|
||||
uint64_t orcnt:20;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_orcnt_s cn52xx;
|
||||
struct cvmx_mixx_orcnt_s cn52xxp1;
|
||||
struct cvmx_mixx_orcnt_s cn56xx;
|
||||
struct cvmx_mixx_orcnt_s cn56xxp1;
|
||||
struct cvmx_mixx_orcnt_s cn61xx;
|
||||
struct cvmx_mixx_orcnt_s cn63xx;
|
||||
struct cvmx_mixx_orcnt_s cn63xxp1;
|
||||
struct cvmx_mixx_orcnt_s cn66xx;
|
||||
struct cvmx_mixx_orcnt_s cn68xx;
|
||||
struct cvmx_mixx_orcnt_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_orhwm {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_orhwm_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t orhwm:20;
|
||||
#else
|
||||
uint64_t orhwm:20;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_orhwm_s cn52xx;
|
||||
struct cvmx_mixx_orhwm_s cn52xxp1;
|
||||
struct cvmx_mixx_orhwm_s cn56xx;
|
||||
struct cvmx_mixx_orhwm_s cn56xxp1;
|
||||
struct cvmx_mixx_orhwm_s cn61xx;
|
||||
struct cvmx_mixx_orhwm_s cn63xx;
|
||||
struct cvmx_mixx_orhwm_s cn63xxp1;
|
||||
struct cvmx_mixx_orhwm_s cn66xx;
|
||||
struct cvmx_mixx_orhwm_s cn68xx;
|
||||
struct cvmx_mixx_orhwm_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_oring1 {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_oring1_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_60_63:4;
|
||||
uint64_t osize:20;
|
||||
uint64_t obase:37;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t obase:37;
|
||||
uint64_t osize:20;
|
||||
uint64_t reserved_60_63:4;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_oring1_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_60_63:4;
|
||||
uint64_t osize:20;
|
||||
uint64_t reserved_36_39:4;
|
||||
uint64_t obase:33;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t obase:33;
|
||||
uint64_t reserved_36_39:4;
|
||||
uint64_t osize:20;
|
||||
uint64_t reserved_60_63:4;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_mixx_oring1_cn52xx cn52xxp1;
|
||||
struct cvmx_mixx_oring1_cn52xx cn56xx;
|
||||
struct cvmx_mixx_oring1_cn52xx cn56xxp1;
|
||||
struct cvmx_mixx_oring1_s cn61xx;
|
||||
struct cvmx_mixx_oring1_s cn63xx;
|
||||
struct cvmx_mixx_oring1_s cn63xxp1;
|
||||
struct cvmx_mixx_oring1_s cn66xx;
|
||||
struct cvmx_mixx_oring1_s cn68xx;
|
||||
struct cvmx_mixx_oring1_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_oring2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_oring2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_52_63:12;
|
||||
uint64_t otlptr:20;
|
||||
uint64_t reserved_20_31:12;
|
||||
uint64_t odbell:20;
|
||||
#else
|
||||
uint64_t odbell:20;
|
||||
uint64_t reserved_20_31:12;
|
||||
uint64_t otlptr:20;
|
||||
uint64_t reserved_52_63:12;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_oring2_s cn52xx;
|
||||
struct cvmx_mixx_oring2_s cn52xxp1;
|
||||
struct cvmx_mixx_oring2_s cn56xx;
|
||||
struct cvmx_mixx_oring2_s cn56xxp1;
|
||||
struct cvmx_mixx_oring2_s cn61xx;
|
||||
struct cvmx_mixx_oring2_s cn63xx;
|
||||
struct cvmx_mixx_oring2_s cn63xxp1;
|
||||
struct cvmx_mixx_oring2_s cn66xx;
|
||||
struct cvmx_mixx_oring2_s cn68xx;
|
||||
struct cvmx_mixx_oring2_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_remcnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_remcnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_52_63:12;
|
||||
uint64_t iremcnt:20;
|
||||
uint64_t reserved_20_31:12;
|
||||
uint64_t oremcnt:20;
|
||||
#else
|
||||
uint64_t oremcnt:20;
|
||||
uint64_t reserved_20_31:12;
|
||||
uint64_t iremcnt:20;
|
||||
uint64_t reserved_52_63:12;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_remcnt_s cn52xx;
|
||||
struct cvmx_mixx_remcnt_s cn52xxp1;
|
||||
struct cvmx_mixx_remcnt_s cn56xx;
|
||||
struct cvmx_mixx_remcnt_s cn56xxp1;
|
||||
struct cvmx_mixx_remcnt_s cn61xx;
|
||||
struct cvmx_mixx_remcnt_s cn63xx;
|
||||
struct cvmx_mixx_remcnt_s cn63xxp1;
|
||||
struct cvmx_mixx_remcnt_s cn66xx;
|
||||
struct cvmx_mixx_remcnt_s cn68xx;
|
||||
struct cvmx_mixx_remcnt_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_tsctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_tsctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_21_63:43;
|
||||
uint64_t tsavl:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t tstot:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t tscnt:5;
|
||||
#else
|
||||
uint64_t tscnt:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t tstot:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t tsavl:5;
|
||||
uint64_t reserved_21_63:43;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_tsctl_s cn61xx;
|
||||
struct cvmx_mixx_tsctl_s cn63xx;
|
||||
struct cvmx_mixx_tsctl_s cn63xxp1;
|
||||
struct cvmx_mixx_tsctl_s cn66xx;
|
||||
struct cvmx_mixx_tsctl_s cn68xx;
|
||||
struct cvmx_mixx_tsctl_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_mixx_tstamp {
|
||||
uint64_t u64;
|
||||
struct cvmx_mixx_tstamp_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t tstamp:64;
|
||||
#else
|
||||
uint64_t tstamp:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mixx_tstamp_s cn61xx;
|
||||
struct cvmx_mixx_tstamp_s cn63xx;
|
||||
struct cvmx_mixx_tstamp_s cn63xxp1;
|
||||
struct cvmx_mixx_tstamp_s cn66xx;
|
||||
struct cvmx_mixx_tstamp_s cn68xx;
|
||||
struct cvmx_mixx_tstamp_s cn68xxp1;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
328
arch/mips/include/asm/octeon/cvmx-mpi-defs.h
Normal file
328
arch/mips/include/asm/octeon/cvmx-mpi-defs.h
Normal file
@ -0,0 +1,328 @@
|
||||
/***********************license start***************
|
||||
* Author: Cavium Networks
|
||||
*
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful, but
|
||||
* AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
|
||||
* NONINFRINGEMENT. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this file; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
* or visit http://www.gnu.org/licenses/.
|
||||
*
|
||||
* This file may also be available under a different license from Cavium.
|
||||
* Contact Cavium Networks for more information
|
||||
***********************license end**************************************/
|
||||
|
||||
#ifndef __CVMX_MPI_DEFS_H__
|
||||
#define __CVMX_MPI_DEFS_H__
|
||||
|
||||
#define CVMX_MPI_CFG (CVMX_ADD_IO_SEG(0x0001070000001000ull))
|
||||
#define CVMX_MPI_DATX(offset) (CVMX_ADD_IO_SEG(0x0001070000001080ull) + ((offset) & 15) * 8)
|
||||
#define CVMX_MPI_STS (CVMX_ADD_IO_SEG(0x0001070000001008ull))
|
||||
#define CVMX_MPI_TX (CVMX_ADD_IO_SEG(0x0001070000001010ull))
|
||||
|
||||
union cvmx_mpi_cfg {
|
||||
uint64_t u64;
|
||||
struct cvmx_mpi_cfg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t csena3:1;
|
||||
uint64_t csena2:1;
|
||||
uint64_t csena1:1;
|
||||
uint64_t csena0:1;
|
||||
uint64_t cslate:1;
|
||||
uint64_t tritx:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t cshi:1;
|
||||
uint64_t csena:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t enable:1;
|
||||
#else
|
||||
uint64_t enable:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t csena:1;
|
||||
uint64_t cshi:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t tritx:1;
|
||||
uint64_t cslate:1;
|
||||
uint64_t csena0:1;
|
||||
uint64_t csena1:1;
|
||||
uint64_t csena2:1;
|
||||
uint64_t csena3:1;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mpi_cfg_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_12_15:4;
|
||||
uint64_t cslate:1;
|
||||
uint64_t tritx:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t cshi:1;
|
||||
uint64_t csena:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t enable:1;
|
||||
#else
|
||||
uint64_t enable:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t csena:1;
|
||||
uint64_t cshi:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t tritx:1;
|
||||
uint64_t cslate:1;
|
||||
uint64_t reserved_12_15:4;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_mpi_cfg_cn31xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_11_15:5;
|
||||
uint64_t tritx:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t cshi:1;
|
||||
uint64_t csena:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t enable:1;
|
||||
#else
|
||||
uint64_t enable:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t csena:1;
|
||||
uint64_t cshi:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t tritx:1;
|
||||
uint64_t reserved_11_15:5;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} cn31xx;
|
||||
struct cvmx_mpi_cfg_cn30xx cn50xx;
|
||||
struct cvmx_mpi_cfg_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_14_15:2;
|
||||
uint64_t csena1:1;
|
||||
uint64_t csena0:1;
|
||||
uint64_t cslate:1;
|
||||
uint64_t tritx:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t cshi:1;
|
||||
uint64_t reserved_6_6:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t enable:1;
|
||||
#else
|
||||
uint64_t enable:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t reserved_6_6:1;
|
||||
uint64_t cshi:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t tritx:1;
|
||||
uint64_t cslate:1;
|
||||
uint64_t csena0:1;
|
||||
uint64_t csena1:1;
|
||||
uint64_t reserved_14_15:2;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_mpi_cfg_cn66xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_29_63:35;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t csena3:1;
|
||||
uint64_t csena2:1;
|
||||
uint64_t reserved_12_13:2;
|
||||
uint64_t cslate:1;
|
||||
uint64_t tritx:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t cshi:1;
|
||||
uint64_t reserved_6_6:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t enable:1;
|
||||
#else
|
||||
uint64_t enable:1;
|
||||
uint64_t idlelo:1;
|
||||
uint64_t clk_cont:1;
|
||||
uint64_t wireor:1;
|
||||
uint64_t lsbfirst:1;
|
||||
uint64_t int_ena:1;
|
||||
uint64_t reserved_6_6:1;
|
||||
uint64_t cshi:1;
|
||||
uint64_t idleclks:2;
|
||||
uint64_t tritx:1;
|
||||
uint64_t cslate:1;
|
||||
uint64_t reserved_12_13:2;
|
||||
uint64_t csena2:1;
|
||||
uint64_t csena3:1;
|
||||
uint64_t clkdiv:13;
|
||||
uint64_t reserved_29_63:35;
|
||||
#endif
|
||||
} cn66xx;
|
||||
struct cvmx_mpi_cfg_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_mpi_datx {
|
||||
uint64_t u64;
|
||||
struct cvmx_mpi_datx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t data:8;
|
||||
#else
|
||||
uint64_t data:8;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mpi_datx_s cn30xx;
|
||||
struct cvmx_mpi_datx_s cn31xx;
|
||||
struct cvmx_mpi_datx_s cn50xx;
|
||||
struct cvmx_mpi_datx_s cn61xx;
|
||||
struct cvmx_mpi_datx_s cn66xx;
|
||||
struct cvmx_mpi_datx_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_mpi_sts {
|
||||
uint64_t u64;
|
||||
struct cvmx_mpi_sts_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t rxnum:5;
|
||||
uint64_t reserved_1_7:7;
|
||||
uint64_t busy:1;
|
||||
#else
|
||||
uint64_t busy:1;
|
||||
uint64_t reserved_1_7:7;
|
||||
uint64_t rxnum:5;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mpi_sts_s cn30xx;
|
||||
struct cvmx_mpi_sts_s cn31xx;
|
||||
struct cvmx_mpi_sts_s cn50xx;
|
||||
struct cvmx_mpi_sts_s cn61xx;
|
||||
struct cvmx_mpi_sts_s cn66xx;
|
||||
struct cvmx_mpi_sts_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_mpi_tx {
|
||||
uint64_t u64;
|
||||
struct cvmx_mpi_tx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_22_63:42;
|
||||
uint64_t csid:2;
|
||||
uint64_t reserved_17_19:3;
|
||||
uint64_t leavecs:1;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t txnum:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t totnum:5;
|
||||
#else
|
||||
uint64_t totnum:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t txnum:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t leavecs:1;
|
||||
uint64_t reserved_17_19:3;
|
||||
uint64_t csid:2;
|
||||
uint64_t reserved_22_63:42;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_mpi_tx_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t leavecs:1;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t txnum:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t totnum:5;
|
||||
#else
|
||||
uint64_t totnum:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t txnum:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t leavecs:1;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_mpi_tx_cn30xx cn31xx;
|
||||
struct cvmx_mpi_tx_cn30xx cn50xx;
|
||||
struct cvmx_mpi_tx_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_21_63:43;
|
||||
uint64_t csid:1;
|
||||
uint64_t reserved_17_19:3;
|
||||
uint64_t leavecs:1;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t txnum:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t totnum:5;
|
||||
#else
|
||||
uint64_t totnum:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t txnum:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t leavecs:1;
|
||||
uint64_t reserved_17_19:3;
|
||||
uint64_t csid:1;
|
||||
uint64_t reserved_21_63:43;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_mpi_tx_s cn66xx;
|
||||
struct cvmx_mpi_tx_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,44 +28,316 @@
|
||||
#ifndef __CVMX_PCSX_DEFS_H__
|
||||
#define __CVMX_PCSX_DEFS_H__
|
||||
|
||||
#define CVMX_PCSX_ANX_ADV_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001010ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_ANX_EXT_ST_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001028ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_ANX_LP_ABIL_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001018ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_ANX_RESULTS_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001020ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_INTX_EN_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001088ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_INTX_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001080ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_LINKX_TIMER_COUNT_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001040ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_LOG_ANLX_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001090ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_MISCX_CTL_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001078ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_MRX_CONTROL_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001000ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_MRX_STATUS_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001008ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_RXX_STATES_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001058ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_RXX_SYNC_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001050ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_SGMX_AN_ADV_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001068ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_SGMX_LP_ADV_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001070ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_TXX_STATES_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001060ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSX_TX_RXX_POLARITY_REG(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0001048ull + (((offset) & 3) * 1024) + (((block_id) & 1) * 0x8000000ull))
|
||||
static inline uint64_t CVMX_PCSX_ANX_ADV_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_ANX_EXT_ST_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_ANX_LP_ABIL_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_ANX_RESULTS_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_INTX_EN_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_INTX_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_LINKX_TIMER_COUNT_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_LOG_ANLX_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_MISCX_CTL_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_MRX_CONTROL_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_MRX_STATUS_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_RXX_STATES_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_RXX_SYNC_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_SGMX_AN_ADV_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_SGMX_LP_ADV_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_TXX_STATES_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSX_TX_RXX_POLARITY_REG(unsigned long offset, unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
|
||||
}
|
||||
|
||||
union cvmx_pcsx_anx_adv_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_anx_adv_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t np:1;
|
||||
uint64_t reserved_14_14:1;
|
||||
@ -75,32 +347,67 @@ union cvmx_pcsx_anx_adv_reg {
|
||||
uint64_t hfd:1;
|
||||
uint64_t fd:1;
|
||||
uint64_t reserved_0_4:5;
|
||||
#else
|
||||
uint64_t reserved_0_4:5;
|
||||
uint64_t fd:1;
|
||||
uint64_t hfd:1;
|
||||
uint64_t pause:2;
|
||||
uint64_t reserved_9_11:3;
|
||||
uint64_t rem_flt:2;
|
||||
uint64_t reserved_14_14:1;
|
||||
uint64_t np:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn52xx;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn56xx;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn61xx;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn63xx;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn66xx;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn68xx;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_anx_adv_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_anx_ext_st_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t thou_xfd:1;
|
||||
uint64_t thou_xhd:1;
|
||||
uint64_t thou_tfd:1;
|
||||
uint64_t thou_thd:1;
|
||||
uint64_t reserved_0_11:12;
|
||||
#else
|
||||
uint64_t reserved_0_11:12;
|
||||
uint64_t thou_thd:1;
|
||||
uint64_t thou_tfd:1;
|
||||
uint64_t thou_xhd:1;
|
||||
uint64_t thou_xfd:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn52xx;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn56xx;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn61xx;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn63xx;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn66xx;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn68xx;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_anx_ext_st_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_anx_lp_abil_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t np:1;
|
||||
uint64_t ack:1;
|
||||
@ -110,32 +417,100 @@ union cvmx_pcsx_anx_lp_abil_reg {
|
||||
uint64_t hfd:1;
|
||||
uint64_t fd:1;
|
||||
uint64_t reserved_0_4:5;
|
||||
#else
|
||||
uint64_t reserved_0_4:5;
|
||||
uint64_t fd:1;
|
||||
uint64_t hfd:1;
|
||||
uint64_t pause:2;
|
||||
uint64_t reserved_9_11:3;
|
||||
uint64_t rem_flt:2;
|
||||
uint64_t ack:1;
|
||||
uint64_t np:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn52xx;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn56xx;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn61xx;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn63xx;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn66xx;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn68xx;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_anx_lp_abil_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_anx_results_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_anx_results_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t pause:2;
|
||||
uint64_t spd:2;
|
||||
uint64_t an_cpt:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t link_ok:1;
|
||||
#else
|
||||
uint64_t link_ok:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t an_cpt:1;
|
||||
uint64_t spd:2;
|
||||
uint64_t pause:2;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn52xx;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn56xx;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn61xx;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn63xx;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn66xx;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn68xx;
|
||||
struct cvmx_pcsx_anx_results_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_anx_results_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_intx_en_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_intx_en_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t dbg_sync_en:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t sync_bad_en:1;
|
||||
uint64_t an_bad_en:1;
|
||||
uint64_t rxlock_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t rxerr_en:1;
|
||||
uint64_t txbad_en:1;
|
||||
uint64_t txfifo_en:1;
|
||||
uint64_t txfifu_en:1;
|
||||
uint64_t an_err_en:1;
|
||||
uint64_t xmit_en:1;
|
||||
uint64_t lnkspd_en:1;
|
||||
#else
|
||||
uint64_t lnkspd_en:1;
|
||||
uint64_t xmit_en:1;
|
||||
uint64_t an_err_en:1;
|
||||
uint64_t txfifu_en:1;
|
||||
uint64_t txfifo_en:1;
|
||||
uint64_t txbad_en:1;
|
||||
uint64_t rxerr_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t rxlock_en:1;
|
||||
uint64_t an_bad_en:1;
|
||||
uint64_t sync_bad_en:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t dbg_sync_en:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_intx_en_reg_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t dup:1;
|
||||
uint64_t sync_bad_en:1;
|
||||
@ -149,16 +524,71 @@ union cvmx_pcsx_intx_en_reg {
|
||||
uint64_t an_err_en:1;
|
||||
uint64_t xmit_en:1;
|
||||
uint64_t lnkspd_en:1;
|
||||
} s;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn52xx;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn56xx;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn56xxp1;
|
||||
#else
|
||||
uint64_t lnkspd_en:1;
|
||||
uint64_t xmit_en:1;
|
||||
uint64_t an_err_en:1;
|
||||
uint64_t txfifu_en:1;
|
||||
uint64_t txfifo_en:1;
|
||||
uint64_t txbad_en:1;
|
||||
uint64_t rxerr_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t rxlock_en:1;
|
||||
uint64_t an_bad_en:1;
|
||||
uint64_t sync_bad_en:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_pcsx_intx_en_reg_cn52xx cn52xxp1;
|
||||
struct cvmx_pcsx_intx_en_reg_cn52xx cn56xx;
|
||||
struct cvmx_pcsx_intx_en_reg_cn52xx cn56xxp1;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn61xx;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn63xx;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn66xx;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn68xx;
|
||||
struct cvmx_pcsx_intx_en_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_intx_en_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_intx_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_intx_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t dbg_sync:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t sync_bad:1;
|
||||
uint64_t an_bad:1;
|
||||
uint64_t rxlock:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t rxerr:1;
|
||||
uint64_t txbad:1;
|
||||
uint64_t txfifo:1;
|
||||
uint64_t txfifu:1;
|
||||
uint64_t an_err:1;
|
||||
uint64_t xmit:1;
|
||||
uint64_t lnkspd:1;
|
||||
#else
|
||||
uint64_t lnkspd:1;
|
||||
uint64_t xmit:1;
|
||||
uint64_t an_err:1;
|
||||
uint64_t txfifu:1;
|
||||
uint64_t txfifo:1;
|
||||
uint64_t txbad:1;
|
||||
uint64_t rxerr:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t rxlock:1;
|
||||
uint64_t an_bad:1;
|
||||
uint64_t sync_bad:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t dbg_sync:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_intx_reg_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t dup:1;
|
||||
uint64_t sync_bad:1;
|
||||
@ -172,42 +602,90 @@ union cvmx_pcsx_intx_reg {
|
||||
uint64_t an_err:1;
|
||||
uint64_t xmit:1;
|
||||
uint64_t lnkspd:1;
|
||||
} s;
|
||||
struct cvmx_pcsx_intx_reg_s cn52xx;
|
||||
struct cvmx_pcsx_intx_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_intx_reg_s cn56xx;
|
||||
struct cvmx_pcsx_intx_reg_s cn56xxp1;
|
||||
#else
|
||||
uint64_t lnkspd:1;
|
||||
uint64_t xmit:1;
|
||||
uint64_t an_err:1;
|
||||
uint64_t txfifu:1;
|
||||
uint64_t txfifo:1;
|
||||
uint64_t txbad:1;
|
||||
uint64_t rxerr:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t rxlock:1;
|
||||
uint64_t an_bad:1;
|
||||
uint64_t sync_bad:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_pcsx_intx_reg_cn52xx cn52xxp1;
|
||||
struct cvmx_pcsx_intx_reg_cn52xx cn56xx;
|
||||
struct cvmx_pcsx_intx_reg_cn52xx cn56xxp1;
|
||||
struct cvmx_pcsx_intx_reg_s cn61xx;
|
||||
struct cvmx_pcsx_intx_reg_s cn63xx;
|
||||
struct cvmx_pcsx_intx_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_intx_reg_s cn66xx;
|
||||
struct cvmx_pcsx_intx_reg_s cn68xx;
|
||||
struct cvmx_pcsx_intx_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_intx_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_linkx_timer_count_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t count:16;
|
||||
#else
|
||||
uint64_t count:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn52xx;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn56xx;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn61xx;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn63xx;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn66xx;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn68xx;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_linkx_timer_count_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_log_anlx_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_log_anlx_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t lafifovfl:1;
|
||||
uint64_t la_en:1;
|
||||
uint64_t pkt_sz:2;
|
||||
#else
|
||||
uint64_t pkt_sz:2;
|
||||
uint64_t la_en:1;
|
||||
uint64_t lafifovfl:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn52xx;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn56xx;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn61xx;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn63xx;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn66xx;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn68xx;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_log_anlx_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_miscx_ctl_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t sgmii:1;
|
||||
uint64_t gmxeno:1;
|
||||
@ -216,16 +694,34 @@ union cvmx_pcsx_miscx_ctl_reg {
|
||||
uint64_t mode:1;
|
||||
uint64_t an_ovrd:1;
|
||||
uint64_t samp_pt:7;
|
||||
#else
|
||||
uint64_t samp_pt:7;
|
||||
uint64_t an_ovrd:1;
|
||||
uint64_t mode:1;
|
||||
uint64_t mac_phy:1;
|
||||
uint64_t loopbck2:1;
|
||||
uint64_t gmxeno:1;
|
||||
uint64_t sgmii:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn52xx;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn56xx;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn61xx;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn63xx;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn66xx;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn68xx;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_miscx_ctl_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_mrx_control_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_mrx_control_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t reset:1;
|
||||
uint64_t loopbck1:1;
|
||||
@ -239,16 +735,39 @@ union cvmx_pcsx_mrx_control_reg {
|
||||
uint64_t spdmsb:1;
|
||||
uint64_t uni:1;
|
||||
uint64_t reserved_0_4:5;
|
||||
#else
|
||||
uint64_t reserved_0_4:5;
|
||||
uint64_t uni:1;
|
||||
uint64_t spdmsb:1;
|
||||
uint64_t coltst:1;
|
||||
uint64_t dup:1;
|
||||
uint64_t rst_an:1;
|
||||
uint64_t reserved_10_10:1;
|
||||
uint64_t pwr_dn:1;
|
||||
uint64_t an_en:1;
|
||||
uint64_t spdlsb:1;
|
||||
uint64_t loopbck1:1;
|
||||
uint64_t reset:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn52xx;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn56xx;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn61xx;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn63xx;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn66xx;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn68xx;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_mrx_control_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_mrx_status_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_mrx_status_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t hun_t4:1;
|
||||
uint64_t hun_xfd:1;
|
||||
@ -266,16 +785,43 @@ union cvmx_pcsx_mrx_status_reg {
|
||||
uint64_t lnk_st:1;
|
||||
uint64_t reserved_1_1:1;
|
||||
uint64_t extnd:1;
|
||||
#else
|
||||
uint64_t extnd:1;
|
||||
uint64_t reserved_1_1:1;
|
||||
uint64_t lnk_st:1;
|
||||
uint64_t an_abil:1;
|
||||
uint64_t rm_flt:1;
|
||||
uint64_t an_cpt:1;
|
||||
uint64_t prb_sup:1;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t ext_st:1;
|
||||
uint64_t hun_t2hd:1;
|
||||
uint64_t hun_t2fd:1;
|
||||
uint64_t ten_hd:1;
|
||||
uint64_t ten_fd:1;
|
||||
uint64_t hun_xhd:1;
|
||||
uint64_t hun_xfd:1;
|
||||
uint64_t hun_t4:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn52xx;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn56xx;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn61xx;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn63xx;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn66xx;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn68xx;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_mrx_status_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_rxx_states_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_rxx_states_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t rx_bad:1;
|
||||
uint64_t rx_st:5;
|
||||
@ -283,29 +829,59 @@ union cvmx_pcsx_rxx_states_reg {
|
||||
uint64_t sync:4;
|
||||
uint64_t an_bad:1;
|
||||
uint64_t an_st:4;
|
||||
#else
|
||||
uint64_t an_st:4;
|
||||
uint64_t an_bad:1;
|
||||
uint64_t sync:4;
|
||||
uint64_t sync_bad:1;
|
||||
uint64_t rx_st:5;
|
||||
uint64_t rx_bad:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn52xx;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn56xx;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn61xx;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn63xx;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn66xx;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn68xx;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_rxx_states_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_rxx_sync_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t sync:1;
|
||||
uint64_t bit_lock:1;
|
||||
#else
|
||||
uint64_t bit_lock:1;
|
||||
uint64_t sync:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn52xx;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn56xx;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn61xx;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn63xx;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn66xx;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn68xx;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_rxx_sync_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_sgmx_an_adv_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t link:1;
|
||||
uint64_t ack:1;
|
||||
@ -314,16 +890,34 @@ union cvmx_pcsx_sgmx_an_adv_reg {
|
||||
uint64_t speed:2;
|
||||
uint64_t reserved_1_9:9;
|
||||
uint64_t one:1;
|
||||
#else
|
||||
uint64_t one:1;
|
||||
uint64_t reserved_1_9:9;
|
||||
uint64_t speed:2;
|
||||
uint64_t dup:1;
|
||||
uint64_t reserved_13_13:1;
|
||||
uint64_t ack:1;
|
||||
uint64_t link:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn52xx;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn56xx;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn61xx;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn63xx;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn66xx;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn68xx;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_sgmx_an_adv_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_sgmx_lp_adv_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t link:1;
|
||||
uint64_t reserved_13_14:2;
|
||||
@ -331,40 +925,85 @@ union cvmx_pcsx_sgmx_lp_adv_reg {
|
||||
uint64_t speed:2;
|
||||
uint64_t reserved_1_9:9;
|
||||
uint64_t one:1;
|
||||
#else
|
||||
uint64_t one:1;
|
||||
uint64_t reserved_1_9:9;
|
||||
uint64_t speed:2;
|
||||
uint64_t dup:1;
|
||||
uint64_t reserved_13_14:2;
|
||||
uint64_t link:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn52xx;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn56xx;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn61xx;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn63xx;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn66xx;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn68xx;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_sgmx_lp_adv_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_txx_states_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_txx_states_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t xmit:2;
|
||||
uint64_t tx_bad:1;
|
||||
uint64_t ord_st:4;
|
||||
#else
|
||||
uint64_t ord_st:4;
|
||||
uint64_t tx_bad:1;
|
||||
uint64_t xmit:2;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn52xx;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn56xx;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn61xx;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn63xx;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn66xx;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn68xx;
|
||||
struct cvmx_pcsx_txx_states_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_txx_states_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pcsx_tx_rxx_polarity_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t rxovrd:1;
|
||||
uint64_t autorxpl:1;
|
||||
uint64_t rxplrt:1;
|
||||
uint64_t txplrt:1;
|
||||
#else
|
||||
uint64_t txplrt:1;
|
||||
uint64_t rxplrt:1;
|
||||
uint64_t autorxpl:1;
|
||||
uint64_t rxovrd:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn52xx;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn52xxp1;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn56xx;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn56xxp1;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn61xx;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn63xx;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn63xxp1;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn66xx;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn68xx;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cn68xxp1;
|
||||
struct cvmx_pcsx_tx_rxx_polarity_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,40 +28,250 @@
|
||||
#ifndef __CVMX_PCSXX_DEFS_H__
|
||||
#define __CVMX_PCSXX_DEFS_H__
|
||||
|
||||
#define CVMX_PCSXX_10GBX_STATUS_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000828ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_BIST_STATUS_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000870ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_BIT_LOCK_STATUS_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000850ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_CONTROL1_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000800ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_CONTROL2_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000818ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_INT_EN_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000860ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_INT_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000858ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_LOG_ANL_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000868ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_MISC_CTL_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000848ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_RX_SYNC_STATES_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000838ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_SPD_ABIL_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000810ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_STATUS1_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000808ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_STATUS2_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000820ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_TX_RX_POLARITY_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000840ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_PCSXX_TX_RX_STATES_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800B0000830ull + (((block_id) & 1) * 0x8000000ull))
|
||||
static inline uint64_t CVMX_PCSXX_10GBX_STATUS_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000828ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000828ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000828ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000828ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_BIST_STATUS_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000870ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000870ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000870ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000870ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_BIT_LOCK_STATUS_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000850ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000850ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000850ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000850ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_CONTROL1_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000800ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000800ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000800ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000800ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_CONTROL2_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000818ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000818ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000818ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000818ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_INT_EN_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000860ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000860ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000860ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000860ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_INT_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000858ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000858ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000858ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000858ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_LOG_ANL_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000868ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000868ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000868ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000868ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_MISC_CTL_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000848ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000848ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000848ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000848ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_RX_SYNC_STATES_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000838ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000838ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000838ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000838ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_SPD_ABIL_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000810ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000810ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000810ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000810ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_STATUS1_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000808ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000808ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000808ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000808ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_STATUS2_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000820ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000820ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000820ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000820ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_TX_RX_POLARITY_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000840ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000840ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000840ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000840ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_PCSXX_TX_RX_STATES_REG(unsigned long block_id)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000830ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000830ull) + (block_id) * 0x8000000ull;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000830ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x00011800B0000830ull) + (block_id) * 0x1000000ull;
|
||||
}
|
||||
|
||||
union cvmx_pcsxx_10gbx_status_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t alignd:1;
|
||||
uint64_t pattst:1;
|
||||
@ -70,43 +280,85 @@ union cvmx_pcsxx_10gbx_status_reg {
|
||||
uint64_t l2sync:1;
|
||||
uint64_t l1sync:1;
|
||||
uint64_t l0sync:1;
|
||||
#else
|
||||
uint64_t l0sync:1;
|
||||
uint64_t l1sync:1;
|
||||
uint64_t l2sync:1;
|
||||
uint64_t l3sync:1;
|
||||
uint64_t reserved_4_10:7;
|
||||
uint64_t pattst:1;
|
||||
uint64_t alignd:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_10gbx_status_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_bist_status_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_bist_status_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t bist_status:1;
|
||||
#else
|
||||
uint64_t bist_status:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_bist_status_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_bit_lock_status_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t bitlck3:1;
|
||||
uint64_t bitlck2:1;
|
||||
uint64_t bitlck1:1;
|
||||
uint64_t bitlck0:1;
|
||||
#else
|
||||
uint64_t bitlck0:1;
|
||||
uint64_t bitlck1:1;
|
||||
uint64_t bitlck2:1;
|
||||
uint64_t bitlck3:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_bit_lock_status_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_control1_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_control1_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t reset:1;
|
||||
uint64_t loopbck1:1;
|
||||
@ -117,28 +369,79 @@ union cvmx_pcsxx_control1_reg {
|
||||
uint64_t spdsel0:1;
|
||||
uint64_t spd:4;
|
||||
uint64_t reserved_0_1:2;
|
||||
#else
|
||||
uint64_t reserved_0_1:2;
|
||||
uint64_t spd:4;
|
||||
uint64_t spdsel0:1;
|
||||
uint64_t reserved_7_10:4;
|
||||
uint64_t lo_pwr:1;
|
||||
uint64_t reserved_12_12:1;
|
||||
uint64_t spdsel1:1;
|
||||
uint64_t loopbck1:1;
|
||||
uint64_t reset:1;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_control1_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_control1_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_control1_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_control1_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_control1_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_control1_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_control1_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_control1_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_control1_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_control1_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_control2_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_control2_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t type:2;
|
||||
#else
|
||||
uint64_t type:2;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_control2_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_control2_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_control2_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_control2_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_control2_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_control2_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_control2_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_control2_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_control2_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_control2_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_int_en_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_int_en_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t dbg_sync_en:1;
|
||||
uint64_t algnlos_en:1;
|
||||
uint64_t synlos_en:1;
|
||||
uint64_t bitlckls_en:1;
|
||||
uint64_t rxsynbad_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t txflt_en:1;
|
||||
#else
|
||||
uint64_t txflt_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t rxsynbad_en:1;
|
||||
uint64_t bitlckls_en:1;
|
||||
uint64_t synlos_en:1;
|
||||
uint64_t algnlos_en:1;
|
||||
uint64_t dbg_sync_en:1;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_int_en_reg_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t algnlos_en:1;
|
||||
uint64_t synlos_en:1;
|
||||
@ -146,16 +449,52 @@ union cvmx_pcsxx_int_en_reg {
|
||||
uint64_t rxsynbad_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t txflt_en:1;
|
||||
} s;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn56xxp1;
|
||||
#else
|
||||
uint64_t txflt_en:1;
|
||||
uint64_t rxbad_en:1;
|
||||
uint64_t rxsynbad_en:1;
|
||||
uint64_t bitlckls_en:1;
|
||||
uint64_t synlos_en:1;
|
||||
uint64_t algnlos_en:1;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_pcsxx_int_en_reg_cn52xx cn52xxp1;
|
||||
struct cvmx_pcsxx_int_en_reg_cn52xx cn56xx;
|
||||
struct cvmx_pcsxx_int_en_reg_cn52xx cn56xxp1;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_int_en_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_int_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_int_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t dbg_sync:1;
|
||||
uint64_t algnlos:1;
|
||||
uint64_t synlos:1;
|
||||
uint64_t bitlckls:1;
|
||||
uint64_t rxsynbad:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t txflt:1;
|
||||
#else
|
||||
uint64_t txflt:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t rxsynbad:1;
|
||||
uint64_t bitlckls:1;
|
||||
uint64_t synlos:1;
|
||||
uint64_t algnlos:1;
|
||||
uint64_t dbg_sync:1;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_int_reg_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t algnlos:1;
|
||||
uint64_t synlos:1;
|
||||
@ -163,91 +502,176 @@ union cvmx_pcsxx_int_reg {
|
||||
uint64_t rxsynbad:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t txflt:1;
|
||||
} s;
|
||||
struct cvmx_pcsxx_int_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_int_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_int_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_int_reg_s cn56xxp1;
|
||||
#else
|
||||
uint64_t txflt:1;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t rxsynbad:1;
|
||||
uint64_t bitlckls:1;
|
||||
uint64_t synlos:1;
|
||||
uint64_t algnlos:1;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_pcsxx_int_reg_cn52xx cn52xxp1;
|
||||
struct cvmx_pcsxx_int_reg_cn52xx cn56xx;
|
||||
struct cvmx_pcsxx_int_reg_cn52xx cn56xxp1;
|
||||
struct cvmx_pcsxx_int_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_int_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_int_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_int_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_int_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_int_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_log_anl_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_log_anl_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t enc_mode:1;
|
||||
uint64_t drop_ln:2;
|
||||
uint64_t lafifovfl:1;
|
||||
uint64_t la_en:1;
|
||||
uint64_t pkt_sz:2;
|
||||
#else
|
||||
uint64_t pkt_sz:2;
|
||||
uint64_t la_en:1;
|
||||
uint64_t lafifovfl:1;
|
||||
uint64_t drop_ln:2;
|
||||
uint64_t enc_mode:1;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_log_anl_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_misc_ctl_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t tx_swap:1;
|
||||
uint64_t rx_swap:1;
|
||||
uint64_t xaui:1;
|
||||
uint64_t gmxeno:1;
|
||||
#else
|
||||
uint64_t gmxeno:1;
|
||||
uint64_t xaui:1;
|
||||
uint64_t rx_swap:1;
|
||||
uint64_t tx_swap:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_misc_ctl_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_rx_sync_states_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t sync3st:4;
|
||||
uint64_t sync2st:4;
|
||||
uint64_t sync1st:4;
|
||||
uint64_t sync0st:4;
|
||||
#else
|
||||
uint64_t sync0st:4;
|
||||
uint64_t sync1st:4;
|
||||
uint64_t sync2st:4;
|
||||
uint64_t sync3st:4;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_rx_sync_states_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_spd_abil_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t tenpasst:1;
|
||||
uint64_t tengb:1;
|
||||
#else
|
||||
uint64_t tengb:1;
|
||||
uint64_t tenpasst:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_spd_abil_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_status1_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_status1_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t flt:1;
|
||||
uint64_t reserved_3_6:4;
|
||||
uint64_t rcv_lnk:1;
|
||||
uint64_t lpable:1;
|
||||
uint64_t reserved_0_0:1;
|
||||
#else
|
||||
uint64_t reserved_0_0:1;
|
||||
uint64_t lpable:1;
|
||||
uint64_t rcv_lnk:1;
|
||||
uint64_t reserved_3_6:4;
|
||||
uint64_t flt:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_status1_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_status1_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_status1_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_status1_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_status1_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_status1_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_status1_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_status1_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_status1_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_status1_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_status2_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_status2_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t dev:2;
|
||||
uint64_t reserved_12_13:2;
|
||||
@ -257,35 +681,73 @@ union cvmx_pcsxx_status2_reg {
|
||||
uint64_t tengb_w:1;
|
||||
uint64_t tengb_x:1;
|
||||
uint64_t tengb_r:1;
|
||||
#else
|
||||
uint64_t tengb_r:1;
|
||||
uint64_t tengb_x:1;
|
||||
uint64_t tengb_w:1;
|
||||
uint64_t reserved_3_9:7;
|
||||
uint64_t rcvflt:1;
|
||||
uint64_t xmtflt:1;
|
||||
uint64_t reserved_12_13:2;
|
||||
uint64_t dev:2;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_status2_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_status2_reg_s cn52xxp1;
|
||||
struct cvmx_pcsxx_status2_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_status2_reg_s cn56xxp1;
|
||||
struct cvmx_pcsxx_status2_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_status2_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_status2_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_status2_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_status2_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_status2_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_tx_rx_polarity_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_10_63:54;
|
||||
uint64_t xor_rxplrt:4;
|
||||
uint64_t xor_txplrt:4;
|
||||
uint64_t rxplrt:1;
|
||||
uint64_t txplrt:1;
|
||||
#else
|
||||
uint64_t txplrt:1;
|
||||
uint64_t rxplrt:1;
|
||||
uint64_t xor_txplrt:4;
|
||||
uint64_t xor_rxplrt:4;
|
||||
uint64_t reserved_10_63:54;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_cn52xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t rxplrt:1;
|
||||
uint64_t txplrt:1;
|
||||
#else
|
||||
uint64_t txplrt:1;
|
||||
uint64_t rxplrt:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} cn52xxp1;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_cn52xxp1 cn56xxp1;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_tx_rx_polarity_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
union cvmx_pcsxx_tx_rx_states_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t term_err:1;
|
||||
uint64_t syn3bad:1;
|
||||
@ -296,9 +758,22 @@ union cvmx_pcsxx_tx_rx_states_reg {
|
||||
uint64_t algn_st:3;
|
||||
uint64_t rx_st:2;
|
||||
uint64_t tx_st:3;
|
||||
#else
|
||||
uint64_t tx_st:3;
|
||||
uint64_t rx_st:2;
|
||||
uint64_t algn_st:3;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t syn0bad:1;
|
||||
uint64_t syn1bad:1;
|
||||
uint64_t syn2bad:1;
|
||||
uint64_t syn3bad:1;
|
||||
uint64_t term_err:1;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn52xx;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_cn52xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t syn3bad:1;
|
||||
uint64_t syn2bad:1;
|
||||
@ -308,9 +783,26 @@ union cvmx_pcsxx_tx_rx_states_reg {
|
||||
uint64_t algn_st:3;
|
||||
uint64_t rx_st:2;
|
||||
uint64_t tx_st:3;
|
||||
#else
|
||||
uint64_t tx_st:3;
|
||||
uint64_t rx_st:2;
|
||||
uint64_t algn_st:3;
|
||||
uint64_t rxbad:1;
|
||||
uint64_t syn0bad:1;
|
||||
uint64_t syn1bad:1;
|
||||
uint64_t syn2bad:1;
|
||||
uint64_t syn3bad:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} cn52xxp1;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn56xx;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_cn52xxp1 cn56xxp1;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn61xx;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn63xx;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn63xxp1;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn66xx;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn68xx;
|
||||
struct cvmx_pcsxx_tx_rx_states_reg_s cn68xxp1;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2011 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -54,11 +54,19 @@
|
||||
union cvmx_pemx_bar1_indexx {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_bar1_indexx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t addr_idx:16;
|
||||
uint64_t ca:1;
|
||||
uint64_t end_swp:2;
|
||||
uint64_t addr_v:1;
|
||||
#else
|
||||
uint64_t addr_v:1;
|
||||
uint64_t end_swp:2;
|
||||
uint64_t ca:1;
|
||||
uint64_t addr_idx:16;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_bar1_indexx_s cn61xx;
|
||||
struct cvmx_pemx_bar1_indexx_s cn63xx;
|
||||
@ -66,29 +74,45 @@ union cvmx_pemx_bar1_indexx {
|
||||
struct cvmx_pemx_bar1_indexx_s cn66xx;
|
||||
struct cvmx_pemx_bar1_indexx_s cn68xx;
|
||||
struct cvmx_pemx_bar1_indexx_s cn68xxp1;
|
||||
struct cvmx_pemx_bar1_indexx_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_bar2_mask {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_bar2_mask_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_38_63:26;
|
||||
uint64_t mask:35;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t mask:35;
|
||||
uint64_t reserved_38_63:26;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_bar2_mask_s cn61xx;
|
||||
struct cvmx_pemx_bar2_mask_s cn66xx;
|
||||
struct cvmx_pemx_bar2_mask_s cn68xx;
|
||||
struct cvmx_pemx_bar2_mask_s cn68xxp1;
|
||||
struct cvmx_pemx_bar2_mask_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_bar_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_bar_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_7_63:57;
|
||||
uint64_t bar1_siz:3;
|
||||
uint64_t bar2_enb:1;
|
||||
uint64_t bar2_esx:2;
|
||||
uint64_t bar2_cax:1;
|
||||
#else
|
||||
uint64_t bar2_cax:1;
|
||||
uint64_t bar2_esx:2;
|
||||
uint64_t bar2_enb:1;
|
||||
uint64_t bar1_siz:3;
|
||||
uint64_t reserved_7_63:57;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_bar_ctl_s cn61xx;
|
||||
struct cvmx_pemx_bar_ctl_s cn63xx;
|
||||
@ -96,11 +120,13 @@ union cvmx_pemx_bar_ctl {
|
||||
struct cvmx_pemx_bar_ctl_s cn66xx;
|
||||
struct cvmx_pemx_bar_ctl_s cn68xx;
|
||||
struct cvmx_pemx_bar_ctl_s cn68xxp1;
|
||||
struct cvmx_pemx_bar_ctl_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_bist_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_bist_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t retry:1;
|
||||
uint64_t rqdata0:1;
|
||||
@ -110,6 +136,17 @@ union cvmx_pemx_bist_status {
|
||||
uint64_t rqhdr1:1;
|
||||
uint64_t rqhdr0:1;
|
||||
uint64_t sot:1;
|
||||
#else
|
||||
uint64_t sot:1;
|
||||
uint64_t rqhdr0:1;
|
||||
uint64_t rqhdr1:1;
|
||||
uint64_t rqdata3:1;
|
||||
uint64_t rqdata2:1;
|
||||
uint64_t rqdata1:1;
|
||||
uint64_t rqdata0:1;
|
||||
uint64_t retry:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_bist_status_s cn61xx;
|
||||
struct cvmx_pemx_bist_status_s cn63xx;
|
||||
@ -117,11 +154,13 @@ union cvmx_pemx_bist_status {
|
||||
struct cvmx_pemx_bist_status_s cn66xx;
|
||||
struct cvmx_pemx_bist_status_s cn68xx;
|
||||
struct cvmx_pemx_bist_status_s cn68xxp1;
|
||||
struct cvmx_pemx_bist_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_bist_status2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_bist_status2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_10_63:54;
|
||||
uint64_t e2p_cpl:1;
|
||||
uint64_t e2p_n:1;
|
||||
@ -133,6 +172,19 @@ union cvmx_pemx_bist_status2 {
|
||||
uint64_t pef_tcf1:1;
|
||||
uint64_t pef_tc0:1;
|
||||
uint64_t ppf:1;
|
||||
#else
|
||||
uint64_t ppf:1;
|
||||
uint64_t pef_tc0:1;
|
||||
uint64_t pef_tcf1:1;
|
||||
uint64_t pef_tnf:1;
|
||||
uint64_t pef_tpf0:1;
|
||||
uint64_t pef_tpf1:1;
|
||||
uint64_t peai_p2e:1;
|
||||
uint64_t e2p_p:1;
|
||||
uint64_t e2p_n:1;
|
||||
uint64_t e2p_cpl:1;
|
||||
uint64_t reserved_10_63:54;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_bist_status2_s cn61xx;
|
||||
struct cvmx_pemx_bist_status2_s cn63xx;
|
||||
@ -140,13 +192,19 @@ union cvmx_pemx_bist_status2 {
|
||||
struct cvmx_pemx_bist_status2_s cn66xx;
|
||||
struct cvmx_pemx_bist_status2_s cn68xx;
|
||||
struct cvmx_pemx_bist_status2_s cn68xxp1;
|
||||
struct cvmx_pemx_bist_status2_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_cfg_rd {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_cfg_rd_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t data:32;
|
||||
uint64_t addr:32;
|
||||
#else
|
||||
uint64_t addr:32;
|
||||
uint64_t data:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_cfg_rd_s cn61xx;
|
||||
struct cvmx_pemx_cfg_rd_s cn63xx;
|
||||
@ -154,13 +212,19 @@ union cvmx_pemx_cfg_rd {
|
||||
struct cvmx_pemx_cfg_rd_s cn66xx;
|
||||
struct cvmx_pemx_cfg_rd_s cn68xx;
|
||||
struct cvmx_pemx_cfg_rd_s cn68xxp1;
|
||||
struct cvmx_pemx_cfg_rd_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_cfg_wr {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_cfg_wr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t data:32;
|
||||
uint64_t addr:32;
|
||||
#else
|
||||
uint64_t addr:32;
|
||||
uint64_t data:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_cfg_wr_s cn61xx;
|
||||
struct cvmx_pemx_cfg_wr_s cn63xx;
|
||||
@ -168,13 +232,19 @@ union cvmx_pemx_cfg_wr {
|
||||
struct cvmx_pemx_cfg_wr_s cn66xx;
|
||||
struct cvmx_pemx_cfg_wr_s cn68xx;
|
||||
struct cvmx_pemx_cfg_wr_s cn68xxp1;
|
||||
struct cvmx_pemx_cfg_wr_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_cpl_lut_valid {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_cpl_lut_valid_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t tag:32;
|
||||
#else
|
||||
uint64_t tag:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_cpl_lut_valid_s cn61xx;
|
||||
struct cvmx_pemx_cpl_lut_valid_s cn63xx;
|
||||
@ -182,11 +252,13 @@ union cvmx_pemx_cpl_lut_valid {
|
||||
struct cvmx_pemx_cpl_lut_valid_s cn66xx;
|
||||
struct cvmx_pemx_cpl_lut_valid_s cn68xx;
|
||||
struct cvmx_pemx_cpl_lut_valid_s cn68xxp1;
|
||||
struct cvmx_pemx_cpl_lut_valid_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_ctl_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_ctl_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_48_63:16;
|
||||
uint64_t auto_sd:1;
|
||||
uint64_t dnum:5;
|
||||
@ -205,6 +277,26 @@ union cvmx_pemx_ctl_status {
|
||||
uint64_t fast_lm:1;
|
||||
uint64_t inv_ecrc:1;
|
||||
uint64_t inv_lcrc:1;
|
||||
#else
|
||||
uint64_t inv_lcrc:1;
|
||||
uint64_t inv_ecrc:1;
|
||||
uint64_t fast_lm:1;
|
||||
uint64_t ro_ctlp:1;
|
||||
uint64_t lnk_enb:1;
|
||||
uint64_t dly_one:1;
|
||||
uint64_t nf_ecrc:1;
|
||||
uint64_t reserved_7_8:2;
|
||||
uint64_t ob_p_cmd:1;
|
||||
uint64_t pm_xpme:1;
|
||||
uint64_t pm_xtoff:1;
|
||||
uint64_t reserved_12_15:4;
|
||||
uint64_t cfg_rtry:16;
|
||||
uint64_t reserved_32_33:2;
|
||||
uint64_t pbus:8;
|
||||
uint64_t dnum:5;
|
||||
uint64_t auto_sd:1;
|
||||
uint64_t reserved_48_63:16;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_ctl_status_s cn61xx;
|
||||
struct cvmx_pemx_ctl_status_s cn63xx;
|
||||
@ -212,11 +304,13 @@ union cvmx_pemx_ctl_status {
|
||||
struct cvmx_pemx_ctl_status_s cn66xx;
|
||||
struct cvmx_pemx_ctl_status_s cn68xx;
|
||||
struct cvmx_pemx_ctl_status_s cn68xxp1;
|
||||
struct cvmx_pemx_ctl_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_dbg_info {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_dbg_info_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_31_63:33;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t rawwpp:1;
|
||||
@ -249,6 +343,40 @@ union cvmx_pemx_dbg_info {
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t spoison:1;
|
||||
#else
|
||||
uint64_t spoison:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t recrce:1;
|
||||
uint64_t rpoison:1;
|
||||
uint64_t rcemrc:1;
|
||||
uint64_t rnfemrc:1;
|
||||
uint64_t rfemrc:1;
|
||||
uint64_t rpmerc:1;
|
||||
uint64_t rptamrc:1;
|
||||
uint64_t rumep:1;
|
||||
uint64_t rvdm:1;
|
||||
uint64_t acto:1;
|
||||
uint64_t rte:1;
|
||||
uint64_t mre:1;
|
||||
uint64_t rdwdle:1;
|
||||
uint64_t rtwdle:1;
|
||||
uint64_t dpeoosd:1;
|
||||
uint64_t fcpvwt:1;
|
||||
uint64_t rpe:1;
|
||||
uint64_t fcuv:1;
|
||||
uint64_t rqo:1;
|
||||
uint64_t rauc:1;
|
||||
uint64_t racur:1;
|
||||
uint64_t racca:1;
|
||||
uint64_t caar:1;
|
||||
uint64_t rarwdns:1;
|
||||
uint64_t ramtlp:1;
|
||||
uint64_t racpp:1;
|
||||
uint64_t rawwpp:1;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t reserved_31_63:33;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_dbg_info_s cn61xx;
|
||||
struct cvmx_pemx_dbg_info_s cn63xx;
|
||||
@ -256,11 +384,13 @@ union cvmx_pemx_dbg_info {
|
||||
struct cvmx_pemx_dbg_info_s cn66xx;
|
||||
struct cvmx_pemx_dbg_info_s cn68xx;
|
||||
struct cvmx_pemx_dbg_info_s cn68xxp1;
|
||||
struct cvmx_pemx_dbg_info_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_dbg_info_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_dbg_info_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_31_63:33;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t rawwpp:1;
|
||||
@ -293,6 +423,40 @@ union cvmx_pemx_dbg_info_en {
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t spoison:1;
|
||||
#else
|
||||
uint64_t spoison:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t recrce:1;
|
||||
uint64_t rpoison:1;
|
||||
uint64_t rcemrc:1;
|
||||
uint64_t rnfemrc:1;
|
||||
uint64_t rfemrc:1;
|
||||
uint64_t rpmerc:1;
|
||||
uint64_t rptamrc:1;
|
||||
uint64_t rumep:1;
|
||||
uint64_t rvdm:1;
|
||||
uint64_t acto:1;
|
||||
uint64_t rte:1;
|
||||
uint64_t mre:1;
|
||||
uint64_t rdwdle:1;
|
||||
uint64_t rtwdle:1;
|
||||
uint64_t dpeoosd:1;
|
||||
uint64_t fcpvwt:1;
|
||||
uint64_t rpe:1;
|
||||
uint64_t fcuv:1;
|
||||
uint64_t rqo:1;
|
||||
uint64_t rauc:1;
|
||||
uint64_t racur:1;
|
||||
uint64_t racca:1;
|
||||
uint64_t caar:1;
|
||||
uint64_t rarwdns:1;
|
||||
uint64_t ramtlp:1;
|
||||
uint64_t racpp:1;
|
||||
uint64_t rawwpp:1;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t reserved_31_63:33;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_dbg_info_en_s cn61xx;
|
||||
struct cvmx_pemx_dbg_info_en_s cn63xx;
|
||||
@ -300,16 +464,25 @@ union cvmx_pemx_dbg_info_en {
|
||||
struct cvmx_pemx_dbg_info_en_s cn66xx;
|
||||
struct cvmx_pemx_dbg_info_en_s cn68xx;
|
||||
struct cvmx_pemx_dbg_info_en_s cn68xxp1;
|
||||
struct cvmx_pemx_dbg_info_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_diag_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_diag_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t pm_dst:1;
|
||||
uint64_t pm_stat:1;
|
||||
uint64_t pm_en:1;
|
||||
uint64_t aux_en:1;
|
||||
#else
|
||||
uint64_t aux_en:1;
|
||||
uint64_t pm_en:1;
|
||||
uint64_t pm_stat:1;
|
||||
uint64_t pm_dst:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_diag_status_s cn61xx;
|
||||
struct cvmx_pemx_diag_status_s cn63xx;
|
||||
@ -317,22 +490,30 @@ union cvmx_pemx_diag_status {
|
||||
struct cvmx_pemx_diag_status_s cn66xx;
|
||||
struct cvmx_pemx_diag_status_s cn68xx;
|
||||
struct cvmx_pemx_diag_status_s cn68xxp1;
|
||||
struct cvmx_pemx_diag_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_inb_read_credits {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_inb_read_credits_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t num:6;
|
||||
#else
|
||||
uint64_t num:6;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_inb_read_credits_s cn61xx;
|
||||
struct cvmx_pemx_inb_read_credits_s cn66xx;
|
||||
struct cvmx_pemx_inb_read_credits_s cn68xx;
|
||||
struct cvmx_pemx_inb_read_credits_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_int_enb {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_int_enb_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t crs_dr:1;
|
||||
uint64_t crs_er:1;
|
||||
@ -348,6 +529,23 @@ union cvmx_pemx_int_enb {
|
||||
uint64_t pmei:1;
|
||||
uint64_t se:1;
|
||||
uint64_t aeri:1;
|
||||
#else
|
||||
uint64_t aeri:1;
|
||||
uint64_t se:1;
|
||||
uint64_t pmei:1;
|
||||
uint64_t pmem:1;
|
||||
uint64_t up_b1:1;
|
||||
uint64_t up_b2:1;
|
||||
uint64_t up_bx:1;
|
||||
uint64_t un_b1:1;
|
||||
uint64_t un_b2:1;
|
||||
uint64_t un_bx:1;
|
||||
uint64_t exc:1;
|
||||
uint64_t rdlk:1;
|
||||
uint64_t crs_er:1;
|
||||
uint64_t crs_dr:1;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_int_enb_s cn61xx;
|
||||
struct cvmx_pemx_int_enb_s cn63xx;
|
||||
@ -355,11 +553,13 @@ union cvmx_pemx_int_enb {
|
||||
struct cvmx_pemx_int_enb_s cn66xx;
|
||||
struct cvmx_pemx_int_enb_s cn68xx;
|
||||
struct cvmx_pemx_int_enb_s cn68xxp1;
|
||||
struct cvmx_pemx_int_enb_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_int_enb_int {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_int_enb_int_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t crs_dr:1;
|
||||
uint64_t crs_er:1;
|
||||
@ -375,6 +575,23 @@ union cvmx_pemx_int_enb_int {
|
||||
uint64_t pmei:1;
|
||||
uint64_t se:1;
|
||||
uint64_t aeri:1;
|
||||
#else
|
||||
uint64_t aeri:1;
|
||||
uint64_t se:1;
|
||||
uint64_t pmei:1;
|
||||
uint64_t pmem:1;
|
||||
uint64_t up_b1:1;
|
||||
uint64_t up_b2:1;
|
||||
uint64_t up_bx:1;
|
||||
uint64_t un_b1:1;
|
||||
uint64_t un_b2:1;
|
||||
uint64_t un_bx:1;
|
||||
uint64_t exc:1;
|
||||
uint64_t rdlk:1;
|
||||
uint64_t crs_er:1;
|
||||
uint64_t crs_dr:1;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_int_enb_int_s cn61xx;
|
||||
struct cvmx_pemx_int_enb_int_s cn63xx;
|
||||
@ -382,11 +599,13 @@ union cvmx_pemx_int_enb_int {
|
||||
struct cvmx_pemx_int_enb_int_s cn66xx;
|
||||
struct cvmx_pemx_int_enb_int_s cn68xx;
|
||||
struct cvmx_pemx_int_enb_int_s cn68xxp1;
|
||||
struct cvmx_pemx_int_enb_int_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_int_sum {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_int_sum_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t crs_dr:1;
|
||||
uint64_t crs_er:1;
|
||||
@ -402,6 +621,23 @@ union cvmx_pemx_int_sum {
|
||||
uint64_t pmei:1;
|
||||
uint64_t se:1;
|
||||
uint64_t aeri:1;
|
||||
#else
|
||||
uint64_t aeri:1;
|
||||
uint64_t se:1;
|
||||
uint64_t pmei:1;
|
||||
uint64_t pmem:1;
|
||||
uint64_t up_b1:1;
|
||||
uint64_t up_b2:1;
|
||||
uint64_t up_bx:1;
|
||||
uint64_t un_b1:1;
|
||||
uint64_t un_b2:1;
|
||||
uint64_t un_bx:1;
|
||||
uint64_t exc:1;
|
||||
uint64_t rdlk:1;
|
||||
uint64_t crs_er:1;
|
||||
uint64_t crs_dr:1;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_int_sum_s cn61xx;
|
||||
struct cvmx_pemx_int_sum_s cn63xx;
|
||||
@ -409,13 +645,19 @@ union cvmx_pemx_int_sum {
|
||||
struct cvmx_pemx_int_sum_s cn66xx;
|
||||
struct cvmx_pemx_int_sum_s cn68xx;
|
||||
struct cvmx_pemx_int_sum_s cn68xxp1;
|
||||
struct cvmx_pemx_int_sum_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_p2n_bar0_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_p2n_bar0_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:50;
|
||||
uint64_t reserved_0_13:14;
|
||||
#else
|
||||
uint64_t reserved_0_13:14;
|
||||
uint64_t addr:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_p2n_bar0_start_s cn61xx;
|
||||
struct cvmx_pemx_p2n_bar0_start_s cn63xx;
|
||||
@ -423,13 +665,19 @@ union cvmx_pemx_p2n_bar0_start {
|
||||
struct cvmx_pemx_p2n_bar0_start_s cn66xx;
|
||||
struct cvmx_pemx_p2n_bar0_start_s cn68xx;
|
||||
struct cvmx_pemx_p2n_bar0_start_s cn68xxp1;
|
||||
struct cvmx_pemx_p2n_bar0_start_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_p2n_bar1_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_p2n_bar1_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:38;
|
||||
uint64_t reserved_0_25:26;
|
||||
#else
|
||||
uint64_t reserved_0_25:26;
|
||||
uint64_t addr:38;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_p2n_bar1_start_s cn61xx;
|
||||
struct cvmx_pemx_p2n_bar1_start_s cn63xx;
|
||||
@ -437,13 +685,19 @@ union cvmx_pemx_p2n_bar1_start {
|
||||
struct cvmx_pemx_p2n_bar1_start_s cn66xx;
|
||||
struct cvmx_pemx_p2n_bar1_start_s cn68xx;
|
||||
struct cvmx_pemx_p2n_bar1_start_s cn68xxp1;
|
||||
struct cvmx_pemx_p2n_bar1_start_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_p2n_bar2_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_p2n_bar2_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:23;
|
||||
uint64_t reserved_0_40:41;
|
||||
#else
|
||||
uint64_t reserved_0_40:41;
|
||||
uint64_t addr:23;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_p2n_bar2_start_s cn61xx;
|
||||
struct cvmx_pemx_p2n_bar2_start_s cn63xx;
|
||||
@ -451,13 +705,19 @@ union cvmx_pemx_p2n_bar2_start {
|
||||
struct cvmx_pemx_p2n_bar2_start_s cn66xx;
|
||||
struct cvmx_pemx_p2n_bar2_start_s cn68xx;
|
||||
struct cvmx_pemx_p2n_bar2_start_s cn68xxp1;
|
||||
struct cvmx_pemx_p2n_bar2_start_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_pemx_p2p_barx_end {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_p2p_barx_end_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:52;
|
||||
uint64_t reserved_0_11:12;
|
||||
#else
|
||||
uint64_t reserved_0_11:12;
|
||||
uint64_t addr:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_p2p_barx_end_s cn63xx;
|
||||
struct cvmx_pemx_p2p_barx_end_s cn63xxp1;
|
||||
@ -469,8 +729,13 @@ union cvmx_pemx_p2p_barx_end {
|
||||
union cvmx_pemx_p2p_barx_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_p2p_barx_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:52;
|
||||
uint64_t reserved_0_11:12;
|
||||
#else
|
||||
uint64_t reserved_0_11:12;
|
||||
uint64_t addr:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_p2p_barx_start_s cn63xx;
|
||||
struct cvmx_pemx_p2p_barx_start_s cn63xxp1;
|
||||
@ -482,6 +747,7 @@ union cvmx_pemx_p2p_barx_start {
|
||||
union cvmx_pemx_tlp_credits {
|
||||
uint64_t u64;
|
||||
struct cvmx_pemx_tlp_credits_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_56_63:8;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t pem_cpl:8;
|
||||
@ -490,20 +756,40 @@ union cvmx_pemx_tlp_credits {
|
||||
uint64_t sli_cpl:8;
|
||||
uint64_t sli_np:8;
|
||||
uint64_t sli_p:8;
|
||||
#else
|
||||
uint64_t sli_p:8;
|
||||
uint64_t sli_np:8;
|
||||
uint64_t sli_cpl:8;
|
||||
uint64_t pem_p:8;
|
||||
uint64_t pem_np:8;
|
||||
uint64_t pem_cpl:8;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t reserved_56_63:8;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pemx_tlp_credits_cn61xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_56_63:8;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t reserved_24_47:24;
|
||||
uint64_t sli_cpl:8;
|
||||
uint64_t sli_np:8;
|
||||
uint64_t sli_p:8;
|
||||
#else
|
||||
uint64_t sli_p:8;
|
||||
uint64_t sli_np:8;
|
||||
uint64_t sli_cpl:8;
|
||||
uint64_t reserved_24_47:24;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t reserved_56_63:8;
|
||||
#endif
|
||||
} cn61xx;
|
||||
struct cvmx_pemx_tlp_credits_s cn63xx;
|
||||
struct cvmx_pemx_tlp_credits_s cn63xxp1;
|
||||
struct cvmx_pemx_tlp_credits_s cn66xx;
|
||||
struct cvmx_pemx_tlp_credits_s cn68xx;
|
||||
struct cvmx_pemx_tlp_credits_s cn68xxp1;
|
||||
struct cvmx_pemx_tlp_credits_cn61xx cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -48,6 +48,7 @@
|
||||
union cvmx_pescx_bist_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_bist_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t rqdata5:1;
|
||||
uint64_t ctlp_or:1;
|
||||
@ -62,9 +63,26 @@ union cvmx_pescx_bist_status {
|
||||
uint64_t rqhdr1:1;
|
||||
uint64_t rqhdr0:1;
|
||||
uint64_t sot:1;
|
||||
#else
|
||||
uint64_t sot:1;
|
||||
uint64_t rqhdr0:1;
|
||||
uint64_t rqhdr1:1;
|
||||
uint64_t rqdata4:1;
|
||||
uint64_t rqdata3:1;
|
||||
uint64_t rqdata2:1;
|
||||
uint64_t rqdata1:1;
|
||||
uint64_t rqdata0:1;
|
||||
uint64_t retry:1;
|
||||
uint64_t ptlp_or:1;
|
||||
uint64_t ntlp_or:1;
|
||||
uint64_t ctlp_or:1;
|
||||
uint64_t rqdata5:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_bist_status_s cn52xx;
|
||||
struct cvmx_pescx_bist_status_cn52xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t ctlp_or:1;
|
||||
uint64_t ntlp_or:1;
|
||||
@ -78,6 +96,21 @@ union cvmx_pescx_bist_status {
|
||||
uint64_t rqhdr1:1;
|
||||
uint64_t rqhdr0:1;
|
||||
uint64_t sot:1;
|
||||
#else
|
||||
uint64_t sot:1;
|
||||
uint64_t rqhdr0:1;
|
||||
uint64_t rqhdr1:1;
|
||||
uint64_t rqdata4:1;
|
||||
uint64_t rqdata3:1;
|
||||
uint64_t rqdata2:1;
|
||||
uint64_t rqdata1:1;
|
||||
uint64_t rqdata0:1;
|
||||
uint64_t retry:1;
|
||||
uint64_t ptlp_or:1;
|
||||
uint64_t ntlp_or:1;
|
||||
uint64_t ctlp_or:1;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} cn52xxp1;
|
||||
struct cvmx_pescx_bist_status_s cn56xx;
|
||||
struct cvmx_pescx_bist_status_cn52xxp1 cn56xxp1;
|
||||
@ -86,6 +119,7 @@ union cvmx_pescx_bist_status {
|
||||
union cvmx_pescx_bist_status2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_bist_status2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t cto_p2e:1;
|
||||
uint64_t e2p_cpl:1;
|
||||
@ -101,6 +135,23 @@ union cvmx_pescx_bist_status2 {
|
||||
uint64_t pef_tcf1:1;
|
||||
uint64_t pef_tc0:1;
|
||||
uint64_t ppf:1;
|
||||
#else
|
||||
uint64_t ppf:1;
|
||||
uint64_t pef_tc0:1;
|
||||
uint64_t pef_tcf1:1;
|
||||
uint64_t pef_tnf:1;
|
||||
uint64_t pef_tpf0:1;
|
||||
uint64_t pef_tpf1:1;
|
||||
uint64_t rsl_p2e:1;
|
||||
uint64_t peai_p2e:1;
|
||||
uint64_t dbg_p2e:1;
|
||||
uint64_t e2p_rsl:1;
|
||||
uint64_t e2p_p:1;
|
||||
uint64_t e2p_n:1;
|
||||
uint64_t e2p_cpl:1;
|
||||
uint64_t cto_p2e:1;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_bist_status2_s cn52xx;
|
||||
struct cvmx_pescx_bist_status2_s cn52xxp1;
|
||||
@ -111,8 +162,13 @@ union cvmx_pescx_bist_status2 {
|
||||
union cvmx_pescx_cfg_rd {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_cfg_rd_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t data:32;
|
||||
uint64_t addr:32;
|
||||
#else
|
||||
uint64_t addr:32;
|
||||
uint64_t data:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_cfg_rd_s cn52xx;
|
||||
struct cvmx_pescx_cfg_rd_s cn52xxp1;
|
||||
@ -123,8 +179,13 @@ union cvmx_pescx_cfg_rd {
|
||||
union cvmx_pescx_cfg_wr {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_cfg_wr_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t data:32;
|
||||
uint64_t addr:32;
|
||||
#else
|
||||
uint64_t addr:32;
|
||||
uint64_t data:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_cfg_wr_s cn52xx;
|
||||
struct cvmx_pescx_cfg_wr_s cn52xxp1;
|
||||
@ -135,8 +196,13 @@ union cvmx_pescx_cfg_wr {
|
||||
union cvmx_pescx_cpl_lut_valid {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_cpl_lut_valid_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t tag:32;
|
||||
#else
|
||||
uint64_t tag:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_cpl_lut_valid_s cn52xx;
|
||||
struct cvmx_pescx_cpl_lut_valid_s cn52xxp1;
|
||||
@ -147,6 +213,7 @@ union cvmx_pescx_cpl_lut_valid {
|
||||
union cvmx_pescx_ctl_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_ctl_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t dnum:5;
|
||||
uint64_t pbus:8;
|
||||
@ -163,10 +230,29 @@ union cvmx_pescx_ctl_status {
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t inv_ecrc:1;
|
||||
uint64_t inv_lcrc:1;
|
||||
#else
|
||||
uint64_t inv_lcrc:1;
|
||||
uint64_t inv_ecrc:1;
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t ro_ctlp:1;
|
||||
uint64_t lnk_enb:1;
|
||||
uint64_t dly_one:1;
|
||||
uint64_t nf_ecrc:1;
|
||||
uint64_t reserved_7_8:2;
|
||||
uint64_t ob_p_cmd:1;
|
||||
uint64_t pm_xpme:1;
|
||||
uint64_t pm_xtoff:1;
|
||||
uint64_t lane_swp:1;
|
||||
uint64_t qlm_cfg:2;
|
||||
uint64_t pbus:8;
|
||||
uint64_t dnum:5;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_ctl_status_s cn52xx;
|
||||
struct cvmx_pescx_ctl_status_s cn52xxp1;
|
||||
struct cvmx_pescx_ctl_status_cn56xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_28_63:36;
|
||||
uint64_t dnum:5;
|
||||
uint64_t pbus:8;
|
||||
@ -183,6 +269,24 @@ union cvmx_pescx_ctl_status {
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t inv_ecrc:1;
|
||||
uint64_t inv_lcrc:1;
|
||||
#else
|
||||
uint64_t inv_lcrc:1;
|
||||
uint64_t inv_ecrc:1;
|
||||
uint64_t reserved_2_2:1;
|
||||
uint64_t ro_ctlp:1;
|
||||
uint64_t lnk_enb:1;
|
||||
uint64_t dly_one:1;
|
||||
uint64_t nf_ecrc:1;
|
||||
uint64_t reserved_7_8:2;
|
||||
uint64_t ob_p_cmd:1;
|
||||
uint64_t pm_xpme:1;
|
||||
uint64_t pm_xtoff:1;
|
||||
uint64_t reserved_12_12:1;
|
||||
uint64_t qlm_cfg:2;
|
||||
uint64_t pbus:8;
|
||||
uint64_t dnum:5;
|
||||
uint64_t reserved_28_63:36;
|
||||
#endif
|
||||
} cn56xx;
|
||||
struct cvmx_pescx_ctl_status_cn56xx cn56xxp1;
|
||||
};
|
||||
@ -190,14 +294,25 @@ union cvmx_pescx_ctl_status {
|
||||
union cvmx_pescx_ctl_status2 {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_ctl_status2_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t pclk_run:1;
|
||||
uint64_t pcierst:1;
|
||||
#else
|
||||
uint64_t pcierst:1;
|
||||
uint64_t pclk_run:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_ctl_status2_s cn52xx;
|
||||
struct cvmx_pescx_ctl_status2_cn52xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t pcierst:1;
|
||||
#else
|
||||
uint64_t pcierst:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} cn52xxp1;
|
||||
struct cvmx_pescx_ctl_status2_s cn56xx;
|
||||
struct cvmx_pescx_ctl_status2_cn52xxp1 cn56xxp1;
|
||||
@ -206,6 +321,7 @@ union cvmx_pescx_ctl_status2 {
|
||||
union cvmx_pescx_dbg_info {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_dbg_info_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_31_63:33;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t rawwpp:1;
|
||||
@ -238,6 +354,40 @@ union cvmx_pescx_dbg_info {
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t spoison:1;
|
||||
#else
|
||||
uint64_t spoison:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t recrce:1;
|
||||
uint64_t rpoison:1;
|
||||
uint64_t rcemrc:1;
|
||||
uint64_t rnfemrc:1;
|
||||
uint64_t rfemrc:1;
|
||||
uint64_t rpmerc:1;
|
||||
uint64_t rptamrc:1;
|
||||
uint64_t rumep:1;
|
||||
uint64_t rvdm:1;
|
||||
uint64_t acto:1;
|
||||
uint64_t rte:1;
|
||||
uint64_t mre:1;
|
||||
uint64_t rdwdle:1;
|
||||
uint64_t rtwdle:1;
|
||||
uint64_t dpeoosd:1;
|
||||
uint64_t fcpvwt:1;
|
||||
uint64_t rpe:1;
|
||||
uint64_t fcuv:1;
|
||||
uint64_t rqo:1;
|
||||
uint64_t rauc:1;
|
||||
uint64_t racur:1;
|
||||
uint64_t racca:1;
|
||||
uint64_t caar:1;
|
||||
uint64_t rarwdns:1;
|
||||
uint64_t ramtlp:1;
|
||||
uint64_t racpp:1;
|
||||
uint64_t rawwpp:1;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t reserved_31_63:33;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_dbg_info_s cn52xx;
|
||||
struct cvmx_pescx_dbg_info_s cn52xxp1;
|
||||
@ -248,6 +398,7 @@ union cvmx_pescx_dbg_info {
|
||||
union cvmx_pescx_dbg_info_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_dbg_info_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_31_63:33;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t rawwpp:1;
|
||||
@ -280,6 +431,40 @@ union cvmx_pescx_dbg_info_en {
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t spoison:1;
|
||||
#else
|
||||
uint64_t spoison:1;
|
||||
uint64_t rtlpmal:1;
|
||||
uint64_t rtlplle:1;
|
||||
uint64_t recrce:1;
|
||||
uint64_t rpoison:1;
|
||||
uint64_t rcemrc:1;
|
||||
uint64_t rnfemrc:1;
|
||||
uint64_t rfemrc:1;
|
||||
uint64_t rpmerc:1;
|
||||
uint64_t rptamrc:1;
|
||||
uint64_t rumep:1;
|
||||
uint64_t rvdm:1;
|
||||
uint64_t acto:1;
|
||||
uint64_t rte:1;
|
||||
uint64_t mre:1;
|
||||
uint64_t rdwdle:1;
|
||||
uint64_t rtwdle:1;
|
||||
uint64_t dpeoosd:1;
|
||||
uint64_t fcpvwt:1;
|
||||
uint64_t rpe:1;
|
||||
uint64_t fcuv:1;
|
||||
uint64_t rqo:1;
|
||||
uint64_t rauc:1;
|
||||
uint64_t racur:1;
|
||||
uint64_t racca:1;
|
||||
uint64_t caar:1;
|
||||
uint64_t rarwdns:1;
|
||||
uint64_t ramtlp:1;
|
||||
uint64_t racpp:1;
|
||||
uint64_t rawwpp:1;
|
||||
uint64_t ecrc_e:1;
|
||||
uint64_t reserved_31_63:33;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_dbg_info_en_s cn52xx;
|
||||
struct cvmx_pescx_dbg_info_en_s cn52xxp1;
|
||||
@ -290,11 +475,19 @@ union cvmx_pescx_dbg_info_en {
|
||||
union cvmx_pescx_diag_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_diag_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t pm_dst:1;
|
||||
uint64_t pm_stat:1;
|
||||
uint64_t pm_en:1;
|
||||
uint64_t aux_en:1;
|
||||
#else
|
||||
uint64_t aux_en:1;
|
||||
uint64_t pm_en:1;
|
||||
uint64_t pm_stat:1;
|
||||
uint64_t pm_dst:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_diag_status_s cn52xx;
|
||||
struct cvmx_pescx_diag_status_s cn52xxp1;
|
||||
@ -305,8 +498,13 @@ union cvmx_pescx_diag_status {
|
||||
union cvmx_pescx_p2n_bar0_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_p2n_bar0_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:50;
|
||||
uint64_t reserved_0_13:14;
|
||||
#else
|
||||
uint64_t reserved_0_13:14;
|
||||
uint64_t addr:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_p2n_bar0_start_s cn52xx;
|
||||
struct cvmx_pescx_p2n_bar0_start_s cn52xxp1;
|
||||
@ -317,8 +515,13 @@ union cvmx_pescx_p2n_bar0_start {
|
||||
union cvmx_pescx_p2n_bar1_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_p2n_bar1_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:38;
|
||||
uint64_t reserved_0_25:26;
|
||||
#else
|
||||
uint64_t reserved_0_25:26;
|
||||
uint64_t addr:38;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_p2n_bar1_start_s cn52xx;
|
||||
struct cvmx_pescx_p2n_bar1_start_s cn52xxp1;
|
||||
@ -329,8 +532,13 @@ union cvmx_pescx_p2n_bar1_start {
|
||||
union cvmx_pescx_p2n_bar2_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_p2n_bar2_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:25;
|
||||
uint64_t reserved_0_38:39;
|
||||
#else
|
||||
uint64_t reserved_0_38:39;
|
||||
uint64_t addr:25;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_p2n_bar2_start_s cn52xx;
|
||||
struct cvmx_pescx_p2n_bar2_start_s cn52xxp1;
|
||||
@ -341,8 +549,13 @@ union cvmx_pescx_p2n_bar2_start {
|
||||
union cvmx_pescx_p2p_barx_end {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_p2p_barx_end_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:52;
|
||||
uint64_t reserved_0_11:12;
|
||||
#else
|
||||
uint64_t reserved_0_11:12;
|
||||
uint64_t addr:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_p2p_barx_end_s cn52xx;
|
||||
struct cvmx_pescx_p2p_barx_end_s cn52xxp1;
|
||||
@ -353,8 +566,13 @@ union cvmx_pescx_p2p_barx_end {
|
||||
union cvmx_pescx_p2p_barx_start {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_p2p_barx_start_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t addr:52;
|
||||
uint64_t reserved_0_11:12;
|
||||
#else
|
||||
uint64_t reserved_0_11:12;
|
||||
uint64_t addr:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_p2p_barx_start_s cn52xx;
|
||||
struct cvmx_pescx_p2p_barx_start_s cn52xxp1;
|
||||
@ -365,9 +583,14 @@ union cvmx_pescx_p2p_barx_start {
|
||||
union cvmx_pescx_tlp_credits {
|
||||
uint64_t u64;
|
||||
struct cvmx_pescx_tlp_credits_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_0_63:64;
|
||||
#else
|
||||
uint64_t reserved_0_63:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_pescx_tlp_credits_cn52xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_56_63:8;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t pesc_cpl:8;
|
||||
@ -376,8 +599,19 @@ union cvmx_pescx_tlp_credits {
|
||||
uint64_t npei_cpl:8;
|
||||
uint64_t npei_np:8;
|
||||
uint64_t npei_p:8;
|
||||
#else
|
||||
uint64_t npei_p:8;
|
||||
uint64_t npei_np:8;
|
||||
uint64_t npei_cpl:8;
|
||||
uint64_t pesc_p:8;
|
||||
uint64_t pesc_np:8;
|
||||
uint64_t pesc_cpl:8;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t reserved_56_63:8;
|
||||
#endif
|
||||
} cn52xx;
|
||||
struct cvmx_pescx_tlp_credits_cn52xxp1 {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_38_63:26;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t pesc_cpl:5;
|
||||
@ -386,6 +620,16 @@ union cvmx_pescx_tlp_credits {
|
||||
uint64_t npei_cpl:5;
|
||||
uint64_t npei_np:5;
|
||||
uint64_t npei_p:5;
|
||||
#else
|
||||
uint64_t npei_p:5;
|
||||
uint64_t npei_np:5;
|
||||
uint64_t npei_cpl:5;
|
||||
uint64_t pesc_p:5;
|
||||
uint64_t pesc_np:5;
|
||||
uint64_t pesc_cpl:5;
|
||||
uint64_t peai_ppf:8;
|
||||
uint64_t reserved_38_63:26;
|
||||
#endif
|
||||
} cn52xxp1;
|
||||
struct cvmx_pescx_tlp_credits_cn52xx cn56xx;
|
||||
struct cvmx_pescx_tlp_credits_cn52xxp1 cn56xxp1;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2011 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,8 +28,6 @@
|
||||
#ifndef __CVMX_RNM_DEFS_H__
|
||||
#define __CVMX_RNM_DEFS_H__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#define CVMX_RNM_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001180040000008ull))
|
||||
#define CVMX_RNM_CTL_STATUS (CVMX_ADD_IO_SEG(0x0001180040000000ull))
|
||||
#define CVMX_RNM_EER_DBG (CVMX_ADD_IO_SEG(0x0001180040000018ull))
|
||||
@ -39,9 +37,15 @@
|
||||
union cvmx_rnm_bist_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_rnm_bist_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_2_63:62;
|
||||
uint64_t rrc:1;
|
||||
uint64_t mem:1;
|
||||
#else
|
||||
uint64_t mem:1;
|
||||
uint64_t rrc:1;
|
||||
uint64_t reserved_2_63:62;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_rnm_bist_status_s cn30xx;
|
||||
struct cvmx_rnm_bist_status_s cn31xx;
|
||||
@ -54,13 +58,88 @@ union cvmx_rnm_bist_status {
|
||||
struct cvmx_rnm_bist_status_s cn56xxp1;
|
||||
struct cvmx_rnm_bist_status_s cn58xx;
|
||||
struct cvmx_rnm_bist_status_s cn58xxp1;
|
||||
struct cvmx_rnm_bist_status_s cn61xx;
|
||||
struct cvmx_rnm_bist_status_s cn63xx;
|
||||
struct cvmx_rnm_bist_status_s cn63xxp1;
|
||||
struct cvmx_rnm_bist_status_s cn66xx;
|
||||
struct cvmx_rnm_bist_status_s cn68xx;
|
||||
struct cvmx_rnm_bist_status_s cn68xxp1;
|
||||
struct cvmx_rnm_bist_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_rnm_ctl_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_rnm_ctl_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t dis_mak:1;
|
||||
uint64_t eer_lck:1;
|
||||
uint64_t eer_val:1;
|
||||
uint64_t ent_sel:4;
|
||||
uint64_t exp_ent:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t ent_en:1;
|
||||
#else
|
||||
uint64_t ent_en:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t exp_ent:1;
|
||||
uint64_t ent_sel:4;
|
||||
uint64_t eer_val:1;
|
||||
uint64_t eer_lck:1;
|
||||
uint64_t dis_mak:1;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_rnm_ctl_status_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t ent_en:1;
|
||||
#else
|
||||
uint64_t ent_en:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_rnm_ctl_status_cn30xx cn31xx;
|
||||
struct cvmx_rnm_ctl_status_cn30xx cn38xx;
|
||||
struct cvmx_rnm_ctl_status_cn30xx cn38xxp2;
|
||||
struct cvmx_rnm_ctl_status_cn50xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t ent_sel:4;
|
||||
uint64_t exp_ent:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t ent_en:1;
|
||||
#else
|
||||
uint64_t ent_en:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t exp_ent:1;
|
||||
uint64_t ent_sel:4;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} cn50xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn52xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn52xxp1;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn56xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn56xxp1;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn58xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn58xxp1;
|
||||
struct cvmx_rnm_ctl_status_s cn61xx;
|
||||
struct cvmx_rnm_ctl_status_cn63xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_11_63:53;
|
||||
uint64_t eer_lck:1;
|
||||
uint64_t eer_val:1;
|
||||
@ -70,60 +149,76 @@ union cvmx_rnm_ctl_status {
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t ent_en:1;
|
||||
} s;
|
||||
struct cvmx_rnm_ctl_status_cn30xx {
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_en:1;
|
||||
#else
|
||||
uint64_t ent_en:1;
|
||||
} cn30xx;
|
||||
struct cvmx_rnm_ctl_status_cn30xx cn31xx;
|
||||
struct cvmx_rnm_ctl_status_cn30xx cn38xx;
|
||||
struct cvmx_rnm_ctl_status_cn30xx cn38xxp2;
|
||||
struct cvmx_rnm_ctl_status_cn50xx {
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t ent_sel:4;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t exp_ent:1;
|
||||
uint64_t rng_rst:1;
|
||||
uint64_t rnm_rst:1;
|
||||
uint64_t rng_en:1;
|
||||
uint64_t ent_en:1;
|
||||
} cn50xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn52xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn52xxp1;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn56xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn56xxp1;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn58xx;
|
||||
struct cvmx_rnm_ctl_status_cn50xx cn58xxp1;
|
||||
struct cvmx_rnm_ctl_status_s cn63xx;
|
||||
struct cvmx_rnm_ctl_status_s cn63xxp1;
|
||||
uint64_t ent_sel:4;
|
||||
uint64_t eer_val:1;
|
||||
uint64_t eer_lck:1;
|
||||
uint64_t reserved_11_63:53;
|
||||
#endif
|
||||
} cn63xx;
|
||||
struct cvmx_rnm_ctl_status_cn63xx cn63xxp1;
|
||||
struct cvmx_rnm_ctl_status_s cn66xx;
|
||||
struct cvmx_rnm_ctl_status_cn63xx cn68xx;
|
||||
struct cvmx_rnm_ctl_status_cn63xx cn68xxp1;
|
||||
struct cvmx_rnm_ctl_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_rnm_eer_dbg {
|
||||
uint64_t u64;
|
||||
struct cvmx_rnm_eer_dbg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t dat:64;
|
||||
#else
|
||||
uint64_t dat:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_rnm_eer_dbg_s cn61xx;
|
||||
struct cvmx_rnm_eer_dbg_s cn63xx;
|
||||
struct cvmx_rnm_eer_dbg_s cn63xxp1;
|
||||
struct cvmx_rnm_eer_dbg_s cn66xx;
|
||||
struct cvmx_rnm_eer_dbg_s cn68xx;
|
||||
struct cvmx_rnm_eer_dbg_s cn68xxp1;
|
||||
struct cvmx_rnm_eer_dbg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_rnm_eer_key {
|
||||
uint64_t u64;
|
||||
struct cvmx_rnm_eer_key_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t key:64;
|
||||
#else
|
||||
uint64_t key:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_rnm_eer_key_s cn61xx;
|
||||
struct cvmx_rnm_eer_key_s cn63xx;
|
||||
struct cvmx_rnm_eer_key_s cn63xxp1;
|
||||
struct cvmx_rnm_eer_key_s cn66xx;
|
||||
struct cvmx_rnm_eer_key_s cn68xx;
|
||||
struct cvmx_rnm_eer_key_s cn68xxp1;
|
||||
struct cvmx_rnm_eer_key_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_rnm_serial_num {
|
||||
uint64_t u64;
|
||||
struct cvmx_rnm_serial_num_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t dat:64;
|
||||
#else
|
||||
uint64_t dat:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_rnm_serial_num_s cn61xx;
|
||||
struct cvmx_rnm_serial_num_s cn63xx;
|
||||
struct cvmx_rnm_serial_num_s cn66xx;
|
||||
struct cvmx_rnm_serial_num_s cn68xx;
|
||||
struct cvmx_rnm_serial_num_s cn68xxp1;
|
||||
struct cvmx_rnm_serial_num_s cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,15 +28,120 @@
|
||||
#ifndef __CVMX_SMIX_DEFS_H__
|
||||
#define __CVMX_SMIX_DEFS_H__
|
||||
|
||||
#define CVMX_SMIX_CLK(offset) (CVMX_ADD_IO_SEG(0x0001180000001818ull) + ((offset) & 1) * 256)
|
||||
#define CVMX_SMIX_CMD(offset) (CVMX_ADD_IO_SEG(0x0001180000001800ull) + ((offset) & 1) * 256)
|
||||
#define CVMX_SMIX_EN(offset) (CVMX_ADD_IO_SEG(0x0001180000001820ull) + ((offset) & 1) * 256)
|
||||
#define CVMX_SMIX_RD_DAT(offset) (CVMX_ADD_IO_SEG(0x0001180000001810ull) + ((offset) & 1) * 256)
|
||||
#define CVMX_SMIX_WR_DAT(offset) (CVMX_ADD_IO_SEG(0x0001180000001808ull) + ((offset) & 1) * 256)
|
||||
static inline uint64_t CVMX_SMIX_CLK(unsigned long offset)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001818ull) + (offset) * 256;
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001818ull) + (offset) * 256;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000003818ull) + (offset) * 128;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001818ull) + (offset) * 256;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_SMIX_CMD(unsigned long offset)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001800ull) + (offset) * 256;
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001800ull) + (offset) * 256;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000003800ull) + (offset) * 128;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001800ull) + (offset) * 256;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_SMIX_EN(unsigned long offset)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001820ull) + (offset) * 256;
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001820ull) + (offset) * 256;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000003820ull) + (offset) * 128;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001820ull) + (offset) * 256;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_SMIX_RD_DAT(unsigned long offset)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001810ull) + (offset) * 256;
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001810ull) + (offset) * 256;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000003810ull) + (offset) * 128;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001810ull) + (offset) * 256;
|
||||
}
|
||||
|
||||
static inline uint64_t CVMX_SMIX_WR_DAT(unsigned long offset)
|
||||
{
|
||||
switch (cvmx_get_octeon_family()) {
|
||||
case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001808ull) + (offset) * 256;
|
||||
case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
|
||||
case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001808ull) + (offset) * 256;
|
||||
case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
|
||||
return CVMX_ADD_IO_SEG(0x0001180000003808ull) + (offset) * 128;
|
||||
}
|
||||
return CVMX_ADD_IO_SEG(0x0001180000001808ull) + (offset) * 256;
|
||||
}
|
||||
|
||||
union cvmx_smix_clk {
|
||||
uint64_t u64;
|
||||
struct cvmx_smix_clk_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_25_63:39;
|
||||
uint64_t mode:1;
|
||||
uint64_t reserved_21_23:3;
|
||||
@ -47,8 +152,21 @@ union cvmx_smix_clk {
|
||||
uint64_t preamble:1;
|
||||
uint64_t sample:4;
|
||||
uint64_t phase:8;
|
||||
#else
|
||||
uint64_t phase:8;
|
||||
uint64_t sample:4;
|
||||
uint64_t preamble:1;
|
||||
uint64_t clk_idle:1;
|
||||
uint64_t reserved_14_14:1;
|
||||
uint64_t sample_mode:1;
|
||||
uint64_t sample_hi:5;
|
||||
uint64_t reserved_21_23:3;
|
||||
uint64_t mode:1;
|
||||
uint64_t reserved_25_63:39;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_smix_clk_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_21_63:43;
|
||||
uint64_t sample_hi:5;
|
||||
uint64_t sample_mode:1;
|
||||
@ -57,6 +175,16 @@ union cvmx_smix_clk {
|
||||
uint64_t preamble:1;
|
||||
uint64_t sample:4;
|
||||
uint64_t phase:8;
|
||||
#else
|
||||
uint64_t phase:8;
|
||||
uint64_t sample:4;
|
||||
uint64_t preamble:1;
|
||||
uint64_t clk_idle:1;
|
||||
uint64_t reserved_14_14:1;
|
||||
uint64_t sample_mode:1;
|
||||
uint64_t sample_hi:5;
|
||||
uint64_t reserved_21_63:43;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_smix_clk_cn30xx cn31xx;
|
||||
struct cvmx_smix_clk_cn30xx cn38xx;
|
||||
@ -68,27 +196,50 @@ union cvmx_smix_clk {
|
||||
struct cvmx_smix_clk_s cn56xxp1;
|
||||
struct cvmx_smix_clk_cn30xx cn58xx;
|
||||
struct cvmx_smix_clk_cn30xx cn58xxp1;
|
||||
struct cvmx_smix_clk_s cn61xx;
|
||||
struct cvmx_smix_clk_s cn63xx;
|
||||
struct cvmx_smix_clk_s cn63xxp1;
|
||||
struct cvmx_smix_clk_s cn66xx;
|
||||
struct cvmx_smix_clk_s cn68xx;
|
||||
struct cvmx_smix_clk_s cn68xxp1;
|
||||
struct cvmx_smix_clk_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_smix_cmd {
|
||||
uint64_t u64;
|
||||
struct cvmx_smix_cmd_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t phy_op:2;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t phy_adr:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t reg_adr:5;
|
||||
#else
|
||||
uint64_t reg_adr:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t phy_adr:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t phy_op:2;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_smix_cmd_cn30xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t phy_op:1;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t phy_adr:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t reg_adr:5;
|
||||
#else
|
||||
uint64_t reg_adr:5;
|
||||
uint64_t reserved_5_7:3;
|
||||
uint64_t phy_adr:5;
|
||||
uint64_t reserved_13_15:3;
|
||||
uint64_t phy_op:1;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} cn30xx;
|
||||
struct cvmx_smix_cmd_cn30xx cn31xx;
|
||||
struct cvmx_smix_cmd_cn30xx cn38xx;
|
||||
@ -100,15 +251,25 @@ union cvmx_smix_cmd {
|
||||
struct cvmx_smix_cmd_s cn56xxp1;
|
||||
struct cvmx_smix_cmd_cn30xx cn58xx;
|
||||
struct cvmx_smix_cmd_cn30xx cn58xxp1;
|
||||
struct cvmx_smix_cmd_s cn61xx;
|
||||
struct cvmx_smix_cmd_s cn63xx;
|
||||
struct cvmx_smix_cmd_s cn63xxp1;
|
||||
struct cvmx_smix_cmd_s cn66xx;
|
||||
struct cvmx_smix_cmd_s cn68xx;
|
||||
struct cvmx_smix_cmd_s cn68xxp1;
|
||||
struct cvmx_smix_cmd_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_smix_en {
|
||||
uint64_t u64;
|
||||
struct cvmx_smix_en_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t en:1;
|
||||
#else
|
||||
uint64_t en:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_smix_en_s cn30xx;
|
||||
struct cvmx_smix_en_s cn31xx;
|
||||
@ -121,17 +282,29 @@ union cvmx_smix_en {
|
||||
struct cvmx_smix_en_s cn56xxp1;
|
||||
struct cvmx_smix_en_s cn58xx;
|
||||
struct cvmx_smix_en_s cn58xxp1;
|
||||
struct cvmx_smix_en_s cn61xx;
|
||||
struct cvmx_smix_en_s cn63xx;
|
||||
struct cvmx_smix_en_s cn63xxp1;
|
||||
struct cvmx_smix_en_s cn66xx;
|
||||
struct cvmx_smix_en_s cn68xx;
|
||||
struct cvmx_smix_en_s cn68xxp1;
|
||||
struct cvmx_smix_en_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_smix_rd_dat {
|
||||
uint64_t u64;
|
||||
struct cvmx_smix_rd_dat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t pending:1;
|
||||
uint64_t val:1;
|
||||
uint64_t dat:16;
|
||||
#else
|
||||
uint64_t dat:16;
|
||||
uint64_t val:1;
|
||||
uint64_t pending:1;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_smix_rd_dat_s cn30xx;
|
||||
struct cvmx_smix_rd_dat_s cn31xx;
|
||||
@ -144,17 +317,29 @@ union cvmx_smix_rd_dat {
|
||||
struct cvmx_smix_rd_dat_s cn56xxp1;
|
||||
struct cvmx_smix_rd_dat_s cn58xx;
|
||||
struct cvmx_smix_rd_dat_s cn58xxp1;
|
||||
struct cvmx_smix_rd_dat_s cn61xx;
|
||||
struct cvmx_smix_rd_dat_s cn63xx;
|
||||
struct cvmx_smix_rd_dat_s cn63xxp1;
|
||||
struct cvmx_smix_rd_dat_s cn66xx;
|
||||
struct cvmx_smix_rd_dat_s cn68xx;
|
||||
struct cvmx_smix_rd_dat_s cn68xxp1;
|
||||
struct cvmx_smix_rd_dat_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_smix_wr_dat {
|
||||
uint64_t u64;
|
||||
struct cvmx_smix_wr_dat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_18_63:46;
|
||||
uint64_t pending:1;
|
||||
uint64_t val:1;
|
||||
uint64_t dat:16;
|
||||
#else
|
||||
uint64_t dat:16;
|
||||
uint64_t val:1;
|
||||
uint64_t pending:1;
|
||||
uint64_t reserved_18_63:46;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_smix_wr_dat_s cn30xx;
|
||||
struct cvmx_smix_wr_dat_s cn31xx;
|
||||
@ -167,8 +352,13 @@ union cvmx_smix_wr_dat {
|
||||
struct cvmx_smix_wr_dat_s cn56xxp1;
|
||||
struct cvmx_smix_wr_dat_s cn58xx;
|
||||
struct cvmx_smix_wr_dat_s cn58xxp1;
|
||||
struct cvmx_smix_wr_dat_s cn61xx;
|
||||
struct cvmx_smix_wr_dat_s cn63xx;
|
||||
struct cvmx_smix_wr_dat_s cn63xxp1;
|
||||
struct cvmx_smix_wr_dat_s cn66xx;
|
||||
struct cvmx_smix_wr_dat_s cn68xx;
|
||||
struct cvmx_smix_wr_dat_s cn68xxp1;
|
||||
struct cvmx_smix_wr_dat_s cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,44 +28,33 @@
|
||||
#ifndef __CVMX_SPXX_DEFS_H__
|
||||
#define __CVMX_SPXX_DEFS_H__
|
||||
|
||||
#define CVMX_SPXX_BCKPRS_CNT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000340ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_BIST_STAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800900007F8ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_CLK_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000348ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_CLK_STAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000350ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_DBG_DESKEW_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000368ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_DBG_DESKEW_STATE(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000370ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_DRV_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000358ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_ERR_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000320ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_INT_DAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000318ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_INT_MSK(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000308ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_INT_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000300ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_INT_SYNC(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000310ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_TPA_ACC(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000338ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_TPA_MAX(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000330ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_TPA_SEL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000328ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_TRN4_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000360ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SPXX_BCKPRS_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000340ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_BIST_STAT(block_id) (CVMX_ADD_IO_SEG(0x00011800900007F8ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_CLK_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000348ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_CLK_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000350ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_DBG_DESKEW_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000368ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_DBG_DESKEW_STATE(block_id) (CVMX_ADD_IO_SEG(0x0001180090000370ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_DRV_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000358ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_ERR_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000320ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_INT_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000318ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_INT_MSK(block_id) (CVMX_ADD_IO_SEG(0x0001180090000308ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x0001180090000300ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_INT_SYNC(block_id) (CVMX_ADD_IO_SEG(0x0001180090000310ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_TPA_ACC(block_id) (CVMX_ADD_IO_SEG(0x0001180090000338ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_TPA_MAX(block_id) (CVMX_ADD_IO_SEG(0x0001180090000330ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_TPA_SEL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000328ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SPXX_TRN4_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000360ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
|
||||
union cvmx_spxx_bckprs_cnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_bckprs_cnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t cnt:32;
|
||||
#else
|
||||
uint64_t cnt:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_bckprs_cnt_s cn38xx;
|
||||
struct cvmx_spxx_bckprs_cnt_s cn38xxp2;
|
||||
@ -76,10 +65,17 @@ union cvmx_spxx_bckprs_cnt {
|
||||
union cvmx_spxx_bist_stat {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_bist_stat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_3_63:61;
|
||||
uint64_t stat2:1;
|
||||
uint64_t stat1:1;
|
||||
uint64_t stat0:1;
|
||||
#else
|
||||
uint64_t stat0:1;
|
||||
uint64_t stat1:1;
|
||||
uint64_t stat2:1;
|
||||
uint64_t reserved_3_63:61;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_bist_stat_s cn38xx;
|
||||
struct cvmx_spxx_bist_stat_s cn38xxp2;
|
||||
@ -90,6 +86,7 @@ union cvmx_spxx_bist_stat {
|
||||
union cvmx_spxx_clk_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_clk_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t seetrn:1;
|
||||
uint64_t reserved_12_15:4;
|
||||
@ -101,6 +98,19 @@ union cvmx_spxx_clk_ctl {
|
||||
uint64_t drptrn:1;
|
||||
uint64_t rcvtrn:1;
|
||||
uint64_t srxdlck:1;
|
||||
#else
|
||||
uint64_t srxdlck:1;
|
||||
uint64_t rcvtrn:1;
|
||||
uint64_t drptrn:1;
|
||||
uint64_t sndtrn:1;
|
||||
uint64_t statrcv:1;
|
||||
uint64_t statdrv:1;
|
||||
uint64_t runbist:1;
|
||||
uint64_t clkdly:5;
|
||||
uint64_t reserved_12_15:4;
|
||||
uint64_t seetrn:1;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_clk_ctl_s cn38xx;
|
||||
struct cvmx_spxx_clk_ctl_s cn38xxp2;
|
||||
@ -111,6 +121,7 @@ union cvmx_spxx_clk_ctl {
|
||||
union cvmx_spxx_clk_stat {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_clk_stat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_11_63:53;
|
||||
uint64_t stxcal:1;
|
||||
uint64_t reserved_9_9:1;
|
||||
@ -120,6 +131,17 @@ union cvmx_spxx_clk_stat {
|
||||
uint64_t d4clk1:1;
|
||||
uint64_t d4clk0:1;
|
||||
uint64_t reserved_0_3:4;
|
||||
#else
|
||||
uint64_t reserved_0_3:4;
|
||||
uint64_t d4clk0:1;
|
||||
uint64_t d4clk1:1;
|
||||
uint64_t s4clk0:1;
|
||||
uint64_t s4clk1:1;
|
||||
uint64_t srxtrn:1;
|
||||
uint64_t reserved_9_9:1;
|
||||
uint64_t stxcal:1;
|
||||
uint64_t reserved_11_63:53;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_clk_stat_s cn38xx;
|
||||
struct cvmx_spxx_clk_stat_s cn38xxp2;
|
||||
@ -130,6 +152,7 @@ union cvmx_spxx_clk_stat {
|
||||
union cvmx_spxx_dbg_deskew_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_dbg_deskew_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_30_63:34;
|
||||
uint64_t fallnop:1;
|
||||
uint64_t fall8:1;
|
||||
@ -146,6 +169,24 @@ union cvmx_spxx_dbg_deskew_ctl {
|
||||
uint64_t offdly:6;
|
||||
uint64_t dllfrc:1;
|
||||
uint64_t dlldis:1;
|
||||
#else
|
||||
uint64_t dlldis:1;
|
||||
uint64_t dllfrc:1;
|
||||
uint64_t offdly:6;
|
||||
uint64_t bitsel:5;
|
||||
uint64_t offset:5;
|
||||
uint64_t mux:1;
|
||||
uint64_t inc:1;
|
||||
uint64_t dec:1;
|
||||
uint64_t clrdly:1;
|
||||
uint64_t reserved_22_23:2;
|
||||
uint64_t sstep:1;
|
||||
uint64_t sstep_go:1;
|
||||
uint64_t reserved_26_27:2;
|
||||
uint64_t fall8:1;
|
||||
uint64_t fallnop:1;
|
||||
uint64_t reserved_30_63:34;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_dbg_deskew_ctl_s cn38xx;
|
||||
struct cvmx_spxx_dbg_deskew_ctl_s cn38xxp2;
|
||||
@ -156,11 +197,19 @@ union cvmx_spxx_dbg_deskew_ctl {
|
||||
union cvmx_spxx_dbg_deskew_state {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_dbg_deskew_state_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t testres:1;
|
||||
uint64_t unxterm:1;
|
||||
uint64_t muxsel:2;
|
||||
uint64_t offset:5;
|
||||
#else
|
||||
uint64_t offset:5;
|
||||
uint64_t muxsel:2;
|
||||
uint64_t unxterm:1;
|
||||
uint64_t testres:1;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_dbg_deskew_state_s cn38xx;
|
||||
struct cvmx_spxx_dbg_deskew_state_s cn38xxp2;
|
||||
@ -171,21 +220,40 @@ union cvmx_spxx_dbg_deskew_state {
|
||||
union cvmx_spxx_drv_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_drv_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_0_63:64;
|
||||
#else
|
||||
uint64_t reserved_0_63:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_drv_ctl_cn38xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t stx4ncmp:4;
|
||||
uint64_t stx4pcmp:4;
|
||||
uint64_t srx4cmp:8;
|
||||
#else
|
||||
uint64_t srx4cmp:8;
|
||||
uint64_t stx4pcmp:4;
|
||||
uint64_t stx4ncmp:4;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} cn38xx;
|
||||
struct cvmx_spxx_drv_ctl_cn38xx cn38xxp2;
|
||||
struct cvmx_spxx_drv_ctl_cn58xx {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_24_63:40;
|
||||
uint64_t stx4ncmp:4;
|
||||
uint64_t stx4pcmp:4;
|
||||
uint64_t reserved_10_15:6;
|
||||
uint64_t srx4cmp:10;
|
||||
#else
|
||||
uint64_t srx4cmp:10;
|
||||
uint64_t reserved_10_15:6;
|
||||
uint64_t stx4pcmp:4;
|
||||
uint64_t stx4ncmp:4;
|
||||
uint64_t reserved_24_63:40;
|
||||
#endif
|
||||
} cn58xx;
|
||||
struct cvmx_spxx_drv_ctl_cn58xx cn58xxp1;
|
||||
};
|
||||
@ -193,12 +261,21 @@ union cvmx_spxx_drv_ctl {
|
||||
union cvmx_spxx_err_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_err_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t prtnxa:1;
|
||||
uint64_t dipcls:1;
|
||||
uint64_t dippay:1;
|
||||
uint64_t reserved_4_5:2;
|
||||
uint64_t errcnt:4;
|
||||
#else
|
||||
uint64_t errcnt:4;
|
||||
uint64_t reserved_4_5:2;
|
||||
uint64_t dippay:1;
|
||||
uint64_t dipcls:1;
|
||||
uint64_t prtnxa:1;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_err_ctl_s cn38xx;
|
||||
struct cvmx_spxx_err_ctl_s cn38xxp2;
|
||||
@ -209,12 +286,21 @@ union cvmx_spxx_err_ctl {
|
||||
union cvmx_spxx_int_dat {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_int_dat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t mul:1;
|
||||
uint64_t reserved_14_30:17;
|
||||
uint64_t calbnk:2;
|
||||
uint64_t rsvop:4;
|
||||
uint64_t prt:8;
|
||||
#else
|
||||
uint64_t prt:8;
|
||||
uint64_t rsvop:4;
|
||||
uint64_t calbnk:2;
|
||||
uint64_t reserved_14_30:17;
|
||||
uint64_t mul:1;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_int_dat_s cn38xx;
|
||||
struct cvmx_spxx_int_dat_s cn38xxp2;
|
||||
@ -225,6 +311,7 @@ union cvmx_spxx_int_dat {
|
||||
union cvmx_spxx_int_msk {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_int_msk_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t calerr:1;
|
||||
uint64_t syncerr:1;
|
||||
@ -237,6 +324,20 @@ union cvmx_spxx_int_msk {
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t abnorm:1;
|
||||
uint64_t prtnxa:1;
|
||||
#else
|
||||
uint64_t prtnxa:1;
|
||||
uint64_t abnorm:1;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t spiovr:1;
|
||||
uint64_t clserr:1;
|
||||
uint64_t drwnng:1;
|
||||
uint64_t rsverr:1;
|
||||
uint64_t tpaovr:1;
|
||||
uint64_t diperr:1;
|
||||
uint64_t syncerr:1;
|
||||
uint64_t calerr:1;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_int_msk_s cn38xx;
|
||||
struct cvmx_spxx_int_msk_s cn38xxp2;
|
||||
@ -247,6 +348,7 @@ union cvmx_spxx_int_msk {
|
||||
union cvmx_spxx_int_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_int_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t spf:1;
|
||||
uint64_t reserved_12_30:19;
|
||||
@ -261,6 +363,22 @@ union cvmx_spxx_int_reg {
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t abnorm:1;
|
||||
uint64_t prtnxa:1;
|
||||
#else
|
||||
uint64_t prtnxa:1;
|
||||
uint64_t abnorm:1;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t spiovr:1;
|
||||
uint64_t clserr:1;
|
||||
uint64_t drwnng:1;
|
||||
uint64_t rsverr:1;
|
||||
uint64_t tpaovr:1;
|
||||
uint64_t diperr:1;
|
||||
uint64_t syncerr:1;
|
||||
uint64_t calerr:1;
|
||||
uint64_t reserved_12_30:19;
|
||||
uint64_t spf:1;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_int_reg_s cn38xx;
|
||||
struct cvmx_spxx_int_reg_s cn38xxp2;
|
||||
@ -271,6 +389,7 @@ union cvmx_spxx_int_reg {
|
||||
union cvmx_spxx_int_sync {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_int_sync_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_12_63:52;
|
||||
uint64_t calerr:1;
|
||||
uint64_t syncerr:1;
|
||||
@ -283,6 +402,20 @@ union cvmx_spxx_int_sync {
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t abnorm:1;
|
||||
uint64_t prtnxa:1;
|
||||
#else
|
||||
uint64_t prtnxa:1;
|
||||
uint64_t abnorm:1;
|
||||
uint64_t reserved_2_3:2;
|
||||
uint64_t spiovr:1;
|
||||
uint64_t clserr:1;
|
||||
uint64_t drwnng:1;
|
||||
uint64_t rsverr:1;
|
||||
uint64_t tpaovr:1;
|
||||
uint64_t diperr:1;
|
||||
uint64_t syncerr:1;
|
||||
uint64_t calerr:1;
|
||||
uint64_t reserved_12_63:52;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_int_sync_s cn38xx;
|
||||
struct cvmx_spxx_int_sync_s cn38xxp2;
|
||||
@ -293,8 +426,13 @@ union cvmx_spxx_int_sync {
|
||||
union cvmx_spxx_tpa_acc {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_tpa_acc_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t cnt:32;
|
||||
#else
|
||||
uint64_t cnt:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_tpa_acc_s cn38xx;
|
||||
struct cvmx_spxx_tpa_acc_s cn38xxp2;
|
||||
@ -305,8 +443,13 @@ union cvmx_spxx_tpa_acc {
|
||||
union cvmx_spxx_tpa_max {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_tpa_max_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t max:32;
|
||||
#else
|
||||
uint64_t max:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_tpa_max_s cn38xx;
|
||||
struct cvmx_spxx_tpa_max_s cn38xxp2;
|
||||
@ -317,8 +460,13 @@ union cvmx_spxx_tpa_max {
|
||||
union cvmx_spxx_tpa_sel {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_tpa_sel_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t prtsel:4;
|
||||
#else
|
||||
uint64_t prtsel:4;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_tpa_sel_s cn38xx;
|
||||
struct cvmx_spxx_tpa_sel_s cn38xxp2;
|
||||
@ -329,6 +477,7 @@ union cvmx_spxx_tpa_sel {
|
||||
union cvmx_spxx_trn4_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_spxx_trn4_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_13_63:51;
|
||||
uint64_t trntest:1;
|
||||
uint64_t jitter:3;
|
||||
@ -337,6 +486,16 @@ union cvmx_spxx_trn4_ctl {
|
||||
uint64_t maxdist:5;
|
||||
uint64_t macro_en:1;
|
||||
uint64_t mux_en:1;
|
||||
#else
|
||||
uint64_t mux_en:1;
|
||||
uint64_t macro_en:1;
|
||||
uint64_t maxdist:5;
|
||||
uint64_t set_boot:1;
|
||||
uint64_t clr_boot:1;
|
||||
uint64_t jitter:3;
|
||||
uint64_t trntest:1;
|
||||
uint64_t reserved_13_63:51;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_spxx_trn4_ctl_s cn38xx;
|
||||
struct cvmx_spxx_trn4_ctl_s cn38xxp2;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,27 +28,29 @@
|
||||
#ifndef __CVMX_SRXX_DEFS_H__
|
||||
#define __CVMX_SRXX_DEFS_H__
|
||||
|
||||
#define CVMX_SRXX_COM_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000200ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SRXX_IGN_RX_FULL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000218ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SRXX_SPI4_CALX(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000000ull + (((offset) & 31) * 8) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SRXX_SPI4_STAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000208ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SRXX_SW_TICK_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000220ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SRXX_SW_TICK_DAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000228ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_SRXX_COM_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000200ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SRXX_IGN_RX_FULL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000218ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SRXX_SPI4_CALX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180090000000ull) + (((offset) & 31) + ((block_id) & 1) * 0x1000000ull) * 8)
|
||||
#define CVMX_SRXX_SPI4_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000208ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SRXX_SW_TICK_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000220ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_SRXX_SW_TICK_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000228ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
|
||||
union cvmx_srxx_com_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_srxx_com_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t prts:4;
|
||||
uint64_t st_en:1;
|
||||
uint64_t reserved_1_2:2;
|
||||
uint64_t inf_en:1;
|
||||
#else
|
||||
uint64_t inf_en:1;
|
||||
uint64_t reserved_1_2:2;
|
||||
uint64_t st_en:1;
|
||||
uint64_t prts:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_srxx_com_ctl_s cn38xx;
|
||||
struct cvmx_srxx_com_ctl_s cn38xxp2;
|
||||
@ -59,8 +61,13 @@ union cvmx_srxx_com_ctl {
|
||||
union cvmx_srxx_ign_rx_full {
|
||||
uint64_t u64;
|
||||
struct cvmx_srxx_ign_rx_full_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t ignore:16;
|
||||
#else
|
||||
uint64_t ignore:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_srxx_ign_rx_full_s cn38xx;
|
||||
struct cvmx_srxx_ign_rx_full_s cn38xxp2;
|
||||
@ -71,12 +78,21 @@ union cvmx_srxx_ign_rx_full {
|
||||
union cvmx_srxx_spi4_calx {
|
||||
uint64_t u64;
|
||||
struct cvmx_srxx_spi4_calx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t oddpar:1;
|
||||
uint64_t prt3:4;
|
||||
uint64_t prt2:4;
|
||||
uint64_t prt1:4;
|
||||
uint64_t prt0:4;
|
||||
#else
|
||||
uint64_t prt0:4;
|
||||
uint64_t prt1:4;
|
||||
uint64_t prt2:4;
|
||||
uint64_t prt3:4;
|
||||
uint64_t oddpar:1;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_srxx_spi4_calx_s cn38xx;
|
||||
struct cvmx_srxx_spi4_calx_s cn38xxp2;
|
||||
@ -87,10 +103,17 @@ union cvmx_srxx_spi4_calx {
|
||||
union cvmx_srxx_spi4_stat {
|
||||
uint64_t u64;
|
||||
struct cvmx_srxx_spi4_stat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t m:8;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t len:7;
|
||||
#else
|
||||
uint64_t len:7;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t m:8;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_srxx_spi4_stat_s cn38xx;
|
||||
struct cvmx_srxx_spi4_stat_s cn38xxp2;
|
||||
@ -101,12 +124,21 @@ union cvmx_srxx_spi4_stat {
|
||||
union cvmx_srxx_sw_tick_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_srxx_sw_tick_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_14_63:50;
|
||||
uint64_t eop:1;
|
||||
uint64_t sop:1;
|
||||
uint64_t mod:4;
|
||||
uint64_t opc:4;
|
||||
uint64_t adr:4;
|
||||
#else
|
||||
uint64_t adr:4;
|
||||
uint64_t opc:4;
|
||||
uint64_t mod:4;
|
||||
uint64_t sop:1;
|
||||
uint64_t eop:1;
|
||||
uint64_t reserved_14_63:50;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_srxx_sw_tick_ctl_s cn38xx;
|
||||
struct cvmx_srxx_sw_tick_ctl_s cn58xx;
|
||||
@ -116,7 +148,11 @@ union cvmx_srxx_sw_tick_ctl {
|
||||
union cvmx_srxx_sw_tick_dat {
|
||||
uint64_t u64;
|
||||
struct cvmx_srxx_sw_tick_dat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t dat:64;
|
||||
#else
|
||||
uint64_t dat:64;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_srxx_sw_tick_dat_s cn38xx;
|
||||
struct cvmx_srxx_sw_tick_dat_s cn58xx;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2008 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -28,47 +28,39 @@
|
||||
#ifndef __CVMX_STXX_DEFS_H__
|
||||
#define __CVMX_STXX_DEFS_H__
|
||||
|
||||
#define CVMX_STXX_ARB_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000608ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_BCKPRS_CNT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000688ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_COM_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000600ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_DIP_CNT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000690ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_IGN_CAL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000610ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_INT_MSK(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800900006A0ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_INT_REG(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000698ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_INT_SYNC(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x00011800900006A8ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_MIN_BST(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000618ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_SPI4_CALX(offset, block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000400ull + (((offset) & 31) * 8) + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_SPI4_DAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000628ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_SPI4_STAT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000630ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_STAT_BYTES_HI(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000648ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_STAT_BYTES_LO(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000680ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_STAT_CTL(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000638ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_STAT_PKT_XMT(block_id) \
|
||||
CVMX_ADD_IO_SEG(0x0001180090000640ull + (((block_id) & 1) * 0x8000000ull))
|
||||
#define CVMX_STXX_ARB_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000608ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_BCKPRS_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000688ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_COM_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000600ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_DIP_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000690ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_IGN_CAL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000610ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_INT_MSK(block_id) (CVMX_ADD_IO_SEG(0x00011800900006A0ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x0001180090000698ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_INT_SYNC(block_id) (CVMX_ADD_IO_SEG(0x00011800900006A8ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_MIN_BST(block_id) (CVMX_ADD_IO_SEG(0x0001180090000618ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_SPI4_CALX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180090000400ull) + (((offset) & 31) + ((block_id) & 1) * 0x1000000ull) * 8)
|
||||
#define CVMX_STXX_SPI4_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000628ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_SPI4_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000630ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_STAT_BYTES_HI(block_id) (CVMX_ADD_IO_SEG(0x0001180090000648ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_STAT_BYTES_LO(block_id) (CVMX_ADD_IO_SEG(0x0001180090000680ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_STAT_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000638ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
#define CVMX_STXX_STAT_PKT_XMT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000640ull) + ((block_id) & 1) * 0x8000000ull)
|
||||
|
||||
union cvmx_stxx_arb_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_arb_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t mintrn:1;
|
||||
uint64_t reserved_4_4:1;
|
||||
uint64_t igntpa:1;
|
||||
uint64_t reserved_0_2:3;
|
||||
#else
|
||||
uint64_t reserved_0_2:3;
|
||||
uint64_t igntpa:1;
|
||||
uint64_t reserved_4_4:1;
|
||||
uint64_t mintrn:1;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_arb_ctl_s cn38xx;
|
||||
struct cvmx_stxx_arb_ctl_s cn38xxp2;
|
||||
@ -79,8 +71,13 @@ union cvmx_stxx_arb_ctl {
|
||||
union cvmx_stxx_bckprs_cnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_bckprs_cnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t cnt:32;
|
||||
#else
|
||||
uint64_t cnt:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_bckprs_cnt_s cn38xx;
|
||||
struct cvmx_stxx_bckprs_cnt_s cn38xxp2;
|
||||
@ -91,10 +88,17 @@ union cvmx_stxx_bckprs_cnt {
|
||||
union cvmx_stxx_com_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_com_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_4_63:60;
|
||||
uint64_t st_en:1;
|
||||
uint64_t reserved_1_2:2;
|
||||
uint64_t inf_en:1;
|
||||
#else
|
||||
uint64_t inf_en:1;
|
||||
uint64_t reserved_1_2:2;
|
||||
uint64_t st_en:1;
|
||||
uint64_t reserved_4_63:60;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_com_ctl_s cn38xx;
|
||||
struct cvmx_stxx_com_ctl_s cn38xxp2;
|
||||
@ -105,9 +109,15 @@ union cvmx_stxx_com_ctl {
|
||||
union cvmx_stxx_dip_cnt {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_dip_cnt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t frmmax:4;
|
||||
uint64_t dipmax:4;
|
||||
#else
|
||||
uint64_t dipmax:4;
|
||||
uint64_t frmmax:4;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_dip_cnt_s cn38xx;
|
||||
struct cvmx_stxx_dip_cnt_s cn38xxp2;
|
||||
@ -118,8 +128,13 @@ union cvmx_stxx_dip_cnt {
|
||||
union cvmx_stxx_ign_cal {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_ign_cal_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t igntpa:16;
|
||||
#else
|
||||
uint64_t igntpa:16;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_ign_cal_s cn38xx;
|
||||
struct cvmx_stxx_ign_cal_s cn38xxp2;
|
||||
@ -130,6 +145,7 @@ union cvmx_stxx_ign_cal {
|
||||
union cvmx_stxx_int_msk {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_int_msk_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t frmerr:1;
|
||||
uint64_t unxfrm:1;
|
||||
@ -139,6 +155,17 @@ union cvmx_stxx_int_msk {
|
||||
uint64_t ovrbst:1;
|
||||
uint64_t calpar1:1;
|
||||
uint64_t calpar0:1;
|
||||
#else
|
||||
uint64_t calpar0:1;
|
||||
uint64_t calpar1:1;
|
||||
uint64_t ovrbst:1;
|
||||
uint64_t datovr:1;
|
||||
uint64_t diperr:1;
|
||||
uint64_t nosync:1;
|
||||
uint64_t unxfrm:1;
|
||||
uint64_t frmerr:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_int_msk_s cn38xx;
|
||||
struct cvmx_stxx_int_msk_s cn38xxp2;
|
||||
@ -149,6 +176,7 @@ union cvmx_stxx_int_msk {
|
||||
union cvmx_stxx_int_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_int_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t syncerr:1;
|
||||
uint64_t frmerr:1;
|
||||
@ -159,6 +187,18 @@ union cvmx_stxx_int_reg {
|
||||
uint64_t ovrbst:1;
|
||||
uint64_t calpar1:1;
|
||||
uint64_t calpar0:1;
|
||||
#else
|
||||
uint64_t calpar0:1;
|
||||
uint64_t calpar1:1;
|
||||
uint64_t ovrbst:1;
|
||||
uint64_t datovr:1;
|
||||
uint64_t diperr:1;
|
||||
uint64_t nosync:1;
|
||||
uint64_t unxfrm:1;
|
||||
uint64_t frmerr:1;
|
||||
uint64_t syncerr:1;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_int_reg_s cn38xx;
|
||||
struct cvmx_stxx_int_reg_s cn38xxp2;
|
||||
@ -169,6 +209,7 @@ union cvmx_stxx_int_reg {
|
||||
union cvmx_stxx_int_sync {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_int_sync_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t frmerr:1;
|
||||
uint64_t unxfrm:1;
|
||||
@ -178,6 +219,17 @@ union cvmx_stxx_int_sync {
|
||||
uint64_t ovrbst:1;
|
||||
uint64_t calpar1:1;
|
||||
uint64_t calpar0:1;
|
||||
#else
|
||||
uint64_t calpar0:1;
|
||||
uint64_t calpar1:1;
|
||||
uint64_t ovrbst:1;
|
||||
uint64_t datovr:1;
|
||||
uint64_t diperr:1;
|
||||
uint64_t nosync:1;
|
||||
uint64_t unxfrm:1;
|
||||
uint64_t frmerr:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_int_sync_s cn38xx;
|
||||
struct cvmx_stxx_int_sync_s cn38xxp2;
|
||||
@ -188,8 +240,13 @@ union cvmx_stxx_int_sync {
|
||||
union cvmx_stxx_min_bst {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_min_bst_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_9_63:55;
|
||||
uint64_t minb:9;
|
||||
#else
|
||||
uint64_t minb:9;
|
||||
uint64_t reserved_9_63:55;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_min_bst_s cn38xx;
|
||||
struct cvmx_stxx_min_bst_s cn38xxp2;
|
||||
@ -200,12 +257,21 @@ union cvmx_stxx_min_bst {
|
||||
union cvmx_stxx_spi4_calx {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_spi4_calx_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_17_63:47;
|
||||
uint64_t oddpar:1;
|
||||
uint64_t prt3:4;
|
||||
uint64_t prt2:4;
|
||||
uint64_t prt1:4;
|
||||
uint64_t prt0:4;
|
||||
#else
|
||||
uint64_t prt0:4;
|
||||
uint64_t prt1:4;
|
||||
uint64_t prt2:4;
|
||||
uint64_t prt3:4;
|
||||
uint64_t oddpar:1;
|
||||
uint64_t reserved_17_63:47;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_spi4_calx_s cn38xx;
|
||||
struct cvmx_stxx_spi4_calx_s cn38xxp2;
|
||||
@ -216,9 +282,15 @@ union cvmx_stxx_spi4_calx {
|
||||
union cvmx_stxx_spi4_dat {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_spi4_dat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t alpha:16;
|
||||
uint64_t max_t:16;
|
||||
#else
|
||||
uint64_t max_t:16;
|
||||
uint64_t alpha:16;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_spi4_dat_s cn38xx;
|
||||
struct cvmx_stxx_spi4_dat_s cn38xxp2;
|
||||
@ -229,10 +301,17 @@ union cvmx_stxx_spi4_dat {
|
||||
union cvmx_stxx_spi4_stat {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_spi4_stat_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_16_63:48;
|
||||
uint64_t m:8;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t len:7;
|
||||
#else
|
||||
uint64_t len:7;
|
||||
uint64_t reserved_7_7:1;
|
||||
uint64_t m:8;
|
||||
uint64_t reserved_16_63:48;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_spi4_stat_s cn38xx;
|
||||
struct cvmx_stxx_spi4_stat_s cn38xxp2;
|
||||
@ -243,8 +322,13 @@ union cvmx_stxx_spi4_stat {
|
||||
union cvmx_stxx_stat_bytes_hi {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_stat_bytes_hi_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t cnt:32;
|
||||
#else
|
||||
uint64_t cnt:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_stat_bytes_hi_s cn38xx;
|
||||
struct cvmx_stxx_stat_bytes_hi_s cn38xxp2;
|
||||
@ -255,8 +339,13 @@ union cvmx_stxx_stat_bytes_hi {
|
||||
union cvmx_stxx_stat_bytes_lo {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_stat_bytes_lo_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t cnt:32;
|
||||
#else
|
||||
uint64_t cnt:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_stat_bytes_lo_s cn38xx;
|
||||
struct cvmx_stxx_stat_bytes_lo_s cn38xxp2;
|
||||
@ -267,9 +356,15 @@ union cvmx_stxx_stat_bytes_lo {
|
||||
union cvmx_stxx_stat_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_stat_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t clr:1;
|
||||
uint64_t bckprs:4;
|
||||
#else
|
||||
uint64_t bckprs:4;
|
||||
uint64_t clr:1;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_stat_ctl_s cn38xx;
|
||||
struct cvmx_stxx_stat_ctl_s cn38xxp2;
|
||||
@ -280,8 +375,13 @@ union cvmx_stxx_stat_ctl {
|
||||
union cvmx_stxx_stat_pkt_xmt {
|
||||
uint64_t u64;
|
||||
struct cvmx_stxx_stat_pkt_xmt_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t cnt:32;
|
||||
#else
|
||||
uint64_t cnt:32;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_stxx_stat_pkt_xmt_s cn38xx;
|
||||
struct cvmx_stxx_stat_pkt_xmt_s cn38xxp2;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Contact: support@caviumnetworks.com
|
||||
* This file is part of the OCTEON SDK
|
||||
*
|
||||
* Copyright (c) 2003-2010 Cavium Networks
|
||||
* Copyright (c) 2003-2012 Cavium Networks
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License, Version 2, as
|
||||
@ -25,8 +25,8 @@
|
||||
* Contact Cavium Networks for more information
|
||||
***********************license end**************************************/
|
||||
|
||||
#ifndef __CVMX_UCTLX_TYPEDEFS_H__
|
||||
#define __CVMX_UCTLX_TYPEDEFS_H__
|
||||
#ifndef __CVMX_UCTLX_DEFS_H__
|
||||
#define __CVMX_UCTLX_DEFS_H__
|
||||
|
||||
#define CVMX_UCTLX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x000118006F0000A0ull))
|
||||
#define CVMX_UCTLX_CLK_RST_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000000ull))
|
||||
@ -45,6 +45,7 @@
|
||||
union cvmx_uctlx_bist_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_bist_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t data_bis:1;
|
||||
uint64_t desc_bis:1;
|
||||
@ -52,14 +53,29 @@ union cvmx_uctlx_bist_status {
|
||||
uint64_t orbm_bis:1;
|
||||
uint64_t wrbm_bis:1;
|
||||
uint64_t ppaf_bis:1;
|
||||
#else
|
||||
uint64_t ppaf_bis:1;
|
||||
uint64_t wrbm_bis:1;
|
||||
uint64_t orbm_bis:1;
|
||||
uint64_t erbm_bis:1;
|
||||
uint64_t desc_bis:1;
|
||||
uint64_t data_bis:1;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_bist_status_s cn63xx;
|
||||
struct cvmx_uctlx_bist_status_s cn63xxp1;
|
||||
struct cvmx_uctlx_bist_status_s cn61xx;
|
||||
struct cvmx_uctlx_bist_status_s cn63xx;
|
||||
struct cvmx_uctlx_bist_status_s cn63xxp1;
|
||||
struct cvmx_uctlx_bist_status_s cn66xx;
|
||||
struct cvmx_uctlx_bist_status_s cn68xx;
|
||||
struct cvmx_uctlx_bist_status_s cn68xxp1;
|
||||
struct cvmx_uctlx_bist_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_clk_rst_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_25_63:39;
|
||||
uint64_t clear_bist:1;
|
||||
uint64_t start_bist:1;
|
||||
@ -81,14 +97,43 @@ union cvmx_uctlx_clk_rst_ctl {
|
||||
uint64_t p_por:1;
|
||||
uint64_t p_prst:1;
|
||||
uint64_t hrst:1;
|
||||
#else
|
||||
uint64_t hrst:1;
|
||||
uint64_t p_prst:1;
|
||||
uint64_t p_por:1;
|
||||
uint64_t p_com_on:1;
|
||||
uint64_t reserved_4_4:1;
|
||||
uint64_t p_refclk_div:2;
|
||||
uint64_t p_refclk_sel:2;
|
||||
uint64_t h_div:4;
|
||||
uint64_t o_clkdiv_en:1;
|
||||
uint64_t h_clkdiv_en:1;
|
||||
uint64_t h_clkdiv_rst:1;
|
||||
uint64_t h_clkdiv_byp:1;
|
||||
uint64_t o_clkdiv_rst:1;
|
||||
uint64_t app_start_clk:1;
|
||||
uint64_t ohci_susp_lgcy:1;
|
||||
uint64_t ohci_sm:1;
|
||||
uint64_t ohci_clkcktrst:1;
|
||||
uint64_t ehci_sm:1;
|
||||
uint64_t start_bist:1;
|
||||
uint64_t clear_bist:1;
|
||||
uint64_t reserved_25_63:39;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn61xx;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn66xx;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn68xx;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cn68xxp1;
|
||||
struct cvmx_uctlx_clk_rst_ctl_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_ehci_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_ehci_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_20_63:44;
|
||||
uint64_t desc_rbm:1;
|
||||
uint64_t reg_nb:1;
|
||||
@ -101,45 +146,96 @@ union cvmx_uctlx_ehci_ctl {
|
||||
uint64_t inv_reg_a2:1;
|
||||
uint64_t ehci_64b_addr_en:1;
|
||||
uint64_t l2c_addr_msb:8;
|
||||
#else
|
||||
uint64_t l2c_addr_msb:8;
|
||||
uint64_t ehci_64b_addr_en:1;
|
||||
uint64_t inv_reg_a2:1;
|
||||
uint64_t l2c_desc_emod:2;
|
||||
uint64_t l2c_buff_emod:2;
|
||||
uint64_t l2c_stt:1;
|
||||
uint64_t l2c_0pag:1;
|
||||
uint64_t l2c_bc:1;
|
||||
uint64_t l2c_dc:1;
|
||||
uint64_t reg_nb:1;
|
||||
uint64_t desc_rbm:1;
|
||||
uint64_t reserved_20_63:44;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn61xx;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn66xx;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn68xx;
|
||||
struct cvmx_uctlx_ehci_ctl_s cn68xxp1;
|
||||
struct cvmx_uctlx_ehci_ctl_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_ehci_fla {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_ehci_fla_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_6_63:58;
|
||||
uint64_t fla:6;
|
||||
#else
|
||||
uint64_t fla:6;
|
||||
uint64_t reserved_6_63:58;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_ehci_fla_s cn63xx;
|
||||
struct cvmx_uctlx_ehci_fla_s cn63xxp1;
|
||||
struct cvmx_uctlx_ehci_fla_s cn61xx;
|
||||
struct cvmx_uctlx_ehci_fla_s cn63xx;
|
||||
struct cvmx_uctlx_ehci_fla_s cn63xxp1;
|
||||
struct cvmx_uctlx_ehci_fla_s cn66xx;
|
||||
struct cvmx_uctlx_ehci_fla_s cn68xx;
|
||||
struct cvmx_uctlx_ehci_fla_s cn68xxp1;
|
||||
struct cvmx_uctlx_ehci_fla_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_erto_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_erto_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t to_val:27;
|
||||
uint64_t reserved_0_4:5;
|
||||
#else
|
||||
uint64_t reserved_0_4:5;
|
||||
uint64_t to_val:27;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_erto_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_erto_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_erto_ctl_s cn61xx;
|
||||
struct cvmx_uctlx_erto_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_erto_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_erto_ctl_s cn66xx;
|
||||
struct cvmx_uctlx_erto_ctl_s cn68xx;
|
||||
struct cvmx_uctlx_erto_ctl_s cn68xxp1;
|
||||
struct cvmx_uctlx_erto_ctl_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_if_ena {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_if_ena_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_1_63:63;
|
||||
uint64_t en:1;
|
||||
#else
|
||||
uint64_t en:1;
|
||||
uint64_t reserved_1_63:63;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_if_ena_s cn63xx;
|
||||
struct cvmx_uctlx_if_ena_s cn63xxp1;
|
||||
struct cvmx_uctlx_if_ena_s cn61xx;
|
||||
struct cvmx_uctlx_if_ena_s cn63xx;
|
||||
struct cvmx_uctlx_if_ena_s cn63xxp1;
|
||||
struct cvmx_uctlx_if_ena_s cn66xx;
|
||||
struct cvmx_uctlx_if_ena_s cn68xx;
|
||||
struct cvmx_uctlx_if_ena_s cn68xxp1;
|
||||
struct cvmx_uctlx_if_ena_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_int_ena {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_int_ena_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t ec_ovf_e:1;
|
||||
uint64_t oc_ovf_e:1;
|
||||
@ -149,14 +245,31 @@ union cvmx_uctlx_int_ena {
|
||||
uint64_t or_psh_f:1;
|
||||
uint64_t er_psh_f:1;
|
||||
uint64_t pp_psh_f:1;
|
||||
#else
|
||||
uint64_t pp_psh_f:1;
|
||||
uint64_t er_psh_f:1;
|
||||
uint64_t or_psh_f:1;
|
||||
uint64_t cf_psh_f:1;
|
||||
uint64_t wb_psh_f:1;
|
||||
uint64_t wb_pop_e:1;
|
||||
uint64_t oc_ovf_e:1;
|
||||
uint64_t ec_ovf_e:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_int_ena_s cn63xx;
|
||||
struct cvmx_uctlx_int_ena_s cn63xxp1;
|
||||
struct cvmx_uctlx_int_ena_s cn61xx;
|
||||
struct cvmx_uctlx_int_ena_s cn63xx;
|
||||
struct cvmx_uctlx_int_ena_s cn63xxp1;
|
||||
struct cvmx_uctlx_int_ena_s cn66xx;
|
||||
struct cvmx_uctlx_int_ena_s cn68xx;
|
||||
struct cvmx_uctlx_int_ena_s cn68xxp1;
|
||||
struct cvmx_uctlx_int_ena_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_int_reg {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_int_reg_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_8_63:56;
|
||||
uint64_t ec_ovf_e:1;
|
||||
uint64_t oc_ovf_e:1;
|
||||
@ -166,14 +279,31 @@ union cvmx_uctlx_int_reg {
|
||||
uint64_t or_psh_f:1;
|
||||
uint64_t er_psh_f:1;
|
||||
uint64_t pp_psh_f:1;
|
||||
#else
|
||||
uint64_t pp_psh_f:1;
|
||||
uint64_t er_psh_f:1;
|
||||
uint64_t or_psh_f:1;
|
||||
uint64_t cf_psh_f:1;
|
||||
uint64_t wb_psh_f:1;
|
||||
uint64_t wb_pop_e:1;
|
||||
uint64_t oc_ovf_e:1;
|
||||
uint64_t ec_ovf_e:1;
|
||||
uint64_t reserved_8_63:56;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_int_reg_s cn63xx;
|
||||
struct cvmx_uctlx_int_reg_s cn63xxp1;
|
||||
struct cvmx_uctlx_int_reg_s cn61xx;
|
||||
struct cvmx_uctlx_int_reg_s cn63xx;
|
||||
struct cvmx_uctlx_int_reg_s cn63xxp1;
|
||||
struct cvmx_uctlx_int_reg_s cn66xx;
|
||||
struct cvmx_uctlx_int_reg_s cn68xx;
|
||||
struct cvmx_uctlx_int_reg_s cn68xxp1;
|
||||
struct cvmx_uctlx_int_reg_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_ohci_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_ohci_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_19_63:45;
|
||||
uint64_t reg_nb:1;
|
||||
uint64_t l2c_dc:1;
|
||||
@ -185,35 +315,73 @@ union cvmx_uctlx_ohci_ctl {
|
||||
uint64_t inv_reg_a2:1;
|
||||
uint64_t reserved_8_8:1;
|
||||
uint64_t l2c_addr_msb:8;
|
||||
#else
|
||||
uint64_t l2c_addr_msb:8;
|
||||
uint64_t reserved_8_8:1;
|
||||
uint64_t inv_reg_a2:1;
|
||||
uint64_t l2c_desc_emod:2;
|
||||
uint64_t l2c_buff_emod:2;
|
||||
uint64_t l2c_stt:1;
|
||||
uint64_t l2c_0pag:1;
|
||||
uint64_t l2c_bc:1;
|
||||
uint64_t l2c_dc:1;
|
||||
uint64_t reg_nb:1;
|
||||
uint64_t reserved_19_63:45;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn61xx;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn66xx;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn68xx;
|
||||
struct cvmx_uctlx_ohci_ctl_s cn68xxp1;
|
||||
struct cvmx_uctlx_ohci_ctl_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_orto_ctl {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_orto_ctl_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_32_63:32;
|
||||
uint64_t to_val:24;
|
||||
uint64_t reserved_0_7:8;
|
||||
#else
|
||||
uint64_t reserved_0_7:8;
|
||||
uint64_t to_val:24;
|
||||
uint64_t reserved_32_63:32;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_orto_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_orto_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_orto_ctl_s cn61xx;
|
||||
struct cvmx_uctlx_orto_ctl_s cn63xx;
|
||||
struct cvmx_uctlx_orto_ctl_s cn63xxp1;
|
||||
struct cvmx_uctlx_orto_ctl_s cn66xx;
|
||||
struct cvmx_uctlx_orto_ctl_s cn68xx;
|
||||
struct cvmx_uctlx_orto_ctl_s cn68xxp1;
|
||||
struct cvmx_uctlx_orto_ctl_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_ppaf_wm {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_ppaf_wm_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_5_63:59;
|
||||
uint64_t wm:5;
|
||||
#else
|
||||
uint64_t wm:5;
|
||||
uint64_t reserved_5_63:59;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_ppaf_wm_s cn63xx;
|
||||
struct cvmx_uctlx_ppaf_wm_s cn63xxp1;
|
||||
struct cvmx_uctlx_ppaf_wm_s cn61xx;
|
||||
struct cvmx_uctlx_ppaf_wm_s cn63xx;
|
||||
struct cvmx_uctlx_ppaf_wm_s cn63xxp1;
|
||||
struct cvmx_uctlx_ppaf_wm_s cn66xx;
|
||||
struct cvmx_uctlx_ppaf_wm_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_uphy_ctl_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_10_63:54;
|
||||
uint64_t bist_done:1;
|
||||
uint64_t bist_err:1;
|
||||
@ -225,14 +393,33 @@ union cvmx_uctlx_uphy_ctl_status {
|
||||
uint64_t uphy_bist:1;
|
||||
uint64_t bist_en:1;
|
||||
uint64_t ate_reset:1;
|
||||
#else
|
||||
uint64_t ate_reset:1;
|
||||
uint64_t bist_en:1;
|
||||
uint64_t uphy_bist:1;
|
||||
uint64_t vtest_en:1;
|
||||
uint64_t siddq:1;
|
||||
uint64_t lsbist:1;
|
||||
uint64_t fsbist:1;
|
||||
uint64_t hsbist:1;
|
||||
uint64_t bist_err:1;
|
||||
uint64_t bist_done:1;
|
||||
uint64_t reserved_10_63:54;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn63xx;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn63xxp1;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn61xx;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn63xx;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn63xxp1;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn66xx;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn68xx;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cn68xxp1;
|
||||
struct cvmx_uctlx_uphy_ctl_status_s cnf71xx;
|
||||
};
|
||||
|
||||
union cvmx_uctlx_uphy_portx_ctl_status {
|
||||
uint64_t u64;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
uint64_t reserved_43_63:21;
|
||||
uint64_t tdata_out:4;
|
||||
uint64_t txbiststuffenh:1;
|
||||
@ -253,9 +440,36 @@ union cvmx_uctlx_uphy_portx_ctl_status {
|
||||
uint64_t tdata_sel:1;
|
||||
uint64_t taddr_in:4;
|
||||
uint64_t tdata_in:8;
|
||||
#else
|
||||
uint64_t tdata_in:8;
|
||||
uint64_t taddr_in:4;
|
||||
uint64_t tdata_sel:1;
|
||||
uint64_t tclk:1;
|
||||
uint64_t loop_en:1;
|
||||
uint64_t compdistune:3;
|
||||
uint64_t sqrxtune:3;
|
||||
uint64_t txfslstune:4;
|
||||
uint64_t txpreemphasistune:1;
|
||||
uint64_t txrisetune:1;
|
||||
uint64_t txvreftune:4;
|
||||
uint64_t txhsvxtune:2;
|
||||
uint64_t portreset:1;
|
||||
uint64_t vbusvldext:1;
|
||||
uint64_t dppulldown:1;
|
||||
uint64_t dmpulldown:1;
|
||||
uint64_t txbiststuffen:1;
|
||||
uint64_t txbiststuffenh:1;
|
||||
uint64_t tdata_out:4;
|
||||
uint64_t reserved_43_63:21;
|
||||
#endif
|
||||
} s;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cn61xx;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cn63xx;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cn63xxp1;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cn66xx;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cn68xx;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cn68xxp1;
|
||||
struct cvmx_uctlx_uphy_portx_ctl_status_s cnf71xx;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -61,6 +61,16 @@
|
||||
#define OM_MATCH_5XXX_FAMILY_MODELS 0x20000000
|
||||
/* Match all cn6XXX Octeon models. */
|
||||
#define OM_MATCH_6XXX_FAMILY_MODELS 0x40000000
|
||||
/* Match all cnf7XXX Octeon models. */
|
||||
#define OM_MATCH_F7XXX_FAMILY_MODELS 0x80000000
|
||||
|
||||
/*
|
||||
* CNF7XXX models with new revision encoding
|
||||
*/
|
||||
#define OCTEON_CNF71XX_PASS1_0 0x000d9400
|
||||
|
||||
#define OCTEON_CNF71XX (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_REVISION)
|
||||
#define OCTEON_CNF71XX_PASS1_X (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
|
||||
|
||||
/*
|
||||
* CN6XXX models with new revision encoding
|
||||
@ -313,6 +323,14 @@ static inline int __octeon_is_model_runtime__(uint32_t model)
|
||||
const char *octeon_model_get_string(uint32_t chip_id);
|
||||
const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer);
|
||||
|
||||
/*
|
||||
* Return the octeon family, i.e., ProcessorID of the PrID register.
|
||||
*/
|
||||
static inline uint32_t cvmx_get_octeon_family(void)
|
||||
{
|
||||
return cvmx_get_proc_id() & OCTEON_FAMILY_MASK;
|
||||
}
|
||||
|
||||
#include <asm/octeon/octeon-feature.h>
|
||||
|
||||
#endif /* __OCTEON_MODEL_H__ */
|
||||
|
@ -52,6 +52,7 @@ extern asmlinkage void octeon_cop2_restore(struct octeon_cop2_state *task);
|
||||
|
||||
extern void octeon_init_cvmcount(void);
|
||||
extern void octeon_setup_delays(void);
|
||||
extern void octeon_io_clk_delay(unsigned long);
|
||||
|
||||
#define OCTEON_ARGV_MAX_ARGS 64
|
||||
#define OCTOEN_SERIAL_LEN 20
|
||||
@ -254,4 +255,7 @@ extern uint64_t octeon_bootloader_entry_addr;
|
||||
|
||||
extern void (*octeon_irq_setup_secondary)(void);
|
||||
|
||||
typedef void (*octeon_irq_ip4_handler_t)(void);
|
||||
void octeon_irq_set_ip4_handler(octeon_irq_ip4_handler_t);
|
||||
|
||||
#endif /* __ASM_OCTEON_OCTEON_H */
|
||||
|
@ -79,9 +79,9 @@
|
||||
/* implemented in software */
|
||||
#define _PAGE_PRESENT_SHIFT (0)
|
||||
#define _PAGE_PRESENT (1 << _PAGE_PRESENT_SHIFT)
|
||||
/* implemented in software, should be unused if kernel_uses_smartmips_rixi. */
|
||||
#define _PAGE_READ_SHIFT (kernel_uses_smartmips_rixi ? _PAGE_PRESENT_SHIFT : _PAGE_PRESENT_SHIFT + 1)
|
||||
#define _PAGE_READ ({if (kernel_uses_smartmips_rixi) BUG(); 1 << _PAGE_READ_SHIFT; })
|
||||
/* implemented in software, should be unused if cpu_has_rixi. */
|
||||
#define _PAGE_READ_SHIFT (cpu_has_rixi ? _PAGE_PRESENT_SHIFT : _PAGE_PRESENT_SHIFT + 1)
|
||||
#define _PAGE_READ ({BUG_ON(cpu_has_rixi); 1 << _PAGE_READ_SHIFT; })
|
||||
/* implemented in software */
|
||||
#define _PAGE_WRITE_SHIFT (_PAGE_READ_SHIFT + 1)
|
||||
#define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT)
|
||||
@ -104,12 +104,12 @@
|
||||
#endif
|
||||
|
||||
/* Page cannot be executed */
|
||||
#define _PAGE_NO_EXEC_SHIFT (kernel_uses_smartmips_rixi ? _PAGE_HUGE_SHIFT + 1 : _PAGE_HUGE_SHIFT)
|
||||
#define _PAGE_NO_EXEC ({if (!kernel_uses_smartmips_rixi) BUG(); 1 << _PAGE_NO_EXEC_SHIFT; })
|
||||
#define _PAGE_NO_EXEC_SHIFT (cpu_has_rixi ? _PAGE_HUGE_SHIFT + 1 : _PAGE_HUGE_SHIFT)
|
||||
#define _PAGE_NO_EXEC ({BUG_ON(!cpu_has_rixi); 1 << _PAGE_NO_EXEC_SHIFT; })
|
||||
|
||||
/* Page cannot be read */
|
||||
#define _PAGE_NO_READ_SHIFT (kernel_uses_smartmips_rixi ? _PAGE_NO_EXEC_SHIFT + 1 : _PAGE_NO_EXEC_SHIFT)
|
||||
#define _PAGE_NO_READ ({if (!kernel_uses_smartmips_rixi) BUG(); 1 << _PAGE_NO_READ_SHIFT; })
|
||||
#define _PAGE_NO_READ_SHIFT (cpu_has_rixi ? _PAGE_NO_EXEC_SHIFT + 1 : _PAGE_NO_EXEC_SHIFT)
|
||||
#define _PAGE_NO_READ ({BUG_ON(!cpu_has_rixi); 1 << _PAGE_NO_READ_SHIFT; })
|
||||
|
||||
#define _PAGE_GLOBAL_SHIFT (_PAGE_NO_READ_SHIFT + 1)
|
||||
#define _PAGE_GLOBAL (1 << _PAGE_GLOBAL_SHIFT)
|
||||
@ -155,7 +155,7 @@
|
||||
*/
|
||||
static inline uint64_t pte_to_entrylo(unsigned long pte_val)
|
||||
{
|
||||
if (kernel_uses_smartmips_rixi) {
|
||||
if (cpu_has_rixi) {
|
||||
int sa;
|
||||
#ifdef CONFIG_32BIT
|
||||
sa = 31 - _PAGE_NO_READ_SHIFT;
|
||||
@ -220,7 +220,7 @@ static inline uint64_t pte_to_entrylo(unsigned long pte_val)
|
||||
|
||||
#endif
|
||||
|
||||
#define __READABLE (_PAGE_SILENT_READ | _PAGE_ACCESSED | (kernel_uses_smartmips_rixi ? 0 : _PAGE_READ))
|
||||
#define __READABLE (_PAGE_SILENT_READ | _PAGE_ACCESSED | (cpu_has_rixi ? 0 : _PAGE_READ))
|
||||
#define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
|
||||
|
||||
#define _PAGE_CHG_MASK (_PFN_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED | _CACHE_MASK)
|
||||
|
@ -22,15 +22,15 @@ struct mm_struct;
|
||||
struct vm_area_struct;
|
||||
|
||||
#define PAGE_NONE __pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
|
||||
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | (kernel_uses_smartmips_rixi ? 0 : _PAGE_READ) | \
|
||||
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | (cpu_has_rixi ? 0 : _PAGE_READ) | \
|
||||
_page_cachable_default)
|
||||
#define PAGE_COPY __pgprot(_PAGE_PRESENT | (kernel_uses_smartmips_rixi ? 0 : _PAGE_READ) | \
|
||||
(kernel_uses_smartmips_rixi ? _PAGE_NO_EXEC : 0) | _page_cachable_default)
|
||||
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | (kernel_uses_smartmips_rixi ? 0 : _PAGE_READ) | \
|
||||
#define PAGE_COPY __pgprot(_PAGE_PRESENT | (cpu_has_rixi ? 0 : _PAGE_READ) | \
|
||||
(cpu_has_rixi ? _PAGE_NO_EXEC : 0) | _page_cachable_default)
|
||||
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | (cpu_has_rixi ? 0 : _PAGE_READ) | \
|
||||
_page_cachable_default)
|
||||
#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
|
||||
_PAGE_GLOBAL | _page_cachable_default)
|
||||
#define PAGE_USERIO __pgprot(_PAGE_PRESENT | (kernel_uses_smartmips_rixi ? 0 : _PAGE_READ) | _PAGE_WRITE | \
|
||||
#define PAGE_USERIO __pgprot(_PAGE_PRESENT | (cpu_has_rixi ? 0 : _PAGE_READ) | _PAGE_WRITE | \
|
||||
_page_cachable_default)
|
||||
#define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \
|
||||
__WRITEABLE | _PAGE_GLOBAL | _CACHE_UNCACHED)
|
||||
@ -299,7 +299,7 @@ static inline pte_t pte_mkdirty(pte_t pte)
|
||||
static inline pte_t pte_mkyoung(pte_t pte)
|
||||
{
|
||||
pte_val(pte) |= _PAGE_ACCESSED;
|
||||
if (kernel_uses_smartmips_rixi) {
|
||||
if (cpu_has_rixi) {
|
||||
if (!(pte_val(pte) & _PAGE_NO_READ))
|
||||
pte_val(pte) |= _PAGE_SILENT_READ;
|
||||
} else {
|
||||
|
@ -139,10 +139,10 @@ register struct thread_info *__current_thread_info __asm__("$28");
|
||||
#define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
|
||||
|
||||
/* work to do on interrupt/exception return */
|
||||
#define _TIF_WORK_MASK (0x0000ffef & \
|
||||
~(_TIF_SECCOMP | _TIF_SYSCALL_AUDIT))
|
||||
#define _TIF_WORK_MASK \
|
||||
(_TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_NOTIFY_RESUME)
|
||||
/* work to do on any return to u-space */
|
||||
#define _TIF_ALLWORK_MASK (0x8000ffff & ~_TIF_SECCOMP)
|
||||
#define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | _TIF_WORK_SYSCALL_EXIT)
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
|
@ -90,6 +90,8 @@ Ip_u2u1u3(_dsrl);
|
||||
Ip_u2u1u3(_dsrl32);
|
||||
Ip_u3u1u2(_dsubu);
|
||||
Ip_0(_eret);
|
||||
Ip_u2u1msbu3(_ext);
|
||||
Ip_u2u1msbu3(_ins);
|
||||
Ip_u1(_j);
|
||||
Ip_u1(_jal);
|
||||
Ip_u1(_jr);
|
||||
|
@ -367,16 +367,17 @@
|
||||
#define __NR_setns (__NR_Linux + 344)
|
||||
#define __NR_process_vm_readv (__NR_Linux + 345)
|
||||
#define __NR_process_vm_writev (__NR_Linux + 346)
|
||||
#define __NR_kcmp (__NR_Linux + 347)
|
||||
|
||||
/*
|
||||
* Offset of the last Linux o32 flavoured syscall
|
||||
*/
|
||||
#define __NR_Linux_syscalls 346
|
||||
#define __NR_Linux_syscalls 347
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
|
||||
|
||||
#define __NR_O32_Linux 4000
|
||||
#define __NR_O32_Linux_syscalls 346
|
||||
#define __NR_O32_Linux_syscalls 347
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI64
|
||||
|
||||
@ -690,16 +691,17 @@
|
||||
#define __NR_setns (__NR_Linux + 303)
|
||||
#define __NR_process_vm_readv (__NR_Linux + 304)
|
||||
#define __NR_process_vm_writev (__NR_Linux + 305)
|
||||
#define __NR_kcmp (__NR_Linux + 306)
|
||||
|
||||
/*
|
||||
* Offset of the last Linux 64-bit flavoured syscall
|
||||
*/
|
||||
#define __NR_Linux_syscalls 305
|
||||
#define __NR_Linux_syscalls 306
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
|
||||
|
||||
#define __NR_64_Linux 5000
|
||||
#define __NR_64_Linux_syscalls 305
|
||||
#define __NR_64_Linux_syscalls 306
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
|
||||
@ -1018,16 +1020,17 @@
|
||||
#define __NR_setns (__NR_Linux + 308)
|
||||
#define __NR_process_vm_readv (__NR_Linux + 309)
|
||||
#define __NR_process_vm_writev (__NR_Linux + 310)
|
||||
#define __NR_kcmp (__NR_Linux + 311)
|
||||
|
||||
/*
|
||||
* Offset of the last N32 flavoured syscall
|
||||
*/
|
||||
#define __NR_Linux_syscalls 310
|
||||
#define __NR_Linux_syscalls 311
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
|
||||
|
||||
#define __NR_N32_Linux 6000
|
||||
#define __NR_N32_Linux_syscalls 310
|
||||
#define __NR_N32_Linux_syscalls 311
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
|
@ -34,28 +34,11 @@ obj-$(CONFIG_MODULES) += mips_ksyms.o module.o
|
||||
|
||||
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
||||
|
||||
obj-$(CONFIG_CPU_LOONGSON2) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_MIPS32) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_MIPS64) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R4K_FPU) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R3000) += r2300_fpu.o r2300_switch.o
|
||||
obj-$(CONFIG_CPU_R4300) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R4X00) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R5000) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R6000) += r6000_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R5432) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R5500) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R8000) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_RM7000) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_RM9000) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_NEVADA) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_R10000) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_SB1) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_TX39XX) += r2300_fpu.o r2300_switch.o
|
||||
obj-$(CONFIG_CPU_TX49XX) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_VR41XX) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_CAVIUM_OCTEON) += octeon_switch.o
|
||||
obj-$(CONFIG_CPU_XLR) += r4k_fpu.o r4k_switch.o
|
||||
obj-$(CONFIG_CPU_XLP) += r4k_fpu.o r4k_switch.o
|
||||
|
||||
obj-$(CONFIG_SMP) += smp.o
|
||||
obj-$(CONFIG_SMP_UP) += smp-up.o
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <asm/smtc_ipi.h>
|
||||
#include <asm/time.h>
|
||||
#include <asm/cevt-r4k.h>
|
||||
#include <asm/gic.h>
|
||||
|
||||
/*
|
||||
* The SMTC Kernel for the 34K, 1004K, et. al. replaces several
|
||||
@ -98,6 +99,10 @@ void mips_event_handler(struct clock_event_device *dev)
|
||||
*/
|
||||
static int c0_compare_int_pending(void)
|
||||
{
|
||||
#ifdef CONFIG_IRQ_GIC
|
||||
if (cpu_has_veic)
|
||||
return gic_get_timer_pending();
|
||||
#endif
|
||||
return (read_c0_cause() >> cp0_compare_irq_shift) & (1ul << CAUSEB_IP);
|
||||
}
|
||||
|
||||
|
@ -421,8 +421,12 @@ static inline unsigned int decode_config3(struct cpuinfo_mips *c)
|
||||
|
||||
config3 = read_c0_config3();
|
||||
|
||||
if (config3 & MIPS_CONF3_SM)
|
||||
if (config3 & MIPS_CONF3_SM) {
|
||||
c->ases |= MIPS_ASE_SMARTMIPS;
|
||||
c->options |= MIPS_CPU_RIXI;
|
||||
}
|
||||
if (config3 & MIPS_CONF3_RXI)
|
||||
c->options |= MIPS_CPU_RIXI;
|
||||
if (config3 & MIPS_CONF3_DSP)
|
||||
c->ases |= MIPS_ASE_DSP;
|
||||
if (config3 & MIPS_CONF3_VINT)
|
||||
@ -857,6 +861,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
|
||||
c->cputype = CPU_1004K;
|
||||
__cpu_name[cpu] = "MIPS 1004Kc";
|
||||
break;
|
||||
case PRID_IMP_1074K:
|
||||
c->cputype = CPU_74K;
|
||||
__cpu_name[cpu] = "MIPS 1074Kc";
|
||||
break;
|
||||
}
|
||||
|
||||
spram_config();
|
||||
|
@ -77,7 +77,7 @@ FEXPORT(syscall_exit)
|
||||
and t0, a2, t0
|
||||
bnez t0, syscall_exit_work
|
||||
|
||||
FEXPORT(restore_all) # restore full frame
|
||||
restore_all: # restore full frame
|
||||
#ifdef CONFIG_MIPS_MT_SMTC
|
||||
#ifdef CONFIG_MIPS_MT_SMTC_IM_BACKSTOP
|
||||
/* Re-arm any temporarily masked interrupts not explicitly "acked" */
|
||||
@ -117,7 +117,7 @@ FEXPORT(restore_all) # restore full frame
|
||||
RESTORE_TEMP
|
||||
RESTORE_AT
|
||||
RESTORE_STATIC
|
||||
FEXPORT(restore_partial) # restore partial frame
|
||||
restore_partial: # restore partial frame
|
||||
#ifdef CONFIG_TRACE_IRQFLAGS
|
||||
SAVE_STATIC
|
||||
SAVE_AT
|
||||
@ -164,9 +164,18 @@ work_notifysig: # deal with pending signals and
|
||||
jal do_notify_resume # a2 already loaded
|
||||
j resume_userspace
|
||||
|
||||
FEXPORT(syscall_exit_work_partial)
|
||||
FEXPORT(syscall_exit_partial)
|
||||
local_irq_disable # make sure need_resched doesn't
|
||||
# change between and return
|
||||
LONG_L a2, TI_FLAGS($28) # current->work
|
||||
li t0, _TIF_ALLWORK_MASK
|
||||
and t0, a2
|
||||
beqz t0, restore_partial
|
||||
SAVE_STATIC
|
||||
syscall_exit_work:
|
||||
LONG_L t0, PT_STATUS(sp) # returning to kernel mode?
|
||||
andi t0, t0, KU_USER
|
||||
beqz t0, resume_kernel
|
||||
li t0, _TIF_WORK_SYSCALL_EXIT
|
||||
and t0, a2 # a2 is preloaded with TI_FLAGS
|
||||
beqz t0, work_pending # trace bit set?
|
||||
|
@ -1,5 +1,11 @@
|
||||
#undef DEBUG
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
* Copyright (C) 2008 Ralf Baechle (ralf@linux-mips.org)
|
||||
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
|
||||
*/
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/smp.h>
|
||||
@ -7,33 +13,80 @@
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <asm/gic.h>
|
||||
#include <asm/setup.h>
|
||||
#include <asm/traps.h>
|
||||
#include <asm/gcmpregs.h>
|
||||
#include <linux/hardirq.h>
|
||||
#include <asm-generic/bitops/find.h>
|
||||
|
||||
unsigned long _gic_base;
|
||||
unsigned int gic_irq_base;
|
||||
unsigned int gic_irq_flags[GIC_NUM_INTRS];
|
||||
|
||||
static unsigned long _gic_base;
|
||||
static unsigned int _irqbase;
|
||||
static unsigned int gic_irq_flags[GIC_NUM_INTRS];
|
||||
#define GIC_IRQ_FLAG_EDGE 0x0001
|
||||
/* The index into this array is the vector # of the interrupt. */
|
||||
struct gic_shared_intr_map gic_shared_intr_map[GIC_NUM_INTRS];
|
||||
|
||||
struct gic_pcpu_mask pcpu_masks[NR_CPUS];
|
||||
static struct gic_pcpu_mask pcpu_masks[NR_CPUS];
|
||||
static struct gic_pending_regs pending_regs[NR_CPUS];
|
||||
static struct gic_intrmask_regs intrmask_regs[NR_CPUS];
|
||||
|
||||
unsigned int gic_get_timer_pending(void)
|
||||
{
|
||||
unsigned int vpe_pending;
|
||||
|
||||
GICWRITE(GIC_REG(VPE_LOCAL, GIC_VPE_OTHER_ADDR), 0);
|
||||
GICREAD(GIC_REG(VPE_OTHER, GIC_VPE_PEND), vpe_pending);
|
||||
return (vpe_pending & GIC_VPE_PEND_TIMER_MSK);
|
||||
}
|
||||
|
||||
void gic_bind_eic_interrupt(int irq, int set)
|
||||
{
|
||||
/* Convert irq vector # to hw int # */
|
||||
irq -= GIC_PIN_TO_VEC_OFFSET;
|
||||
|
||||
/* Set irq to use shadow set */
|
||||
GICWRITE(GIC_REG_ADDR(VPE_LOCAL, GIC_VPE_EIC_SS(irq)), set);
|
||||
}
|
||||
|
||||
void gic_send_ipi(unsigned int intr)
|
||||
{
|
||||
pr_debug("CPU%d: %s status %08x\n", smp_processor_id(), __func__,
|
||||
read_c0_status());
|
||||
GICWRITE(GIC_REG(SHARED, GIC_SH_WEDGE), 0x80000000 | intr);
|
||||
}
|
||||
|
||||
/* This is Malta specific and needs to be exported */
|
||||
static void gic_eic_irq_dispatch(void)
|
||||
{
|
||||
unsigned int cause = read_c0_cause();
|
||||
int irq;
|
||||
|
||||
irq = (cause & ST0_IM) >> STATUSB_IP2;
|
||||
if (irq == 0)
|
||||
irq = -1;
|
||||
|
||||
if (irq >= 0)
|
||||
do_IRQ(gic_irq_base + irq);
|
||||
else
|
||||
spurious_interrupt();
|
||||
}
|
||||
|
||||
static void __init vpe_local_setup(unsigned int numvpes)
|
||||
{
|
||||
int i;
|
||||
unsigned long timer_interrupt = 5, perf_interrupt = 5;
|
||||
unsigned long timer_intr = GIC_INT_TMR;
|
||||
unsigned long perf_intr = GIC_INT_PERFCTR;
|
||||
unsigned int vpe_ctl;
|
||||
int i;
|
||||
|
||||
if (cpu_has_veic) {
|
||||
/*
|
||||
* GIC timer interrupt -> CPU HW Int X (vector X+2) ->
|
||||
* map to pin X+2-1 (since GIC adds 1)
|
||||
*/
|
||||
timer_intr += (GIC_CPU_TO_VEC_OFFSET - GIC_PIN_TO_VEC_OFFSET);
|
||||
/*
|
||||
* GIC perfcnt interrupt -> CPU HW Int X (vector X+2) ->
|
||||
* map to pin X+2-1 (since GIC adds 1)
|
||||
*/
|
||||
perf_intr += (GIC_CPU_TO_VEC_OFFSET - GIC_PIN_TO_VEC_OFFSET);
|
||||
}
|
||||
|
||||
/*
|
||||
* Setup the default performance counter timer interrupts
|
||||
@ -46,11 +99,20 @@ static void __init vpe_local_setup(unsigned int numvpes)
|
||||
GICREAD(GIC_REG(VPE_OTHER, GIC_VPE_CTL), vpe_ctl);
|
||||
if (vpe_ctl & GIC_VPE_CTL_TIMER_RTBL_MSK)
|
||||
GICWRITE(GIC_REG(VPE_OTHER, GIC_VPE_TIMER_MAP),
|
||||
GIC_MAP_TO_PIN_MSK | timer_interrupt);
|
||||
GIC_MAP_TO_PIN_MSK | timer_intr);
|
||||
if (cpu_has_veic) {
|
||||
set_vi_handler(timer_intr + GIC_PIN_TO_VEC_OFFSET,
|
||||
gic_eic_irq_dispatch);
|
||||
gic_shared_intr_map[timer_intr + GIC_PIN_TO_VEC_OFFSET].local_intr_mask |= GIC_VPE_RMASK_TIMER_MSK;
|
||||
}
|
||||
|
||||
if (vpe_ctl & GIC_VPE_CTL_PERFCNT_RTBL_MSK)
|
||||
GICWRITE(GIC_REG(VPE_OTHER, GIC_VPE_PERFCTR_MAP),
|
||||
GIC_MAP_TO_PIN_MSK | perf_interrupt);
|
||||
GIC_MAP_TO_PIN_MSK | perf_intr);
|
||||
if (cpu_has_veic) {
|
||||
set_vi_handler(perf_intr + GIC_PIN_TO_VEC_OFFSET, gic_eic_irq_dispatch);
|
||||
gic_shared_intr_map[perf_intr + GIC_PIN_TO_VEC_OFFSET].local_intr_mask |= GIC_VPE_RMASK_PERFCNT_MSK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,51 +142,30 @@ unsigned int gic_get_int(void)
|
||||
bitmap_and(pending, pending, intrmask, GIC_NUM_INTRS);
|
||||
bitmap_and(pending, pending, pcpu_mask, GIC_NUM_INTRS);
|
||||
|
||||
i = find_first_bit(pending, GIC_NUM_INTRS);
|
||||
|
||||
pr_debug("CPU%d: %s pend=%d\n", smp_processor_id(), __func__, i);
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
static void gic_irq_ack(struct irq_data *d)
|
||||
{
|
||||
unsigned int irq = d->irq - _irqbase;
|
||||
|
||||
pr_debug("CPU%d: %s: irq%d\n", smp_processor_id(), __func__, irq);
|
||||
GIC_CLR_INTR_MASK(irq);
|
||||
|
||||
if (gic_irq_flags[irq] & GIC_IRQ_FLAG_EDGE)
|
||||
GICWRITE(GIC_REG(SHARED, GIC_SH_WEDGE), irq);
|
||||
return find_first_bit(pending, GIC_NUM_INTRS);
|
||||
}
|
||||
|
||||
static void gic_mask_irq(struct irq_data *d)
|
||||
{
|
||||
unsigned int irq = d->irq - _irqbase;
|
||||
pr_debug("CPU%d: %s: irq%d\n", smp_processor_id(), __func__, irq);
|
||||
GIC_CLR_INTR_MASK(irq);
|
||||
GIC_CLR_INTR_MASK(d->irq - gic_irq_base);
|
||||
}
|
||||
|
||||
static void gic_unmask_irq(struct irq_data *d)
|
||||
{
|
||||
unsigned int irq = d->irq - _irqbase;
|
||||
pr_debug("CPU%d: %s: irq%d\n", smp_processor_id(), __func__, irq);
|
||||
GIC_SET_INTR_MASK(irq);
|
||||
GIC_SET_INTR_MASK(d->irq - gic_irq_base);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
|
||||
static DEFINE_SPINLOCK(gic_lock);
|
||||
|
||||
static int gic_set_affinity(struct irq_data *d, const struct cpumask *cpumask,
|
||||
bool force)
|
||||
{
|
||||
unsigned int irq = d->irq - _irqbase;
|
||||
unsigned int irq = (d->irq - gic_irq_base);
|
||||
cpumask_t tmp = CPU_MASK_NONE;
|
||||
unsigned long flags;
|
||||
int i;
|
||||
|
||||
pr_debug("%s(%d) called\n", __func__, irq);
|
||||
cpumask_and(&tmp, cpumask, cpu_online_mask);
|
||||
if (cpus_empty(tmp))
|
||||
return -1;
|
||||
@ -154,7 +195,7 @@ static struct irq_chip gic_irq_controller = {
|
||||
.irq_mask = gic_mask_irq,
|
||||
.irq_mask_ack = gic_mask_irq,
|
||||
.irq_unmask = gic_unmask_irq,
|
||||
.irq_eoi = gic_unmask_irq,
|
||||
.irq_eoi = gic_finish_irq,
|
||||
#ifdef CONFIG_SMP
|
||||
.irq_set_affinity = gic_set_affinity,
|
||||
#endif
|
||||
@ -164,6 +205,8 @@ static void __init gic_setup_intr(unsigned int intr, unsigned int cpu,
|
||||
unsigned int pin, unsigned int polarity, unsigned int trigtype,
|
||||
unsigned int flags)
|
||||
{
|
||||
struct gic_shared_intr_map *map_ptr;
|
||||
|
||||
/* Setup Intr to Pin mapping */
|
||||
if (pin & GIC_MAP_TO_NMI_MSK) {
|
||||
GICWRITE(GIC_REG_ADDR(SHARED, GIC_SH_MAP_TO_PIN(intr)), pin);
|
||||
@ -178,6 +221,14 @@ static void __init gic_setup_intr(unsigned int intr, unsigned int cpu,
|
||||
GIC_MAP_TO_PIN_MSK | pin);
|
||||
/* Setup Intr to CPU mapping */
|
||||
GIC_SH_MAP_TO_VPE_SMASK(intr, cpu);
|
||||
if (cpu_has_veic) {
|
||||
set_vi_handler(pin + GIC_PIN_TO_VEC_OFFSET,
|
||||
gic_eic_irq_dispatch);
|
||||
map_ptr = &gic_shared_intr_map[pin + GIC_PIN_TO_VEC_OFFSET];
|
||||
if (map_ptr->num_shared_intr >= GIC_MAX_SHARED_INTR)
|
||||
BUG();
|
||||
map_ptr->intr_list[map_ptr->num_shared_intr++] = intr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Setup Intr Polarity */
|
||||
@ -191,26 +242,39 @@ static void __init gic_setup_intr(unsigned int intr, unsigned int cpu,
|
||||
/* Initialise per-cpu Interrupt software masks */
|
||||
if (flags & GIC_FLAG_IPI)
|
||||
set_bit(intr, pcpu_masks[cpu].pcpu_mask);
|
||||
if (flags & GIC_FLAG_TRANSPARENT)
|
||||
if ((flags & GIC_FLAG_TRANSPARENT) && (cpu_has_veic == 0))
|
||||
GIC_SET_INTR_MASK(intr);
|
||||
if (trigtype == GIC_TRIG_EDGE)
|
||||
gic_irq_flags[intr] |= GIC_IRQ_FLAG_EDGE;
|
||||
gic_irq_flags[intr] |= GIC_TRIG_EDGE;
|
||||
}
|
||||
|
||||
static void __init gic_basic_init(int numintrs, int numvpes,
|
||||
struct gic_intr_map *intrmap, int mapsize)
|
||||
{
|
||||
unsigned int i, cpu;
|
||||
unsigned int pin_offset = 0;
|
||||
|
||||
board_bind_eic_interrupt = &gic_bind_eic_interrupt;
|
||||
|
||||
/* Setup defaults */
|
||||
for (i = 0; i < numintrs; i++) {
|
||||
GIC_SET_POLARITY(i, GIC_POL_POS);
|
||||
GIC_SET_TRIGGER(i, GIC_TRIG_LEVEL);
|
||||
GIC_CLR_INTR_MASK(i);
|
||||
if (i < GIC_NUM_INTRS)
|
||||
if (i < GIC_NUM_INTRS) {
|
||||
gic_irq_flags[i] = 0;
|
||||
gic_shared_intr_map[i].num_shared_intr = 0;
|
||||
gic_shared_intr_map[i].local_intr_mask = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* In EIC mode, the HW_INT# is offset by (2-1). Need to subtract
|
||||
* one because the GIC will add one (since 0=no intr).
|
||||
*/
|
||||
if (cpu_has_veic)
|
||||
pin_offset = (GIC_CPU_TO_VEC_OFFSET - GIC_PIN_TO_VEC_OFFSET);
|
||||
|
||||
/* Setup specifics */
|
||||
for (i = 0; i < mapsize; i++) {
|
||||
cpu = intrmap[i].cpunum;
|
||||
@ -220,16 +284,13 @@ static void __init gic_basic_init(int numintrs, int numvpes,
|
||||
continue;
|
||||
gic_setup_intr(i,
|
||||
intrmap[i].cpunum,
|
||||
intrmap[i].pin,
|
||||
intrmap[i].pin + pin_offset,
|
||||
intrmap[i].polarity,
|
||||
intrmap[i].trigtype,
|
||||
intrmap[i].flags);
|
||||
}
|
||||
|
||||
vpe_local_setup(numvpes);
|
||||
|
||||
for (i = _irqbase; i < (_irqbase + numintrs); i++)
|
||||
irq_set_chip(i, &gic_irq_controller);
|
||||
}
|
||||
|
||||
void __init gic_init(unsigned long gic_base_addr,
|
||||
@ -242,7 +303,7 @@ void __init gic_init(unsigned long gic_base_addr,
|
||||
|
||||
_gic_base = (unsigned long) ioremap_nocache(gic_base_addr,
|
||||
gic_addrspace_size);
|
||||
_irqbase = irqbase;
|
||||
gic_irq_base = irqbase;
|
||||
|
||||
GICREAD(GIC_REG(SHARED, GIC_SH_CONFIG), gicconfig);
|
||||
numintrs = (gicconfig & GIC_SH_CONFIG_NUMINTRS_MSK) >>
|
||||
@ -251,8 +312,9 @@ void __init gic_init(unsigned long gic_base_addr,
|
||||
|
||||
numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >>
|
||||
GIC_SH_CONFIG_NUMVPES_SHF;
|
||||
|
||||
pr_debug("%s called\n", __func__);
|
||||
numvpes = numvpes + 1;
|
||||
|
||||
gic_basic_init(numintrs, numvpes, intr_map, intr_map_size);
|
||||
|
||||
gic_platform_init(numintrs, &gic_irq_controller);
|
||||
}
|
||||
|
@ -69,18 +69,7 @@ stack_done:
|
||||
1: sw v0, PT_R2(sp) # result
|
||||
|
||||
o32_syscall_exit:
|
||||
local_irq_disable # make sure need_resched and
|
||||
# signals dont change between
|
||||
# sampling and return
|
||||
lw a2, TI_FLAGS($28) # current->work
|
||||
li t0, _TIF_ALLWORK_MASK
|
||||
and t0, a2
|
||||
bnez t0, o32_syscall_exit_work
|
||||
|
||||
j restore_partial
|
||||
|
||||
o32_syscall_exit_work:
|
||||
j syscall_exit_work_partial
|
||||
j syscall_exit_partial
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
@ -593,6 +582,7 @@ einval: li v0, -ENOSYS
|
||||
sys sys_setns 2
|
||||
sys sys_process_vm_readv 6 /* 4345 */
|
||||
sys sys_process_vm_writev 6
|
||||
sys sys_kcmp 5
|
||||
.endm
|
||||
|
||||
/* We pre-compute the number of _instruction_ bytes needed to
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user