资源简介
在安装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);
相关资源
- 安装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局域网下使
- vgg_generated_48(6480120).i
- ubuntu下的qt音乐播放器
- remastersys_3.0.4-2_all.deb和remastersys-gui_
- gcc-3.4 ubuntu安装包
- 淘宝数据挖掘和数据分析
- secureCRT for ubuntu14.04 and crack
- Jetson-TX2手动安装CUDA和Cudnn.pdf
- net-core磊科NW392无线网卡Linux系统驱动
- 安装ttf-mscorefonts-installer所需字体
评论
共有 条评论