Lines Matching defs:internal_addr
396 inline u8 TLan_DioRead8(u16 base_addr, u16 internal_addr)
398 outw(internal_addr, base_addr + TLAN_DIO_ADR);
399 return (inb((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x3)));
406 inline u16 TLan_DioRead16(u16 base_addr, u16 internal_addr)
408 outw(internal_addr, base_addr + TLAN_DIO_ADR);
409 return (inw((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x2)));
416 inline u32 TLan_DioRead32(u16 base_addr, u16 internal_addr)
418 outw(internal_addr, base_addr + TLAN_DIO_ADR);
426 inline void TLan_DioWrite8(u16 base_addr, u16 internal_addr, u8 data)
428 outw(internal_addr, base_addr + TLAN_DIO_ADR);
429 outb(data, base_addr + TLAN_DIO_DATA + (internal_addr & 0x3));
436 inline void TLan_DioWrite16(u16 base_addr, u16 internal_addr, u16 data)
438 outw(internal_addr, base_addr + TLAN_DIO_ADR);
439 outw(data, base_addr + TLAN_DIO_DATA + (internal_addr & 0x2));
446 inline void TLan_DioWrite32(u16 base_addr, u16 internal_addr, u32 data)
448 outw(internal_addr, base_addr + TLAN_DIO_ADR);
449 outl(data, base_addr + TLAN_DIO_DATA + (internal_addr & 0x2));