felix.c (375e131429219486e581df8bd11b0dff87f0895a) felix.c (84705fc165526e8e55d208b2b10a48cc720a106a)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2019 NXP Semiconductors
3 *
4 * This is an umbrella module for all network switches that are
5 * register-compatible with Ocelot and that perform I/O to their host CPU
6 * through an NPI (Node Processor Interface) Ethernet port.
7 */
8#include <uapi/linux/if_bridge.h>
9#include <soc/mscc/ocelot_vcap.h>
10#include <soc/mscc/ocelot_qsys.h>
11#include <soc/mscc/ocelot_sys.h>
12#include <soc/mscc/ocelot_dev.h>
13#include <soc/mscc/ocelot_ana.h>
14#include <soc/mscc/ocelot_ptp.h>
15#include <soc/mscc/ocelot.h>
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2019 NXP Semiconductors
3 *
4 * This is an umbrella module for all network switches that are
5 * register-compatible with Ocelot and that perform I/O to their host CPU
6 * through an NPI (Node Processor Interface) Ethernet port.
7 */
8#include <uapi/linux/if_bridge.h>
9#include <soc/mscc/ocelot_vcap.h>
10#include <soc/mscc/ocelot_qsys.h>
11#include <soc/mscc/ocelot_sys.h>
12#include <soc/mscc/ocelot_dev.h>
13#include <soc/mscc/ocelot_ana.h>
14#include <soc/mscc/ocelot_ptp.h>
15#include <soc/mscc/ocelot.h>
16#include <linux/platform_device.h>
16#include <linux/packing.h>
17#include <linux/module.h>
18#include <linux/of_net.h>
19#include <linux/pci.h>
20#include <linux/of.h>
21#include <net/pkt_sched.h>
22#include <net/dsa.h>
23#include "felix.h"

--- 791 unchanged lines hidden (view full) ---

815 .cls_flower_add = felix_cls_flower_add,
816 .cls_flower_del = felix_cls_flower_del,
817 .cls_flower_stats = felix_cls_flower_stats,
818 .port_setup_tc = felix_port_setup_tc,
819};
820
821static int __init felix_init(void)
822{
17#include <linux/packing.h>
18#include <linux/module.h>
19#include <linux/of_net.h>
20#include <linux/pci.h>
21#include <linux/of.h>
22#include <net/pkt_sched.h>
23#include <net/dsa.h>
24#include "felix.h"

--- 791 unchanged lines hidden (view full) ---

816 .cls_flower_add = felix_cls_flower_add,
817 .cls_flower_del = felix_cls_flower_del,
818 .cls_flower_stats = felix_cls_flower_stats,
819 .port_setup_tc = felix_port_setup_tc,
820};
821
822static int __init felix_init(void)
823{
823 return pci_register_driver(&felix_vsc9959_pci_driver);
824 int err;
825
826 err = pci_register_driver(&felix_vsc9959_pci_driver);
827 if (err)
828 return err;
829
830 err = platform_driver_register(&seville_vsc9953_driver);
831 if (err)
832 return err;
833
834 return 0;
824}
825module_init(felix_init);
826
827static void __exit felix_exit(void)
828{
829 pci_unregister_driver(&felix_vsc9959_pci_driver);
835}
836module_init(felix_init);
837
838static void __exit felix_exit(void)
839{
840 pci_unregister_driver(&felix_vsc9959_pci_driver);
841 platform_driver_unregister(&seville_vsc9953_driver);
830}
831module_exit(felix_exit);
832
833MODULE_DESCRIPTION("Felix Switch driver");
834MODULE_LICENSE("GPL v2");
842}
843module_exit(felix_exit);
844
845MODULE_DESCRIPTION("Felix Switch driver");
846MODULE_LICENSE("GPL v2");