Skip to contentSkip to conversation

patch-2.4.1-irda3 (qos)

PATCH New Dag Brattli 1 participant 1 message Feb 8, 2001 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 patch-2.4.1-irda3 (qos)

Linus,

Please apply this patch to your latest 2.4 code. It contains cleanups to the irda QoS code by Jean Tourrilhes.

-- Dag

include/net/irda/qos.h renamed from include/net/irda/qos.d6.h +10 -1
diff -u -p linux/include/net/irda/qos.d6.h linux/include/net/irda/qos.h
@@ -100,10 +100,19 @@ void irda_qos_compute_intersection(struc
 
 __u32 irlap_max_line_capacity(__u32 speed, __u32 max_turn_time);
 __u32 irlap_requested_line_capacity(struct qos_info *qos);
-__u32 irlap_min_turn_time_in_bytes(__u32 speed, __u32 min_turn_time);
 
 int msb_index(__u16 byte);
 void irda_qos_bits_to_value(struct qos_info *qos);
+
+/* So simple, how could we not inline those two ?
+ * Note : one byte is 10 bits if you include start and stop bits
+ * Jean II */
+#define irlap_min_turn_time_in_bytes(speed, min_turn_time) (	\
+	speed * min_turn_time / 10000000			\
+)
+#define irlap_xbofs_in_usec(speed, xbofs) (			\
+	xbofs * 10000000 / speed				\
+)
 
 #endif
 
net/irda/qos.c renamed from net/irda/qos.d6.c +92 -97

207 lines not on this page · raw message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/