/******************************************************************************/
/*                       Copyright 2001 Broadcom Corporation                  */
/*                                                                            */
/* This material is the confidential trade secret and proprietary information */
/* of Broadcom Corp.  It may not be reproduced, used, sold or transferred to  */
/* any third party without the prior written consent of Broadcom Corp.        */
/* All rights reserved.                                                       */
/******************************************************************************/
/*   FileName        : stpHeader.c                                            */
/*   Purpose         : Definition of layout variables for STP related types   */
/*   Limitations     : None                                                   */
/*   Author          : Emmanuel Hanssens                                      */
/*   Creation Date   : 12-Oct-2001                                            */
/*   History         : Compiled by RCS                                        */
/******************************************************************************/
/*   $Id: bcm_stp.c,v 1.2 2004/06/21 07:12:05 hanssens Exp $  */
/******************************************************************************/

#include "bcm_stp.h"

/* error messages */
const char * stpErr[ ] =
{
  "no error",
  "message size larger than max STP message size",          /* ESTPSIZE */
  "STP answer only returns %d bytes (expecting %d)",        /* ESTPSHRT */
  "Not enough data read from the PHY link",                 /* ESTPDATA */
  "Got rubbish instead of STP answer",                      /* ESTPRUBB */
  "STP answer indicates failure",                           /* ESTPFAIL */
};

typeLayout STPheaderLayout[] =
{
  {1, sizeof(uint32)},
  {2, sizeof(uint8)},
  {1, sizeof(uint16)},
  {0, 0}
};

typeLayout STPrequestLayout[] =
{
  {2, sizeof(uint16)},
  {4, sizeof(uint8)},
  {0, 0}
};

typeLayout STPanswerLayout[] =
{
  {1, sizeof(uint16)},
  {2, sizeof(uint8)},
  {0, 0}
};

typeLayout STPmsgSizeLayout[] =
{
  {2, sizeof(uint32)},
  {0, 0}
};
