aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/isa_common.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-03-18 05:19:50 +0000
committerWarner Losh <imp@FreeBSD.org>2005-03-18 05:19:50 +0000
commit36fed96550cc5e0c7c87d0c69eb5beccf1d2d77f (patch)
treeda2c3750864cc53bd818a0507a4f549420b82c39 /sys/isa/isa_common.c
parentb1fab0ffc0dfe2fcbac1eb90620706cd2e81a34e (diff)
downloadsrc-36fed96550cc5e0c7c87d0c69eb5beccf1d2d77f.tar.gz
src-36fed96550cc5e0c7c87d0c69eb5beccf1d2d77f.zip
Use STAILQ in preference to SLIST for the resources. Insert new resources
last in the list rather than first. This makes the resouces print in the 4.x order rather than the 5.x order (eg fdc0 at 0x3f0-0x3f5,0x3f7 is 4.x, but 0x3f7,0x3f0-0x3f5 is 5.x). This also means that the pci code will once again print the resources in BAR ascending order.
Notes
Notes: svn path=/head/; revision=143785
Diffstat (limited to 'sys/isa/isa_common.c')
-rw-r--r--sys/isa/isa_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 9948955365c8..36f3d79061d5 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -597,7 +597,7 @@ isa_probe_children(device_t dev)
* Claim any unallocated resources to keep other
* devices from using them.
*/
- SLIST_FOREACH(rle, rl, link) {
+ STAILQ_FOREACH(rle, rl, link) {
if (!rle->res) {
int rid = rle->rid;
resource_list_alloc(rl, dev, child,
@@ -646,7 +646,7 @@ isa_print_all_resources(device_t dev)
struct resource_list *rl = &idev->id_resources;
int retval = 0;
- if (SLIST_FIRST(rl) || device_get_flags(dev))
+ if (STAILQ_FIRST(rl) || device_get_flags(dev))
retval += printf(" at");
retval += resource_list_print_type(rl, "port", SYS_RES_IOPORT, "%#lx");
@@ -878,7 +878,7 @@ isa_child_detached(device_t dev, device_t child)
* Claim any unallocated resources to keep other
* devices from using them.
*/
- SLIST_FOREACH(rle, rl, link) {
+ STAILQ_FOREACH(rle, rl, link) {
if (!rle->res) {
int rid = rle->rid;
resource_list_alloc(rl, dev, child,
@@ -923,7 +923,7 @@ isa_driver_added(device_t dev, driver_t *driver)
* Free resources which we were holding on behalf of
* the device.
*/
- SLIST_FOREACH(rle, &idev->id_resources, link) {
+ STAILQ_FOREACH(rle, &idev->id_resources, link) {
if (rle->res)
resource_list_release(rl, dev, child,
rle->type,
@@ -942,7 +942,7 @@ isa_driver_added(device_t dev, driver_t *driver)
* Claim any unallocated resources to keep other
* devices from using them.
*/
- SLIST_FOREACH(rle, rl, link) {
+ STAILQ_FOREACH(rle, rl, link) {
if (!rle->res) {
int rid = rle->rid;
resource_list_alloc(rl, dev, child,