Lines Matching refs:wrd
931 unsigned short wrd; in read_eeprom() local
934 wrd = ReadAWord(dev, 0x1aa); /* bytes 0 + 1 of NodeID */ in read_eeprom()
935 if (!clone && (wrd != htons(0x0080))) /* Valid D-Link ether sequence? */ in read_eeprom()
937 nic_data.NodeID[0] = wrd & 0xff; in read_eeprom()
938 nic_data.NodeID[1] = wrd >> 8; in read_eeprom()
940 wrd = ReadAWord(dev, 0x1ab); /* bytes 2 + 3 of NodeID */ in read_eeprom()
941 if (!clone && ((wrd & 0xff) != 0xc8)) /* Valid D-Link ether sequence? */ in read_eeprom()
943 nic_data.NodeID[2] = wrd & 0xff; in read_eeprom()
944 nic_data.NodeID[3] = wrd >> 8; in read_eeprom()
946 wrd = ReadAWord(dev, 0x1ac); /* bytes 4 + 5 of NodeID */ in read_eeprom()
947 nic_data.NodeID[4] = wrd & 0xff; in read_eeprom()
948 nic_data.NodeID[5] = wrd >> 8; in read_eeprom()
950 wrd = ReadAWord(dev, 0x1ad); /* RAM size in pages (256 bytes). 0 = 64k */ in read_eeprom()
951 nic_data.RAM_Size = (wrd >> 8); in read_eeprom()
953 wrd = ReadAWord(dev, 0x1ae); /* hardware model (CT = 3) */ in read_eeprom()
954 nic_data.Model = (wrd & 0xff); in read_eeprom()
956 wrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */ in read_eeprom()
957 nic_data.Media = (wrd & 0xff); in read_eeprom()
959 wrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */ in read_eeprom()
960 nic_data.SCR = (wrd >> 8); in read_eeprom()