index = 11; res = ctrl->io_head; while (res && index--) { out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); res = res->next; 
for (index = 0; index < PCI_BUS_NUM_RESOURCES; index++) { res = bus->resource[index]; if (res && (res->flags & IORESOURCE_IO)) { out += sprintf(out, "start = %8.8lx, length = %8.8lx\n", res->start, (res->end - res->start)); } 
static ssize_t show_ctrl (struct device *dev, struct device_attribute *attr, char *buf){	struct pci_dev *pci_dev;	struct controller *ctrl;	char * out = buf;	int index;	struct pci_resource *res;	pci_dev = container_of (dev, struct pci_dev, dev);	ctrl = pci_get_drvdata(pci_dev);	out += sprintf(buf, "Free resources: memory\n");	index = 11;	res = ctrl->mem_head;	while (res && index--) {		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);		res = res->next;	}	out += sprintf(out, "Free resources: prefetchable memory\n");	index = 11;	res = ctrl->p_mem_head;	while (res && index--) {		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);		res = res->next;	}	out += sprintf(out, "Free resources: IO\n");	index = 11;	res = ctrl->io_head;	while (res && index--) {		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);		res = res->next;	}	out += sprintf(out, "Free resources: bus numbers\n");	index = 11;	res = ctrl->bus_head;	while (res && index--) {		out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length);		res = res->next;	}	return out - buf;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/dbd7a78818d125a0ebd5507d4edb4dd5900006ab/shpchp_sysfs.c/clean/drivers/pci/hotplug/shpchp_sysfs.c