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:journal:week7 [2009/07/11 18:49] asdlkf |
soc:2009:asdlkf:journal:week7 [2009/07/12 11:21] (current) asdlkf |
||
---|---|---|---|
Line 17: | Line 17: | ||
July 11: Meeting with mentors. Informed that I need to make some "major progress" by monday, or be failed. | July 11: Meeting with mentors. Informed that I need to make some "major progress" by monday, or be failed. | ||
- | July 12: | + | |
Re-wrote probe section of skge.outline | Re-wrote probe section of skge.outline | ||
Moved the software reset section of skge_initialize into a new function and called it in probe instead. (skge_hardware_reset) | Moved the software reset section of skge_initialize into a new function and called it in probe instead. (skge_hardware_reset) | ||
Line 51: | Line 51: | ||
- | setup_tx_resources | + | Setup RX Resources |
- | skge_ring_alloc | + | skge_ring_alloc |
- | skge_tx_fill | + | skge_rx_fill |
- | setup_rx_resources | + | populate_rx_descriptor |
- | skge_ring_alloc | + | Setup TX Resources |
- | refill_rx_ring | + | skge_ring_alloc |
- | populate_rx_descriptor | + | skge_tx_fill |
- | start_clocks | + | skge_start_clocks |
- | software_reset_device | + | software_reset_device |
Line 225: | Line 225: | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | I took another look at open, and I'm not happy with the structure as it was; | ||
+ | |||
+ | It's again been redefined to this (but it's very likely to change by tomorrow). | ||
+ | <code> | ||
+ | skge_open | ||
+ | setup_rx_resources | ||
+ | skge_ring_alloc | ||
+ | refill_rx_ring | ||
+ | populate_rx_descriptor | ||
+ | setup_tx_resources | ||
+ | skge_ring_alloc | ||
+ | |||
+ | start_clocks | ||
+ | software_reset_device | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Plan for tomorrow: | ||
+ | <code> | ||
+ | /Re-outline existing skge_open in much more detail | ||
+ | |Compare above outline with the intended structure for skge_open | ||
+ | |Separate tx and rx memory sections; perform two malloc_dma's instead of one; | ||
+ | \Each tx and rx section of open should be completely separate | ||
+ | |||
+ | Re-write skge_open (and all it's child functions)in it's new form and outline | ||
+ | Specificly: | ||
+ | - Change all instances of netdev_priv (as now netdev_priv is an instance of skge_private, not skge_port) | ||
+ | - Enumerate all access to the tx and rx rings and make sure they are using separated access methods. | ||
+ | </code> | ||
+ | |||
+ | |||
-- Chris | -- Chris |