91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

華碩 PRIME Z370-P II realtek RTL8111H 千兆網(wǎng)卡 18.04 內(nèi)核4.15.55,操作系統(tǒng)ubuntu18.04

資源截圖

代碼片段和文件信息

/*
################################################################################
#
#?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);

評論

共有 條評論

相關(guān)資源