/* Read a 16bit register from the chip, returning the result  */
static u16 ks_rdreg16(struct ks_net *ks, int offset)
/* Read a 16bit register from the chip, returning the result  */
static u16 ks_rdreg16(struct ks_net *ks, int offset)
{
	ks->cmd_reg_cache = (u16)offset | ((BE1 | BE0) << (offset & 0x02));
	iowrite16(ks->cmd_reg_cache, ks->hw_addr_cmd);
	return ioread16(ks->hw_addr);
}