diff options
Diffstat (limited to 'doc/FEEDBACK.TYNDUR')
-rw-r--r-- | doc/FEEDBACK.TYNDUR | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/FEEDBACK.TYNDUR b/doc/FEEDBACK.TYNDUR new file mode 100644 index 0000000..f9d57fb --- /dev/null +++ b/doc/FEEDBACK.TYNDUR @@ -0,0 +1,18 @@ +rtl8139 driver + + // Warten bis der Reset beendet ist + while ((read_register_byte(netcard, REG_COMMAND) & REG_COMMAND) == + CR_RESET); + + // docu says reading ISR clears the interrupts, writting has no effect: + write_register_word(netcard, REG_INTERRUPT_STATUS, 0); + // so this is wrong + + write_register_word(netcard, REG_INTERRUPT_MASK, 0xFFFF); + + // not quite sure, but I would use an uint16_t as we read a word, not a dword + // from ISR + uint32_t isr = read_register_word(netcard, REG_INTERRUPT_STATUS); + + // where is DMA (PCI bus mastering) enabled? not visible in driver, quite + // confusuing for the newbie
\ No newline at end of file |