/**********************************************************************************************************************/
/*  wip_drv_enc28j60.h -  Copyright Sierra Wireless Inc. (c) 2010                                                     */
/*                                                                                                                    */
/*                                                                                                                    */
/* LICENSE                                                                                                            */
/* =======                                                                                                            */
/* If no specific agreement has been signed, this Source Code is subject to the following license terms:              */
/* http://www.sierrawireless.com/productsandservices/AirPrime/Sierra_Wireless_Software_Suite/License/Userlicense.aspx */
/* If you modify this file, you are subject to the contribution rules described into this license                     */
/**********************************************************************************************************************/

/****************************************************************************/
/* File    :   wip_drv_enc28j60.h                                           */
/*                                                                          */
/* Scope   :   Microchip ENC28J60 Ethernet driver                           */
/****************************************************************************/

#ifndef __WIP_DRV_ENC28J60_H_INCLUDED__
#define __WIP_DRV_ENC28J60_H_INCLUDED__

#include "wip_drv.h"
#include "adl_gpio.h"

/* driver registration */
static s32 wip_drvSubscribe_ENC28J60 ( const ascii * name, /* name of bearer */
                                       u32 spiId, /* SPI id */
                                       adl_ioDefs_t csGpioId, /* chip select GPIO id */
                                       u32 extIntId, /* external interrupt id */
                                       adl_ioDefs_t resetGpioId, /* GPIO id of RESET line */
                                       adl_ioDefs_t powerGpioId, /* GPIO id of POWER_EN line */
                                       const wip_ethAddr_t * macAddr ); /* MAC address */

/* set powerGpioId to ((adl_ioDefs_t) -1) if not used
 * set macAddr to NULL if address is set with bearer API
 */
static void wip_drvUnsubscribe_ENC28J60 ( u32 handle );
static s32 DriverOpenIesm ( psEthSettings_t Settings );

#endif /* __WIP_DRV_ENC28J60_H_INCLUDED__ */
