net/thunderx/base: add hardware API