Lines Matching defs:etdev
153 * @etdev: pointer to our private adapter structure
159 static int eeprom_write(struct et131x_adapter *etdev, u32 addr, u8 data)
161 struct pci_dev *pdev = etdev->pdev;
225 && etdev->pdev->revision == 0)
283 * @etdev: pointer to our private adapter structure
291 static int eeprom_read(struct et131x_adapter *etdev, u32 addr, u8 *pdata)
293 struct pci_dev *pdev = etdev->pdev;
340 int et131x_init_eeprom(struct et131x_adapter *etdev)
342 struct pci_dev *pdev = etdev->pdev;
371 if (eeprom_write(etdev, i, eedata[i]) < 0)
384 etdev->has_eeprom = 0;
388 etdev->has_eeprom = 1;
393 eeprom_read(etdev, 0x70, &etdev->eepromData[0]);
394 eeprom_read(etdev, 0x71, &etdev->eepromData[1]);
396 if (etdev->eepromData[0] != 0xcd)
398 etdev->eepromData[1] = 0x00;