Rev 958 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 958 | Rev 1221 | ||
---|---|---|---|
Line 133... | Line 133... | ||
133 | return; |
133 | return; |
134 | 134 | ||
135 | for (i=0; i < configdata->count; i++) { |
135 | for (i=0; i < configdata->count; i++) { |
136 | switch (configdata->descr[i].type) { |
136 | switch (configdata->descr[i].type) { |
137 | case CmResourceTypePort: |
137 | case CmResourceTypePort: |
138 | printf("Port: %P-size:%d ", |
138 | printf("Port: %p-size:%d ", |
139 | (__address)configdata->descr[i].u.port.start, |
139 | (__address)configdata->descr[i].u.port.start, |
140 | configdata->descr[i].u.port.length); |
140 | configdata->descr[i].u.port.length); |
141 | break; |
141 | break; |
142 | case CmResourceTypeInterrupt: |
142 | case CmResourceTypeInterrupt: |
143 | printf("Irq: level(%d) vector(%d) ", |
143 | printf("Irq: level(%d) vector(%d) ", |
144 | configdata->descr[i].u.interrupt.level, |
144 | configdata->descr[i].u.interrupt.level, |
145 | configdata->descr[i].u.interrupt.vector); |
145 | configdata->descr[i].u.interrupt.vector); |
146 | break; |
146 | break; |
147 | case CmResourceTypeMemory: |
147 | case CmResourceTypeMemory: |
148 | printf("Memory: %P-size:%d ", |
148 | printf("Memory: %p-size:%d ", |
149 | (__address)configdata->descr[i].u.port.start, |
149 | (__address)configdata->descr[i].u.port.start, |
150 | configdata->descr[i].u.port.length); |
150 | configdata->descr[i].u.port.length); |
151 | break; |
151 | break; |
152 | default: |
152 | default: |
153 | break; |
153 | break; |
Line 210... | Line 210... | ||
210 | 210 | ||
211 | printf("Memory map:\n"); |
211 | printf("Memory map:\n"); |
212 | 212 | ||
213 | desc = arc_entry->getmemorydescriptor(NULL); |
213 | desc = arc_entry->getmemorydescriptor(NULL); |
214 | while (desc) { |
214 | while (desc) { |
215 | printf("%s: %d(%P) (size: %dKB)\n",basetypes[desc->type], |
215 | printf("%s: %d(%p) (size: %dKB)\n",basetypes[desc->type], |
216 | desc->basepage * ARC_FRAME, |
216 | desc->basepage * ARC_FRAME, |
217 | desc->basepage * ARC_FRAME, |
217 | desc->basepage * ARC_FRAME, |
218 | desc->basecount*ARC_FRAME/1024); |
218 | desc->basecount*ARC_FRAME/1024); |
219 | desc = arc_entry->getmemorydescriptor(desc); |
219 | desc = arc_entry->getmemorydescriptor(desc); |
220 | } |
220 | } |