Lines Matching refs:eeprom
79 static void rt2800pci_eepromregister_read(struct eeprom_93cx6 *eeprom) in rt2800pci_eepromregister_read() argument
81 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_read()
86 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); in rt2800pci_eepromregister_read()
87 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); in rt2800pci_eepromregister_read()
88 eeprom->reg_data_clock = in rt2800pci_eepromregister_read()
90 eeprom->reg_chip_select = in rt2800pci_eepromregister_read()
94 static void rt2800pci_eepromregister_write(struct eeprom_93cx6 *eeprom) in rt2800pci_eepromregister_write() argument
96 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_write()
99 rt2x00_set_field32(®, E2PROM_CSR_DATA_IN, !!eeprom->reg_data_in); in rt2800pci_eepromregister_write()
100 rt2x00_set_field32(®, E2PROM_CSR_DATA_OUT, !!eeprom->reg_data_out); in rt2800pci_eepromregister_write()
102 !!eeprom->reg_data_clock); in rt2800pci_eepromregister_write()
104 !!eeprom->reg_chip_select); in rt2800pci_eepromregister_write()
111 struct eeprom_93cx6 eeprom; in rt2800pci_read_eeprom_pci() local
116 eeprom.data = rt2x00dev; in rt2800pci_read_eeprom_pci()
117 eeprom.register_read = rt2800pci_eepromregister_read; in rt2800pci_read_eeprom_pci()
118 eeprom.register_write = rt2800pci_eepromregister_write; in rt2800pci_read_eeprom_pci()
122 eeprom.width = PCI_EEPROM_WIDTH_93C46; in rt2800pci_read_eeprom_pci()
125 eeprom.width = PCI_EEPROM_WIDTH_93C66; in rt2800pci_read_eeprom_pci()
128 eeprom.width = PCI_EEPROM_WIDTH_93C86; in rt2800pci_read_eeprom_pci()
131 eeprom.reg_data_in = 0; in rt2800pci_read_eeprom_pci()
132 eeprom.reg_data_out = 0; in rt2800pci_read_eeprom_pci()
133 eeprom.reg_data_clock = 0; in rt2800pci_read_eeprom_pci()
134 eeprom.reg_chip_select = 0; in rt2800pci_read_eeprom_pci()
136 eeprom_93cx6_multiread(&eeprom, EEPROM_BASE, rt2x00dev->eeprom, in rt2800pci_read_eeprom_pci()