/******************************************************************************/
/*                 Copyright C 1998-2002 Broadcom Corporation                 */
/*                                                                            */
/* This material is the confidential trade secret and proprietary information */
/* of Broadcom Corporation.  It may not be reproduced, used, sold or          */
/* transferred to any third party without the prior written consent of        */
/* Broadcom Corporation.   All rights reserved.                               */
/******************************************************************************/
/*   FileName        : bcm_devObject.c                                        */
/*   Purpose         : Wraper for device object for standalone work           */
/*   Limitations     : None                                                   */
/*   Author          : Emmanuel Hanssens                                      */
/*   Creation Date   : 04-Apr-2002                                            */
/*   History         : Compiled by RCS                                        */
/******************************************************************************/
/*   $Id: bcm_devObject.c,v 1.4 2004/09/08 16:26:28 hanssens Exp $  */
/******************************************************************************/

#include <string.h>
#include "bcm_devObject.h"
#include "bcm_lineObject.h"

/* device objects (global) */
DevObject devObjects[NB_BCM_DEV];

/* {{{ initDevObject */
void initDevObject(uint8 devId)
{
  DevObject    *devPtr = getDevPtr(devId);
  
  /* init variables */

  memset(devPtr, 0, sizeof(DevObject));

  devPtr->devId    = devId;
  devPtr->devState = DEVICE_IDLE;
  devPtr->linePtr  = getLinePtr(devId*BCM_DEV_NB_LINES);
}
/* }}} */
