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:week3 [2009/06/08 20:48] asdlkf |
soc:2009:asdlkf:journal:week3 [2009/06/16 21:21] (current) asdlkf |
||
---|---|---|---|
Line 34: | Line 34: | ||
- Realized i was correctly pulling the mac address already... | - Realized i was correctly pulling the mac address already... | ||
+ | |||
+ | -June 9 | ||
+ | |||
+ | - Performed nothing "productive", but lots of usefull playing. Accessed various registers. Broke my screen a few times by dumping raw register data to the screen as char. | ||
+ | |||
+ | - Learned how to perform a software reset of the device; got familiar with several important register locations: | ||
+ | 0x0100-0x0105: mac address | ||
+ | 0x0118: configuration bits | ||
+ | 0x011b: chip information | ||
+ | |||
+ | - I'm not entirely sure what of these are important or what to continue with. More tomorrow | ||
+ | |||
+ | June 10 | ||
+ | |||
+ | I wasn't really sure where to go today; so I ended up playing with IO. | ||
+ | |||
+ | Sample output: | ||
+ | |||
+ | gPXE initialising devices... | ||
+ | skge_probe | ||
+ | |||
+ | June 14: almost finished probe()- about 70% done | ||
+ | - loaded the rest of the PCI_ROM statements | ||
+ | - moved skge_adapter to skge.h (from skge.c) | ||
+ | - converted: yukon_reset, genesis_reset, genesis_init, gm_phy_write | ||
+ | |||
+ | - wrote: skge_enable_test_mode | ||
+ | |||
+ | - all instances of writeb, writew, writel, and writeq's calling statements were corrected | ||
+ | |||
+ | - Moved most DBG statements to use DBG2 instead of DBG (such as mac address and other "just checking if this is working" DBG statements) | ||
+ | |||
+ | - removed some unnessary statements and added constants to replace them | ||
+ | |||
+ | - (such as X = a & b & c & d & e ===> X= <pre-combined magic constant>) | ||
+ | |||
+ | - Completed: skge_initialize | ||
+ | |||
+ | - In progress: probe() | ||
+ | - todo in probe(): | ||
+ | |||
+ | - skge_devinit() | ||
+ | |||
+ | - register_netdev() | ||
+ | |||
+ | - request_irq() | ||
+ | |||
+ | - skge_show_addr() | ||
+ | |||
+ | - pci_set_drvdata() | ||
+ | |||
+ | |||
+ | |||
+ | |||
-- Chris | -- Chris |