====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
soc:2009:asdlkf:notes:rtl8169.c [2009/07/07 19:03] asdlkf |
soc:2009:asdlkf:notes:rtl8169.c [2009/07/07 19:26] (current) mdc |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code c> | + | <code> |
- | static struct net_device_operations rtl8169_operations = { | + | rtl8169_probe |
- | .open = rtl8169_open, | + | |
- | .transmit = rtl8169_transmit, | + | |
- | .poll = rtl8169_poll, | + | |
- | .close = rtl8169_close, | + | |
- | .irq = rtl8169_irq, | + | |
- | }; | + | |
- | + | ||
- | struct pci_driver rtl8169_driver __pci_driver = { | + | |
- | .ids = rtl8169_nics, | + | |
- | .id_count = ( sizeof ( rtl8169_nics ) / sizeof ( rtl8169_nics[0] ) ), | + | |
- | .probe = rtl8169_probe, | + | |
- | .remove = rtl8169_remove, | + | |
- | }; | + | |
- | + | ||
- | + | ||
- | rtl8169_probe { | + | |
alloc_etherdev | alloc_etherdev | ||
netdev_init | netdev_init | ||
pci_set_drvdata | pci_set_drvdata | ||
- | netdev_priv | ||
- | memset | ||
adjust_pci_Device | adjust_pci_Device | ||
rtl8169_irq_mask_and_ack | rtl8169_irq_mask_and_ack | ||
rtl_soft_reset | rtl_soft_reset | ||
- | netdev_priv | ||
rtl8169_get_mac_version | rtl8169_get_mac_version | ||
rtl8169_init_phy | rtl8169_init_phy | ||
rtl_hw_phy_config | rtl_hw_phy_config | ||
- | netdev_priv | + | [one of several versions of rtlXXXXX_X_hw_phy_config] |
- | (one of several versions of rtlXXXXX_X_hw_phy_config) | + | |
pci_write_config_byte | pci_write_config_byte | ||
mdio_write | mdio_write | ||
Line 37: | Line 17: | ||
phy_reset_pending | phy_reset_pending | ||
rtl8169_set_speed | rtl8169_set_speed | ||
- | netdev_priv | ||
set_speed | set_speed | ||
netdev_link_up | netdev_link_up | ||
- | } | ||
- | rtl8169_open { | + | rtl8169_open |
- | netdev_priv | + | |
rtl8169_setup_tx_resources | rtl8169_setup_tx_resources | ||
- | malloc_dma | ||
- | memset | ||
rtl8169_setup_rx_resources | rtl8169_setup_rx_resources | ||
- | malloc_dma | ||
- | memset | ||
rtl8169_refill_rx_ring | rtl8169_refill_rx_ring | ||
- | alloc_iob | ||
rtl8169_populate_rx_descriptor | rtl8169_populate_rx_descriptor | ||
- | memset | ||
- | virt_to_bus | ||
rtl_hw_start | rtl_hw_start | ||
rtl_soft_reset | rtl_soft_reset | ||
- | netdev_priv | + | |
- | } | + | rtl8169_transmit |
+ | RTL_W8 | ||
rtl8169_poll | rtl8169_poll | ||
- | netdev_priv | ||
rtl8169_process_tx_packets | rtl8169_process_tx_packets | ||
netdev_tx_complete | netdev_tx_complete | ||
- | memset | ||
rtl8169_process_rx_packets | rtl8169_process_rx_packets | ||
(netdev_rx_err) | (netdev_rx_err) | ||
iob_put | iob_put | ||
netdev_rx | netdev_rx | ||
- | memset | ||
rtl8169_refill_rx_ring | rtl8169_refill_rx_ring | ||
rtl8169_populate_rx_descriptor | rtl8169_populate_rx_descriptor | ||
- | memset | ||
- | virt_to_bus | ||
- | } | ||
- | } | ||
- | } | ||
- | } | ||
- | + | rtl8169_irq | |
- | + | rtl8169_irq_disable | |
- | rtl8169_transmit | + | rtl8169_irq_mask_and_ack |
- | netdev_priv | + | rtl8169_irq_enable |
- | iob_len | + | |
- | virt_to_bus | + | |
- | } | + | |
rtl8169_close | rtl8169_close | ||
- | netdev_priv | ||
rtl8169_hw_reset | rtl8169_hw_reset | ||
rtl8169_irq_mask_and_ack | rtl8169_irq_mask_and_ack | ||
Line 96: | Line 54: | ||
free_dma | free_dma | ||
free_iob | free_iob | ||
- | |||
- | } | ||
rtl8169_remove | rtl8169_remove | ||
- | pci_Get_drvdata | + | pci_get_drvdata |
- | netdev_priv | + | |
rtl8169_hw_reset | rtl8169_hw_reset | ||
rtl8169_irq_mask_and_ack | rtl8169_irq_mask_and_ack | ||
Line 107: | Line 62: | ||
netdev_nullify | netdev_nullify | ||
netdeV_put | netdeV_put | ||
- | } | ||
- | rtl8169_irq | ||
- | netdev_priv | ||
- | rtl8169_irq_disable | ||
- | rtl8169_irq_mask_and_ack | ||
- | rtl8169_irq_enable | ||
- | } | ||
</code> | </code> |