Lines Matching +full:eeprom +full:- +full:data
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 Copyright (C) 2004 - 2006 rt2x00 SourceForge Project
10 Abstract: EEPROM reader datastructures for 93cx6 chipsets.
15 * EEPROM operation defines.
29 * struct eeprom_93cx6 - control structure for setting the commands
30 * for reading the eeprom data.
31 * @data: private pointer for the driver.
32 * @register_read(struct eeprom_93cx6 *eeprom): handler to
33 * read the eeprom register, this function should set all reg_* fields.
34 * @register_write(struct eeprom_93cx6 *eeprom): handler to
35 * write to the eeprom register by using all reg_* fields.
36 * @width: eeprom width, should be one of the PCI_EEPROM_WIDTH_* defines
37 * @drive_data: Set if we're driving the data line.
38 * @reg_data_in: register field to indicate data input
39 * @reg_data_out: register field to indicate data output
40 * @reg_data_clock: register field to set the data clock
44 * and the eeprom_93cx6 handlers for reading the eeprom.
47 void *data; member
49 void (*register_read)(struct eeprom_93cx6 *eeprom);
50 void (*register_write)(struct eeprom_93cx6 *eeprom);
61 extern void eeprom_93cx6_read(struct eeprom_93cx6 *eeprom,
62 const u8 word, u16 *data);
63 extern void eeprom_93cx6_multiread(struct eeprom_93cx6 *eeprom,
64 const u8 word, __le16 *data, const u16 words);
65 extern void eeprom_93cx6_readb(struct eeprom_93cx6 *eeprom,
66 const u8 byte, u8 *data);
67 extern void eeprom_93cx6_multireadb(struct eeprom_93cx6 *eeprom,
68 const u8 byte, u8 *data, const u16 bytes);
70 extern void eeprom_93cx6_wren(struct eeprom_93cx6 *eeprom, bool enable);
72 extern void eeprom_93cx6_write(struct eeprom_93cx6 *eeprom,
73 u8 addr, u16 data);