Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pccard/pccard_cis.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
device_printf(dev, "can't alloc memory to read attributes\n"); | device_printf(dev, "can't alloc memory to read attributes\n"); | ||||
return -1; | return -1; | ||||
} | } | ||||
CARD_SET_RES_FLAGS(bus, dev, SYS_RES_MEMORY, rid, PCCARD_A_MEM_ATTR); | CARD_SET_RES_FLAGS(bus, dev, SYS_RES_MEMORY, rid, PCCARD_A_MEM_ATTR); | ||||
tuple.memt = rman_get_bustag(res); | tuple.memt = rman_get_bustag(res); | ||||
tuple.memh = rman_get_bushandle(res); | tuple.memh = rman_get_bushandle(res); | ||||
tuple.ptr = 0; | tuple.ptr = 0; | ||||
DPRINTF(("cis mem map %#x (resource: %#lx)\n", | DPRINTF(("cis mem map %#x (resource: %#jx)\n", | ||||
(unsigned int) tuple.memh, rman_get_start(res))); | (unsigned int) tuple.memh, rman_get_start(res))); | ||||
tuple.mult = 2; | tuple.mult = 2; | ||||
longlink_present = 1; | longlink_present = 1; | ||||
longlink_common = 1; | longlink_common = 1; | ||||
longlink_addr = 0; | longlink_addr = 0; | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
printf("; irq mask %#x", cfe->irqmask); | printf("; irq mask %#x", cfe->irqmask); | ||||
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", cfe->iospace[i].start); | printf(" %#jx", cfe->iospace[i].start); | ||||
if (cfe->iospace[i].length) | if (cfe->iospace[i].length) | ||||
printf("-%#lx", | printf("-%#jx", | ||||
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(" %#jx", | ||||
cfe->memspace[i].cardaddr); | cfe->memspace[i].cardaddr); | ||||
if (cfe->memspace[i].length) | if (cfe->memspace[i].length) | ||||
printf("-%#lx", | printf("-%#jx", | ||||
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("@%#jx", | ||||
cfe->memspace[i].hostaddr); | cfe->memspace[i].hostaddr); | ||||
} | } | ||||
} | } | ||||
if (cfe->maxtwins) | if (cfe->maxtwins) | ||||
printf("; maxtwins %d", cfe->maxtwins); | printf("; maxtwins %d", cfe->maxtwins); | ||||
printf(";"); | printf(";"); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |