Lines Matching refs:tc_bus
27 static struct tc_bus tc_bus = { variable
34 static void __init tc_bus_add_devices(struct tc_bus *tbus) in tc_bus_add_devices()
154 if (tc_bus_get_info(&tc_bus)) in tc_init()
157 INIT_LIST_HEAD(&tc_bus.devices); in tc_init()
158 dev_set_name(&tc_bus.dev, "tc"); in tc_init()
159 if (device_register(&tc_bus.dev)) in tc_init()
162 if (tc_bus.info.slot_size) { in tc_init()
163 unsigned int tc_clock = tc_get_speed(&tc_bus) / 100000; in tc_init()
166 "(with%s parity)\n", tc_bus.info.revision, in tc_init()
168 tc_bus.info.parity ? "" : "out"); in tc_init()
170 tc_bus.resource[0].start = tc_bus.slot_base; in tc_init()
171 tc_bus.resource[0].end = tc_bus.slot_base + in tc_init()
172 (tc_bus.info.slot_size << 20) * in tc_init()
173 tc_bus.num_tcslots - 1; in tc_init()
174 tc_bus.resource[0].name = tc_bus.name; in tc_init()
175 tc_bus.resource[0].flags = IORESOURCE_MEM; in tc_init()
177 &tc_bus.resource[0]) < 0) { in tc_init()
181 if (tc_bus.ext_slot_size) { in tc_init()
182 tc_bus.resource[1].start = tc_bus.ext_slot_base; in tc_init()
183 tc_bus.resource[1].end = tc_bus.ext_slot_base + in tc_init()
184 tc_bus.ext_slot_size * in tc_init()
185 tc_bus.num_tcslots - 1; in tc_init()
186 tc_bus.resource[1].name = tc_bus.name; in tc_init()
187 tc_bus.resource[1].flags = IORESOURCE_MEM; in tc_init()
189 &tc_bus.resource[1]) < 0) { in tc_init()
195 tc_bus_add_devices(&tc_bus); in tc_init()
201 release_resource(&tc_bus.resource[0]); in tc_init()
203 put_device(&tc_bus.dev); in tc_init()