Linux Network device driver programming (4)

Source: Internet
Author: User

Four. DM9000 Network card driver Depth analysis

1. Initialization of the DM9000

Dm9000_init ()

{

1. Assigning Net_device Structures

2. Get the address break number from the Platform_device

3. Map the acquired address to the virtual address operation function Io_remp ()

4. Read the chip type

5. Set the number of operating functions

6. Register the network card driver register

}

2. Dm9000_open ()

{

1. Ifconfig eth0 up

}

3. Dm9000_xmit ()

{

1. Notify the Protocol line, pause the function that transmits data to drive Netif-stop-queue

2. Length of write sent data

3. Write data to be sent

4. Start the Send

5. Wait for Send to end

}

Linux Network device driver programming (4)

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.