smsc9118.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 59 行

H
59
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: EK
 *  Created: Mon Feb 27 12:01:47 2006
 *
 *******************************************************************/

#ifndef SMSC9118_H
#define SMSC9118_H

/*;emacs generated header for file smsc9118.c. Global function declarations only. */
extern void
smsc9118_dump_regs(struct netif *netif);
/**
 * Allocate, initialize, and attach a LAN91C111 ethernet interface.
 *
 * @param [out] netif A pointer to a netif describing the new interface
 * @param [in] link_layer_address Link layer/MAC address of this interface.
 * @param [in] base_address Where the chip is located in the memory space.
 * @param [in] input_irq_pin The GPIO pin (VD0-VD7) which will receive the 
 *           interrupt from LAN91c111, triggered by high level.
 * @param [in]  ipaddr IP Address to assign to the interface.  If this is
              NULL, dhcp will be started.
 * @param [in]  netmask Network mask for this interface.
 * @param [in]  gw Default gateway
 *
 * @returns ERR_MEM if memory couldn't be allocated, otherwise ERR_OK.
 */
extern err_t
smsc9118_create(struct netif **netif,
                u8_t *link_layer_address,
                unsigned long *base_address,
                u8_t irq_pin,
                struct ip_addr *ipaddr, 
                struct ip_addr *netmask,
                struct ip_addr *gw);

/**
 * Prevent receiving and transmitting packets on a L91C111
 * ethernet interface.
 * @param [in] netif Interface to operate on
 */
extern void smsc9118_stop(struct netif *netif);

/**
 * Allow receiving and transmitting packets on a L91C111
 * ethernet interface.
 * @param [in] netif Interface to operate on
 */
extern void smsc9118_start(struct netif *netif);

/*;end emacs generated header for file smsc9118.c. Global function declarations only. */

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?