Initial revision
[reactos.git] / reactos / drivers / net / ndis / include / buffer.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS NDIS library
4 * FILE: include/buffer.h
5 * PURPOSE: Buffer management routine definitions
6 */
7 #ifndef __BUFFER_H
8 #define __BUFFER_H
9
10 #include <ndissys.h>
11
12
13 /* FIXME: Possibly move this to ntddk.h */
14 typedef struct _NETWORK_HEADER
15 {
16 MDL Mdl; /* Memory Descriptor List */
17 struct _NETWORK_HEADER *Next; /* Link to next NDIS buffer in pool */
18 struct _NDIS_BUFFER_POOL *BufferPool; /* Link to NDIS buffer pool */
19 } NETWORK_HEADER, *PNETWORK_HEADER;
20
21 typedef struct _NDIS_BUFFER_POOL
22 {
23 KSPIN_LOCK SpinLock;
24 PNETWORK_HEADER FreeList;
25 NETWORK_HEADER Buffers[0];
26 } NDIS_BUFFER_POOL, *PNDIS_BUFFER_POOL;
27
28 #endif /* __BUFFER_H */
29
30 /* EOF */