// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright (C) 2005 Mike Isely <[email protected]> * Copyright (C) 2004 Aurelien Alleaume <[email protected]> */ #include <linux/slab.h> #include "pvrusb2-eeprom.h" #include "pvrusb2-hdw-internal.h" #include "pvrusb2-debug.h" #define trace_eeprom(...) … /* Read and analyze data in the eeprom. Use tveeprom to figure out the packet structure, since this is another Hauppauge device and internally it has a family resemblance to ivtv-type devices */ #include <media/tveeprom.h> /* We seem to only be interested in the last 128 bytes of the EEPROM */ #define EEPROM_SIZE … /* Grab EEPROM contents, needed for direct method. */ static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw) { … } /* Directly call eeprom analysis function within tveeprom. */ int pvr2_eeprom_analyze(struct pvr2_hdw *hdw) { … }