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