⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ether.h~

📁 针对德州仪器DM270开发板的bootloader,其实现了内核的下载以及文件系统的下载
💻 H~
字号:
/* * File: ether.h * * This is an ethernet driver interface. The implemention of this interface * will interact with the particular ethernet h/w chipset; the "link" layer * of the ISO-7 layer networking stack. Clients use this interface to gain * access to the h/w dependent ethernet chipset. * * See Also *   smc91xxx.c     -- A particular implementation exposing the ether.h interface. *   ether_cs8900.c -- A particular implementation exposing the ether.h interface. * * Copyright (C) 2002 RidgeRun, Inc. * Author: RidgeRun, Inc  <skranz@ridgerun.com> * *  This program is free software; you can redistribute  it and/or modify it *  under  the terms of  the GNU General  Public License as published by the *  Free Software Foundation;  either version 2 of the  License, or (at your *  option) any later version. * *  THIS  SOFTWARE  IS  PROVIDED  ``AS  IS''  AND   ANY  EXPRESS  OR IMPLIED *  WARRANTIES,   INCLUDING, BUT NOT  LIMITED  TO, THE IMPLIED WARRANTIES OF *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN *  NO  EVENT  SHALL   THE AUTHOR  BE    LIABLE FOR ANY   DIRECT,  INDIRECT, *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT *  NOT LIMITED   TO, PROCUREMENT OF  SUBSTITUTE GOODS  OR SERVICES; LOSS OF *  USE, DATA,  OR PROFITS; OR  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON *  ANY THEORY OF LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF *  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *  You should have received a copy of the  GNU General Public License along *  with this program; if not, write  to the Free Software Foundation, Inc., *  675 Mass Ave, Cambridge, MA 02139, USA. * * Please report all bugs/problems to the author or <support@dsplinux.net> * * key: RRGPLCR (do not remove) * */#ifndef ETHER_H#define ETHER_Htypedef enum {  SEND_AND_GET_REPLY,  SEND,  RECV,  FLUSH} submit_mode;//#ifdef BSPCONF_BTLDR_CS8900_DEBUGextern unsigned short readreg(unsigned short reg_offset);  //may be cs8900 only//#endifextern void ether_submit(submit_mode mode,            // in                         char *device_MAC,            // in, Can be NULL only if chipset has built in MAC                         char *server_MAC,            // in                         void *datagram,              // in/out                         unsigned short *num_bytes);  // in/out  // --ether_submit--  // Used by clients to send/receive datagrams to/from the ethernet  // port. The underlying implementation will construct and prepend  // the necessary ethernet frame header onto the front of the  // client supplied datagram. For this reason it is important that  // the client arrange that the bytes directly proceeding the  // the *datagram buffer be allocated and available for the ether  // submit function. sizeof(ether_hdr_t) bytes.extern void ether_init(void);  // --ether_init--  // Called once at bootloader init to initialize the module and make  // it ready for client use.#endif

⌨️ 快捷键说明

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