File: bigphysarea.h

package info (click to toggle)
kernel-source-2.2.19 2.2.19.1-4woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,100 kB
  • ctags: 276,892
  • sloc: ansic: 1,710,384; asm: 58,709; makefile: 10,198; sh: 2,398; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (64 lines) | stat: -rw-r--r-- 2,290 bytes parent folder | download | duplicates (6)
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
/* linux/mm/bigphysarea.h, M. Welsh (mdw@cs.cornell.edu)
 * Copyright (c) 1996 by Matt Welsh.
 * Extended by Roger Butenuth (butenuth@uni-paderborn.de), October 1997
 *
 * This is a set of routines which allow you to reserve a large (?)
 * amount of physical memory at boot-time, which can be allocated/deallocated
 * by drivers. This memory is intended to be used for devices such as
 * video framegrabbers which need a lot of physical RAM (above the amount
 * allocated by kmalloc). This is by no means efficient or recommended;
 * to be used only in extreme circumstances.
 *
 */

#ifndef __LINUX_BIGPHYSAREA_H
#define __LINUX_BIGPHYSAREA_H

#include <linux/types.h>

extern caddr_t bigphysarea;

/* original interface */
extern void bigphysarea_setup(char *str, int *ints);
extern unsigned long bigphysarea_init(unsigned long mem_start, unsigned long m\
em_end);
extern caddr_t bigphysarea_alloc(int size);
extern void bigphysarea_free(caddr_t addr, int size);

/* new interface */
extern caddr_t bigphysarea_alloc_pages(int count, int align, int priority);
extern void    bigphysarea_free_pages(caddr_t base);

#endif __LINUX_BIGPHYSAREA_H
/* linux/mm/bigphysarea.h, M. Welsh (mdw@cs.cornell.edu)
 * Copyright (c) 1996 by Matt Welsh.
 * Extended by Roger Butenuth (butenuth@uni-paderborn.de), October 1997
 *
 * This is a set of routines which allow you to reserve a large (?)
 * amount of physical memory at boot-time, which can be allocated/deallocated
 * by drivers. This memory is intended to be used for devices such as
 * video framegrabbers which need a lot of physical RAM (above the amount
 * allocated by kmalloc). This is by no means efficient or recommended;
 * to be used only in extreme circumstances.
 *
 */

#ifndef __LINUX_BIGPHYSAREA_H
#define __LINUX_BIGPHYSAREA_H

#include <linux/types.h>

extern caddr_t bigphysarea;

/* original interface */
extern void bigphysarea_setup(char *str, int *ints);
extern unsigned long bigphysarea_init(unsigned long mem_start, unsigned long m\
em_end);
extern caddr_t bigphysarea_alloc(int size);
extern void bigphysarea_free(caddr_t addr, int size);

/* new interface */
extern caddr_t bigphysarea_alloc_pages(int count, int align, int priority);
extern void    bigphysarea_free_pages(caddr_t base);

#endif __LINUX_BIGPHYSAREA_H