xref: /freebsd/sys/modules/felix/Makefile (revision 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
1451bcf1bSMarcin Wojtas#-
2*4d846d26SWarner Losh# SPDX-License-Identifier: BSD-2-Clause
3451bcf1bSMarcin Wojtas#
4451bcf1bSMarcin Wojtas# Copyright (c) 2021 Alstom Group.
5451bcf1bSMarcin Wojtas# Copyright (c) 2021 Semihalf.
6451bcf1bSMarcin Wojtas#
7451bcf1bSMarcin Wojtas# Redistribution and use in source and binary forms, with or without
8451bcf1bSMarcin Wojtas# modification, are permitted provided that the following conditions
9451bcf1bSMarcin Wojtas# are met:
10451bcf1bSMarcin Wojtas# 1. Redistributions of source code must retain the above copyright
11451bcf1bSMarcin Wojtas#    notice, this list of conditions and the following disclaimer.
12451bcf1bSMarcin Wojtas# 2. Redistributions in binary form must reproduce the above copyright
13451bcf1bSMarcin Wojtas#    notice, this list of conditions and the following disclaimer in the
14451bcf1bSMarcin Wojtas#    documentation and/or other materials provided with the distribution.
15451bcf1bSMarcin Wojtas#
16451bcf1bSMarcin Wojtas# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17451bcf1bSMarcin Wojtas# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18451bcf1bSMarcin Wojtas# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19451bcf1bSMarcin Wojtas# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20451bcf1bSMarcin Wojtas# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21451bcf1bSMarcin Wojtas# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22451bcf1bSMarcin Wojtas# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23451bcf1bSMarcin Wojtas# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24451bcf1bSMarcin Wojtas# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25451bcf1bSMarcin Wojtas# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26451bcf1bSMarcin Wojtas# SUCH DAMAGE.
27451bcf1bSMarcin Wojtas#
28451bcf1bSMarcin Wojtas
29451bcf1bSMarcin Wojtas.PATH:	${SRCTOP}/sys/dev/etherswitch/felix
3029cf6a79SKornel Duleba.PATH:	${SRCTOP}/sys/dev/enetc
31451bcf1bSMarcin Wojtas
32451bcf1bSMarcin WojtasKMOD	= felix
3329cf6a79SKornel DulebaSRCS	= felix.c enetc_mdio.c
34b111430eSWarner LoshSRCS	+= bus_if.h device_if.h etherswitch_if.h miibus_if.h ofw_bus_if.h pci_if.h opt_platform.h
35451bcf1bSMarcin Wojtas
36451bcf1bSMarcin Wojtas.include <bsd.kmod.mk>
37