Use a separate avalon_get_reset function for resetting avalon instead of using avalon_get_result.
The read_count is unused by the avalon get result code and no longer required for avalon reset so simplify code removing it.
avalon_gets is always called from the one call site so inline it.