Searched refs:bus (Results 201 - 225 of 1638) sorted by relevance

1234567891011>>

/freebsd-9.3-release/sys/mips/adm5120/
H A Dadmpci.c69 #include <sys/bus.h>
80 #include <machine/bus.h>
196 admpci_make_addr(int bus, int slot, int func, int reg) argument
199 return (0x80000000 | (bus << 16) | (slot << 11) | (func << 8) | reg);
203 admpci_read_config(device_t dev, int bus, int slot, int func, int reg, argument
212 (void *)sc, bus, slot, func, reg);
214 addr = admpci_make_addr(bus, slot, func, reg);
261 admpci_write_config(device_t dev, int bus, int slot, int func, int reg, argument
270 (void *)sc, bus, slot, func, reg);
273 reg_data = admpci_read_config(dev, bus, slo
358 admpci_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
406 admpci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
[all...]
H A Dobio.c43 #include <sys/bus.h>
50 #include <machine/bus.h>
224 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
227 struct obio_softc *sc = device_get_softc(bus);
236 passthrough = (device_get_parent(child) != bus);
240 return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type,
246 * maintained by a child bus), then work out the start/end values.
292 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
313 obio_deactivate_resource(device_t bus, device_t child, int type, int rid, argument
451 obio_hinted_child(device_t bus, cons argument
483 obio_add_child(device_t bus, u_int order, const char *name, int unit) argument
[all...]
/freebsd-9.3-release/sys/mips/alchemy/
H A Dobio.c43 #include <sys/bus.h>
50 #include <machine/bus.h>
225 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
228 struct obio_softc *sc = device_get_softc(bus);
237 passthrough = (device_get_parent(child) != bus);
241 return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type,
247 * maintained by a child bus), then work out the start/end values.
293 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
314 obio_deactivate_resource(device_t bus, device_t child, int type, int rid, argument
443 obio_hinted_child(device_t bus, cons argument
475 obio_add_child(device_t bus, u_int order, const char *name, int unit) argument
[all...]
/freebsd-9.3-release/sys/mips/atheros/
H A Dar724x_pci.c35 #include <sys/bus.h>
46 #include <machine/bus.h>
112 ar724x_pci_read_config(device_t dev, u_int bus, u_int slot, u_int func, argument
124 dprintf("%s: tag (%x, %x, %x) reg %d(%d)\n", __func__, bus, slot,
127 if ((bus == 0) && (slot == 0) && (func == 0))
141 ar724x_pci_write_config(device_t dev, u_int bus, u_int slot, u_int func, argument
145 dprintf("%s: tag (%x, %x, %x) reg %d(%d): %x\n", __func__, bus, slot,
148 if ((bus != 0) || (slot != 0) || (func != 0))
405 ar724x_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
408 struct ar71xx_pci_softc *sc = device_get_softc(bus);
442 ar724x_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
462 ar724x_pci_setup_intr(device_t bus, device_t child, struct resource *ires, int flags, driver_filter_t *filt, driver_intr_t *handler, void *arg, void **cookiep) argument
[all...]
/freebsd-9.3-release/sys/cam/
H A Dcam_xpt_internal.h37 typedef struct cam_ed * (*xpt_alloc_device_func)(struct cam_eb *bus,
43 struct cam_eb *bus,
70 * cam_ed structure for each device on the bus.
135 * of retries, or a bus rescan finds the device missing.
140 struct cam_eb *bus; member in struct:cam_et
150 * Each bus is represented by an EB (Existing Bus). These entries
170 struct cam_eb *bus; member in struct:cam_path
178 struct cam_ed * xpt_alloc_device(struct cam_eb *bus,
/freebsd-9.3-release/sys/mips/cavium/
H A Dobio.c48 #include <sys/bus.h>
54 #include <machine/bus.h>
121 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
128 struct obio_softc *sc = device_get_softc(bus);
178 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
/freebsd-9.3-release/sys/dev/usb/
H A Dusb_pf.c39 #include <sys/bus.h>
247 struct usb_bus *bus; local
259 bus = xfer->xroot->bus;
264 if (bus->ifp == NULL || bus->ifp->if_bpf == NULL)
266 if (!bpf_peers_present(bus->ifp->if_bpf))
284 device_printf(bus->parent, "usbpf: Out of memory\n");
292 temp = device_get_unit(bus->bdev);
389 bpf_tap(bus
[all...]
H A Dusb_device.c34 #include <sys/bus.h>
374 methods = udev->bus->methods;
391 USB_BUS_LOCK(udev->bus);
393 USB_BUS_UNLOCK(udev->bus);
447 &udev->bus->explore_proc) ? 1 : 2;
480 &udev->bus->explore_proc) ? 1 : 2;
602 /* Figure out if the device is self or bus powered. */
870 USB_BUS_LOCK(udev->bus);
874 USB_BUS_UNLOCK(udev->bus);
881 USB_BUS_LOCK(udev->bus);
1539 usb_alloc_device(device_t parent_dev, struct usb_bus *bus, struct usb_device *parent_hub, uint8_t depth, uint8_t port_index, uint8_t port_no, enum usb_dev_speed speed, enum usb_hc_mode mode) argument
2095 struct usb_bus *bus; local
[all...]
/freebsd-9.3-release/sys/powerpc/powermac/
H A Dmacgpio.c37 #include <sys/bus.h>
43 #include <machine/bus.h>
147 * of the macgpio bus
264 macgpio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
274 return (resource_list_alloc(&dinfo->mdi_resources, bus, child, type,
279 macgpio_activate_resource(device_t bus, device_t child, int type, int rid, argument
286 sc = device_get_softc(bus);
298 return (bus_activate_resource(bus, type, rid, res));
303 macgpio_deactivate_resource(device_t bus, device_t child, int type, int rid, argument
310 sc = device_get_softc(bus);
[all...]
H A Dmacio.c39 #include <sys/bus.h>
45 #include <machine/bus.h>
275 * of the macio bus
430 macio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
441 sc = device_get_softc(bus);
453 device_printf(bus, "no rle for %s memory %d\n",
479 if (device_get_parent(child) != bus)
480 return BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
487 device_printf(bus,
499 return (resource_list_alloc(&dinfo->mdi_resources, bus, chil
534 macio_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
548 macio_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
574 macio_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
[all...]
/freebsd-9.3-release/sys/dev/drm2/ttm/
H A Dttm_bo_util.c128 mem->bus.io_reserved_count++ == 0) {
149 --mem->bus.io_reserved_count == 0 &&
160 if (!mem->bus.io_reserved_vm) {
167 mem->bus.io_reserved_vm = true;
179 if (mem->bus.io_reserved_vm) {
180 mem->bus.io_reserved_vm = false;
198 if (ret || !mem->bus.is_iomem)
201 if (mem->bus.addr) {
202 addr = mem->bus.addr;
204 addr = pmap_mapdev_attr(mem->bus
[all...]
/freebsd-9.3-release/sys/dev/xen/pcifront/
H A Dpcifront.c47 #include <machine/bus.h>
51 #include <sys/bus.h>
105 int bus; member in struct:xpcib_softc
454 unsigned int domain, bus; local
479 "%x:%x", &domain, &bus);
495 child = device_add_child(dev, "pcib", bus);
499 "Unable to create pcib%d", bus);
545 DPRINTF("xpcib probe (bus=%d)\n", device_get_unit(dev));
548 sc->bus = device_get_unit(dev);
560 DPRINTF("xpcib attach (bus
589 xpcib_read_config(device_t dev, int bus, int slot, int func, int reg, int bytes) argument
616 xpcib_write_config(device_t dev, int bus, int slot, int func, int reg, u_int32_t data, int bytes) argument
[all...]
/freebsd-9.3-release/sys/mips/rt305x/
H A Dobio.c36 #include <sys/bus.h>
43 #include <machine/bus.h>
271 obio_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
274 struct obio_softc *sc = device_get_softc(bus);
283 passthrough = (device_get_parent(child) != bus);
287 return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type,
293 * maintained by a child bus), then work out the start/end values.
339 obio_activate_resource(device_t bus, device_t child, int type, int rid, argument
360 obio_deactivate_resource(device_t bus, device_t child, int type, int rid, argument
493 obio_add_res_child(device_t bus, cons argument
515 obio_hinted_child(device_t bus, const char *dname, int dunit) argument
535 obio_add_child(device_t bus, u_int order, const char *name, int unit) argument
588 obio_print_child(device_t bus, device_t child) argument
[all...]
/freebsd-9.3-release/sys/ia64/ia64/
H A Dnexus.c45 #include <sys/bus.h>
50 #include <machine/bus.h>
85 static device_t nexus_add_child(device_t bus, u_int order, const char *name,
208 nexus_print_child(device_t bus, device_t child) argument
214 retval += bus_print_child_header(bus, child);
226 nexus_add_child(device_t bus, u_int order, const char *name, int unit) argument
236 child = device_add_child_ordered(bus, order, name, unit);
265 nexus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
277 * by a child bus), then work out the start/end values.
311 nexus_adjust_resource(device_t bus, device_ argument
325 nexus_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
349 nexus_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
357 nexus_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
375 nexus_setup_intr(device_t bus, device_t child, struct resource *irq, int flags, driver_filter_t filter, void (*ihand)(void *), void *arg, void **cookiep) argument
[all...]
/freebsd-9.3-release/sys/mips/sibyte/
H A Dsb_zbpci.c32 #include <sys/bus.h>
49 #include <machine/bus.h>
151 * Sibyte has the PCI bus hierarchy rooted at bus 0 and HT-PCI
152 * hierarchy rooted at bus 1.
155 panic("zbpci_attach: could not add pci bus 0.\n");
158 panic("zbpci_attach: could not add pci bus 1.\n");
167 zbpci_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
176 res = bus_generic_alloc_resource(bus, child, type, rid,
200 zbpci_activate_resource(device_t bus, device_ argument
267 zbpci_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
285 zbpci_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
333 zbpci_config_space_va(int bus, int slot, int func, int reg, int bytes) argument
[all...]
/freebsd-9.3-release/sys/dev/acpica/
H A Dacpi_pcib_acpi.c33 #include <sys/bus.h>
63 int ap_bus; /* bios-assigned bus number */
72 static int acpi_pcib_acpi_probe(device_t bus);
73 static int acpi_pcib_acpi_attach(device_t bus);
78 static uint32_t acpi_pcib_read_config(device_t dev, u_int bus,
80 static void acpi_pcib_write_config(device_t dev, u_int bus,
339 * Get our base bus number by evaluating _BBN.
340 * If this doesn't work, we assume we're bus number 0.
343 * meant to use a private configuration space mechanism for this bus,
347 * default PCI configuration space handlers can deal with this bus,
457 acpi_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, int bytes) argument
464 acpi_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, uint32_t data, int bytes) argument
482 device_t bus; local
492 device_t bus; local
503 device_t bus, hostb; local
[all...]
H A Dacpi_pcib_pci.c34 #include <sys/bus.h>
67 static int acpi_pcib_pci_probe(device_t bus);
68 static int acpi_pcib_pci_attach(device_t bus);
/freebsd-9.3-release/sys/dev/mly/
H A Dmly.c34 #include <sys/bus.h>
40 #include <machine/bus.h>
75 static void mly_rescan_btl(struct mly_softc *sc, int bus, int target);
103 static void mly_cam_rescan_btl(struct mly_softc *sc, int bus, int target);
108 static struct cam_periph *mly_find_periph(struct mly_softc *sc, int bus, int target);
109 static int mly_name_device(struct mly_softc *sc, int bus, int target);
377 * Allocate the parent bus DMA tag appropriate for our PCI interface.
607 /* save base of s/g table's address in bus space */
782 int bus, target; local
795 for (bus
810 mly_rescan_btl(struct mly_softc *sc, int bus, int target) argument
877 int bus, target, rescan; local
1285 int bus, target, event, class, action; local
1376 int bus, target; local
2005 mly_cam_rescan_btl(struct mly_softc *sc, int bus, int target) argument
2095 int bus, target; local
2175 int bus, target; local
2309 int bus, target; local
2378 mly_find_periph(struct mly_softc *sc, int bus, int target) argument
2398 mly_name_device(struct mly_softc *sc, int bus, int target) argument
[all...]
/freebsd-9.3-release/sys/mips/malta/
H A Dgt_pci.c48 #include <sys/bus.h>
59 #include <machine/bus.h>
415 gt_pci_conf_setup(struct gt_pci_softc *sc, int bus, int slot, int func, argument
418 *addr = (bus << 16) | (slot << 11) | (func << 8) | reg;
424 gt_pci_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, argument
432 if (gt_pci_conf_setup(sc, bus, slot, func, reg & ~3, &addr))
487 bus, slot, func, reg, data, bytes);
494 gt_pci_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, argument
504 reg_data = gt_pci_read_config(dev, bus, slot, func, reg, 4);
535 if (gt_pci_conf_setup(sc, bus, slo
556 int bus; local
609 gt_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
656 gt_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
[all...]
/freebsd-9.3-release/sys/sparc64/ebus/
H A Debus.c68 #include <sys/bus.h>
79 #include <machine/bus.h>
416 ebus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
429 passthrough = (device_get_parent(child) != bus);
430 sc = device_get_softc(bus);
431 rl = BUS_GET_RESOURCE_LIST(bus, child);
482 res = bus_generic_alloc_resource(bus,
493 return (resource_list_alloc(rl, bus, child, type, rid, start,
500 ebus_activate_resource(device_t bus, device_t child, int type, int rid, argument
509 sc = device_get_softc(bus);
542 ebus_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
624 ebus_get_devinfo(device_t bus, device_t dev) argument
[all...]
/freebsd-9.3-release/sys/mips/rmi/
H A Dxlr_pci.c39 #include <sys/bus.h>
50 #include <machine/bus.h>
64 #define pci_cfg_offset(bus,slot,devfn,where) (((bus)<<16) + ((slot) << 11)+((devfn)<<8)+(where))
150 device_set_desc(dev, "XLS PCIe bus");
152 device_set_desc(dev, "XLR PCI bus");
331 printf("xls_pcie_link : bus %s dev %s\n", device_get_nameunit(pcib),
337 device_printf(dev, "Cannot find parent bus\n");
518 xlr_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
567 xlr_pci_release_resource(device_t bus, device_ argument
575 xlr_pci_get_dma_tag(device_t bus, device_t child) argument
584 xlr_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
592 xlr_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
600 mips_pci_route_interrupt(device_t bus, device_t dev, int pin) argument
[all...]
/freebsd-9.3-release/sys/dev/e1000/
H A De1000_mac.c164 * e1000_get_bus_info_pci_generic - Get PCI(x) bus information
167 * Determines and stores the system bus information for a particular
168 * network interface. The following bus information is determined and stored:
169 * bus speed, bus width, type (PCI/PCIx), and PCI(-x) function.
174 struct e1000_bus_info *bus = &hw->bus; local
181 bus->type = (status & E1000_STATUS_PCIX_MODE)
186 if (bus->type == e1000_bus_type_pci) {
187 bus
229 struct e1000_bus_info *bus = &hw->bus; local
274 struct e1000_bus_info *bus = &hw->bus; local
292 struct e1000_bus_info *bus = &hw->bus; local
314 struct e1000_bus_info *bus = &hw->bus; local
[all...]
/freebsd-9.3-release/sys/arm/arm/
H A Dautoconf.c54 #include <sys/bus.h>
/freebsd-9.3-release/sys/arm/at91/
H A Dat91var.h31 #include <sys/bus.h>
/freebsd-9.3-release/sys/dev/cxgb/sys/
H A Dmvec.h32 #include <machine/bus.h>

Completed in 354 milliseconds

1234567891011>>