Lines Matching defs:eeprom
15 * reading the configuration EEPROM.
119 /* EEProm (128 * 8) on an STB card */
124 /* EEProm (256 * 8) on a Hauppauge card */
153 0, /* EEProm unknown */
154 0, /* EEProm unknown */
165 0, /* EEProm unknown */
177 PFC8582_WADDR, /* EEProm type */
189 X24C01_WADDR, /* EEProm type */
213 PFC8582_WADDR, /* EEProm type */
225 0, /* EEProm type */
226 0, /* EEProm size */
237 PFC8582_WADDR, /* EEProm type */
249 0, /* EEProm type */
250 0, /* EEProm size */
261 0, /* EEProm type */
262 0, /* EEProm size */
273 0xac, /* EEProm type */
285 0, /* EEProm type */
286 0, /* EEProm size */
297 0, /* EEProm type */
298 0, /* EEProm size */
309 0, /* EEProm type */
310 0, /* EEProm size */
321 0, /* EEProm type */
322 0, /* EEProm size */
333 0, /* EEProm type */
334 0, /* EEProm size */
346 0, /* EEProm type */
347 0, /* EEProm size */
358 0, /* EEProm type */
359 0, /* EEProm size */
374 * Write to the configuration EEPROM on the card.
386 * Read the contents of the configuration EEPROM on the card.
398 /* get the address of the EEProm */
491 * Search for a configuration EEPROM on the i2c bus by looking at i2c addresses
493 * On some cards, the EEPROM appears in several locations, but all in the
500 return -1; /* no eeprom found */
517 * However some makes of card (eg Hauppauge) come with a configuration eeprom
523 * 1) Read the sub-system vendor id from the configuration EEPROM.
529 * 2) Look for a configuration EEPROM.
531 * a Hauppauge or an Osprey. Check the EEPROM contents to determine which
533 * 2b) If there is an EEPROM at I2C address 0xa8 it will be an STB card.
547 * configuration EEPROM used on Bt878/879 cards. They should match the
576 u_char eeprom[256];
622 /* Therefore, I will read the sub-system vendor ID from the EEPROM */
626 /* Try and locate the EEPROM */
638 if(readEEProm(bktr, 0, 256, (u_char *) &eeprom))
639 printf("%s: error reading EEPROM\n", bktr_name(bktr));
641 byte_252 = (unsigned int)eeprom[252];
642 byte_253 = (unsigned int)eeprom[253];
643 byte_254 = (unsigned int)eeprom[254];
644 byte_255 = (unsigned int)eeprom[255];
729 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n",
747 /* of an EEPROM */
757 /* Read the eeprom contents */
761 readEEProm(bktr, 0, 128, (u_char *) &eeprom);
763 /* For Hauppauge, check the EEPROM begins with 0x84 */
764 if (eeprom[0] == 0x84) {
771 /* For Osprey, check the EEPROM begins with "MMAC" */
772 if ((eeprom[0] == 'M') &&(eeprom[1] == 'M')
773 &&(eeprom[2] == 'A') &&(eeprom[3] == 'C')) {
779 printf("%s: Warning: Unknown card type. EEPROM data not recognised\n",
782 eeprom[0],eeprom[1],eeprom[2],eeprom[3]);
839 /* look for a configuration eeprom */
948 /* Determine the model number from the eeprom */
950 /* eeprom data block structure */
959 readEEProm(bktr, 0, 128, (u_char *) &eeprom);
961 /* LOCATE THE EEPROM DATA BLOCKS */
962 block_1 = &eeprom[0];
966 block_2 = &eeprom[block_1_total_size];
970 block_3 = &eeprom[block_1_total_size + block_2_total_size];
990 /* Determine the tuner type from the eeprom */
1054 /* AVerMedia kindly supplied some details of their EEPROM contents
1056 * Only the newer AVerMedia cards actually have an EEPROM.
1086 /* Extract information from the EEPROM data */
1087 readEEProm(bktr, 0, 128, (u_char *) &eeprom);
1089 tuner_make = (eeprom[0x41] & 0x7);
1090 tuner_tv_fm = (eeprom[0x41] & 0x18) >> 3;
1091 tuner_format = (eeprom[0x42] & 0xf0) >> 4;