summaryrefslogtreecommitdiffstats
path: root/sys/isa/isa_common.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-03-18 05:19:50 +0000
committerimp <imp@FreeBSD.org>2005-03-18 05:19:50 +0000
commit7e9a7073ef377ae41f09b4dfb21c34a4a6b3a12c (patch)
treeda2c3750864cc53bd818a0507a4f549420b82c39 /sys/isa/isa_common.c
parent52e8c7d46a9820283781fda9233bdf609931135f (diff)
downloadFreeBSD-src-7e9a7073ef377ae41f09b4dfb21c34a4a6b3a12c.zip
FreeBSD-src-7e9a7073ef377ae41f09b4dfb21c34a4a6b3a12c.tar.gz
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.
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 9948955..36f3d79 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,
OpenPOWER on IntegriCloud