diff options
Diffstat (limited to 'drivers/net/ks8851.h')
-rw-r--r-- | drivers/net/ks8851.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/ks8851.h b/drivers/net/ks8851.h index f52c312cc356..537fb06e5932 100644 --- a/drivers/net/ks8851.h +++ b/drivers/net/ks8851.h | |||
@@ -25,12 +25,24 @@ | |||
25 | #define OBCR_ODS_16mA (1 << 6) | 25 | #define OBCR_ODS_16mA (1 << 6) |
26 | 26 | ||
27 | #define KS_EEPCR 0x22 | 27 | #define KS_EEPCR 0x22 |
28 | #define EEPCR_EESRWA (1 << 5) | ||
28 | #define EEPCR_EESA (1 << 4) | 29 | #define EEPCR_EESA (1 << 4) |
29 | #define EEPCR_EESB (1 << 3) | 30 | #define EEPCR_EESB_OFFSET 3 |
31 | #define EEPCR_EESB (1 << EEPCR_EESB_OFFSET) | ||
30 | #define EEPCR_EEDO (1 << 2) | 32 | #define EEPCR_EEDO (1 << 2) |
31 | #define EEPCR_EESCK (1 << 1) | 33 | #define EEPCR_EESCK (1 << 1) |
32 | #define EEPCR_EECS (1 << 0) | 34 | #define EEPCR_EECS (1 << 0) |
33 | 35 | ||
36 | #define EEPROM_OP_LEN 3 /* bits:*/ | ||
37 | #define EEPROM_OP_READ 0x06 | ||
38 | #define EEPROM_OP_EWEN 0x04 | ||
39 | #define EEPROM_OP_WRITE 0x05 | ||
40 | #define EEPROM_OP_EWDS 0x14 | ||
41 | |||
42 | #define EEPROM_DATA_LEN 16 /* 16 bits EEPROM */ | ||
43 | #define EEPROM_WRITE_TIME 4 /* wrt ack time in ms */ | ||
44 | #define EEPROM_SK_PERIOD 400 /* in us */ | ||
45 | |||
34 | #define KS_MBIR 0x24 | 46 | #define KS_MBIR 0x24 |
35 | #define MBIR_TXMBF (1 << 12) | 47 | #define MBIR_TXMBF (1 << 12) |
36 | #define MBIR_TXMBFA (1 << 11) | 48 | #define MBIR_TXMBFA (1 << 11) |