Home | History | Annotate | Download | only in ic

Lines Matching refs:sd

88 #define CLOCK_PULSE(sd, rdy)	do {					\
97 while ((SEEPROM_STATUS_INB(sd) & rdy) == 0 && cpi-- > 0) { \
100 (void)SEEPROM_INB(sd); /* Clear clock */ \
108 read_seeprom(struct seeprom_descriptor *sd, u_int16_t *buf, bus_size_t start_addr, bus_size_t count)
121 temp = sd->sd_MS ^ sd->sd_CS;
122 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
123 CLOCK_PULSE(sd, sd->sd_RDY);
131 temp ^= sd->sd_DO;
132 SEEPROM_OUTB(sd, temp);
133 CLOCK_PULSE(sd, sd->sd_RDY);
134 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
135 CLOCK_PULSE(sd, sd->sd_RDY);
137 temp ^= sd->sd_DO;
140 for (i = (sd->sd_chip - 1); i >= 0; i--) {
142 temp ^= sd->sd_DO;
143 SEEPROM_OUTB(sd, temp);
144 CLOCK_PULSE(sd, sd->sd_RDY);
145 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
146 CLOCK_PULSE(sd, sd->sd_RDY);
148 temp ^= sd->sd_DO;
159 SEEPROM_OUTB(sd, temp);
160 CLOCK_PULSE(sd, sd->sd_RDY);
162 if (SEEPROM_DATA_INB(sd) & sd->sd_DI)
164 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
165 CLOCK_PULSE(sd, sd->sd_RDY);
171 temp = sd->sd_MS;
172 SEEPROM_OUTB(sd, temp);
173 CLOCK_PULSE(sd, sd->sd_RDY);
174 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
175 CLOCK_PULSE(sd, sd->sd_RDY);
176 SEEPROM_OUTB(sd, temp);
177 CLOCK_PULSE(sd, sd->sd_RDY);