[arch-commits] Commit in r8168/repos (5 files)
Date: Thursday, September 8, 2022 @ 18:55:58 Author: heftig Revision: 1296887 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1296882, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1296883, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1296883, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1296882, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-09-08 18:55:58 UTC (rev 1296887) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=25 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp))
[arch-commits] Commit in r8168/repos (5 files)
Date: Monday, September 5, 2022 @ 18:38:39 Author: heftig Revision: 1293100 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1293094, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1293095, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1293095, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1293094, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-09-05 18:38:39 UTC (rev 1293100) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=24 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp)) Copied:
[arch-commits] Commit in r8168/repos (5 files)
Date: Wednesday, August 31, 2022 @ 22:51:14 Author: heftig Revision: 1289746 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1289742, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1289743, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1289743, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1289742, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-31 22:51:14 UTC (rev 1289746) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=23 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp))
[arch-commits] Commit in r8168/repos (5 files)
Date: Monday, August 29, 2022 @ 16:22:51 Author: heftig Revision: 1285411 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1285406, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1285406, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1285407, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1285406, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-29 16:22:51 UTC (rev 1285411) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=22 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp)) Copied:
[arch-commits] Commit in r8168/repos (5 files)
Date: Thursday, August 25, 2022 @ 18:24:10 Author: heftig Revision: 1279824 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1279819, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1279819, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1279819, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1279819, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-25 18:24:10 UTC (rev 1279824) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=21 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp)) Copied:
[arch-commits] Commit in r8168/repos (5 files)
Date: Sunday, August 21, 2022 @ 19:36:23 Author: heftig Revision: 1273547 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1273541, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1273541, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1273541, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1273541, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-21 19:36:23 UTC (rev 1273547) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=20 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp)) Copied:
[arch-commits] Commit in r8168/repos (5 files)
Date: Saturday, August 20, 2022 @ 19:43:16 Author: freswa Revision: 1271149 archrelease: copy trunk to community-staging-x86_64 Added: r8168/repos/community-staging-x86_64/ r8168/repos/community-staging-x86_64/PKGBUILD (from rev 1271148, r8168/trunk/PKGBUILD) r8168/repos/community-staging-x86_64/keys/ r8168/repos/community-staging-x86_64/linux518.patch (from rev 1271148, r8168/trunk/linux518.patch) r8168/repos/community-staging-x86_64/linux519.patch (from rev 1271148, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 1271148, r8168/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-20 19:43:16 UTC (rev 1271149) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=19 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp)) Copied:
[arch-commits] Commit in r8168/repos (5 files)
Date: Wednesday, August 17, 2022 @ 14:51:42 Author: heftig Revision: 1266730 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1266727, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1266727, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1266727, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1266727, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-17 14:51:42 UTC (rev 1266730) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=18 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp))
[arch-commits] Commit in r8168/repos (5 files)
Date: Saturday, August 6, 2022 @ 14:09:11 Author: heftig Revision: 1260401 archrelease: copy trunk to community-testing-x86_64 Added: r8168/repos/community-testing-x86_64/ r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1260396, r8168/trunk/PKGBUILD) r8168/repos/community-testing-x86_64/keys/ r8168/repos/community-testing-x86_64/linux518.patch (from rev 1260397, r8168/trunk/linux518.patch) r8168/repos/community-testing-x86_64/linux519.patch (from rev 1260397, r8168/trunk/linux519.patch) + PKGBUILD | 55 +++ linux518.patch | 52 linux519.patch | 41 + 3 files changed, 148 insertions(+) Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 1260396, r8168/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-06 14:09:11 UTC (rev 1260401) @@ -0,0 +1,55 @@ +# Maintainer: Massimiliano Torromeo +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip , Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.050.03 +pkgrel=16 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw; +license=("GPL") +arch=('x86_64') +makedepends=('linux-headers') +source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz + https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc +linux518.patch linux519.patch) +sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6' +'SKIP' +'d8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096' +'f5e08919764bc56d4f11b23fcb7cece663cae3f591992a0ca2be760e6890a9f8') +validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo + +prepare() { + cd "$pkgname-$pkgver" + patch -Np1 -i ../linux518.patch + patch -Np1 -i ../linux519.patch +} + +build() { + cd "$pkgname-$pkgver" + # avoid using the Makefile directly -- it doesn't understand + # any kernel but the current. + make -C /usr/src/linux M="$PWD/src" \ + ENABLE_USE_FIRMWARE_FILE=y \ + CONFIG_R8168_NAPI=y \ + CONFIG_R8168_VLAN=y \ + CONFIG_ASPM=y \ + ENABLE_S5WOL=y \ + ENABLE_EEE=y \ + modules +} + +package() { + depends=('glibc' 'linux') + + local extradir=/usr/lib/modules/$(opts2 = 0; + while (1) { + memset(tmpAddr, pattern++, len - 14); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, +le64_to_cpu(mapping), +len, DMA_TO_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), ++ le64_to_cpu(mapping), ++ len, DMA_TO_DEVICE); ++#endif + txd->opts1 = cpu_to_le32(DescOwn | FirstFrag | LastFrag | len); + + RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) | AcceptMyPhys); +@@ -3726,7 +3732,11 @@ + if (rx_len == len) { + dma_sync_single_for_cpu(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); + i = memcmp(skb->data, rx_skb->data, rx_len); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + pci_dma_sync_single_for_device(tp->pci_dev, le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#else ++dma_sync_single_for_device(tp_to_dev(tp), le64_to_cpu(rxd->addr), tp->rx_buf_sz, DMA_FROM_DEVICE); ++#endif + if (i == 0) { + // dev_printk(KERN_INFO, tp_to_dev(tp), "loopback test finished\n",rx_len,len); + break; +@@ -26403,11 +26413,20 @@ + + if ((sizeof(dma_addr_t) > 4) && + use_dac && ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { ++#else ++!dma_set_mask(>dev, DMA_BIT_MASK(64)) && ++!dma_set_coherent_mask(>dev, DMA_BIT_MASK(64))) { ++#endif + dev->features |= NETIF_F_HIGHDMA; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); ++#else ++rc = dma_set_mask(>dev, DMA_BIT_MASK(32)); ++#endif + if (rc < 0) { + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) + if (netif_msg_probe(tp)) Copied: