summaryrefslogtreecommitdiff
path: root/sys/dev/ray
diff options
context:
space:
mode:
authorDuncan Barclay <dmlb@FreeBSD.org>2000-06-04 21:14:26 +0000
committerDuncan Barclay <dmlb@FreeBSD.org>2000-06-04 21:14:26 +0000
commit77d868ca7a6a51e75286e52c0cd9eca1d2d10b34 (patch)
treeb2cc0a17310116fc18be7d90e1ef4339891ca7b7 /sys/dev/ray
parentf4286d472240b0ada311338d3676196acb5ec849 (diff)
Notes
Diffstat (limited to 'sys/dev/ray')
-rw-r--r--sys/dev/ray/if_rayvar.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/ray/if_rayvar.h b/sys/dev/ray/if_rayvar.h
index a1fbcb1adbf3..818ef1f9e24d 100644
--- a/sys/dev/ray/if_rayvar.h
+++ b/sys/dev/ray/if_rayvar.h
@@ -35,6 +35,9 @@
/*
* Network parameters, used twice in sotfc to store what we want and what
* we have.
+ *
+ * The current parameters are ONLY valid in a function called from the runq
+ * and should not be accessed directly from ioctls.
*/
struct ray_nw_param {
struct ray_cmd_net p_1;
@@ -62,8 +65,6 @@ struct ray_softc {
struct arpcom arpcom; /* Ethernet common */
struct ifmedia ifmedia; /* Ifnet common */
struct callout_handle
- reset_timerh; /* Handle for reset timer */
- struct callout_handle
tx_timerh; /* Handle for tx timer */
struct callout_handle
com_timerh; /* Handle for command timer */
@@ -194,16 +195,21 @@ static int mib_info[RAY_MIB_MAX+1][3] = RAY_MIB_INFO;
#define SRAM_WRITE_FIELD_N(sc, off, s, f, p, n) \
SRAM_WRITE_REGION((sc), (off) + offsetof(struct s, f), (p), (n))
+/* Flags for runq entries */
#define RAY_COM_FWOK 0x0001 /* Wakeup on completion */
#define RAY_COM_FRUNNING 0x0002 /* This one running */
#define RAY_COM_FCOMPLETED 0x0004 /* This one completed */
#define RAY_COM_FWAIT 0x0008 /* Do not run the queue */
+#define RAY_COM_FCHKRUNNING 0x0010 /* Check IFF_RUNNING */
+#define RAY_COM_FDETACHED 0x0020 /* Card is gone */
#define RAY_COM_FLAGS_PRINTFB \
"\020" \
"\001WOK" \
"\002RUNNING" \
"\003COMPLETED" \
- "\004WAIT"
+ "\004WAIT" \
+ "\005CHKRUNNING" \
+ "\006DETACHED"
#define RAY_COM_NEEDS_TIMO(cmd) ( \
(cmd == RAY_CMD_DOWNLOAD_PARAMS) || \