summaryrefslogtreecommitdiffstats
path: root/private/ntos/ndis/aic5900/memmgr.h
blob: 963503f6f63d7db41e6169eb12a2577d4aec86a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72

/*++

Copyright (c) 1990-1995  Microsoft Corporation

Module Name:

	D:\nt\private\ntos\ndis\aic5900\memmgr.h

Abstract:

Author:

	Kyle Brandon	(KyleB)		

Environment:

	Kernel mode

Revision History:

--*/

#ifndef __MEMMGR_H
#define __MEMMGR_H

//
//	RAM memory block supported.
//
#define	BLOCK_1K		1024
#define	BLOCK_2K		2048
#define	BLOCK_4K		4096
#define	BLOCK_8K		8192
#define	BLOCK_16K		16384
#define	BLOCK_32K		32768
#define	BLOCK_64K		65536
#define	BLOCK_128K		131072

//
//	One memory map range.
//
#define	MAP_RANGE		BLOCK_32K

NDIS_STATUS
Aic5900InitializeRamInfo(
	OUT	NDIS_HANDLE	*hRamInfo,
	IN	ULONG		MaxRamSize
	);

VOID
Aic5900UnloadRamInfo(
	IN	NDIS_HANDLE	hRamInfo
	);

NDIS_STATUS
Aic5900AllocateRam(
	OUT	PULONG		pRamOffset,
	IN	NDIS_HANDLE	hRamInfo,
	IN	ULONG		SizeNeeded
	);

VOID
Aic5900FreeRam(
	IN	NDIS_HANDLE	hRamInfo,
	IN	ULONG		RamOffset,
	IN	ULONG		RamSize
	);




#endif // __MEMMGR_H