Skip to content

Commit

Permalink
Staging: sxg: Firmware updates
Browse files Browse the repository at this point in the history
* Add new firmware and remove all firmware file.
* Add a switch to load either debug or free firmware.

Signed-off-by: Christopher Harrer <charrer@alacritech.com>
Signed-off-by: LinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mithlesh Thukral authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 54aed11 commit a3915dd
Show file tree
Hide file tree
Showing 7 changed files with 9,614 additions and 4,856 deletions.
5,124 changes: 5,124 additions & 0 deletions drivers/staging/sxg/saharadbgdownload.c

Large diffs are not rendered by default.

4,854 changes: 0 additions & 4,854 deletions drivers/staging/sxg/saharadbgdownload.h

This file was deleted.

14 changes: 14 additions & 0 deletions drivers/staging/sxg/saharadbgdownloadB.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#define SAHARA_B_UCODE_VERS_STRING "$Revision: 1.1 $"
#define SAHARA_B_UCODE_VERS_DATE "$Date: 2008/08/19 00:05:59 $"
#define SAHARA_B_UCODE_HOSTIF_ID 3

static u32 SBNumSections = 0x1;
static u32 SBSectionSize[] =
{
0x0000c9a8, 0x0000000c, };

static u32 SBSectionStart[] =
{
0x00000000, 0x00001fff, };

static unsigned char SaharaUCodeB[1][1];
4,446 changes: 4,446 additions & 0 deletions drivers/staging/sxg/saharadownload.c

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions drivers/staging/sxg/saharadownloadB.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#define SAHARA_B_UCODE_VERS_STRING "$Revision: 1.1 $"
#define SAHARA_B_UCODE_VERS_DATE "$Date: 2008/08/19 00:05:59 $"
#define SAHARA_B_UCODE_HOSTIF_ID 3

static u32 SBNumSections = 0x1;
static u32 SBSectionSize[] =
{
0x0000c9a8, 0x0000000c, };

static u32 SBSectionStart[] =
{
0x00000000, 0x00001fff, };

static unsigned char SaharaUCodeB[1][1];
9 changes: 8 additions & 1 deletion drivers/staging/sxg/sxg.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@
#include "sxgdbg.h"

#include "sxgphycode.h"
#include "saharadbgdownload.h"
#define SXG_UCODE_DBG 0 /* Turn on for debugging */
#ifdef SXG_UCODE_DBG
#include "saharadbgdownload.c"
#include "saharadbgdownloadB.c"
#else
#include "saharadownload.c"
#include "saharadownloadB.c"
#endif

static int sxg_allocate_buffer_memory(struct adapter_t *adapter, u32 Size,
enum sxg_buffer_type BufferType);
Expand Down
9 changes: 8 additions & 1 deletion drivers/staging/sxg/sxg_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@
#include "sxghif.h"
#include "sxg.h"
//#include "sxg.c"
#include "saharadbgdownload.h"
#define SXG_UCODE_DBG 0 /* Turn on for debugging */
#ifdef SXG_UCODE_DBG
#include "saharadbgdownload.c"
#include "saharadbgdownloadB.c"
#else
#include "saharadownload.c"
#include "saharadownloadB.c"
#endif

struct sxg_nic_stats {
char stat_string[ETH_GSTRING_LEN];
Expand Down

0 comments on commit a3915dd

Please sign in to comment.