1f9f848faSopenharmony_ci/*
2f9f848faSopenharmony_ci * This file is produced automatically.
3f9f848faSopenharmony_ci * Do not modify anything in here by hand.
4f9f848faSopenharmony_ci *
5f9f848faSopenharmony_ci * Created from source file
6f9f848faSopenharmony_ci *   bus_if.m
7f9f848faSopenharmony_ci * with
8f9f848faSopenharmony_ci *   makeobjops.awk
9f9f848faSopenharmony_ci *
10f9f848faSopenharmony_ci * See the source file for legal information
11f9f848faSopenharmony_ci */
12f9f848faSopenharmony_ci
13f9f848faSopenharmony_ci#include <sys/param.h>
14f9f848faSopenharmony_ci#include <sys/queue.h>
15f9f848faSopenharmony_ci#include <sys/kernel.h>
16f9f848faSopenharmony_ci#include <sys/kobj.h>
17f9f848faSopenharmony_ci#include <sys/systm.h>
18f9f848faSopenharmony_ci#include <sys/bus.h>
19f9f848faSopenharmony_ci#include "bus_if.h"
20f9f848faSopenharmony_ci
21f9f848faSopenharmony_ci
22f9f848faSopenharmony_cistatic struct resource *
23f9f848faSopenharmony_cinull_alloc_resource(device_t dev, device_t child,
24f9f848faSopenharmony_ci    int type, int *rid, rman_res_t start, rman_res_t end,
25f9f848faSopenharmony_ci    rman_res_t count, u_int flags)
26f9f848faSopenharmony_ci{
27f9f848faSopenharmony_ci    return (0);
28f9f848faSopenharmony_ci}
29f9f848faSopenharmony_cistatic device_t
30f9f848faSopenharmony_cinull_add_child(device_t bus, int order, const char *name,
31f9f848faSopenharmony_ci    int unit)
32f9f848faSopenharmony_ci{
33f9f848faSopenharmony_ci	panic("bus_add_child is not implemented");
34f9f848faSopenharmony_ci	return NULL;
35f9f848faSopenharmony_ci}
36f9f848faSopenharmony_ci
37f9f848faSopenharmony_cistatic int null_reset_post(device_t bus, device_t dev)
38f9f848faSopenharmony_ci{
39f9f848faSopenharmony_ci	return (0);
40f9f848faSopenharmony_ci}
41f9f848faSopenharmony_ci
42f9f848faSopenharmony_cistatic int null_reset_prepare(device_t bus, device_t dev)
43f9f848faSopenharmony_ci{
44f9f848faSopenharmony_ci	return (0);
45f9f848faSopenharmony_ci}
46f9f848faSopenharmony_ci
47f9f848faSopenharmony_cistruct kobjop_desc bus_print_child_desc = {
48f9f848faSopenharmony_ci	0, { &bus_print_child_desc, (kobjop_t)bus_generic_print_child }
49f9f848faSopenharmony_ci};
50f9f848faSopenharmony_ci
51f9f848faSopenharmony_cistruct kobjop_desc bus_probe_nomatch_desc = {
52f9f848faSopenharmony_ci	0, { &bus_probe_nomatch_desc, (kobjop_t)kobj_error_method }
53f9f848faSopenharmony_ci};
54f9f848faSopenharmony_ci
55f9f848faSopenharmony_cistruct kobjop_desc bus_read_ivar_desc = {
56f9f848faSopenharmony_ci	0, { &bus_read_ivar_desc, (kobjop_t)kobj_error_method }
57f9f848faSopenharmony_ci};
58f9f848faSopenharmony_ci
59f9f848faSopenharmony_cistruct kobjop_desc bus_write_ivar_desc = {
60f9f848faSopenharmony_ci	0, { &bus_write_ivar_desc, (kobjop_t)kobj_error_method }
61f9f848faSopenharmony_ci};
62f9f848faSopenharmony_ci
63f9f848faSopenharmony_cistruct kobjop_desc bus_child_deleted_desc = {
64f9f848faSopenharmony_ci	0, { &bus_child_deleted_desc, (kobjop_t)kobj_error_method }
65f9f848faSopenharmony_ci};
66f9f848faSopenharmony_ci
67f9f848faSopenharmony_cistruct kobjop_desc bus_child_detached_desc = {
68f9f848faSopenharmony_ci	0, { &bus_child_detached_desc, (kobjop_t)kobj_error_method }
69f9f848faSopenharmony_ci};
70f9f848faSopenharmony_ci
71f9f848faSopenharmony_cistruct kobjop_desc bus_driver_added_desc = {
72f9f848faSopenharmony_ci	0, { &bus_driver_added_desc, (kobjop_t)bus_generic_driver_added }
73f9f848faSopenharmony_ci};
74f9f848faSopenharmony_ci
75f9f848faSopenharmony_cistruct kobjop_desc bus_add_child_desc = {
76f9f848faSopenharmony_ci	0, { &bus_add_child_desc, (kobjop_t)null_add_child }
77f9f848faSopenharmony_ci};
78f9f848faSopenharmony_ci
79f9f848faSopenharmony_cistruct kobjop_desc bus_rescan_desc = {
80f9f848faSopenharmony_ci	0, { &bus_rescan_desc, (kobjop_t)kobj_error_method }
81f9f848faSopenharmony_ci};
82f9f848faSopenharmony_ci
83f9f848faSopenharmony_cistruct kobjop_desc bus_alloc_resource_desc = {
84f9f848faSopenharmony_ci	0, { &bus_alloc_resource_desc, (kobjop_t)null_alloc_resource }
85f9f848faSopenharmony_ci};
86f9f848faSopenharmony_ci
87f9f848faSopenharmony_cistruct kobjop_desc bus_child_present_desc = {
88f9f848faSopenharmony_ci        0, { &bus_child_present_desc, (kobjop_t)bus_generic_child_present }
89f9f848faSopenharmony_ci};
90f9f848faSopenharmony_ci
91f9f848faSopenharmony_cistruct kobjop_desc bus_child_pnpinfo_str_desc = {
92f9f848faSopenharmony_ci	0, { &bus_child_pnpinfo_str_desc, (kobjop_t)kobj_error_method }
93f9f848faSopenharmony_ci};
94f9f848faSopenharmony_ci
95f9f848faSopenharmony_cistruct kobjop_desc bus_child_location_str_desc = {
96f9f848faSopenharmony_ci	0, { &bus_child_location_str_desc, (kobjop_t)kobj_error_method }
97f9f848faSopenharmony_ci};
98f9f848faSopenharmony_ci
99f9f848faSopenharmony_cistruct kobjop_desc bus_hinted_child_desc = {
100f9f848faSopenharmony_ci	0, { &bus_hinted_child_desc, (kobjop_t)kobj_error_method }
101f9f848faSopenharmony_ci};
102f9f848faSopenharmony_ci
103f9f848faSopenharmony_cistruct kobjop_desc bus_hint_device_unit_desc = {
104f9f848faSopenharmony_ci        0, { &bus_hint_device_unit_desc, (kobjop_t)kobj_error_method }
105f9f848faSopenharmony_ci};
106f9f848faSopenharmony_ci
107f9f848faSopenharmony_cistruct kobjop_desc bus_new_pass_desc = {
108f9f848faSopenharmony_ci	0, { &bus_new_pass_desc, (kobjop_t)bus_generic_new_pass }
109f9f848faSopenharmony_ci};
110f9f848faSopenharmony_ci
111f9f848faSopenharmony_cistruct kobjop_desc bus_suspend_child_desc = {
112f9f848faSopenharmony_ci	0, { &bus_suspend_child_desc, (kobjop_t)bus_generic_suspend_child }
113f9f848faSopenharmony_ci};
114f9f848faSopenharmony_ci
115f9f848faSopenharmony_cistruct kobjop_desc bus_resume_child_desc = {
116f9f848faSopenharmony_ci	0, { &bus_resume_child_desc, (kobjop_t)bus_generic_resume_child }
117f9f848faSopenharmony_ci};
118f9f848faSopenharmony_ci
119f9f848faSopenharmony_cistruct kobjop_desc bus_get_domain_desc = {
120f9f848faSopenharmony_ci	0, { &bus_get_domain_desc, (kobjop_t)bus_generic_get_domain }
121f9f848faSopenharmony_ci};
122f9f848faSopenharmony_ci
123f9f848faSopenharmony_cistruct kobjop_desc bus_reset_prepare_desc = {
124f9f848faSopenharmony_ci	0, { &bus_reset_prepare_desc, (kobjop_t)null_reset_prepare }
125f9f848faSopenharmony_ci};
126f9f848faSopenharmony_ci
127f9f848faSopenharmony_cistruct kobjop_desc bus_reset_post_desc = {
128f9f848faSopenharmony_ci	0, { &bus_reset_post_desc, (kobjop_t)null_reset_post }
129f9f848faSopenharmony_ci};
130f9f848faSopenharmony_ci
131f9f848faSopenharmony_cistruct kobjop_desc bus_reset_child_desc = {
132f9f848faSopenharmony_ci	0, { &bus_reset_child_desc, (kobjop_t)kobj_error_method }
133f9f848faSopenharmony_ci};