From 8ad5767c565d70f73a0cb6c65a9144b7196f9616 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 18 Nov 2005 07:25:08 +0000 Subject: tveeprom MAC address parsing/cleanup From: Steven Toth - added a mac address field to the tveeprom structure. - allow callers to query the MAC address. - removed some redundant eeprom parsing code in cx88-cards.c (specific to Hauppauge DVB products) Instead, placed calls directly to the single eeprom parsing function in tveeprom.c Signed-off-by: Steven Toth Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- linux/include/media/tveeprom.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux/include/media/tveeprom.h') diff --git a/linux/include/media/tveeprom.h b/linux/include/media/tveeprom.h index 334e64216..4722f3d3f 100644 --- a/linux/include/media/tveeprom.h +++ b/linux/include/media/tveeprom.h @@ -1,10 +1,11 @@ /* - * $Id: tveeprom.h,v 1.4 2005/08/30 05:11:41 mchehab Exp $ + * $Id: tveeprom.h,v 1.5 2005/11/18 07:25:08 mchehab Exp $ */ struct tveeprom { u32 has_radio; u32 has_ir; /* 0: no IR, 1: IR present, 2: unknown */ + u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */ u32 tuner_type; u32 tuner_formats; @@ -22,6 +23,7 @@ struct tveeprom { u32 revision; u32 serial_number; char rev_str[5]; + u8 MAC_address[6]; }; void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, -- cgit v1.2.3