Search Linux Wireless

Re: [PATCH 2/2] iwlwifi: Moving EEPROM handling in iwlcore module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux