-CROSS_CCOPTS += -I../dev/
+CROSS_CCOPTS += -I../dev/ -I../dev/net/
CSRCS = devtty.c
DSRCS = ../dev/blkdev.c ../dev/devide.c ../dev/mbr.c ../dev/ds1302_discard.c
DSRCS += ../dev/propio2.c ../dev/ds1302.c
DSRCS += ../dev/devfd.c ../dev/ppide_rbc.c
+NSRCS = ../dev/net/net_wiznet.c ../dev/net/net_native.c
DASRCS = ../dev/rbcfd9266_hw.s ../dev/ds1302_rbc.s
-NSRCS =
-
COBJS = $(CSRCS:.c=.rel)
AOBJS = $(ASRCS:.s=.rel)
NOBJS = $(patsubst ../dev/net/%.c,%.rel, $(NSRCS))
*/
#define TICKSPERSEC 10 /* Ticks per second */
+/* Core networking support */
+#define CONFIG_NET
+/* With a WizNet card */
+#define CONFIG_NET_WIZNET
+/* Or native (eg SLIP) */
+//#define CONFIG_NET_NATIVE
+
/*
* The device (major/minor) for the console and boot up tty attached to
* init at start up. 512 is the major 2, so all the tty devices are
#include <blkdev.h>
#include <devide.h>
#include <propio2.h>
-#include <devrtc.h>
+#include <ds1302.h>
extern int strcmp(const char *, const char *);
devide_init();
prop_sd_probe();
ds1302_init();
+ sock_init();
}
syscall_fs3.rel
syscall_proc.rel
syscall_other.rel
+syscall_net.rel
tty.rel
mm.rel
swap.rel
platform-sbcv2/ds1302_rbc.rel
platform-sbcv2/devfd.rel
platform-sbcv2/rbcfd9266_hw.rel
+platform-sbcv2/net_native.rel
+platform-sbcv2/net_wiznet.rel
-e
#include <devtty.h>
#include <rtc.h>
#include <ds1302.h>
+#include <net_wiznet.h>
uint16_t ramtop = PROGTOP;
uint16_t swap_dev = 0xFFFF;
void platform_interrupt(void)
{
tty_poll();
+#ifdef CONFIG_NET_WIZNET
+ wiz_poll();
+#endif
}
/* This points to the last buffer in the disk buffers. There must be at least