[PATCH v2 01/14] include/hw: add helpers for defining versioned machine types