Rev 1888 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1888 | Rev 2015 | ||
---|---|---|---|
Line 37... | Line 37... | ||
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 <typedefs.h> |
40 | #include <typedefs.h> |
41 | 41 | ||
- | 42 | /** Structure representing contiguous physical memory area. */ |
|
- | 43 | typedef struct { |
|
- | 44 | 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. */ |
|
- | 47 | bool cacheable; /**< Cacheability. */ |
|
- | 48 | } parea_t; |
|
- | 49 | ||
- | 50 | extern void ddi_init(void); |
|
- | 51 | extern void ddi_parea_register(parea_t *parea); |
|
- | 52 | ||
42 | unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, unative_t pages, |
53 | extern unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, |
43 | unative_t flags); |
54 | unative_t pages, unative_t flags); |
44 | extern unative_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg); |
55 | extern unative_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg); |
45 | extern unative_t sys_preempt_control(int enable); |
56 | extern unative_t sys_preempt_control(int enable); |
46 | 57 | ||
47 | /* |
58 | /* |
48 | * Interface to be implemented by all architectures. |
59 | * Interface to be implemented by all architectures. |