atheros/ath9k: add common read/write ops and port ath9k to use it