drivers/net/wireless/intersil/p54/p54spi_eeprom.h

Source file repositories/reference/linux-study-clean/drivers/net/wireless/intersil/p54/p54spi_eeprom.h

File Facts

System
Linux kernel
Corpus path
drivers/net/wireless/intersil/p54/p54spi_eeprom.h
Extension
.h
Size
26347 bytes
Lines
667
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef P54SPI_EEPROM_H
#define P54SPI_EEPROM_H

static unsigned char p54spi_eeprom[] = {

/* struct eeprom_pda_wrap */
0x47, 0x4d, 0x55, 0xaa,	/* magic */
0x00, 0x00,		/* pad */
0x00, 0x00,		/* eeprom_pda_data_wrap length */
0x00, 0x00, 0x00, 0x00,	/* arm opcode */

/* bogus MAC address */
0x04, 0x00, 0x01, 0x01,		/* PDR_MAC_ADDRESS */
	0x00, 0x02, 0xee, 0xc0, 0xff, 0xee,

/* struct bootrec_exp_if */
0x06, 0x00, 0x01, 0x10,		/* PDR_INTERFACE_LIST */
	0x00, 0x00,			/* role */
	0x0f, 0x00,			/* if_id */
	0x85, 0x00,			/* variant = Longbow RF, 2GHz */
	0x01, 0x00,			/* btm_compat */
	0x1f, 0x00,			/* top_compat */

0x03, 0x00, 0x02, 0x10,		/* PDR_HARDWARE_PLATFORM_COMPONENT_ID */
	0x03, 0x20, 0x00, 0x43,

/* struct pda_country[6] */
0x0d, 0x00, 0x07, 0x10,		/* PDR_COUNTRY_LIST */
	0x10, 0x00, 0x00, 0x00,
	0x20, 0x00, 0x00, 0x00,
	0x30, 0x00, 0x00, 0x00,
	0x31, 0x00, 0x00, 0x00,
	0x32, 0x00, 0x00, 0x00,
	0x40, 0x00, 0x00, 0x00,

/* struct pda_country */
0x03, 0x00, 0x08, 0x10,		/* PDR_DEFAULT_COUNTRY */
	0x30, 0x00, 0x00, 0x00,		/* ETSI */

0x03, 0x00, 0x00, 0x11,		/* PDR_ANTENNA_GAIN */
	0x08, 0x08, 0x08, 0x08,

0x0a, 0x00, 0xff, 0xca,		/* PDR_RSSI_LINEAR_APPROXIMATION_CUSTOMV2 */
	0x01, 0x00, 0x0a, 0x00,
	0x00, 0x00, 0x0a, 0x00,
		0x85, 0x09, 0x0a, 0x01, 0x72, 0xfe, 0x1a, 0x00, 0x00, 0x00,

/* struct pda_custom_wrapper */
0x10, 0x06, 0x5d, 0xb0,		/* PDR_PRISM_PA_CAL_CURVE_DATA_CUSTOM */
	0x0d, 0x00, 0xee, 0x00,		/* 13 entries, 238 bytes per entry */
	0x00, 0x00, 0x16, 0x0c,		/* no offset, 3094 total len */
		/* 2412 MHz */
		0x6c, 0x09,
			0x10, 0x01, 0x9a, 0x84,
				0xaa, 0x8a, 0xaa, 0x8a, 0xaa, 0x8a, 0xaa, 0x8a,
				0x3c, 0xb6, 0x3c, 0xb6, 0x3c, 0xb6, 0x3c, 0xb6,
				0x3c, 0xb6, 0x3c, 0xb6, 0x3c, 0xb6, 0x3c, 0xb6,
			0xf0, 0x00, 0x94, 0x6c,
				0x99, 0x82, 0x99, 0x82, 0x99, 0x82, 0x99, 0x82,
				0x2b, 0xae, 0x2b, 0xae, 0x2b, 0xae, 0x2b, 0xae,
				0x2b, 0xae, 0x2b, 0xae, 0x2b, 0xae, 0x2b, 0xae,
			0xd0, 0x00, 0xaa, 0x5a,
				0x88, 0x7a, 0x88, 0x7a, 0x88, 0x7a, 0x88, 0x7a,
				0x1a, 0xa6, 0x1a, 0xa6, 0x1a, 0xa6, 0x1a, 0xa6,
				0x1a, 0xa6, 0x1a, 0xa6, 0x1a, 0xa6, 0x1a, 0xa6,
			0xa0, 0x00, 0xf3, 0x47,
				0x6e, 0x6e, 0x6e, 0x6e, 0x6e, 0x6e, 0x6e, 0x6e,
				0x00, 0x9a, 0x00, 0x9a, 0x00, 0x9a, 0x00, 0x9a,
				0x00, 0x9a, 0x00, 0x9a, 0x00, 0x9a, 0x00, 0x9a,
			0x50, 0x00, 0x59, 0x36,
				0x43, 0x5a, 0x43, 0x5a, 0x43, 0x5a, 0x43, 0x5a,
				0xd5, 0x85, 0xd5, 0x85, 0xd5, 0x85, 0xd5, 0x85,
				0xd5, 0x85, 0xd5, 0x85, 0xd5, 0x85, 0xd5, 0x85,
			0x00, 0x00, 0xe4, 0x2d,
				0x18, 0x46, 0x18, 0x46, 0x18, 0x46, 0x18, 0x46,
				0xaa, 0x71, 0xaa, 0x71, 0xaa, 0x71, 0xaa, 0x71,
				0xaa, 0x71, 0xaa, 0x71, 0xaa, 0x71, 0xaa, 0x71,
			0x00, 0x80, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
			0x00, 0x80, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
			0x00, 0x00, 0x00, 0x00,
				0x00, 0x00, 0x00, 0x00, 0x06, 0x80, 0x80, 0x00,

		/* 2417 MHz */
		0x71, 0x09,

Annotation

Implementation Notes