Changes between Version 14 and Version 15 of nic_driver
- Timestamp:
- Nov 11, 2014, 1:55:43 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
nic_driver
v14 v15 13 13 The addressable registers map is defined [source:soft/giet_vm/giet_drivers/nic_driver.h here]. 14 14 15 == __Access Functions__==15 == Access Functions == 16 16 17 === int '''_nic_global_init'''( unsigned int channels, unsigned int vis, unsigned int bc_enable, unsigned int bypass_enable ) ===17 === 1) int '''_nic_global_init'''( unsigned int channels, unsigned int vis, unsigned int bc_enable, unsigned int bypass_enable ) === 18 18 This function initializes the global registers. 19 19 * '''channels''' : number of active channels … … 23 23 This function is used only by the boot code, and return always 0. 24 24 25 === int '''_nic_channel_start'''( unsigned int channel, unsigned int mac4, unsigned int mac2 ) ===25 === 2) int '''_nic_channel_start'''( unsigned int channel, unsigned int mac4, unsigned int mac2 ) === 26 26 This function activates a NIC_TX or NIC_RX channel: 27 27 * '''channel''' : channel index … … 31 31 It returns always 0. 32 32 33 === int '''_nic_channel_stop'''( unsigned int channel, unsigned int is_rx ) ===33 === 3) int '''_nic_channel_stop'''( unsigned int channel, unsigned int is_rx ) === 34 34 This function desactivates a NIC_TX or NIC_RX channel. 35 35 It returns always 0. … … 37 37 == __ Interrupt Service Routines__ == 38 38 39 === void '''_nic_rx_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) ===39 === 4) void '''_nic_rx_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) === 40 40 This interrupt Service Routine handles IRQs from a NIC_RX channel. 41 41 WARNING : Not fully implemented yet : no IRQ acknowledge... 42 42 43 === void '''_nic_tx_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) ===43 === 5) void '''_nic_tx_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) === 44 44 This interrupt Service Routine handles IRQs from a NIC_TX channel. 45 45 WARNING : Not fully implemented yet : no IRQ acknowledge...