Print range of all iospaces or all memspaces if their length aren't zero.
This commit is contained in:
parent
277394fdd3
commit
8567277ae0
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pcmcia_cis.c,v 1.12 1999/07/11 00:34:37 bad Exp $ */
|
/* $NetBSD: pcmcia_cis.c,v 1.13 1999/11/07 07:44:21 enami Exp $ */
|
||||||
|
|
||||||
#define PCMCIACISDEBUG
|
#define PCMCIACISDEBUG
|
||||||
|
|
||||||
|
@ -540,27 +540,28 @@ pcmcia_print_cis(sc)
|
||||||
if (cfe->num_iospace) {
|
if (cfe->num_iospace) {
|
||||||
printf("; iomask %lx, iospace", cfe->iomask);
|
printf("; iomask %lx, iospace", cfe->iomask);
|
||||||
|
|
||||||
for (i = 0; i < cfe->num_iospace; i++)
|
for (i = 0; i < cfe->num_iospace; i++) {
|
||||||
printf(" %lx",
|
printf(" %lx", cfe->iospace[i].start);
|
||||||
cfe->iospace[i].start);
|
|
||||||
if (cfe->iospace[i].length)
|
if (cfe->iospace[i].length)
|
||||||
printf("-%lx",
|
printf("-%lx",
|
||||||
cfe->iospace[i].start +
|
cfe->iospace[i].start +
|
||||||
cfe->iospace[i].length - 1);
|
cfe->iospace[i].length - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cfe->num_memspace) {
|
if (cfe->num_memspace) {
|
||||||
printf("; memspace");
|
printf("; memspace");
|
||||||
|
|
||||||
for (i = 0; i < cfe->num_memspace; i++)
|
for (i = 0; i < cfe->num_memspace; i++) {
|
||||||
printf(" %lx",
|
printf(" %lx",
|
||||||
cfe->memspace[i].cardaddr);
|
cfe->memspace[i].cardaddr);
|
||||||
if (cfe->memspace[i].length)
|
if (cfe->memspace[i].length)
|
||||||
printf("-%lx",
|
printf("-%lx",
|
||||||
cfe->memspace[i].cardaddr +
|
cfe->memspace[i].cardaddr +
|
||||||
cfe->memspace[i].length - 1);
|
cfe->memspace[i].length - 1);
|
||||||
if (cfe->memspace[i].hostaddr)
|
if (cfe->memspace[i].hostaddr)
|
||||||
printf("@%lx",
|
printf("@%lx",
|
||||||
cfe->memspace[i].hostaddr);
|
cfe->memspace[i].hostaddr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cfe->maxtwins)
|
if (cfe->maxtwins)
|
||||||
printf("; maxtwins %d", cfe->maxtwins);
|
printf("; maxtwins %d", cfe->maxtwins);
|
||||||
|
|
Loading…
Reference in New Issue