<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/net/bnx2x_init.h, branch master</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=master</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2010-07-28T03:35:39+00:00</updated>
<entry>
<title>bnx2x: Create separate folder for bnx2x driver</title>
<updated>2010-07-28T03:35:39+00:00</updated>
<author>
<name>Dmitry Kravkov</name>
<email>dmitry@broadcom.com</email>
</author>
<published>2010-07-27T12:31:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5d1e859c5b600c491336f023a2f2105c24597226'/>
<id>urn:sha1:5d1e859c5b600c491336f023a2f2105c24597226</id>
<content type='text'>
This commit includes files movement to newly created folder
using git-mv command and fixes references in cnic and bnx2x code
to each other.

files moved using following:
#!/bin/bash
mkdir drivers/net/bnx2x/
list=$(cd drivers/net/ &amp;&amp; ls bnx2x*.[ch])
for f in $list; do
        git mv -f drivers/net/$f drivers/net/bnx2x/$f
done

Signed-off-by: Dmitry Kravkov &lt;dmitry@broadcom.com&gt;
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Re-factor the initialization code</title>
<updated>2009-08-13T06:02:59+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-08-12T08:24:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=573f203574581faaf80ca4fc079d33452327fc3b'/>
<id>urn:sha1:573f203574581faaf80ca4fc079d33452327fc3b</id>
<content type='text'>
Moving the code to a more logical place and beautifying it. No real change in
behavior.

Signed-off-by: Vladislav Zolotarov &lt;vladz@broadcom.com&gt;
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Separated FW from the source.</title>
<updated>2009-04-27T10:27:43+00:00</updated>
<author>
<name>Vladislav Zolotarov</name>
<email>vladz@broadcom.com</email>
</author>
<published>2009-04-27T10:27:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=94a78b79cb5f14c09a42522738d6694c6a1cdd20'/>
<id>urn:sha1:94a78b79cb5f14c09a42522738d6694c6a1cdd20</id>
<content type='text'>
&gt;From now on FW will be downloaded from the binary file using request_firmware.

There will be different files for every supported chip. Currently 57710 (e1) and
57711 (e1h).

File names have the following format: bnx2x-&lt;chip version&gt;-&lt;FW version&gt;.fw.
ihex versions of current FW files are submitted in the next patch.

Each binary file has a header in the following format:


struct bnx2x_fw_file_section {
	__be32 len;
	__be32 offset;
}

struct bnx2x_fw_file_hdr {
	struct bnx2x_fw_file_section init_ops;
	struct bnx2x_fw_file_section init_ops_offsets;
	struct bnx2x_fw_file_section init_data;
	struct bnx2x_fw_file_section tsem_int_table_data;
	struct bnx2x_fw_file_section tsem_pram_data;
	struct bnx2x_fw_file_section usem_int_table_data;
	struct bnx2x_fw_file_section usem_pram_data;
	struct bnx2x_fw_file_section csem_int_table_data;
	struct bnx2x_fw_file_section csem_pram_data;
	struct bnx2x_fw_file_section xsem_int_table_data;
	struct bnx2x_fw_file_section xsem_pram_data;
	struct bnx2x_fw_file_section fw_version;
}

Each bnx2x_fw_file_section contains the length and the offset of the appropriate
section in the binary file. Values are stored in the big endian format.

Data types of arrays:

init_data            __be32
init_ops_offsets     __be16
XXsem_pram_data         u8
XXsem_int_table_data    u8
init_ops             struct raw_op {
                          u8   op;
			__be24 offset;
                        __be32 data;
		     }
fw_version              u8

&gt;From now boundaries of a specific initialization stage are stored in
init_ops_offsets array instead of being defined by separate macroes. The index 
in init_ops_offsets is calculated by BLOCK_OPS_IDX macro:

#define BLOCK_OPS_IDX(block, stage, end) \
       (2*(((block)*STAGE_IDX_MAX) + (stage)) + (end))

Security:

In addition to sanity check of array boundaries bnx2x will check a FW version.
Additional checks might be added in the future.

Signed-off-by: Vladislav Zolotarov &lt;vladz@broadcom.com&gt;
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Whitespace</title>
<updated>2009-03-03T06:32:46+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-03-02T08:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c016201c5c6520abfcbd0c539fbf2524dd431ce6'/>
<id>urn:sha1:c016201c5c6520abfcbd0c539fbf2524dd431ce6</id>
<content type='text'>
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Using DMA engine</title>
<updated>2009-03-03T06:32:41+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-03-02T07:59:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=490c3c9bf986545bdd99dcd4b0045c747564be39'/>
<id>urn:sha1:490c3c9bf986545bdd99dcd4b0045c747564be39</id>
<content type='text'>
Using DMA engine (DMAE) to initialize large consecutive memories in the chip

Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Version</title>
<updated>2009-02-16T07:32:01+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-02-12T08:38:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2b1440230abc8fae0271b012711ecaf64eb38f86'/>
<id>urn:sha1:2b1440230abc8fae0271b012711ecaf64eb38f86</id>
<content type='text'>
And updating the year

Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Comments and prints</title>
<updated>2009-02-16T07:31:57+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-02-12T08:38:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f53722514242da8346cbed2223bcea9eed744ebd'/>
<id>urn:sha1:f53722514242da8346cbed2223bcea9eed744ebd</id>
<content type='text'>
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Optimize chip MPS configuration</title>
<updated>2009-02-16T07:31:48+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-02-12T08:38:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=26e029752c8f8671b1de83fe86906fc29f9eda92'/>
<id>urn:sha1:26e029752c8f8671b1de83fe86906fc29f9eda92</id>
<content type='text'>
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Memory clean up on failure</title>
<updated>2009-02-16T07:31:47+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-02-12T08:37:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cfb18c5cb7ef5506a2864f9ec360cbb2ca6e8d28'/>
<id>urn:sha1:cfb18c5cb7ef5506a2864f9ec360cbb2ca6e8d28</id>
<content type='text'>
Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2x: Manual setting for MRRS</title>
<updated>2009-02-16T07:31:42+00:00</updated>
<author>
<name>Eilon Greenstein</name>
<email>eilong@broadcom.com</email>
</author>
<published>2009-02-12T08:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8d5726c404fd41fedb7a49e1fbef62c60754021a'/>
<id>urn:sha1:8d5726c404fd41fedb7a49e1fbef62c60754021a</id>
<content type='text'>
Allows better debug capabilities if the user wants to force an MRRS value

Signed-off-by: Eilon Greenstein &lt;eilong@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
