Lines Matching full:eeprom
9 #include "pvrusb2-eeprom.h"
19 Read and analyze data in the eeprom. Use tveeprom to figure out
27 /* We seem to only be interested in the last 128 bytes of the EEPROM */
30 /* Grab EEPROM contents, needed for direct method. */
34 u8 *eeprom; in pvr2_eeprom_fetch() local
42 eeprom = kzalloc(EEPROM_SIZE, GFP_KERNEL); in pvr2_eeprom_fetch()
43 if (!eeprom) { in pvr2_eeprom_fetch()
45 "Failed to allocate memory required to read eeprom"); in pvr2_eeprom_fetch()
49 trace_eeprom("Value for eeprom addr from controller was 0x%x", in pvr2_eeprom_fetch()
52 /* Seems that if the high bit is set, then the *real* eeprom in pvr2_eeprom_fetch()
57 /* FX2 documentation states that a 16bit-addressed eeprom is in pvr2_eeprom_fetch()
62 trace_eeprom("Examining %d byte eeprom at location 0x%x using %d bit addressing", in pvr2_eeprom_fetch()
73 /* We have to do the actual eeprom data fetch ourselves, because in pvr2_eeprom_fetch()
74 (1) we're only fetching part of the eeprom, and (2) if we were in pvr2_eeprom_fetch()
88 msg[1].buf = eeprom+tcnt; in pvr2_eeprom_fetch()
92 "eeprom fetch set offs err=%d",ret); in pvr2_eeprom_fetch()
93 kfree(eeprom); in pvr2_eeprom_fetch()
97 return eeprom; in pvr2_eeprom_fetch()
101 /* Directly call eeprom analysis function within tveeprom. */
104 u8 *eeprom; in pvr2_eeprom_analyze() local
109 eeprom = pvr2_eeprom_fetch(hdw); in pvr2_eeprom_analyze()
110 if (!eeprom) in pvr2_eeprom_analyze()
113 tveeprom_hauppauge_analog(&tvdata, eeprom); in pvr2_eeprom_analyze()
115 trace_eeprom("eeprom assumed v4l tveeprom module"); in pvr2_eeprom_analyze()
116 trace_eeprom("eeprom direct call results:"); in pvr2_eeprom_analyze()
130 kfree(eeprom); in pvr2_eeprom_analyze()