From: Matt Wojcik Date: Mon, 4 Aug 2008 21:43:51 +0000 (+0000) Subject: Added the NE2K_Packet_Info struct. X-Git-Tag: vmmhack1-ramdisk-boot-iso-puppy~22 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=d7abb3844179bcd1089e56980b9628a7e54ab851 Added the NE2K_Packet_Info struct. --- diff --git a/palacios/include/geekos/ne2k.h b/palacios/include/geekos/ne2k.h index 7b74572..d17a646 100644 --- a/palacios/include/geekos/ne2k.h +++ b/palacios/include/geekos/ne2k.h @@ -14,10 +14,10 @@ /* Page 0 register offsets */ #define NE2K CLDA0 (NE2K_CR + 0x01) -#define NE2K_PSTART (NE2K_CR + 0x01) +#define NE2K_PSTART (NE2K_CR + 0x01) /* Page start register */ #define NE2K_CLDA1 (NE2K_CR + 0x02) -#define NE2K_PSTOP (NE2K_CR + 0x02) -#define NE2K_BNRY (NE2K_CR + 0x03) +#define NE2K_PSTOP (NE2K_CR + 0x02) /* Page stop register */ +#define NE2K_BNRY (NE2K_CR + 0x03) /* Boundary register */ #define NE2K_TSR (NE2K_CR + 0x04) #define NE2K_TPSR (NE2K_CR + 0x04) #define NE2K_NCR (NE2K_CR + 0x05) @@ -149,8 +149,14 @@ struct _RSR { //RECEIVE STATUS REG uint_t dfr: 1; //DEFERRING }__attribute__((__packed__)) __attribute__((__aligned__(1))); +struct NE2K_Packet_Info { + uchar_t status; + uint_t size; + uchar_t src[6]; + uchar_t dest[6]; +}; + int Init_Ne2k(); -int NE2K_Transmit(struct NE2K_REGS *); int NE2K_Receive(); int NE2K_Send(struct NE2K_REGS *regs, uchar_t src[], uchar_t dest[], uint_t type, uchar_t *data, uint_t size);