bcm-v4

[Specification

et_poll(budget)

  1. set events to result of call chipgetintrevents with false

  2. set nrx to budget
  3. if bit INTR_RX is set in events
    1. set nrx to result of call et_rxevent with budget

  4. if bit INTR_TX is set in events
    1. call chiptxreclaim with false

    2. call chiprxfill

  5. if bit INTR_ERROR is set in events
    1. if result of call chiperrors is true

      1. call chipreset

      2. call chiptxreclaim with true

      3. call chiprxreclaim

      4. call chipinit with ET_INIT_INTROFF

    2. else if nrx is less than budget
      1. increase nrx by the result of call et_rxevent with budget

  6. call chipintrson


Exported/Archived from the wiki to HTML on 2016-10-27