Subversion Repositories HelenOS

Rev

Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
Line 36... Line 36...
36
#define KERN_DDI_H_
36
#define KERN_DDI_H_
37
 
37
 
38
#include <ddi/ddi_arg.h>
38
#include <ddi/ddi_arg.h>
39
#include <arch/types.h>
39
#include <arch/types.h>
40
#include <proc/task.h>
40
#include <proc/task.h>
-
 
41
#include <adt/list.h>
41
 
42
 
42
/** Structure representing contiguous physical memory area. */
43
/** Structure representing contiguous physical memory area. */
43
typedef struct {
44
typedef struct {
44
    uintptr_t pbase;    /**< Physical base of the area. */
45
    uintptr_t pbase;    /**< Physical base of the area. */
45
    uintptr_t vbase;    /**< Virtual base of the area. */
-
 
46
    count_t frames;     /**< Number of frames in the area. */
46
    pfn_t frames;       /**< Number of frames in the area. */
-
 
47
   
47
    bool cacheable;     /**< Cacheability. */
48
    link_t link;        /**< Linked list link */
48
} parea_t;
49
} parea_t;
49
 
50
 
50
extern void ddi_init(void);
51
extern void ddi_init(void);
51
extern void ddi_parea_register(parea_t *parea);
52
extern void ddi_parea_register(parea_t *parea);
52
 
53