On Thursday 06 March 2008 19:40:20 Reinette Chatre wrote: > +/* > + * 4965 EEPROM map > + */ > +struct iwl4965_eeprom { > + u8 reserved0[16]; > +#define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */ offsetof() does this stuff automagically for you. > + u16 device_id; /* abs.ofs: 16 */ > + u8 reserved1[2]; > +#define EEPROM_PMC (2*0x0A) /* 2 bytes */ ... > + u16 pmc; /* abs.ofs: 20 */ > + u8 reserved2[20]; > +#define EEPROM_MAC_ADDRESS (2*0x15) /* 6 bytes */ .. and so on. > + u8 mac_address[6]; /* abs.ofs: 42 */ > + u8 reserved3[58]; > +#define EEPROM_BOARD_REVISION (2*0x35) /* 2 bytes */ > + u16 board_revision; /* abs.ofs: 106 */ > + u8 reserved4[11]; > +#define EEPROM_BOARD_PBA_NUMBER (2*0x3B+1) /* 9 bytes */ > + u8 board_pba_number[9]; /* abs.ofs: 119 */ > + u8 reserved5[8]; -- Greetings Michael. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html