[PATCH 2/5] introduce open_hw() function