RTL8139: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
confirmed (ISR) revision.
No edit summary
Line 43: Line 43:


NB: When you handle an interrupt, you ''have'' to write the bit corresponding to the interrupt to reset it. The doc says reading the register is enough to reset the buffer to zero and writing has no effect. ''This is not the case on QEmu'', and probably on some/most hardware too. Writing a bit when it has no effect will probably not hurt.
NB: When you handle an interrupt, you ''have'' to write the bit corresponding to the interrupt to reset it. The doc says reading the register is enough to reset the buffer to zero and writing has no effect. ''This is not the case on QEmu'', and probably on some/most hardware too. Writing a bit when it has no effect will probably not hurt.

01000101: Confirmed. In fact, the only way to clear an interrupt is by writing to it. The datasheet says that reading is what you must do, but it is completely wrong.
01000101: Confirmed. In fact, the only way to clear an interrupt is by writing to it. The datasheet says that reading is what you must do, but it is completely wrong.