inw
u_short inw(u_int port);
u_short inw(u_int port);
while (inw(BASE + VX_W1_FREE_TX) < len + pad + 4) {
while((inw(BASE + VX_STATUS) & S_COMMAND_IN_PROGRESS) != 0)
cst=inw(BASE + VX_STATUS);
status = inw(BASE + VX_W1_RX_STATUS);
status = inw(BASE + VX_W1_RX_STATUS);
while (inw(BASE + VX_STATUS) & S_COMMAND_IN_PROGRESS);
return (inw(BASE + VX_W0_EEPROM_DATA));
vx_connectors = inw(BASE + VX_W3_RESET_OPT) & 0x7f;
#define VX_BUSY_WAIT while (inw(BASE + VX_STATUS) & S_COMMAND_IN_PROGRESS)
#define is_eeprom_busy(b) (inw((b)+VX_W0_EEPROM_COMMAND)&EEPROM_BUSY)
while (inw(ioaddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
val = inw(ioaddr + regEepromData_0_w);
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS)
while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
inw(INF_3C90X.IOAddr + regCommandIntStatus_w);
inw(INF_3C90X.IOAddr + regCommandIntStatus_w);
while (inw(INF_3C90X.IOAddr+regCommandIntStatus_w) &
while (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0004) &&
if (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0004))
if (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0010))
mstat = inw(INF_3C90X.IOAddr + regMediaStatus_4_w);
mopt = inw(INF_3C90X.IOAddr + regResetMediaOptions_3_w);
while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS)
while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS)
retval = (retval << 1) | ((inw(ee_addr) & EE_DATA_READ) ? 1 : 0);
status = inw(ioaddr + SCBStatus);
t, s, status, inw (ioaddr + SCBCmd));
s1 = inw (ioaddr + SCBStatus);
s2 = inw (ioaddr + SCBStatus);
status = inw(ioaddr + SCBStatus);
intr_status = inw(ioaddr + SCBStatus);
inw(ioaddr + SCBStatus);
*ap++ = inw(lan0 + i*4);
return inw(mmdata);
*((unsigned short *)dst) = inw(eth_asic_base + ASIC_PIO);
*value = inw(0xCFC + (where&2));
return inw(addr + PCNET32_WIO_RDP);
return inw(addr + PCNET32_WIO_BDP);
return inw(addr + PCNET32_WIO_RAP);
inw(addr + PCNET32_WIO_RESET);
return (inw(addr + PCNET32_WIO_RAP) == 88);
status = inw ( nic->ioaddr + PNIC_REG_STAT );
_output_length = inw ( nic->ioaddr + PNIC_REG_LEN );
fullduplex = inw(nic->ioaddr + MII_BMCR) & BMCRDuplex;
status = inw(nic->ioaddr + IntrStatus);
status = inw(nic->ioaddr + IntrStatus);
mask = inw(nic->ioaddr + IntrMask);
*( ((u16 *)nic->node_addr) + i) = inw(ioaddr + rfdr);
outw(inw(BASE + MACCtrl0) | EnbFullDuplex,
outw(inw(BASE + MACCtrl0) | duplex ? 0x20 : 0,
(int) inw(BASE + TxStatus), (int) inl(BASE + MACCtrl0),
(int) inw(BASE + MACCtrl1), (int) inw(BASE + MACCtrl0)));
intr_status = inw(nic->ioaddr + IntrStatus);
intr_status = inw(nic->ioaddr + IntrStatus);
outw(inw(BASE + MulticastFilter1 + 2) | 0x0200,
outw(inw(BASE + MACCtrl0) | EnbFlowCtrl, BASE + MACCtrl0);
if (!(inw(ioaddr + EECtrl) & 0x8000)) {
return inw(ioaddr + EEData);
u16 host_int = inw(BASE + TLAN_HOST_INT);
printf("AC: 0x%hX\n", inw(BASE + TLAN_CH_PARM));
host_int = inw(BASE + TLAN_HOST_INT);
u16 host_int = inw(BASE + TLAN_HOST_INT);
host_int = inw(BASE + TLAN_HOST_INT);
host_int = inw(BASE + TLAN_HOST_INT);
return (inw((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x2)));
outl(0x0f370000 | inw(ioaddr + 0x80), ioaddr + 0x80);
outl(0x0f370000 | inw(ioaddr + 0x80), ioaddr + 0x80);
outl(0x11000 | inw(ioaddr + 0xa0), ioaddr + 0xa0);
CRbak = inw (byCR0);
intr_status = inw(nic->ioaddr + IntrStatus);
ReturnMII = inw (wMIIDATA);
ReadMIItmp = inw (wMIIDATA);
intr_status = inw(nic->ioaddr + IntrStatus);
#define readw inw
uint16_t inw(uint16_t);
const uint16_t divisor = inw(IOP_TEST_PARAM0);
const uint16_t loop_count = inw(IOP_TEST_PARAM1);
extern uint16_t inw(int port);
local_data = inw(port);
val = inw(PCI_CONFDATA | (reg & 0x2));
val = inw(PCI_CONFDATA | (reg & 0x2));
val = inw(PCI_CADDR2(device, reg));
*Value = inw(Address);
val = inw((uintptr_t)addr);
val = ddi_swap16(inw((uintptr_t)addr));
if ((*h++ = inw(port)) == 0xffff)
if ((*h++ = inw(port)) == 0xffff)
if ((*h++ = ddi_swap16(inw(port))) == 0xffff)
if ((*h++ = ddi_swap16(inw(port))) == 0xffff)
return (ddi_swap16(inw((uintptr_t)addr)));
*h++ = ddi_swap16(inw(port));
*h++ = ddi_swap16(inw(port));
extern uint16_t inw(int port);