Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 332 → Rev 333

/shark/trunk/drivers/net/net_init.c
197,10 → 197,10
 
dev->change_mtu = eth_change_mtu;
/* dev->hard_header = eth_header; */
dev->rebuild_header = eth_rebuild_header;
dev->rebuild_header = (void *)((void *)(eth_rebuild_header));
dev->set_mac_address = eth_mac_addr;
dev->header_cache_bind = eth_header_cache_bind;
dev->header_cache_update= eth_header_cache_update;
dev->header_cache_bind = (void *)((void *)(eth_header_cache_bind));
dev->header_cache_update= (void *)((void *)(eth_header_cache_update));
 
dev->type = ARPHRD_ETHER;
dev->hard_header_len = ETH_HLEN;
/shark/trunk/drivers/net/eth.c
20,11 → 20,11
 
/**
------------
CVS : $Id: eth.c,v 1.4 2003-07-10 07:52:04 pj Exp $
CVS : $Id: eth.c,v 1.5 2003-11-15 12:53:47 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2003-07-10 07:52:04 $
Revision: $Revision: 1.5 $
Last update: $Date: 2003-11-15 12:53:47 $
------------
**/
 
371,13 → 371,25
}
}
 
void skb_init(void);
void linuxpci_init(void);
int rtl8139_probe(struct device *dev);
int tc59x_probe(struct device *dev);
int el3_probe(struct device *dev);
int ne_probe(struct device *dev);
 
int eth_init(int mode, TASK_MODEL *m)
{
SOFT_TASK_MODEL m_soft;
int i, ndev;
int i;
#if 0
ndev;
WORD Class;
struct pci_regs *r;
PID p;
 
#endif
 
BYTE cardtype;
int linux_found = 0;
 
/shark/trunk/drivers/net/arp.c
20,11 → 20,11
 
/**
------------
CVS : $Id: arp.c,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $
CVS : $Id: arp.c,v 1.2 2003-11-15 12:53:47 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:50 $
Revision: $Revision: 1.2 $
Last update: $Date: 2003-11-15 12:53:47 $
------------
**/
 
251,7 → 251,7
void arp_send(void *pkt, IP_ADDR dest, int len)
{
int i,j;
PKT_NXT *p,*p1;
PKT_NXT *p,*p1 = NULL;
int caso;
#ifdef __ARP_DBG__
char msg[50];
328,7 → 328,7
ARP_PKT *pkt,*rpkt;
PKT_NXT *p1,*q1;
int len;
int i,j;
int i,j = 0;
#ifdef __ARP_DBG__
char msg[100];
#endif
/shark/trunk/drivers/net/net.c
20,11 → 20,11
 
/**
------------
CVS : $Id: net.c,v 1.2 2002-10-28 08:01:36 pj Exp $
CVS : $Id: net.c,v 1.3 2003-11-15 12:53:48 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2002-10-28 08:01:36 $
Revision: $Revision: 1.3 $
Last update: $Date: 2003-11-15 12:53:48 $
------------
**/
 
66,9 → 66,9
//#define DEBUG_NET
 
/* OKKIO!!!!! net_base must change if you change NET_MAX_PROTOCOLS!!!! */
struct net_model net_base = {0, 0, {NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL}};
struct net_model net_base = {0, 0, {{NULL, NULL}, {NULL, NULL}, {NULL, NULL}, {NULL,
NULL}, {NULL, NULL}, {NULL, NULL}, {NULL, NULL},
{NULL, NULL}, {NULL, NULL}, {NULL, NULL}}};
 
void net_setprotocol(struct net_model *m, void (*initfun)(void *parm), void *initparms)
{
85,7 → 85,7
int app;
 
/* First, initialize the base layers: eth & lowlev */
if (app = eth_init(m->lowlevparm,NULL) != 1) {
if ((app = eth_init(m->lowlevparm,NULL)) != 1) {
return app;
}
/* Then, the high level layers */
/shark/trunk/drivers/net/int.c
15,9 → 15,10
static void linux_intr(int irq)
{
struct pt_regs regs;
#ifdef NOTWORK
SYS_FLAGS f;
#endif
 
 
/* kstat.interrupts[irq]++;*/
intr_count++;
 
/shark/trunk/drivers/linuxcom/include/linux/netdevice.h
17,7 → 17,6
#define le32_to_cpu(val) (val)
#define cpu_to_le32(val) (val)
#define cpu_to_le16(val) (val)
#define le16_to_cpu(val) (val)
#define test_and_set_bit(val, addr) set_bit(val, addr)
 
static __inline__ void mdelay(int x)
/shark/trunk/drivers/linuxcom/include/linux/compatib.h
76,7 → 76,6
//#define printk cprintf I would like to use the kernel printk if possible...
#define check_region(a,b) 0
#define request_region(a,b,c)
#define release_region(a,b);
#define release_region(a,b)
 
/* Linux funcs emulation... */
174,12 → 173,5
/* *** from linux-2.2.17/include/linux/byteorder/generic.h */
#define le16_to_cpu __le16_to_cpu
 
// Module.h stuffs
#define MODULE_AUTHOR(name)
#define MODULE_DESCRIPTION(desc)
#define MODULE_SUPPORTED_DEVICE(name)
#define MODULE_PARM(var,type)
#define MODULE_PARM_DESC(var,desc)
 
__END_DECLS
#endif
/shark/trunk/drivers/linuxcom/net_init.c
197,10 → 197,10
 
dev->change_mtu = eth_change_mtu;
/* dev->hard_header = eth_header; */
dev->rebuild_header = eth_rebuild_header;
dev->rebuild_header = (void *)((void *)(eth_rebuild_header));
dev->set_mac_address = eth_mac_addr;
dev->header_cache_bind = eth_header_cache_bind;
dev->header_cache_update= eth_header_cache_update;
dev->header_cache_bind = (void *)((void *)(eth_header_cache_bind));
dev->header_cache_update= (void *)((void *)(eth_header_cache_update));
 
dev->type = ARPHRD_ETHER;
dev->hard_header_len = ETH_HLEN;