Rev 1514 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1514 | Rev 1543 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
11 | ;; Version 2, June 1991 ;; |
11 | ;; Version 2, June 1991 ;; |
12 | ;; ;; |
12 | ;; ;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 14... | Line 14... | ||
14 | 14 | ||
Line 15... | Line 15... | ||
15 | $Revision: 1514 $ |
15 | $Revision: 1543 $ |
16 | 16 | ||
17 | ; The Queues implemented by these macros form a ring-buffer. |
17 | ; The Queues implemented by these macros form a ring-buffer. |
18 | ; The data to these queue's always looks like this: |
18 | ; The data to these queue's always looks like this: |
Line 22... | Line 22... | ||
22 | ; How these slots look like is up to you to chose, normally they should have at least a pointer to where the real data is. |
22 | ; How these slots look like is up to you to chose, normally they should have at least a pointer to where the real data is. |
23 | ; (you can see some examples below) |
23 | ; (you can see some examples below) |
Line 24... | Line 24... | ||
24 | 24 | ||
25 | 25 | ||
26 | struct queue |
26 | struct queue |
27 | .size dd ? ; number of queued packets in thsi queue |
27 | .size dd ? ; number of queued packets in this queue |
28 | .w_ptr dd ? ; current writing pointer in queue |
28 | .w_ptr dd ? ; current writing pointer in queue |
29 | .r_ptr dd ? ; current reading pointer |
29 | .r_ptr dd ? ; current reading pointer |