Completed integration of TFE driver into Contiki for the Apple2:
- Although there's currently only one packet driver available it's name is user-configurable ... it's so cool to have (un-)loadable drivers ;-)
- The configedit app doesn't read in the config file. Instead it get's the current values from the running system. For the packet driver name this means to extract it from the process list (assuming the name "Packet driver: xxx"). This menas that even if you kill a packet driver and load a different one via "run program ..." the configedit app will still show the true status.
- The changes to the cs8900a code are 100% untested so "expect the unexpected" ;-)
diff --git a/contiki-apple2/apps/config.h b/contiki-apple2/apps/config.h
index 7c1bac8..e4e806c 100644
--- a/contiki-apple2/apps/config.h
+++ b/contiki-apple2/apps/config.h
@@ -32,7 +32,7 @@
  *
  * This file is part of the Contiki desktop environment 
  *
- * $Id: config.h,v 1.3 2004/12/26 14:13:34 oliverschmidt Exp $
+ * $Id: config.h,v 1.4 2005/01/26 21:33:29 oliverschmidt Exp $
  *
  */
 #ifndef __CONFIG_H__
@@ -41,10 +41,16 @@
 typedef struct {
   unsigned char bkgnd;
   unsigned char slot;
+  char driver[16];
   u16_t ipaddr[2];
   u16_t netmask[2];
   u16_t gateway[2];
   u16_t dnsserver[2];
 } config_t;
 
+extern unsigned char lanslot;
+
+#define config_getlanslot()	lanslot
+#define config_setlanslot(slot)	lanslot = (slot)
+
 #endif /* __CONFIG_H__ */