]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: Octeon: Move some Ethernet support files out of staging.
authorDavid Daney <david.daney@cavium.com>
Fri, 11 Nov 2011 00:29:45 +0000 (16:29 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Nov 2011 21:30:20 +0000 (21:30 +0000)
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: netdev@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Patchwork: https://patchwork.linux-mips.org/patch/2942/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
65 files changed:
arch/mips/cavium-octeon/executive/Makefile
arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c [moved from drivers/staging/octeon/cvmx-cmd-queue.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-fpa.c [moved from drivers/staging/octeon/cvmx-fpa.c with 100% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-board.c [moved from drivers/staging/octeon/cvmx-helper-board.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-fpa.c [moved from drivers/staging/octeon/cvmx-helper-fpa.c with 100% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-loop.c [moved from drivers/staging/octeon/cvmx-helper-loop.c with 95% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-npi.c [moved from drivers/staging/octeon/cvmx-helper-npi.c with 96% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c [moved from drivers/staging/octeon/cvmx-helper-rgmii.c with 97% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c [moved from drivers/staging/octeon/cvmx-helper-sgmii.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-spi.c [moved from drivers/staging/octeon/cvmx-helper-spi.c with 97% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-util.c [moved from drivers/staging/octeon/cvmx-helper-util.c with 97% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c [moved from drivers/staging/octeon/cvmx-helper-xaui.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-helper.c [moved from drivers/staging/octeon/cvmx-helper.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-interrupt-decodes.c [moved from drivers/staging/octeon/cvmx-interrupt-decodes.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c [moved from drivers/staging/octeon/cvmx-interrupt-rsl.c with 97% similarity]
arch/mips/cavium-octeon/executive/cvmx-pko.c [moved from drivers/staging/octeon/cvmx-pko.c with 98% similarity]
arch/mips/cavium-octeon/executive/cvmx-spi.c [moved from drivers/staging/octeon/cvmx-spi.c with 99% similarity]
arch/mips/include/asm/octeon/cvmx-address.h [moved from drivers/staging/octeon/cvmx-address.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-asxx-defs.h [moved from drivers/staging/octeon/cvmx-asxx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-cmd-queue.h [moved from drivers/staging/octeon/cvmx-cmd-queue.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-config.h [moved from drivers/staging/octeon/cvmx-config.h with 99% similarity]
arch/mips/include/asm/octeon/cvmx-dbg-defs.h [moved from drivers/staging/octeon/cvmx-dbg-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-fau.h [moved from drivers/staging/octeon/cvmx-fau.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-fpa-defs.h [moved from drivers/staging/octeon/cvmx-fpa-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-fpa.h [moved from drivers/staging/octeon/cvmx-fpa.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-gmxx-defs.h [moved from drivers/staging/octeon/cvmx-gmxx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-board.h [moved from drivers/staging/octeon/cvmx-helper-board.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-fpa.h [moved from drivers/staging/octeon/cvmx-helper-fpa.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-loop.h [moved from drivers/staging/octeon/cvmx-helper-loop.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-npi.h [moved from drivers/staging/octeon/cvmx-helper-npi.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-rgmii.h [moved from drivers/staging/octeon/cvmx-helper-rgmii.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-sgmii.h [moved from drivers/staging/octeon/cvmx-helper-sgmii.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-spi.h [moved from drivers/staging/octeon/cvmx-helper-spi.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-util.h [moved from drivers/staging/octeon/cvmx-helper-util.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper-xaui.h [moved from drivers/staging/octeon/cvmx-helper-xaui.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-helper.h [moved from drivers/staging/octeon/cvmx-helper.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-ipd.h [moved from drivers/staging/octeon/cvmx-ipd.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-mdio.h [moved from drivers/staging/octeon/cvmx-mdio.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pcsx-defs.h [moved from drivers/staging/octeon/cvmx-pcsx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pcsxx-defs.h [moved from drivers/staging/octeon/cvmx-pcsxx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pip-defs.h [moved from drivers/staging/octeon/cvmx-pip-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pip.h [moved from drivers/staging/octeon/cvmx-pip.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pko-defs.h [moved from drivers/staging/octeon/cvmx-pko-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pko.h [moved from drivers/staging/octeon/cvmx-pko.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-pow.h [moved from drivers/staging/octeon/cvmx-pow.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-scratch.h [moved from drivers/staging/octeon/cvmx-scratch.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-spi.h [moved from drivers/staging/octeon/cvmx-spi.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-spxx-defs.h [moved from drivers/staging/octeon/cvmx-spxx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-srxx-defs.h [moved from drivers/staging/octeon/cvmx-srxx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-stxx-defs.h [moved from drivers/staging/octeon/cvmx-stxx-defs.h with 100% similarity]
arch/mips/include/asm/octeon/cvmx-wqe.h [moved from drivers/staging/octeon/cvmx-wqe.h with 100% similarity]
drivers/staging/octeon/Makefile
drivers/staging/octeon/cvmx-packet.h [deleted file]
drivers/staging/octeon/cvmx-smix-defs.h [deleted file]
drivers/staging/octeon/ethernet-defines.h
drivers/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet-mem.c
drivers/staging/octeon/ethernet-rgmii.c
drivers/staging/octeon/ethernet-rx.c
drivers/staging/octeon/ethernet-rx.h
drivers/staging/octeon/ethernet-sgmii.c
drivers/staging/octeon/ethernet-spi.c
drivers/staging/octeon/ethernet-tx.c
drivers/staging/octeon/ethernet-xaui.c
drivers/staging/octeon/ethernet.c

index 7f41c5be2190ddca03fc92a00e8f21bd735414f5..eec0b88f19a645d745ca4ffdd70f8bea34b96d6f 100644 (file)
 #
 
 obj-y += cvmx-bootmem.o cvmx-l2c.o cvmx-sysinfo.o octeon-model.o
+obj-y += cvmx-pko.o cvmx-spi.o cvmx-cmd-queue.o \
+       cvmx-helper-board.o cvmx-helper.o cvmx-helper-xaui.o \
+       cvmx-helper-rgmii.o cvmx-helper-sgmii.o cvmx-helper-npi.o \
+       cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \
+       cvmx-interrupt-decodes.o cvmx-interrupt-rsl.o
 
 obj-$(CONFIG_CAVIUM_OCTEON_HELPER) += cvmx-helper-errata.o cvmx-helper-jtag.o
similarity index 98%
rename from drivers/staging/octeon/cvmx-cmd-queue.c
rename to arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c
index e9809d375162b0870f2830583720b1da0126b5de..132bccc66a93654e50fb03c77c9de125434f385c 100644 (file)
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
-#include "cvmx-fpa.h"
-#include "cvmx-cmd-queue.h"
+#include <asm/octeon/cvmx-config.h>
+#include <asm/octeon/cvmx-fpa.h>
+#include <asm/octeon/cvmx-cmd-queue.h>
 
 #include <asm/octeon/cvmx-npei-defs.h>
 #include <asm/octeon/cvmx-pexp-defs.h>
-#include "cvmx-pko-defs.h"
+#include <asm/octeon/cvmx-pko-defs.h>
 
 /**
  * This application uses this pointer to access the global queue
similarity index 98%
rename from drivers/staging/octeon/cvmx-helper-board.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-board.c
index 57d35dc63ddb1e2ae45bd49e7772d32556c2da2c..71590a35163b63e624b3fa40b65eb57e9bc2c282 100644 (file)
 #include <asm/octeon/octeon.h>
 #include <asm/octeon/cvmx-bootinfo.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-mdio.h"
+#include <asm/octeon/cvmx-mdio.h>
 
-#include "cvmx-helper.h"
-#include "cvmx-helper-util.h"
-#include "cvmx-helper-board.h"
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-helper-util.h>
+#include <asm/octeon/cvmx-helper-board.h>
 
-#include "cvmx-gmxx-defs.h"
-#include "cvmx-asxx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
+#include <asm/octeon/cvmx-asxx-defs.h>
 
 /**
  * cvmx_override_board_link_get(int ipd_port) is a function
@@ -493,7 +493,6 @@ int cvmx_helper_board_link_set_phy(int phy_addr,
                cvmx_mdio_phy_reg_control_t reg_control;
                cvmx_mdio_phy_reg_status_t reg_status;
                cvmx_mdio_phy_reg_autoneg_adver_t reg_autoneg_adver;
-               cvmx_mdio_phy_reg_extended_status_t reg_extended_status;
                cvmx_mdio_phy_reg_control_1000_t reg_control_1000;
 
                reg_status.u16 =
@@ -508,9 +507,6 @@ int cvmx_helper_board_link_set_phy(int phy_addr,
                reg_autoneg_adver.s.advert_100base_tx_full = 0;
                reg_autoneg_adver.s.advert_100base_tx_half = 0;
                if (reg_status.s.capable_extended_status) {
-                       reg_extended_status.u16 =
-                           cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff,
-                                          CVMX_MDIO_PHY_REG_EXTENDED_STATUS);
                        reg_control_1000.u16 =
                            cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff,
                                           CVMX_MDIO_PHY_REG_CONTROL_1000);
similarity index 95%
rename from drivers/staging/octeon/cvmx-helper-loop.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-loop.c
index 55a571a69529e914edda285ecf889014c5ae88fa..bfbd46115e71453e2636a9da76a734ef750598fe 100644 (file)
  */
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-helper.h"
-#include "cvmx-pip-defs.h"
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-pip-defs.h>
 
 /**
  * Probe a LOOP interface and determine the number of ports
similarity index 96%
rename from drivers/staging/octeon/cvmx-helper-npi.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-npi.c
index 7388a1e72b38c5545b0e7be0a2a17c0b004ed4f8..cc94cfa545b49ecd510d4575119f3389bd34ac1c 100644 (file)
  */
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-helper.h>
 
-#include "cvmx-pip-defs.h"
+#include <asm/octeon/cvmx-pip-defs.h>
 
 /**
  * Probe a NPI interface and determine the number of ports
similarity index 97%
rename from drivers/staging/octeon/cvmx-helper-rgmii.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c
index aa2d5d7fee2be4c914ce7f83fc2fd5d8dfa481af..82b21843421caefd270aa44e68c53df988472898 100644 (file)
  */
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
 
-#include "cvmx-mdio.h"
-#include "cvmx-pko.h"
-#include "cvmx-helper.h"
-#include "cvmx-helper-board.h"
+#include <asm/octeon/cvmx-mdio.h>
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-helper-board.h>
 
 #include <asm/octeon/cvmx-npi-defs.h>
-#include "cvmx-gmxx-defs.h"
-#include "cvmx-asxx-defs.h"
-#include "cvmx-dbg-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
+#include <asm/octeon/cvmx-asxx-defs.h>
+#include <asm/octeon/cvmx-dbg-defs.h>
 
 void __cvmx_interrupt_gmxx_enable(int interface);
 void __cvmx_interrupt_asxx_enable(int block);
@@ -326,6 +326,7 @@ int __cvmx_helper_rgmii_link_set(int ipd_port,
                       cvmx_read_csr(CVMX_ASXX_RX_PRT_EN(interface)) &
                                     ~(1 << index));
 
+       memset(pko_mem_queue_qos_save, 0, sizeof(pko_mem_queue_qos_save));
        /* Disable all queues so that TX should become idle */
        for (i = 0; i < cvmx_pko_get_num_queues(ipd_port); i++) {
                int queue = cvmx_pko_get_base_queue(ipd_port) + i;
similarity index 98%
rename from drivers/staging/octeon/cvmx-helper-sgmii.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c
index 6214e3b6d97528b900b6b90792756dda48fd9d04..464347ffd3624e9fa298beaa71f2ae7832a0674b 100644 (file)
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-mdio.h"
-#include "cvmx-helper.h"
-#include "cvmx-helper-board.h"
+#include <asm/octeon/cvmx-mdio.h>
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-helper-board.h>
 
-#include "cvmx-gmxx-defs.h"
-#include "cvmx-pcsx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
+#include <asm/octeon/cvmx-pcsx-defs.h>
 
 void __cvmx_interrupt_gmxx_enable(int interface);
 void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
similarity index 97%
rename from drivers/staging/octeon/cvmx-helper-spi.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-spi.c
index 8ba6c832471e85c1dd19767b0263238240d374d8..02a444230ef7cc8c91c59661f2a47f5b4dd2d251 100644 (file)
@@ -35,12 +35,12 @@ void __cvmx_interrupt_stxx_int_msk_enable(int index);
  */
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
-#include "cvmx-spi.h"
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-config.h>
+#include <asm/octeon/cvmx-spi.h>
+#include <asm/octeon/cvmx-helper.h>
 
-#include "cvmx-pip-defs.h"
-#include "cvmx-pko-defs.h"
+#include <asm/octeon/cvmx-pip-defs.h>
+#include <asm/octeon/cvmx-pko-defs.h>
 
 /*
  * CVMX_HELPER_SPI_TIMEOUT is used to determine how long the SPI
similarity index 97%
rename from drivers/staging/octeon/cvmx-helper-util.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-util.c
index 131182bf5abb699d5966a4f92e0f65934e1d0bb6..116dea17acf5a3e0cbe273a352fe06ad4d126836 100644 (file)
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-fpa.h"
-#include "cvmx-pip.h"
-#include "cvmx-pko.h"
-#include "cvmx-ipd.h"
-#include "cvmx-spi.h"
+#include <asm/octeon/cvmx-fpa.h>
+#include <asm/octeon/cvmx-pip.h>
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-ipd.h>
+#include <asm/octeon/cvmx-spi.h>
 
-#include "cvmx-helper.h"
-#include "cvmx-helper-util.h"
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-helper-util.h>
 
 #include <asm/octeon/cvmx-ipd-defs.h>
 
similarity index 98%
rename from drivers/staging/octeon/cvmx-helper-xaui.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c
index a11e6769e23490be94f1b14671a606e37e686c39..667a8e3cb142807b12a3844d601c41ca093baff7 100644 (file)
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-helper.h>
 
-#include "cvmx-pko-defs.h"
-#include "cvmx-gmxx-defs.h"
-#include "cvmx-pcsxx-defs.h"
+#include <asm/octeon/cvmx-pko-defs.h>
+#include <asm/octeon/cvmx-gmxx-defs.h>
+#include <asm/octeon/cvmx-pcsxx-defs.h>
 
 void __cvmx_interrupt_gmxx_enable(int interface);
 void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
similarity index 98%
rename from drivers/staging/octeon/cvmx-helper.c
rename to arch/mips/cavium-octeon/executive/cvmx-helper.c
index e9c5c836ceffdfab287ecb7233b233fa93f55ef2..daa8c8bbcfe4831a623e959085c853ab2e187708 100644 (file)
  */
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-fpa.h"
-#include "cvmx-pip.h"
-#include "cvmx-pko.h"
-#include "cvmx-ipd.h"
-#include "cvmx-spi.h"
-#include "cvmx-helper.h"
-#include "cvmx-helper-board.h"
+#include <asm/octeon/cvmx-fpa.h>
+#include <asm/octeon/cvmx-pip.h>
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-ipd.h>
+#include <asm/octeon/cvmx-spi.h>
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-helper-board.h>
 
-#include "cvmx-pip-defs.h"
-#include "cvmx-smix-defs.h"
-#include "cvmx-asxx-defs.h"
+#include <asm/octeon/cvmx-pip-defs.h>
+#include <asm/octeon/cvmx-smix-defs.h>
+#include <asm/octeon/cvmx-asxx-defs.h>
 
 /**
  * cvmx_override_pko_queue_priority(int ipd_port, uint64_t
@@ -548,7 +548,6 @@ int __cvmx_helper_errata_fix_ipd_ptr_alignment(void)
        union cvmx_gmxx_prtx_cfg gmx_cfg;
        int retry_cnt;
        int retry_loop_cnt;
-       int mtu;
        int i;
        cvmx_helper_link_info_t link_info;
 
@@ -662,10 +661,6 @@ int __cvmx_helper_errata_fix_ipd_ptr_alignment(void)
                cvmx_write_csr(CVMX_ASXX_RX_PRT_EN(INTERFACE(FIX_IPD_OUTPORT)),
                               1 << INDEX(FIX_IPD_OUTPORT));
 
-               mtu =
-                   cvmx_read_csr(CVMX_GMXX_RXX_JABBER
-                                 (INDEX(FIX_IPD_OUTPORT),
-                                  INTERFACE(FIX_IPD_OUTPORT)));
                cvmx_write_csr(CVMX_GMXX_RXX_JABBER
                               (INDEX(FIX_IPD_OUTPORT),
                                INTERFACE(FIX_IPD_OUTPORT)), 65392 - 14 - 4);
similarity index 98%
rename from drivers/staging/octeon/cvmx-interrupt-decodes.c
rename to arch/mips/cavium-octeon/executive/cvmx-interrupt-decodes.c
index a3337e382ee96fb4c2b7cfa60809119d91b6191a..e59d1b79f24cd54cd083d2466f091279b83110b8 100644 (file)
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-gmxx-defs.h"
-#include "cvmx-pcsx-defs.h"
-#include "cvmx-pcsxx-defs.h"
-#include "cvmx-spxx-defs.h"
-#include "cvmx-stxx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
+#include <asm/octeon/cvmx-pcsx-defs.h>
+#include <asm/octeon/cvmx-pcsxx-defs.h>
+#include <asm/octeon/cvmx-spxx-defs.h>
+#include <asm/octeon/cvmx-stxx-defs.h>
 
 #ifndef PRINT_ERROR
 #define PRINT_ERROR(format, ...)
similarity index 97%
rename from drivers/staging/octeon/cvmx-interrupt-rsl.c
rename to arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c
index df50048cfbc08c69b2ecf9252e897aee3d539dce..bea7538ea4e970808815bbb43a360fef12eeae9d 100644 (file)
@@ -32,8 +32,8 @@
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-asxx-defs.h"
-#include "cvmx-gmxx-defs.h"
+#include <asm/octeon/cvmx-asxx-defs.h>
+#include <asm/octeon/cvmx-gmxx-defs.h>
 
 #ifndef PRINT_ERROR
 #define PRINT_ERROR(format, ...)
similarity index 98%
rename from drivers/staging/octeon/cvmx-pko.c
rename to arch/mips/cavium-octeon/executive/cvmx-pko.c
index 50a2c9bd5a55f849ff9fcd2632f7524003ca5a5b..f557084b10924df198d018c8d79d6e3faa139f49 100644 (file)
@@ -31,9 +31,9 @@
 
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
-#include "cvmx-pko.h"
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-config.h>
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-helper.h>
 
 /**
  * Internal state of packet output
@@ -54,7 +54,7 @@ void cvmx_pko_initialize_global(void)
        /*
         * Set the size of the PKO command buffers to an odd number of
         * 64bit words. This allows the normal two word send to stay
-        * aligned and never span a command word buffer.
+        * aligned and never span a comamnd word buffer.
         */
        config.u64 = 0;
        config.s.pool = CVMX_FPA_OUTPUT_BUFFER_POOL;
similarity index 99%
rename from drivers/staging/octeon/cvmx-spi.c
rename to arch/mips/cavium-octeon/executive/cvmx-spi.c
index 82794d920cec9f405f1404e9d2f9b23ddd01cf1d..74afb1710cd98767d29837d0f9ed1630e5ebb5e9 100644 (file)
  */
 #include <asm/octeon/octeon.h>
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
-#include "cvmx-pko.h"
-#include "cvmx-spi.h"
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-spi.h>
 
-#include "cvmx-spxx-defs.h"
-#include "cvmx-stxx-defs.h"
-#include "cvmx-srxx-defs.h"
+#include <asm/octeon/cvmx-spxx-defs.h>
+#include <asm/octeon/cvmx-stxx-defs.h>
+#include <asm/octeon/cvmx-srxx-defs.h>
 
 #define INVOKE_CB(function_p, args...)         \
        do {                                    \
similarity index 99%
rename from drivers/staging/octeon/cvmx-config.h
rename to arch/mips/include/asm/octeon/cvmx-config.h
index 078a520481cf8d140070914c37f987d5c9f2ebbc..26835d1b43b87633f0d4ebbcfa09947fd33c6112 100644 (file)
@@ -166,4 +166,3 @@ typedef enum {
 #define CVMX_HELPER_DISABLE_RGMII_BACKPRESSURE 0
 
 #endif /* __CVMX_CONFIG_H__ */
-
index fc850bac88c152f37ce4d05682d7c3e77f71d851..9012dee0c348325a4d25668ff54610d6c1aac52d 100644 (file)
@@ -20,9 +20,4 @@ octeon-ethernet-y += ethernet-sgmii.o
 octeon-ethernet-y += ethernet-spi.o
 octeon-ethernet-y += ethernet-tx.o
 octeon-ethernet-y += ethernet-xaui.o
-octeon-ethernet-y += cvmx-pko.o cvmx-spi.o cvmx-cmd-queue.o \
-       cvmx-helper-board.o cvmx-helper.o cvmx-helper-xaui.o \
-       cvmx-helper-rgmii.o cvmx-helper-sgmii.o cvmx-helper-npi.o \
-       cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \
-       cvmx-interrupt-decodes.o cvmx-interrupt-rsl.o
 
diff --git a/drivers/staging/octeon/cvmx-packet.h b/drivers/staging/octeon/cvmx-packet.h
deleted file mode 100644 (file)
index 62ffe78..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/***********************license start***************
- * Author: Cavium Networks
- *
- * Contact: support@caviumnetworks.com
- * This file is part of the OCTEON SDK
- *
- * Copyright (c) 2003-2008 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**************************************/
-
-/**
- *
- * Packet buffer defines.
- */
-
-#ifndef __CVMX_PACKET_H__
-#define __CVMX_PACKET_H__
-
-/**
- * This structure defines a buffer pointer on Octeon
- */
-union cvmx_buf_ptr {
-       void *ptr;
-       uint64_t u64;
-       struct {
-               /*
-                * if set, invert the "free" pick of the overall
-                * packet. HW always sets this bit to 0 on inbound
-                * packet
-                */
-               uint64_t i:1;
-               /*
-                * Indicates the amount to back up to get to the
-                * buffer start in cache lines. In most cases this is
-                * less than one complete cache line, so the value is
-                * zero.
-                */
-               uint64_t back:4;
-               /* The pool that the buffer came from / goes to */
-               uint64_t pool:3;
-               /* The size of the segment pointed to by addr (in bytes) */
-               uint64_t size:16;
-               /* Pointer to the first byte of the data, NOT buffer */
-               uint64_t addr:40;
-       } s;
-};
-
-#endif /*  __CVMX_PACKET_H__ */
diff --git a/drivers/staging/octeon/cvmx-smix-defs.h b/drivers/staging/octeon/cvmx-smix-defs.h
deleted file mode 100644 (file)
index 9ae45fc..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-/***********************license start***************
- * Author: Cavium Networks
- *
- * Contact: support@caviumnetworks.com
- * This file is part of the OCTEON SDK
- *
- * Copyright (c) 2003-2008 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_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))
-
-union cvmx_smix_clk {
-       uint64_t u64;
-       struct cvmx_smix_clk_s {
-               uint64_t reserved_25_63:39;
-               uint64_t mode:1;
-               uint64_t reserved_21_23:3;
-               uint64_t sample_hi:5;
-               uint64_t sample_mode:1;
-               uint64_t reserved_14_14:1;
-               uint64_t clk_idle:1;
-               uint64_t preamble:1;
-               uint64_t sample:4;
-               uint64_t phase:8;
-       } s;
-       struct cvmx_smix_clk_cn30xx {
-               uint64_t reserved_21_63:43;
-               uint64_t sample_hi:5;
-               uint64_t reserved_14_15:2;
-               uint64_t clk_idle:1;
-               uint64_t preamble:1;
-               uint64_t sample:4;
-               uint64_t phase:8;
-       } cn30xx;
-       struct cvmx_smix_clk_cn30xx cn31xx;
-       struct cvmx_smix_clk_cn30xx cn38xx;
-       struct cvmx_smix_clk_cn30xx cn38xxp2;
-       struct cvmx_smix_clk_cn50xx {
-               uint64_t reserved_25_63:39;
-               uint64_t mode:1;
-               uint64_t reserved_21_23:3;
-               uint64_t sample_hi:5;
-               uint64_t reserved_14_15:2;
-               uint64_t clk_idle:1;
-               uint64_t preamble:1;
-               uint64_t sample:4;
-               uint64_t phase:8;
-       } cn50xx;
-       struct cvmx_smix_clk_s cn52xx;
-       struct cvmx_smix_clk_cn50xx cn52xxp1;
-       struct cvmx_smix_clk_s cn56xx;
-       struct cvmx_smix_clk_cn50xx cn56xxp1;
-       struct cvmx_smix_clk_cn30xx cn58xx;
-       struct cvmx_smix_clk_cn30xx cn58xxp1;
-};
-
-union cvmx_smix_cmd {
-       uint64_t u64;
-       struct cvmx_smix_cmd_s {
-               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;
-       } s;
-       struct cvmx_smix_cmd_cn30xx {
-               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;
-       } cn30xx;
-       struct cvmx_smix_cmd_cn30xx cn31xx;
-       struct cvmx_smix_cmd_cn30xx cn38xx;
-       struct cvmx_smix_cmd_cn30xx cn38xxp2;
-       struct cvmx_smix_cmd_s cn50xx;
-       struct cvmx_smix_cmd_s cn52xx;
-       struct cvmx_smix_cmd_s cn52xxp1;
-       struct cvmx_smix_cmd_s cn56xx;
-       struct cvmx_smix_cmd_s cn56xxp1;
-       struct cvmx_smix_cmd_cn30xx cn58xx;
-       struct cvmx_smix_cmd_cn30xx cn58xxp1;
-};
-
-union cvmx_smix_en {
-       uint64_t u64;
-       struct cvmx_smix_en_s {
-               uint64_t reserved_1_63:63;
-               uint64_t en:1;
-       } s;
-       struct cvmx_smix_en_s cn30xx;
-       struct cvmx_smix_en_s cn31xx;
-       struct cvmx_smix_en_s cn38xx;
-       struct cvmx_smix_en_s cn38xxp2;
-       struct cvmx_smix_en_s cn50xx;
-       struct cvmx_smix_en_s cn52xx;
-       struct cvmx_smix_en_s cn52xxp1;
-       struct cvmx_smix_en_s cn56xx;
-       struct cvmx_smix_en_s cn56xxp1;
-       struct cvmx_smix_en_s cn58xx;
-       struct cvmx_smix_en_s cn58xxp1;
-};
-
-union cvmx_smix_rd_dat {
-       uint64_t u64;
-       struct cvmx_smix_rd_dat_s {
-               uint64_t reserved_18_63:46;
-               uint64_t pending:1;
-               uint64_t val:1;
-               uint64_t dat:16;
-       } s;
-       struct cvmx_smix_rd_dat_s cn30xx;
-       struct cvmx_smix_rd_dat_s cn31xx;
-       struct cvmx_smix_rd_dat_s cn38xx;
-       struct cvmx_smix_rd_dat_s cn38xxp2;
-       struct cvmx_smix_rd_dat_s cn50xx;
-       struct cvmx_smix_rd_dat_s cn52xx;
-       struct cvmx_smix_rd_dat_s cn52xxp1;
-       struct cvmx_smix_rd_dat_s cn56xx;
-       struct cvmx_smix_rd_dat_s cn56xxp1;
-       struct cvmx_smix_rd_dat_s cn58xx;
-       struct cvmx_smix_rd_dat_s cn58xxp1;
-};
-
-union cvmx_smix_wr_dat {
-       uint64_t u64;
-       struct cvmx_smix_wr_dat_s {
-               uint64_t reserved_18_63:46;
-               uint64_t pending:1;
-               uint64_t val:1;
-               uint64_t dat:16;
-       } s;
-       struct cvmx_smix_wr_dat_s cn30xx;
-       struct cvmx_smix_wr_dat_s cn31xx;
-       struct cvmx_smix_wr_dat_s cn38xx;
-       struct cvmx_smix_wr_dat_s cn38xxp2;
-       struct cvmx_smix_wr_dat_s cn50xx;
-       struct cvmx_smix_wr_dat_s cn52xx;
-       struct cvmx_smix_wr_dat_s cn52xxp1;
-       struct cvmx_smix_wr_dat_s cn56xx;
-       struct cvmx_smix_wr_dat_s cn56xxp1;
-       struct cvmx_smix_wr_dat_s cn58xx;
-       struct cvmx_smix_wr_dat_s cn58xxp1;
-};
-
-#endif
index 6a2cd50a17dfe0e4f76747ea67d10f6285c597c2..bdaec8d2ca0c18f0562c76fb8fbaaa8e45d4aa2e 100644 (file)
@@ -59,7 +59,7 @@
 #ifndef __ETHERNET_DEFINES_H__
 #define __ETHERNET_DEFINES_H__
 
-#include "cvmx-config.h"
+#include <asm/octeon/cvmx-config.h>
 
 
 #define OCTEON_ETHERNET_VERSION "1.9"
index f18e3e140413c4a0a5b5a48197c5a1e08557c134..63800ba71d06534f4ff7ff8cc8bfa064738e96ee 100644 (file)
@@ -38,9 +38,9 @@
 #include "ethernet-mdio.h"
 #include "ethernet-util.h"
 
-#include "cvmx-helper-board.h"
+#include <asm/octeon/cvmx-helper-board.h>
 
-#include "cvmx-smix-defs.h"
+#include <asm/octeon/cvmx-smix-defs.h>
 
 static void cvm_oct_get_drvinfo(struct net_device *dev,
                                struct ethtool_drvinfo *info)
index 635bb86cdcff38297e7d9a2201f3b35544977c20..78b6cb7437695a2f36a3d04adcb338346596b37c 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "ethernet-defines.h"
 
-#include "cvmx-fpa.h"
+#include <asm/octeon/cvmx-fpa.h>
 
 /**
  * cvm_oct_fill_hw_skbuff - fill the supplied hardware pool with skbuffs
index c3d73f8431ae88f3cc7604ac603aabd36ae26a29..d8f5f694ec35532055781ff48b6edd79f4e502cd 100644 (file)
 #include "octeon-ethernet.h"
 #include "ethernet-util.h"
 
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-helper.h>
 
 #include <asm/octeon/cvmx-ipd-defs.h>
 #include <asm/octeon/cvmx-npi-defs.h>
-#include "cvmx-gmxx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
 
 DEFINE_SPINLOCK(global_register_lock);
 
index 8b307b428791915799f06298ce746b5ce002ecf5..400df8cbee538b55a50e7baa92ceb18cae9e28c5 100644 (file)
 #include "octeon-ethernet.h"
 #include "ethernet-util.h"
 
-#include "cvmx-helper.h"
-#include "cvmx-wqe.h"
-#include "cvmx-fau.h"
-#include "cvmx-pow.h"
-#include "cvmx-pip.h"
-#include "cvmx-scratch.h"
-
-#include "cvmx-gmxx-defs.h"
+#include <asm/octeon/cvmx-helper.h>
+#include <asm/octeon/cvmx-wqe.h>
+#include <asm/octeon/cvmx-fau.h>
+#include <asm/octeon/cvmx-pow.h>
+#include <asm/octeon/cvmx-pip.h>
+#include <asm/octeon/cvmx-scratch.h>
+
+#include <asm/octeon/cvmx-gmxx-defs.h>
 
 struct cvm_napi_wrapper {
        struct napi_struct napi;
index a0743b85d54e754aa05014645f2f1e55678da7e2..9240c85ce24178e5a6d7f0199ac503f0e32af8c1 100644 (file)
@@ -24,7 +24,7 @@
  * This file may also be available under a different license from Cavium.
  * Contact Cavium Networks for more information
 *********************************************************************/
-#include "cvmx-fau.h"
+#include <asm/octeon/cvmx-fau.h>
 
 void cvm_oct_poll_controller(struct net_device *dev);
 void cvm_oct_rx_initialize(void);
index 5e148b512c97590ece781be25c61801731a18696..d3e82430eba6e081f9b19348fb8363cec41c911b 100644 (file)
@@ -35,9 +35,9 @@
 #include "octeon-ethernet.h"
 #include "ethernet-util.h"
 
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-helper.h>
 
-#include "cvmx-gmxx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
 
 int cvm_oct_sgmii_open(struct net_device *dev)
 {
index d0e2d514968a6f864f5fbda312a854e2a1cc414c..af8d62818f13b56e05ada09aedd9f64c4d1da1f0 100644 (file)
 #include "octeon-ethernet.h"
 #include "ethernet-util.h"
 
-#include "cvmx-spi.h"
+#include <asm/octeon/cvmx-spi.h>
 
 #include <asm/octeon/cvmx-npi-defs.h>
-#include "cvmx-spxx-defs.h"
-#include "cvmx-stxx-defs.h"
+#include <asm/octeon/cvmx-spxx-defs.h>
+#include <asm/octeon/cvmx-stxx-defs.h>
 
 static int number_spi_ports;
 static int need_retrain[2] = { 0, 0 };
index b445cd63f901dc4299d55eef54c6675151d8387a..00bdda537aab7a7cf62017deab37b7cb5eb73ae9 100644 (file)
 #include "ethernet-tx.h"
 #include "ethernet-util.h"
 
-#include "cvmx-wqe.h"
-#include "cvmx-fau.h"
-#include "cvmx-pip.h"
-#include "cvmx-pko.h"
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-wqe.h>
+#include <asm/octeon/cvmx-fau.h>
+#include <asm/octeon/cvmx-pip.h>
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-helper.h>
 
-#include "cvmx-gmxx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
 
 #define CVM_OCT_SKB_CB(skb)    ((u64 *)((skb)->cb))
 
index 861a4b3fe8576db59088fe0d4f8191a6c43f80b4..419f8c34ecdf1cbbba2a33431d827656867d64dd 100644 (file)
@@ -35,9 +35,9 @@
 #include "octeon-ethernet.h"
 #include "ethernet-util.h"
 
-#include "cvmx-helper.h"
+#include <asm/octeon/cvmx-helper.h>
 
-#include "cvmx-gmxx-defs.h"
+#include <asm/octeon/cvmx-gmxx-defs.h>
 
 int cvm_oct_xaui_open(struct net_device *dev)
 {
index 076f86675ce68878d61acae0271ff76f0c380186..9112cd8821540f692acfd5559183ad125459f73c 100644 (file)
 #include "ethernet-mdio.h"
 #include "ethernet-util.h"
 
-#include "cvmx-pip.h"
-#include "cvmx-pko.h"
-#include "cvmx-fau.h"
-#include "cvmx-ipd.h"
-#include "cvmx-helper.h"
-
-#include "cvmx-gmxx-defs.h"
-#include "cvmx-smix-defs.h"
+#include <asm/octeon/cvmx-pip.h>
+#include <asm/octeon/cvmx-pko.h>
+#include <asm/octeon/cvmx-fau.h>
+#include <asm/octeon/cvmx-ipd.h>
+#include <asm/octeon/cvmx-helper.h>
+
+#include <asm/octeon/cvmx-gmxx-defs.h>
+#include <asm/octeon/cvmx-smix-defs.h>
 
 #if defined(CONFIG_CAVIUM_OCTEON_NUM_PACKET_BUFFERS) \
        && CONFIG_CAVIUM_OCTEON_NUM_PACKET_BUFFERS