diff options
author | sanpei <sanpei@FreeBSD.org> | 2000-10-13 15:11:48 +0000 |
---|---|---|
committer | sanpei <sanpei@FreeBSD.org> | 2000-10-13 15:11:48 +0000 |
commit | 132dda752c6fae11de104db665aaad6033cc950c (patch) | |
tree | 1cf3b603b4250ab311d4a97b67b7cfefb5a9365a /usr.sbin | |
parent | 6fad01e2609144f4b22518ea184a7ce55708061b (diff) | |
download | FreeBSD-src-132dda752c6fae11de104db665aaad6033cc950c.zip FreeBSD-src-132dda752c6fae11de104db665aaad6033cc950c.tar.gz |
cosmetic: resource -> res
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index 7e6387f..18adcca 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -512,23 +512,23 @@ assign_driver(struct card *cp) } /* Allocate a free IRQ if none has been specified */ if (conf->irq == 0) { - struct pccard_resource resource; + struct pccard_resource res; char name[128]; int i, fd; sprintf(name, CARD_DEVICE, 0); /* XXX */ fd = open(name, O_RDWR); - resource.type = SYS_RES_IRQ; - resource.size = 1; + res.type = SYS_RES_IRQ; + res.size = 1; for (i = 1; i < 16; i++) { - resource.min = i; - resource.max = i; - if (ioctl(fd, PIOCSRESOURCE, &resource) < 0) { + res.min = i; + res.max = i; + if (ioctl(fd, PIOCSRESOURCE, &res) < 0) { perror("ioctl (PIOCSRESOURCE)"); exit(1); } - if (pool_irq[i] && resource.resource_addr == i) { + if (pool_irq[i] && res.resource_addr == i) { conf->irq = i; pool_irq[i] = 0; break; @@ -555,26 +555,26 @@ assign_card_index(struct cis * cis) { struct cis_config *cp; struct cis_ioblk *cio; - struct pccard_resource resource; + struct pccard_resource res; char name[128]; int i, fd; sprintf(name, CARD_DEVICE, 0); /* XXX */ fd = open(name, O_RDWR); - resource.type = SYS_RES_IOPORT; + res.type = SYS_RES_IOPORT; for (cp = cis->conf; cp; cp = cp->next) { if (!cp->iospace || !cp->io) continue; for (cio = cp->io; cio; cio = cio->next) { - resource.size = cio->size; - resource.min = cio->addr; - resource.max = resource.min + cio->size - 1; - if (ioctl(fd, PIOCSRESOURCE, &resource) < 0) { + res.size = cio->size; + res.min = cio->addr; + res.max = res.min + cio->size - 1; + if (ioctl(fd, PIOCSRESOURCE, &res) < 0) { perror("ioctl (PIOCSRESOURCE)"); exit(1); } - if (resource.resource_addr != cio->addr) + if (res.resource_addr != cio->addr) goto next; for (i = cio->addr; i < cio->addr + cio->size - 1; i++) if (!bit_test(io_avail, i)) |