isa_common.c (9dbf5b0e6876d8c93890754bcc9c748339de79c0) | isa_common.c (c8fa54882226d89e987fb26b94979aed85a3bd9a) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause AND MIT 3 * 4 * Copyright (c) 1999 Doug Rabson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 608 unchanged lines hidden (view full) --- 617 TAILQ_INIT(&idev->id_configs); 618 idev->id_order = order; 619 620 device_set_ivars(child, idev); 621 622 return (child); 623} 624 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause AND MIT 3 * 4 * Copyright (c) 1999 Doug Rabson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 608 unchanged lines hidden (view full) --- 617 TAILQ_INIT(&idev->id_configs); 618 idev->id_order = order; 619 620 device_set_ivars(child, idev); 621 622 return (child); 623} 624 |
625static void 626isa_child_deleted(device_t dev, device_t child) 627{ 628 free(device_get_ivars(child), M_ISADEV); 629} 630 |
|
625static int 626isa_print_all_resources(device_t dev) 627{ 628 struct isa_device *idev = DEVTOISA(dev); 629 struct resource_list *rl = &idev->id_resources; 630 int retval = 0; 631 632 if (STAILQ_FIRST(rl) || device_get_flags(dev)) --- 420 unchanged lines hidden (view full) --- 1053 DEVMETHOD(device_attach, isa_attach), 1054 DEVMETHOD(device_detach, bus_generic_detach), 1055 DEVMETHOD(device_shutdown, bus_generic_shutdown), 1056 DEVMETHOD(device_suspend, bus_generic_suspend), 1057 DEVMETHOD(device_resume, bus_generic_resume), 1058 1059 /* Bus interface */ 1060 DEVMETHOD(bus_add_child, isa_add_child), | 631static int 632isa_print_all_resources(device_t dev) 633{ 634 struct isa_device *idev = DEVTOISA(dev); 635 struct resource_list *rl = &idev->id_resources; 636 int retval = 0; 637 638 if (STAILQ_FIRST(rl) || device_get_flags(dev)) --- 420 unchanged lines hidden (view full) --- 1059 DEVMETHOD(device_attach, isa_attach), 1060 DEVMETHOD(device_detach, bus_generic_detach), 1061 DEVMETHOD(device_shutdown, bus_generic_shutdown), 1062 DEVMETHOD(device_suspend, bus_generic_suspend), 1063 DEVMETHOD(device_resume, bus_generic_resume), 1064 1065 /* Bus interface */ 1066 DEVMETHOD(bus_add_child, isa_add_child), |
1067 DEVMETHOD(bus_child_deleted, isa_child_deleted), |
|
1061 DEVMETHOD(bus_print_child, isa_print_child), 1062 DEVMETHOD(bus_probe_nomatch, isa_probe_nomatch), 1063 DEVMETHOD(bus_read_ivar, isa_read_ivar), 1064 DEVMETHOD(bus_write_ivar, isa_write_ivar), 1065 DEVMETHOD(bus_child_detached, isa_child_detached), 1066 DEVMETHOD(bus_driver_added, isa_driver_added), 1067 DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), 1068 DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), --- 66 unchanged lines hidden --- | 1068 DEVMETHOD(bus_print_child, isa_print_child), 1069 DEVMETHOD(bus_probe_nomatch, isa_probe_nomatch), 1070 DEVMETHOD(bus_read_ivar, isa_read_ivar), 1071 DEVMETHOD(bus_write_ivar, isa_write_ivar), 1072 DEVMETHOD(bus_child_detached, isa_child_detached), 1073 DEVMETHOD(bus_driver_added, isa_driver_added), 1074 DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), 1075 DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), --- 66 unchanged lines hidden --- |