diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 03:42:38 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 03:42:38 +0100 |
commit | f0a314605f1a6d56da34ac07bb4effe2dcff8c37 (patch) | |
tree | 64c8bc5158c161202cbed0ea454c2146b08cc937 /sys/src/9/zynq | |
parent | 5560efb3dbe76bfab78d0d7f97969d7589a3f171 (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.h | 3 |
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 |