Deleted Added
full compact
aic7xxx_93cx6.c (50477) aic7xxx_93cx6.c (55581)
1/*
2 * Interface for the 93C66/56/46/26/06 serial eeprom parts.
3 *
4 * Copyright (c) 1995, 1996 Daniel M. Eischen
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 4 unchanged lines hidden (view full) ---

13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Absolutely no warranty of function or purpose is made by the author
17 * Daniel M. Eischen.
18 * 4. Modifications may be freely made to this file if the above conditions
19 * are met.
20 *
1/*
2 * Interface for the 93C66/56/46/26/06 serial eeprom parts.
3 *
4 * Copyright (c) 1995, 1996 Daniel M. Eischen
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 4 unchanged lines hidden (view full) ---

13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Absolutely no warranty of function or purpose is made by the author
17 * Daniel M. Eischen.
18 * 4. Modifications may be freely made to this file if the above conditions
19 * are met.
20 *
21 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx_93cx6.c 50477 1999-08-28 01:08:13Z peter $
21 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx_93cx6.c 55581 2000-01-07 23:08:20Z gibbs $
22 */
23
24/*
25 * The instruction set of the 93C66/56/46/26/06 chips are as follows:
26 *
27 * Start OP *
28 * Function Bit Code Address** Data Description
29 * -------------------------------------------------------------------

--- 128 unchanged lines hidden (view full) ---

158 SEEPROM_OUTB(sd, temp);
159 CLOCK_PULSE(sd, sd->sd_RDY);
160 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
161 CLOCK_PULSE(sd, sd->sd_RDY);
162 SEEPROM_OUTB(sd, temp);
163 CLOCK_PULSE(sd, sd->sd_RDY);
164 }
165#ifdef AHC_DUMP_EEPROM
22 */
23
24/*
25 * The instruction set of the 93C66/56/46/26/06 chips are as follows:
26 *
27 * Start OP *
28 * Function Bit Code Address** Data Description
29 * -------------------------------------------------------------------

--- 128 unchanged lines hidden (view full) ---

158 SEEPROM_OUTB(sd, temp);
159 CLOCK_PULSE(sd, sd->sd_RDY);
160 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
161 CLOCK_PULSE(sd, sd->sd_RDY);
162 SEEPROM_OUTB(sd, temp);
163 CLOCK_PULSE(sd, sd->sd_RDY);
164 }
165#ifdef AHC_DUMP_EEPROM
166 printf("\nSerial EEPROM:");
166 printf("\nSerial EEPROM:\n\t");
167 for (k = 0; k < count; k = k + 1) {
168 if (((k % 8) == 0) && (k != 0)) {
167 for (k = 0; k < count; k = k + 1) {
168 if (((k % 8) == 0) && (k != 0)) {
169 printf ("\n ");
169 printf ("\n\t");
170 }
171 printf (" 0x%x", buf[k]);
172 }
173 printf ("\n");
174#endif
175 return (1);
176}
170 }
171 printf (" 0x%x", buf[k]);
172 }
173 printf ("\n");
174#endif
175 return (1);
176}