/* ks_wrreg8 - write 8bit register value to chip @ks: The chip information @offset: The register address @value: The value to write  */
static void ks_wrreg8(struct ks_net *ks, int offset, u8 value)
/* ks_wrreg8 - write 8bit register value to chip @ks: The chip information @offset: The register address @value: The value to write  */
static void ks_wrreg8(struct ks_net *ks, int offset, u8 value)
{
	u8  shift_bit = (offset & 0x03);
	u16 value_write = (u16)(value << ((offset & 1) << 3));
	ks->cmd_reg_cache = (u16)offset | (BE0 << shift_bit);
	iowrite16(ks->cmd_reg_cache, ks->hw_addr_cmd);
	iowrite16(value_write, ks->hw_addr);
}