summaryrefslogtreecommitdiff
path: root/sys/src/9/zynq
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-02-25 03:42:38 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-02-25 03:42:38 +0100
commitf0a314605f1a6d56da34ac07bb4effe2dcff8c37 (patch)
tree64c8bc5158c161202cbed0ea454c2146b08cc937 /sys/src/9/zynq
parent5560efb3dbe76bfab78d0d7f97969d7589a3f171 (diff)
devether: remove (unimplemented) detach, allow device creation on attach
we allow devether to create ethernet cards on attach. this is useull for virtual cards like the sink driver, so we can create a sink by simply: bind -a '#l2:sink ea=112233445566' /net the detach routine was never called, so remove it from the few drivers that attempted to implement it.
Diffstat (limited to 'sys/src/9/zynq')
-rw-r--r--sys/src/9/zynq/dat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/zynq/dat.h b/sys/src/9/zynq/dat.h
index 811b23407..b18a5551d 100644
--- a/sys/src/9/zynq/dat.h
+++ b/sys/src/9/zynq/dat.h
@@ -159,13 +159,14 @@ struct Mach
int stack[1];
};
+#define NISAOPT 8
struct ISAConf
{
char *type;
ulong port;
int irq;
int nopt;
- char *opt[1];
+ char *opt[NISAOPT];
};
#define BUSUNKNOWN -1