2 * Misc useful routines to access NIC local SROM/OTP .
4 * Copyright 2006, Broadcom Corporation
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 * $Id: bcmsrom.h,v 1.1.1.13 2006/04/15 01:29:08 michael Exp $
18 /* Maximum srom: 4 Kilobits == 512 bytes */
21 /* SROM Rev 4: Reallocate the software part of the srom to accomodate
22 * MIMO features. It assumes up to two PCIE functions and 440 bytes
23 * of useable srom i.e. the useable storage in chips with OTP that
24 * implements hardware redundancy.
27 #define SROM4_WORDS 220
30 #define SROM4_SIGNATURE 0x5372
39 #define SROM4_MACHI 38
40 #define SROM4_MACMID 39
41 #define SROM4_MACLO 40
43 #define SROM4_CCODE 41
44 #define SROM4_REGREV 42
46 #define SROM4_LEDBH10 43
47 #define SROM4_LEDBH32 44
49 #define SROM4_LEDDC 45
52 #define SROM4_AA2G_MASK 0x00ff
53 #define SROM4_AA2G_SHIFT 0
54 #define SROM4_AA5G_MASK 0xff00
55 #define SROM4_AA5G_SHIFT 8
60 #define SROM4_TXPID2G 49
61 #define SROM4_TXPID5G 51
62 #define SROM4_TXPID5GL 53
63 #define SROM4_TXPID5GH 55
67 #define SROM4_PATH0 64
68 #define SROM4_PATH1 87
69 #define SROM4_PATH2 110
70 #define SROM4_PATH3 133
72 #define SROM4_2G_ITT_MAXP 0
74 #define SROM4_5G_ITT_MAXP 5
75 #define SROM4_5GLH_MAXP 6
77 #define SROM4_5GL_PA 11
78 #define SROM4_5GH_PA 15
80 /* Fields in the ITT_MAXP and 5GLH_MAXP words */
81 #define B2G_MAXP_MASK 0xff
82 #define B2G_ITT_SHIFT 8
83 #define B5G_MAXP_MASK 0xff
84 #define B5G_ITT_SHIFT 8
85 #define B5GH_MAXP_MASK 0xff
86 #define B5GL_MAXP_SHIFT 8
88 /* All the miriad power offsets */
89 #define SROM4_2G_CCKPO 156
90 #define SROM4_2G_OFDMPO 157
91 #define SROM4_5G_OFDMPO 159
92 #define SROM4_5GL_OFDMPO 161
93 #define SROM4_5GH_OFDMPO 163
94 #define SROM4_2G_MCSPO 165
95 #define SROM4_5G_MCSPO 173
96 #define SROM4_5GL_MCSPO 181
97 #define SROM4_5GH_MCSPO 189
98 #define SROM4_CCDPO 197
99 #define SROM4_STBCPO 198
100 #define SROM4_BW40PO 199
101 #define SROM4_BWDUPPO 200
103 extern int srom_var_init(void *sbh
, uint bus
, void *curmap
, osl_t
*osh
, char **vars
, uint
*count
);
105 extern int srom_read(uint bus
, void *curmap
, osl_t
*osh
, uint byteoff
, uint nbytes
, uint16
*buf
);
106 extern int srom_write(uint bus
, void *curmap
, osl_t
*osh
, uint byteoff
, uint nbytes
, uint16
*buf
);
108 #endif /* _bcmsrom_h_ */
This page took 0.064026 seconds and 5 git commands to generate.