Configure the PCIe Nic indicator

Source: Internet
Author: User

PCIe Nic schematic, with Act (flash) configured with led0 pins, and link 1000 m configured with led3

100000000001000 = 0x4008

// LZM: 2011/8/6
/*
PCIe Nic schematic, with Act (flash) configured with led0 pins, and link 1000 m configured with led3

100000000001000 = 0x4008
*/
Static void rtl8168_customized_leds (struct rtl8168_private * TP)
{
Void _ iomem * ioaddr = TP-> mmio_addr;
Printk ("----- _ line __: % d, _ FUNCTION __: % s ------ \ n" ,__ line __, _ function __);
// Disable Reg Protection
Rtl_w8 (20179346, 2017910000_unlock );
If (! (Rtl_r8 (config4) & 0x40 ))
{
// Enable customized LEDs
Rtl_w8 (config4, rtl_r8 (config4) | 0x40 );
}
Rtl_w16 (customled, 0x4008 );

// disable customized LEDs
rtl_w8 (config3, rtl_r8 (config3 )&~ 0x40);
// enable Reg Protection
rtl_w8 (20179346, 2017910000_lock);
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.