Lines Matching refs:wrd
961 unsigned short wrd; in read_eeprom() local
964 wrd = ReadAWord(dev, 0x1aa); /* bytes 0 + 1 of NodeID */ in read_eeprom()
965 if (!clone && (wrd != htons(0x0080))) /* Valid D-Link ether sequence? */ in read_eeprom()
967 nic_data.NodeID[0] = wrd & 0xff; in read_eeprom()
968 nic_data.NodeID[1] = wrd >> 8; in read_eeprom()
970 wrd = ReadAWord(dev, 0x1ab); /* bytes 2 + 3 of NodeID */ in read_eeprom()
971 if (!clone && ((wrd & 0xff) != 0xc8)) /* Valid D-Link ether sequence? */ in read_eeprom()
973 nic_data.NodeID[2] = wrd & 0xff; in read_eeprom()
974 nic_data.NodeID[3] = wrd >> 8; in read_eeprom()
976 wrd = ReadAWord(dev, 0x1ac); /* bytes 4 + 5 of NodeID */ in read_eeprom()
977 nic_data.NodeID[4] = wrd & 0xff; in read_eeprom()
978 nic_data.NodeID[5] = wrd >> 8; in read_eeprom()
980 wrd = ReadAWord(dev, 0x1ad); /* RAM size in pages (256 bytes). 0 = 64k */ in read_eeprom()
981 nic_data.RAM_Size = (wrd >> 8); in read_eeprom()
983 wrd = ReadAWord(dev, 0x1ae); /* hardware model (CT = 3) */ in read_eeprom()
984 nic_data.Model = (wrd & 0xff); in read_eeprom()
986 wrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */ in read_eeprom()
987 nic_data.Media = (wrd & 0xff); in read_eeprom()
989 wrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */ in read_eeprom()
990 nic_data.SCR = (wrd >> 8); in read_eeprom()