Skip to content

Commit

Permalink
More modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelavenuto committed Jul 21, 2022
1 parent 4f6454d commit 191cd54
Show file tree
Hide file tree
Showing 396 changed files with 329,847 additions and 57,373 deletions.
Binary file modified apollolake-4.4.180/alx.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/atl1c.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/atl1e.ko
Binary file not shown.
Binary file added apollolake-4.4.180/auxiliary.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/e1000e.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/i40e.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/igb.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/ixgbe.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/skge.ko
Binary file not shown.
Binary file modified apollolake-4.4.180/sky2.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/alx.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/atl1c.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/atl1e.ko
Binary file not shown.
Binary file added broadwell-4.4.180/auxiliary.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/e1000e.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/i40e.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/igb.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/ixgbe.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/skge.ko
Binary file not shown.
Binary file modified broadwell-4.4.180/sky2.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/alx.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/atl1c.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/atl1e.ko
Binary file not shown.
Binary file added broadwellnk-4.4.180/auxiliary.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/e1000e.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/i40e.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/igb.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/ixgbe.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/skge.ko
Binary file not shown.
Binary file modified broadwellnk-4.4.180/sky2.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/alx.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/atl1c.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/atl1e.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/e1000e.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/igb.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/ixgbe.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/skge.ko
Binary file not shown.
Binary file modified bromolow-3.10.108/sky2.ko
Binary file not shown.
Binary file modified denverton-4.4.180/alx.ko
Binary file not shown.
Binary file modified denverton-4.4.180/atl1c.ko
Binary file not shown.
Binary file modified denverton-4.4.180/atl1e.ko
Binary file not shown.
Binary file added denverton-4.4.180/auxiliary.ko
Binary file not shown.
Binary file modified denverton-4.4.180/e1000e.ko
Binary file not shown.
Binary file modified denverton-4.4.180/i40e.ko
Binary file not shown.
Binary file modified denverton-4.4.180/igb.ko
Binary file not shown.
Binary file modified denverton-4.4.180/ixgbe.ko
Binary file not shown.
Binary file modified denverton-4.4.180/skge.ko
Binary file not shown.
Binary file modified denverton-4.4.180/sky2.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/alx.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/atl1c.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/atl1e.ko
Binary file not shown.
Binary file added geminilake-4.4.180/auxiliary.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/e1000e.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/i40e.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/igb.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/ixgbe.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/skge.ko
Binary file not shown.
Binary file modified geminilake-4.4.180/sky2.ko
Binary file not shown.
16 changes: 12 additions & 4 deletions src/.compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

set -e

for i in apollolake-4.4.180 broadwell-4.4.180 broadwellnk-4.4.180 bromolow-3.10.108 denverton-4.4.180 geminilake-4.4.180 v1000-4.4.180
if [ ! -d "${PWD}/${1}" ]; then
echo "Module dir not found!"
exit 1
fi

for i in bromolow-3.10.108 apollolake-4.4.180 broadwell-4.4.180 broadwellnk-4.4.180 denverton-4.4.180 geminilake-4.4.180 v1000-4.4.180
do
PLATFORM=`echo $i | cut -d'-' -f1`
docker run -u 1000 --rm -it -v $PWD/$1/4.x:/input -v $PWD/../$i:/output fbelavenuto/syno-compiler compile-module $PLATFORM
PLATFORM=`echo ${i} | cut -d'-' -f1`
KVER=`echo ${i} | cut -d'-' -f2`
DIR="${KVER:0:1}.x"
if [ -d "${PWD}/${1}/${DIR}" ]; then
docker run -u 1000 --rm -it -v "${PWD}/${1}/${DIR}":/input -v "${PWD}/../${i}":/output fbelavenuto/syno-compiler compile-module ${PLATFORM}
fi
done
docker run -u 1000 --rm -it -v $PWD/$1/3.x:/input -v $PWD/../$i:/output fbelavenuto/syno-compiler compile-module bromolow
3 changes: 3 additions & 0 deletions src/alx/3.x/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
obj-m += alx.o
alx-objs := main.o ethtool.o hw.o
ccflags-y += -D__CHECK_ENDIAN__
114 changes: 114 additions & 0 deletions src/alx/3.x/alx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*
* Copyright (c) 2013 Johannes Berg <[email protected]>
*
* This file is free software: you may copy, redistribute and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 2 of the License, or (at your
* option) any later version.
*
* This file is distributed in the hope that 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, see <http://www.gnu.org/licenses/>.
*
* This file incorporates work covered by the following copyright and
* permission notice:
*
* Copyright (c) 2012 Qualcomm Atheros, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#ifndef _ALX_H_
#define _ALX_H_

#include <linux/types.h>
#include <linux/etherdevice.h>
#include <linux/dma-mapping.h>
#include <linux/spinlock.h>
#include "hw.h"

#define ALX_WATCHDOG_TIME (5 * HZ)

struct alx_buffer {
struct sk_buff *skb;
DEFINE_DMA_UNMAP_ADDR(dma);
DEFINE_DMA_UNMAP_LEN(size);
};

struct alx_rx_queue {
struct alx_rrd *rrd;
dma_addr_t rrd_dma;

struct alx_rfd *rfd;
dma_addr_t rfd_dma;

struct alx_buffer *bufs;

u16 write_idx, read_idx;
u16 rrd_read_idx;
};
#define ALX_RX_ALLOC_THRESH 32

struct alx_tx_queue {
struct alx_txd *tpd;
dma_addr_t tpd_dma;
struct alx_buffer *bufs;
u16 write_idx, read_idx;
};

#define ALX_DEFAULT_TX_WORK 128

enum alx_device_quirks {
ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG = BIT(0),
};

struct alx_priv {
struct net_device *dev;

struct alx_hw hw;

/* all descriptor memory */
struct {
dma_addr_t dma;
void *virt;
int size;
} descmem;

/* protect int_mask updates */
spinlock_t irq_lock;
u32 int_mask;

int tx_ringsz;
int rx_ringsz;
int rxbuf_size;

struct napi_struct napi;
struct alx_tx_queue txq;
struct alx_rx_queue rxq;

struct work_struct link_check_wk;
struct work_struct reset_wk;

u16 msg_enable;

bool msi;
};

extern const struct ethtool_ops alx_ethtool_ops;
extern const char alx_drv_name[];

#endif
Loading

0 comments on commit 191cd54

Please sign in to comment.