Rev 3908 | Rev 3973 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3908 | Rev 3940 | ||
---|---|---|---|
Line 56... | Line 56... | ||
56 | SPINLOCK_INITIALIZE(parea_lock); |
56 | SPINLOCK_INITIALIZE(parea_lock); |
57 | 57 | ||
58 | /** List with enabled physical memory areas. */ |
58 | /** List with enabled physical memory areas. */ |
59 | static LIST_INITIALIZE(parea_head); |
59 | static LIST_INITIALIZE(parea_head); |
60 | 60 | ||
61 | /** Physical memory area for devices. */ |
- | |
62 | static parea_t dev_area; |
- | |
63 | - | ||
64 | /** Initialize DDI. */ |
61 | /** Initialize DDI. */ |
65 | void ddi_init(void) |
62 | void ddi_init(void) |
66 | { |
63 | { |
67 | hw_area(&dev_area.pbase, &dev_area.frames); |
- | |
68 | ddi_parea_register(&dev_area); |
64 | hw_area(); |
69 | } |
65 | } |
70 | 66 | ||
71 | /** Enable piece of physical memory for mapping by physmem_map(). |
67 | /** Enable piece of physical memory for mapping by physmem_map(). |
72 | * |
68 | * |
73 | * @param parea Pointer to physical area structure. |
69 | * @param parea Pointer to physical area structure. |