Home
last modified time | relevance | path

Searched refs:device_t (Results 1 – 25 of 211) sorted by relevance

123456789

/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dbus.h30 static __inline type varp ## _get_ ## var(device_t dev) \
35 static __inline void varp ## _set_ ## var(device_t dev, type t) \
54 int bus_generic_detach(device_t dev);
55 int bus_generic_suspend(device_t dev);
56 int bus_generic_resume(device_t dev);
57 void bus_generic_shutdown(device_t dev);
67 struct resource *bus_alloc_resource(device_t dev, int type, int *rid,
69 int bus_release_resource(device_t dev, int type, int rid, struct resource *r);
70 int bus_alloc_resources(device_t dev, struct resource_spec *resourceSpec,
72 void bus_release_resources(device_t dev,
[all …]
H A Dhaiku-module.h22 typedef struct device *device_t; typedef
25 typedef int (*device_method_signature_t)(device_t dev);
27 typedef int device_probe_t(device_t dev);
28 typedef int device_attach_t(device_t dev);
29 typedef int device_detach_t(device_t dev);
30 typedef int device_resume_t(device_t dev);
31 typedef int device_shutdown_t(device_t dev);
32 typedef int device_suspend_t(device_t dev);
34 typedef int bus_child_location_str_t(device_t dev __unused, device_t child,
36 typedef int bus_child_pnpinfo_str_t(device_t dev __unused, device_t child,
[all …]
/haiku/src/libs/compat/freebsd_network/compat/dev/pci/
H A Dpcivar.h23 int pci_enable_busmaster(device_t dev);
24 int pci_enable_io(device_t dev, int reg);
26 uint32_t pci_get_devid(device_t dev);
27 void pci_set_intpin(device_t dev, uint8_t pin);
28 uint8_t pci_get_intpin(device_t dev);
30 uint16_t pci_get_vendor(device_t dev);
31 uint16_t pci_get_device(device_t dev);
32 uint16_t pci_get_subvendor(device_t dev);
33 uint16_t pci_get_subdevice(device_t dev);
34 uint8_t pci_get_revid(device_t dev);
[all …]
/haiku/src/libs/compat/freebsd_network/
H A Dshared.h37 void* (*device_register)(device_t dev);
38 int (*probe)(device_t dev);
39 int (*attach)(device_t dev);
40 int (*detach)(device_t dev);
41 int (*suspend)(device_t dev);
42 int (*resume)(device_t dev);
43 void (*shutdown)(device_t dev);
45 int (*miibus_readreg)(device_t, int, int);
46 int (*miibus_writereg)(device_t, int, int, int);
47 void (*miibus_statchg)(device_t);
[all …]
H A Ddevice.c36 static device_t
37 init_device(device_t device, driver_t *driver) in init_device()
49 static device_t
52 device_t dev = malloc(sizeof(struct device)); in new_device()
139 device_printf(device_t dev, const char *format, ...) in device_printf()
151 device_set_desc(device_t dev, const char *desc) in device_set_desc()
158 device_set_desc_copy(device_t dev, const char *desc) in device_set_desc_copy()
166 device_get_desc(device_t dev) in device_get_desc()
172 device_t
173 device_get_parent(device_t dev) in device_get_parent()
[all …]
H A Dpci.cpp51 get_device_pci_info(device_t device) in get_device_pci_info()
61 pci_read_config(device_t dev, int offset, int size) in pci_read_config()
73 pci_write_config(device_t dev, int offset, uint32_t value, int size) in pci_write_config()
85 pci_get_vendor(device_t dev) in pci_get_vendor()
92 pci_get_device(device_t dev) in pci_get_device()
99 pci_get_subvendor(device_t dev) in pci_get_subvendor()
106 pci_get_subdevice(device_t dev) in pci_get_subdevice()
113 pci_get_revid(device_t dev) in pci_get_revid()
120 pci_get_domain(device_t dev) in pci_get_domain()
126 pci_get_devid(device_t dev) in pci_get_devid()
[all …]
H A Dbus.cpp37 device_t dev;
73 bus_alloc_irq_resource(device_t dev, struct resource *res) in bus_alloc_irq_resource()
86 bus_alloc_mem_resource(device_t dev, struct resource *res, pci_info *info, in bus_alloc_mem_resource()
126 bus_alloc_ioport_resource(device_t dev, struct resource *res, pci_info *info, in bus_alloc_ioport_resource()
167 bus_alloc_resource(device_t dev, int type, int *rid, unsigned long start, in bus_alloc_resource()
218 bus_release_resource(device_t dev, int type, int rid, struct resource *res) in bus_release_resource()
232 bus_alloc_resources(device_t dev, struct resource_spec *resourceSpec, in bus_alloc_resources()
255 bus_release_resources(device_t dev, const struct resource_spec *resourceSpec, in bus_release_resources()
377 bus_setup_intr(device_t dev, struct resource *res, int flags, in bus_setup_intr()
456 bus_teardown_intr(device_t dev, struct resource *res, void *arg) in bus_teardown_intr()
[all …]
H A Dfbsd_mii.c123 miibus_probe(device_t dev) in miibus_probe()
132 miibus_attach(device_t dev) in miibus_attach()
137 device_t *children; in miibus_attach()
164 miibus_detach(device_t dev) in miibus_detach()
177 miibus_print_child(device_t dev, device_t child) in miibus_print_child()
191 miibus_read_ivar(device_t dev, device_t child __unused, int which, in miibus_read_ivar()
212 miibus_child_pnpinfo_str(device_t dev __unused, device_t child, char *buf, in miibus_child_pnpinfo_str()
225 miibus_child_location_str(device_t dev __unused, device_t child, char *buf, in miibus_child_location_str()
236 miibus_hinted_child(device_t dev, const char *name, int unit) in miibus_hinted_child()
240 device_t *children, phy; in miibus_hinted_child()
[all …]
H A Dmii.c19 __haiku_miibus_readreg(device_t device, int phy, int reg) in __haiku_miibus_readreg()
29 __haiku_miibus_writereg(device_t device, int phy, int reg, int data) in __haiku_miibus_writereg()
39 __haiku_miibus_statchg(device_t device) in __haiku_miibus_statchg()
47 __haiku_miibus_linkchg(device_t device) in __haiku_miibus_linkchg()
55 __haiku_miibus_mediainit(device_t device) in __haiku_miibus_mediainit()
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/
H A Dglue.c27 int check_disable_interrupts_dc(device_t dev);
28 void reenable_interrupts_dc(device_t dev);
30 extern int check_disable_interrupts_de(device_t dev);
31 extern void reenable_interrupts_de(device_t dev);
56 __haiku_select_miibus_driver(device_t dev) in __haiku_select_miibus_driver()
72 HAIKU_CHECK_DISABLE_INTERRUPTS(device_t dev) in HAIKU_CHECK_DISABLE_INTERRUPTS()
90 HAIKU_REENABLE_INTERRUPTS(device_t dev) in HAIKU_REENABLE_INTERRUPTS()
108 check_disable_interrupts_dc(device_t dev) in check_disable_interrupts_dc()
142 reenable_interrupts_dc(device_t dev) in reenable_interrupts_dc()
H A Dglue_de.c21 int check_disable_interrupts_de(device_t dev);
22 void reenable_interrupts_de(device_t dev);
26 check_disable_interrupts_de(device_t dev) in check_disable_interrupts_de()
60 reenable_interrupts_de(device_t dev) in reenable_interrupts_de()
/haiku/src/libs/compat/freebsd_network/compat/dev/mii/
H A Dmii_bitbang.h43 uint32_t (*mbo_read)(device_t);
44 void (*mbo_write)(device_t, uint32_t);
50 int mii_bitbang_readreg(device_t dev, mii_bitbang_ops_t ops,
52 void mii_bitbang_sync(device_t dev, mii_bitbang_ops_t ops);
53 void mii_bitbang_writereg(device_t dev, mii_bitbang_ops_t ops,
H A Dmiivar.h94 device_t mii_dev; /* generic device glue */
188 int __haiku_miibus_readreg(device_t dev, int phy, int reg);
189 int __haiku_miibus_writereg(device_t dev, int phy, int reg, int data);
190 void __haiku_miibus_statchg(device_t dev);
191 void __haiku_miibus_linkchg(device_t dev);
192 void __haiku_miibus_mediainit(device_t dev);
241 int mii_attach(device_t, device_t *, if_t, ifm_change_cb_t,
249 int mii_phy_detach(device_t dev);
256 int mii_dev_mac_match(device_t, const char *);
258 void *mii_dev_mac_softc(device_t);
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/
H A Dif_ral_pci.c108 int (*attach)(device_t, int);
152 static int ral_pci_probe(device_t);
153 static int ral_pci_attach(device_t);
154 static int ral_pci_detach(device_t);
155 static int ral_pci_shutdown(device_t);
156 static int ral_pci_suspend(device_t);
157 static int ral_pci_resume(device_t);
182 ral_pci_probe(device_t dev) in ral_pci_probe()
197 ral_pci_attach(device_t dev) in ral_pci_attach()
269 ral_pci_detach(device_t dev) in ral_pci_detach()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/
H A Dglue.c25 __haiku_select_miibus_driver(device_t dev) in __haiku_select_miibus_driver()
37 int check_disable_interrupts_le(device_t dev);
38 void reenable_interrupts_le(device_t dev);
40 extern int check_disable_interrupts_pcn(device_t dev);
41 extern void reenable_interrupts_pcn(device_t dev);
61 HAIKU_CHECK_DISABLE_INTERRUPTS(device_t dev) in HAIKU_CHECK_DISABLE_INTERRUPTS()
79 HAIKU_REENABLE_INTERRUPTS(device_t dev) in HAIKU_REENABLE_INTERRUPTS()
114 check_disable_interrupts_le(device_t dev) in check_disable_interrupts_le()
H A Dglue_pcn.c12 int check_disable_interrupts_pcn(device_t dev);
13 void reenable_interrupts_pcn(device_t dev);
17 check_disable_interrupts_pcn(device_t dev) in check_disable_interrupts_pcn()
45 reenable_interrupts_pcn(device_t dev) in reenable_interrupts_pcn()
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dfwohcivar.h88 int fwohci_init (struct fwohci_softc *, device_t);
90 void fwohci_reset (struct fwohci_softc *, device_t);
91 int fwohci_detach (struct fwohci_softc *, device_t);
92 int fwohci_resume (struct fwohci_softc *, device_t);
93 int fwohci_stop (struct fwohci_softc *, device_t dev);
/haiku/src/add-ons/kernel/drivers/network/wlan/aironetwifi/dev/an/
H A Dif_an_pci.c115 static int an_probe_pci (device_t);
116 static int an_attach_pci (device_t);
117 static int an_suspend_pci (device_t);
118 static int an_resume_pci (device_t);
121 an_probe_pci(device_t dev) in an_probe_pci()
144 device_t dev; in an_attach_pci()
241 an_suspend_pci(device_t dev) in an_suspend_pci()
249 an_resume_pci(device_t dev) in an_resume_pci()
/haiku/src/libs/compat/openbsd_network/compat/dev/pci/
H A Dpcivar.h44 pci_get_capability_openbsd(device_t dev, int capability, int* offset, pcireg_t* value) in pci_get_capability_openbsd()
56 pci_mapreg_type_openbsd(device_t dev, int reg) in pci_mapreg_type_openbsd()
62 pci_mapreg_map_openbsd(device_t dev, int reg, pcireg_t type, int flags, in pci_mapreg_map_openbsd()
80 pci_intr_map_msix(device_t dev, int vec, pci_intr_handle_t* ihp) in pci_intr_map_msix()
91 pci_intr_map_msi(device_t dev, pci_intr_handle_t* ihp) in pci_intr_map_msi()
99 pci_intr_map(device_t dev, pci_intr_handle_t* ihp) in pci_intr_map()
107 pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level, in pci_intr_establish_openbsd()
/haiku/src/add-ons/kernel/drivers/network/ether/attansic_l2/dev/mii/
H A Dukphy.c80 static int ukphy_probe(device_t);
81 static int ukphy_attach(device_t);
109 ukphy_probe(device_t dev) in ukphy_probe()
120 ukphy_attach(device_t dev) in ukphy_attach()
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom570x/dev/mii/
H A Dukphy.c80 static int ukphy_probe(device_t);
81 static int ukphy_attach(device_t);
109 ukphy_probe(device_t dev) in ukphy_probe()
120 ukphy_attach(device_t dev) in ukphy_attach()
/haiku/src/add-ons/kernel/drivers/network/ether/marvell_yukon/dev/mii/
H A Dukphy.c80 static int ukphy_probe(device_t);
81 static int ukphy_attach(device_t);
109 ukphy_probe(device_t dev) in ukphy_probe()
120 ukphy_attach(device_t dev) in ukphy_attach()
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/dev/mii/
H A Dukphy.c80 static int ukphy_probe(device_t);
81 static int ukphy_attach(device_t);
109 ukphy_probe(device_t dev) in ukphy_probe()
120 ukphy_attach(device_t dev) in ukphy_attach()
/haiku/src/add-ons/kernel/drivers/network/ether/syskonnect/dev/mii/
H A Dukphy.c80 static int ukphy_probe(device_t);
81 static int ukphy_attach(device_t);
109 ukphy_probe(device_t dev) in ukphy_probe()
120 ukphy_attach(device_t dev) in ukphy_attach()
/haiku/src/add-ons/kernel/drivers/network/ether/sis19x/dev/mii/
H A Dukphy.c80 static int ukphy_probe(device_t);
81 static int ukphy_attach(device_t);
109 ukphy_probe(device_t dev) in ukphy_probe()
120 ukphy_attach(device_t dev) in ukphy_attach()

123456789