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
|