资源简介
在安装ubuntu18.04.1时,不能上网,原因是网卡与驱动不能匹配,在官网下载进入死循环,一直下载不成功,这里分享该网卡的驱动提供网友下载(我使用的是RTL8111/8168/8411网卡)。当然还有一种方式是使用18.04.2的系统,该系统解决了该问题。
代码片段和文件信息
/*
################################################################################
#
# r8168 is the Linux device driver released for Realtek Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2018 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it 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 program 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 .
#
# Author:
# Realtek NIC software team
# No. 2 Innovation Road II Hsinchu Science Park Hsinchu 300 Taiwan
#
################################################################################
*/
/************************************************************************************
* This product is covered by one or more of the following patents:
* US6570884 US6115776 and US6327625.
***********************************************************************************/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include nk.h>
#include
#include “r8168.h“
#include “r8168_asf.h“
#include “rtl_eeprom.h“
int rtl8168_asf_ioctl(struct net_device *dev
struct ifreq *ifr)
{
struct rtl8168_private *tp = netdev_priv(dev);
void __iomem *ioaddr = tp->mmio_addr;
void *user_data = ifr->ifr_data;
struct asf_ioctl_struct asf_usrdata;
if (tp->mcfg != CFG_METHOD_7 && tp->mcfg != CFG_METHOD_8)
return -EOPNOTSUPP;
if (copy_from_user(&asf_usrdata user_data sizeof(struct asf_ioctl_struct)))
return -EFAULT;
switch (asf_usrdata.offset) {
case HBPeriod:
rtl8168_asf_hbperiod(ioaddr asf_usrdata.arg asf_usrdata.u.data);
break;
case WD8Timer:
break;
case WD16Rst:
rtl8168_asf_wd16rst(ioaddr asf_usrdata.arg asf_usrdata.u.data);
break;
case WD8Rst:
rtl8168_asf_time_period(ioaddr asf_usrdata.arg WD8Rst asf_usrdata.u.data);
break;
case LSnsrPollCycle:
rtl8168_asf_time_period(ioaddr asf_usrdata.arg LSnsrPollCycle asf_usrdata.u.data);
相关资源
- ubuntu9.10 可加载内核模块和字符设备驱
- Ubuntu安装时磁盘分区图文教程
- RTL8111 8168等网卡刷mac地址工具软件
- 周立功PCI CAN卡LINUX驱动ubuntu16.04内核
- 无法进入桌面ubuntu18.04
- Ubuntu下操作Excel,qt代码
- 磊科nw336Ubuntu驱动
- opencv3.0交叉编译用parallel.cpp
- ubuntu linux 指南 基础篇+管理篇
- 安装linux后的mbr修复工具(含64位)
- linuxubuntu下ffmpeg + alsa 的音频播放器
- RTL8111/8168/8411 ubuntu驱动
- zedboard ubuntu16.04文件系统
- 16.04ubuntu系统配置过程
- 张正友相机标定自己编写calibratie函数
- Ubuntu16.04中配置Qt5.9.1和OpenCV3.4.0过程
- 搭建OMAPL138的Linux开发环境 LINUX交叉编
- NS2工作环境安装图文详解
- Ubuntu使用手册(中文)
- Linux 基础教程 基于ubuntu
- wubi.exe用于安装ubuntu系统的工具
- libncurses5-dev for Ubuntu 10.04 amd64
- ubuntu16.04 64位版迅雷
- gcc-3.4-ubuntu.tar.gz
- Ubuntu完全教程 .pdf
- LINUX 离线安装NFS
- ubuntu 经典书籍2本
- 使用remastersys自制Ubuntu镜像
- ubuntu菜鸟教程
- synergy Ubuntu16.04版和window10局域网下使
评论
共有 条评论