@@ -68,9 +68,9 @@ struct ssam_device_uid {
68
68
* match_flags member of the device ID structure. Do not use them directly
69
69
* with struct ssam_device_id or struct ssam_device_uid.
70
70
*/
71
- #define SSAM_ANY_TID 0xffff
72
- #define SSAM_ANY_IID 0xffff
73
- #define SSAM_ANY_FUN 0xffff
71
+ #define SSAM_SSH_TID_ANY 0xffff
72
+ #define SSAM_SSH_IID_ANY 0xffff
73
+ #define SSAM_SSH_FUN_ANY 0xffff
74
74
75
75
/**
76
76
* SSAM_DEVICE() - Initialize a &struct ssam_device_id with the given
@@ -83,25 +83,25 @@ struct ssam_device_uid {
83
83
*
84
84
* Initializes a &struct ssam_device_id with the given parameters. See &struct
85
85
* ssam_device_uid for details regarding the parameters. The special values
86
- * %SSAM_ANY_TID , %SSAM_ANY_IID , and %SSAM_ANY_FUN can be used to specify that
86
+ * %SSAM_SSH_TID_ANY , %SSAM_SSH_IID_ANY , and %SSAM_SSH_FUN_ANY can be used to specify that
87
87
* matching should ignore target ID, instance ID, and/or sub-function,
88
88
* respectively. This macro initializes the ``match_flags`` field based on the
89
89
* given parameters.
90
90
*
91
91
* Note: The parameters @d and @cat must be valid &u8 values, the parameters
92
- * @tid, @iid, and @fun must be either valid &u8 values or %SSAM_ANY_TID ,
93
- * %SSAM_ANY_IID , or %SSAM_ANY_FUN , respectively. Other non-&u8 values are not
92
+ * @tid, @iid, and @fun must be either valid &u8 values or %SSAM_SSH_TID_ANY ,
93
+ * %SSAM_SSH_IID_ANY , or %SSAM_SSH_FUN_ANY , respectively. Other non-&u8 values are not
94
94
* allowed.
95
95
*/
96
96
#define SSAM_DEVICE (d , cat , tid , iid , fun ) \
97
- .match_flags = (((tid) != SSAM_ANY_TID ) ? SSAM_MATCH_TARGET : 0) \
98
- | (((iid) != SSAM_ANY_IID ) ? SSAM_MATCH_INSTANCE : 0) \
99
- | (((fun) != SSAM_ANY_FUN ) ? SSAM_MATCH_FUNCTION : 0), \
97
+ .match_flags = (((tid) != SSAM_SSH_TID_ANY ) ? SSAM_MATCH_TARGET : 0) \
98
+ | (((iid) != SSAM_SSH_IID_ANY ) ? SSAM_MATCH_INSTANCE : 0) \
99
+ | (((fun) != SSAM_SSH_FUN_ANY ) ? SSAM_MATCH_FUNCTION : 0), \
100
100
.domain = d, \
101
101
.category = cat, \
102
- .target = __builtin_choose_expr((tid) != SSAM_ANY_TID , (tid), 0), \
103
- .instance = __builtin_choose_expr((iid) != SSAM_ANY_IID , (iid), 0), \
104
- .function = __builtin_choose_expr((fun) != SSAM_ANY_FUN , (fun), 0)
102
+ .target = __builtin_choose_expr((tid) != SSAM_SSH_TID_ANY , (tid), 0), \
103
+ .instance = __builtin_choose_expr((iid) != SSAM_SSH_IID_ANY , (iid), 0), \
104
+ .function = __builtin_choose_expr((fun) != SSAM_SSH_FUN_ANY , (fun), 0)
105
105
106
106
/**
107
107
* SSAM_VDEV() - Initialize a &struct ssam_device_id as virtual device with
@@ -113,18 +113,18 @@ struct ssam_device_uid {
113
113
*
114
114
* Initializes a &struct ssam_device_id with the given parameters in the
115
115
* virtual domain. See &struct ssam_device_uid for details regarding the
116
- * parameters. The special values %SSAM_ANY_TID , %SSAM_ANY_IID , and
117
- * %SSAM_ANY_FUN can be used to specify that matching should ignore target ID,
116
+ * parameters. The special values %SSAM_SSH_TID_ANY , %SSAM_SSH_IID_ANY , and
117
+ * %SSAM_SSH_FUN_ANY can be used to specify that matching should ignore target ID,
118
118
* instance ID, and/or sub-function, respectively. This macro initializes the
119
119
* ``match_flags`` field based on the given parameters.
120
120
*
121
121
* Note: The parameter @cat must be a valid &u8 value, the parameters @tid,
122
- * @iid, and @fun must be either valid &u8 values or %SSAM_ANY_TID ,
123
- * %SSAM_ANY_IID , or %SSAM_ANY_FUN , respectively. Other non-&u8 values are not
122
+ * @iid, and @fun must be either valid &u8 values or %SSAM_SSH_TID_ANY ,
123
+ * %SSAM_SSH_IID_ANY , or %SSAM_SSH_FUN_ANY , respectively. Other non-&u8 values are not
124
124
* allowed.
125
125
*/
126
126
#define SSAM_VDEV (cat , tid , iid , fun ) \
127
- SSAM_DEVICE(SSAM_DOMAIN_VIRTUAL, SSAM_VIRTUAL_TC_##cat, tid, iid, fun)
127
+ SSAM_DEVICE(SSAM_DOMAIN_VIRTUAL, SSAM_VIRTUAL_TC_##cat, SSAM_SSH_TID_## tid, iid, fun)
128
128
129
129
/**
130
130
* SSAM_SDEV() - Initialize a &struct ssam_device_id as physical SSH device
@@ -136,18 +136,18 @@ struct ssam_device_uid {
136
136
*
137
137
* Initializes a &struct ssam_device_id with the given parameters in the SSH
138
138
* domain. See &struct ssam_device_uid for details regarding the parameters.
139
- * The special values %SSAM_ANY_TID , %SSAM_ANY_IID , and %SSAM_ANY_FUN can be
140
- * used to specify that matching should ignore target ID, instance ID, and/or
141
- * sub-function, respectively. This macro initializes the ``match_flags``
142
- * field based on the given parameters.
139
+ * The special values %SSAM_SSH_TID_ANY , %SSAM_SSH_IID_ANY , and
140
+ * %SSAM_SSH_FUN_ANY can be used to specify that matching should ignore target
141
+ * ID, instance ID, and/or sub-function, respectively. This macro initializes
142
+ * the ``match_flags`` field based on the given parameters.
143
143
*
144
144
* Note: The parameter @cat must be a valid &u8 value, the parameters @tid,
145
- * @iid, and @fun must be either valid &u8 values or %SSAM_ANY_TID ,
146
- * %SSAM_ANY_IID , or %SSAM_ANY_FUN , respectively. Other non-&u8 values are not
147
- * allowed.
145
+ * @iid, and @fun must be either valid &u8 values or %SSAM_SSH_TID_ANY ,
146
+ * %SSAM_SSH_IID_ANY , or %SSAM_SSH_FUN_ANY , respectively. Other non-&u8 values
147
+ * are not allowed.
148
148
*/
149
149
#define SSAM_SDEV (cat , tid , iid , fun ) \
150
- SSAM_DEVICE(SSAM_DOMAIN_SERIALHUB, SSAM_SSH_TC_##cat, tid, iid, fun)
150
+ SSAM_DEVICE(SSAM_DOMAIN_SERIALHUB, SSAM_SSH_TC_##cat, SSAM_SSH_TID_## tid, iid, fun)
151
151
152
152
/*
153
153
* enum ssam_device_flags - Flags for SSAM client devices.
0 commit comments