| /netbsd-src/sys/sys/ |
| H A D | device.h | 197 device_t *dg_devs; 223 typedef int (*device_call_t)(device_t, devhandle_t, void *); 271 device_t di_prev; 352 typedef int (*cfsubmatch_t)(device_t, cfdata_t, const int *, void *); 353 typedef int (*cfsearch_t)(device_t, cfdata_t, const int *, void *); 375 int (*ca_match)(device_t, cfdata_t, void *); 376 void (*ca_attach)(device_t, device_t, void *); 377 int (*ca_detach)(device_t, int); 378 int (*ca_activate)(device_t, devact_ [all...] |
| H A D | device_impl.h | 136 device_t dv_parent; /* pointer to parent device 154 void (**dv_activity_handlers)(device_t, devactive_t); 156 bool (*dv_driver_suspend)(device_t, const pmf_qual_t *); 157 bool (*dv_driver_resume)(device_t, const pmf_qual_t *); 158 bool (*dv_driver_shutdown)(device_t, int); 159 void (*dv_driver_child_register)(device_t); 162 bool (*dv_bus_suspend)(device_t, const pmf_qual_t *); 163 bool (*dv_bus_resume)(device_t, const pmf_qual_t *); 164 bool (*dv_bus_shutdown)(device_t, int); 165 void (*dv_bus_deregister)(device_t); [all …]
|
| H A D | pmf.h | 82 bool pmf_event_inject(device_t, pmf_generic_event_t); 83 bool pmf_event_register(device_t, pmf_generic_event_t, 84 void (*)(device_t), bool); 85 void pmf_event_deregister(device_t, pmf_generic_event_t, 86 void (*)(device_t), bool); 96 bool pmf_device_register1(device_t, 97 bool (*)(device_t, const pmf_qual_t *), 98 bool (*)(device_t, const pmf_qual_t *), 99 bool (*)(device_t, int)); 104 void pmf_device_deregister(device_t); [all …]
|
| /netbsd-src/sys/dev/fdt/ |
| H A D | fdtvar.h | 64 struct clk * (*decode)(device_t, int, const void *, size_t); 69 audio_dai_tag_t (*get_tag)(device_t, const void *, size_t); 111 void * (*acquire)(device_t, const void *, size_t, 113 void (*release)(device_t, void *); 114 int (*transfer)(device_t, void *, struct fdtbus_dma_req *); 115 void (*halt)(device_t, void *); 127 void * (*acquire)(device_t, const void *, size_t, int); 128 void (*release)(device_t, void *); 129 int (*read)(device_t, void *, bool); 130 void (*write)(device_t, void *, int, bool); [all …]
|
| /netbsd-src/sys/dev/nand/ |
| H A D | nand.h | 153 device_t sc_dev; 154 device_t controller_dev; 168 void (*select) (device_t, bool); /* optional */ 169 void (*command) (device_t, uint8_t); 170 void (*address) (device_t, uint8_t); 171 void (*read_buf_1) (device_t, void *, size_t); 172 void (*read_buf_2) (device_t, void *, size_t); 173 void (*read_1) (device_t, uint8_t *); 174 void (*read_2) (device_t, uint16_t *); 175 void (*write_buf_1) (device_t, const void *, size_t); [all …]
|
| /netbsd-src/sys/arch/arm/include/ |
| H A D | ofisa_machdep.h | 46 int ofisa_md_match(device_t, cfdata_t, void *); 50 int com_ofisa_md_match(device_t, cfdata_t, void *); 51 int com_ofisa_md_intr_fixup(device_t, device_t, void *, 59 int cs_ofisa_md_match(device_t, cfdata_t, void *); 60 int cs_ofisa_md_reg_fixup(device_t, device_t, void *, 62 int cs_ofisa_md_intr_fixup(device_t, device_t, void *, 64 int cs_ofisa_md_dma_fixup(device_t, device_t, void *, 66 int *cs_ofisa_md_media_fixup(device_t, device_t, void *, 71 int lpt_ofisa_md_match(device_t, cfdata_t, void *); 72 int lpt_ofisa_md_intr_fixup(device_t, device_t, void *, [all …]
|
| /netbsd-src/sys/arch/vax/vax/ |
| H A D | autoconf.c | 103 static int mainbus_match(device_t, cfdata_t, void *); 104 static void mainbus_attach(device_t, device_t, void *); 121 mainbus_match(device_t parent, cfdata_t cf, void *aux) in mainbus_match() 127 mainbus_attach(device_t parent, device_t self, void *aux) in mainbus_attach() 157 static int cpu_mainbus_match(device_t, cfdata_t, void *); 158 static void cpu_mainbus_attach(device_t, device_t, void *); 161 cpu_mainbus_match(device_t self, cfdata_t cf, void *aux) in cpu_mainbus_match() 169 cpu_mainbus_attach(device_t parent, device_t self, void *aux) in cpu_mainbus_attach() 201 static int jmfr(const char *, device_t, int); 202 static int booted_qe(device_t, void *); [all …]
|
| /netbsd-src/sys/dev/ppbus/ |
| H A D | ppbus_base.h | 139 int ppbus_scan_bus(device_t); 140 void ppbus_pnp_detect(device_t); 141 int ppbus_request_bus(device_t, device_t, int, unsigned int); 142 int ppbus_release_bus(device_t, device_t, int, unsigned int); 143 int ppbus_get_status(device_t, struct ppbus_status *); 144 int ppbus_poll_bus(device_t, int, char, char, int); 147 int ppbus_read_ivar(device_t, int, unsigned int *); 148 int ppbus_write_ivar(device_t, int, unsigned int *); 149 int ppbus_reset_epp_timeout(device_t); 150 int ppbus_ecp_sync(device_t); [all …]
|
| H A D | ppbus_conf.h | 52 typedef u_char (*PARPORT_IO_T)(device_t, int, u_char *, int, u_char); 53 typedef int (*PARPORT_EXEC_MICROSEQ_T)(device_t, 55 typedef void (*PARPORT_RESET_EPP_TIMEOUT_T)(device_t); 56 typedef int (*PARPORT_SETMODE_T)(device_t, int); 57 typedef int (*PARPORT_GETMODE_T)(device_t); 58 typedef void (*PARPORT_ECP_SYNC_T)(device_t); 59 typedef int (*PARPORT_READ_T)(device_t, char *, int, int, size_t *); 60 typedef int (*PARPORT_WRITE_T)(device_t, char *, int, int, size_t *); 61 typedef int (*PARPORT_READ_IVAR_T)(device_t, int, unsigned int *); 62 typedef int (*PARPORT_WRITE_IVAR_T)(device_t, int, unsigned int *); [all …]
|
| /netbsd-src/sys/dev/nor/ |
| H A D | nor.h | 85 device_t sc_dev; 86 device_t sc_controller_dev; 104 int (*scan_media)(device_t self, struct nor_chip *chip); 105 void (*init) (device_t); 106 void (*select) (device_t, bool); /* optional */ 107 void (*read_1) (device_t, flash_off_t, uint8_t *); 108 void (*read_2) (device_t, flash_off_t, uint16_t *); 109 void (*read_4) (device_t, flash_off_t, uint32_t *); 110 void (*read_buf_1) (device_t, flash_off_t, uint8_t *, size_t); 111 void (*read_buf_2) (device_t, flash_off_t, uint16_t *, size_t); [all …]
|
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | mainbus.c | 80 int mainbus_rescan(device_t, const char *, const int *); 81 void mainbus_childdetached(device_t, device_t); 82 void mainbus_attach(device_t, device_t, void *); 83 int mainbus_match(device_t, cfdata_t, void *); 91 void i386_mainbus_childdetached(device_t, device_t); 92 int i386_mainbus_rescan(device_t, const char *, const int *); 93 void i386_mainbus_attach(device_t, device_t, void *); 97 void amd64_mainbus_attach(device_t, device_t, void *); 143 x86_cpubus_attach(device_t self) in x86_cpubus_attach() 208 mainbus_match(device_t parent, cfdata_t match, void *aux) in mainbus_match() [all …]
|
| /netbsd-src/sys/dev/flash/ |
| H A D | flash.h | 64 device_t sc_dev; 65 device_t sc_parent_dev; /* Hardware (parent) device */ 98 int (*erase)(device_t, struct flash_erase_instruction *); 99 int (*read)(device_t, flash_off_t, size_t, size_t *, uint8_t *); 100 int (*write)(device_t, flash_off_t, size_t, size_t *, const uint8_t *); 101 int (*block_markbad)(device_t, flash_off_t); 102 int (*block_isbad)(device_t, flash_off_t, bool *); 103 int (*sync)(device_t); 105 int (*submit)(device_t, struct buf *); 123 device_t flash_attach_mi(struct flash_interface *, device_t); [all …]
|
| /netbsd-src/sys/dev/ |
| H A D | spkr_audio.c | 50 static int spkr_audio_probe(device_t, cfdata_t, void *); 51 static void spkr_audio_attach(device_t, device_t, void *); 52 static int spkr_audio_detach(device_t, int); 53 static int spkr_audio_rescan(device_t, const char *, const int *); 54 static void spkr_audio_childdet(device_t, device_t); 58 device_t sc_audiodev; 66 spkr_audio_tone(device_t self, u_int xhz, u_int ticks) in spkr_audio_tone() 81 spkr_audio_probe(device_t parent, cfdata_t cf, void *aux) in spkr_audio_probe() 92 spkr_audio_attach(device_t parent, device_t self, void *aux) in spkr_audio_attach() 109 spkr_audio_detach(device_t self, int flags) in spkr_audio_detach() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | subr_device.c | 40 device_t root_device; 175 * Accessor functions for the device_t type. 179 device_class(device_t dev) in device_cfdriver() 186 device_cfdata(device_t dev) in device_cfattach() 193 device_cfdriver(device_t dev) in device_unit() 200 device_cfattach(device_t dev) in device_xname() 207 device_unit(device_t dev) in device_parent() 214 device_xname(device_t dev) in device_activation() 220 device_t in device_activation() 221 device_parent(device_t de in device_activation() 363 device_enumerate_children(device_t dev,bool (* callback)(device_t,devhandle_t,void *),void * callback_arg) device_enumerate_children() argument [all...] |
| H A D | subr_autoconf.c | 155 #define ROOT ((device_t)NULL) 159 device_t parent; 187 static void config_devdelete(device_t); 188 static void config_devunlink(device_t, struct devicelist *); 190 static void config_devlink(device_t); 193 static void config_add_attrib_dict(device_t); 194 static device_t config_attach_internal(device_t, cfdata_t, void *, 200 static void pmflock_debug(device_t, const char *, int); 202 static device_t deviter_next1(deviter_t *); 207 device_t dc_dev; [all …]
|
| H A D | kern_pmf.c | 90 void (*pmf_handler)(device_t); 91 device_t pmf_device; 101 device_t pew_device; 106 device_t psw_dev; 115 static bool pmf_device_resume_locked(device_t, const pmf_qual_t *); 116 static bool pmf_device_suspend_locked(device_t, const pmf_qual_t *); 117 static bool device_pmf_any_suspensor(device_t, devact_level_t); 120 complete_suspension(device_t dev, const device_suspensor_t **susp, in complete_suspension() 147 device_t dev; in pmf_suspend_worker() 206 device_t curdev; in pmf_check_system_drivers() [all …]
|
| /netbsd-src/sys/arch/x86/include/ |
| H A D | autoconf.h | 14 device_t sc_acpi; 15 device_t sc_dev; 16 device_t sc_ipmi; 17 device_t sc_pci; 18 device_t sc_mca; 19 device_t sc_pnpbios; 25 void device_pci_props_register(device_t, void *); 26 device_t device_pci_register(device_t, void *); 27 device_t device_isa_register(device_t, void *); 28 void device_acpi_register(device_t, void *);
|
| /netbsd-src/sys/arch/x86/pci/ |
| H A D | amdnb_misc.c | 41 static int amdnb_misc_match(device_t, cfdata_t match, void *); 42 static void amdnb_misc_attach(device_t, device_t, void *); 43 static int amdnb_misc_detach(device_t, int); 44 static int amdnb_misc_rescan(device_t, const char *, const int *); 45 static void amdnb_misc_childdet(device_t, device_t); 57 amdnb_misc_match(device_t parent, cfdata_t match, void *aux) in amdnb_misc_match() 81 amdnb_misc_search(device_t parent, cfdata_t cf, const int *locs, void *aux) in amdnb_misc_search() 83 device_t dev; in amdnb_misc_search() 123 amdnb_misc_attach(device_t parent, device_t self, void *aux) in amdnb_misc_attach() 143 amdnb_misc_detach(device_t self, int flags) in amdnb_misc_detach() [all …]
|
| /netbsd-src/sys/arch/arm/ti/ |
| H A D | omap2_nand.c | 85 static int omap2_nand_match(device_t, cfdata_t, void *); 86 static void omap2_nand_attach(device_t, device_t, void *); 88 static void omap2_nand_command(device_t self, uint8_t command); 89 static void omap2_nand_address(device_t self, uint8_t address); 90 static void omap2_nand_busy(device_t self); 91 static void omap2_nand_read_1(device_t self, uint8_t *data); 92 static void omap2_nand_write_1(device_t self, uint8_t data); 93 static void omap2_nand_read_2(device_t self, uint16_t *data); 94 static void omap2_nand_write_2(device_t self, uint16_t data); 95 bool omap2_nand_isbusy(device_t self); [all …]
|
| /netbsd-src/sys/dev/isa/ |
| H A D | spkr_pcppi.c | 71 static int spkr_pcppi_probe(device_t, cfdata_t, void *); 72 static void spkr_pcppi_attach(device_t, device_t, void *); 73 static int spkr_pcppi_detach(device_t, int); 74 static int spkr_pcppi_rescan(device_t, const char *, const int *); 75 static void spkr_pcppi_childdet(device_t, device_t); 83 spkr_pcppi_tone(device_t self, u_int xhz, u_int ticks) in spkr_pcppi_tone() 93 spkr_pcppi_probe(device_t parent, cfdata_t cf, void *aux) in spkr_pcppi_probe() 99 spkr_pcppi_attach(device_t parent, device_t self, void *aux) in spkr_pcppi_attach() 115 spkr_pcppi_detach(device_t self, int flags) in spkr_pcppi_detach() 129 spkr_pcppi_rescan(device_t self, const char *iattr, const int *locators) in spkr_pcppi_rescan() [all …]
|
| /netbsd-src/sys/arch/powerpc/booke/dev/ |
| H A D | pq3nandfcm.c | 49 static int pq3nandfcm_match(device_t, cfdata_t, void *); 50 static void pq3nandfcm_attach(device_t, device_t, void *); 51 static int pq3nandfcm_detach(device_t, int); 53 static void pq3nandfcm_select(device_t, bool); 54 static void pq3nandfcm_command(device_t, uint8_t); 55 static void pq3nandfcm_address(device_t, uint8_t); 56 static void pq3nandfcm_busy(device_t); 57 static void pq3nandfcm_read_byte(device_t, uint8_t *); 58 static void pq3nandfcm_write_byte(device_t, uint8_t); 59 static void pq3nandfcm_read_buf(device_t, void *, size_t); [all …]
|
| /netbsd-src/sys/dev/acpi/wmi/ |
| H A D | wmi_msi.c | 56 device_t sc_dev; 57 device_t sc_parent; 60 static int wmi_msi_match(device_t, cfdata_t, void *); 61 static void wmi_msi_attach(device_t, device_t, void *); 62 static int wmi_msi_detach(device_t, int); 64 static bool wmi_msi_suspend(device_t, const pmf_qual_t *); 65 static bool wmi_msi_resume(device_t, const pmf_qual_t *); 71 wmi_msi_match(device_t parent, cfdata_t match, void *aux) in wmi_msi_match() 77 wmi_msi_attach(device_t parent, device_t self, void *aux) in wmi_msi_attach() 99 wmi_msi_detach(device_t self, int flags) in wmi_msi_detach() [all …]
|
| /netbsd-src/sys/arch/arm/imx/ |
| H A D | imx23_apbh.c | 43 static int apbh_match(device_t, cfdata_t, void *); 44 static void apbh_attach(device_t, device_t, void *); 45 static int apbh_detach(device_t, int); 46 static int apbh_activate(device_t, enum devact); 48 static int apbh_search_cb(device_t, cfdata_t, const int *, void *); 49 static int apbh_search_crit_cb(device_t, cfdata_t, const int *, void *); 53 device_t sc_dev; 54 device_t dmac; /* DMA controller device for this bus. */ 68 apbh_match(device_t parent, cfdata_t match, void *aux) in apbh_match() 79 apbh_attach(device_t parent, device_t self, void *aux) in apbh_attach() [all …]
|
| H A D | imx23_apbx.c | 43 static int apbx_match(device_t, cfdata_t, void *); 44 static void apbx_attach(device_t, device_t, void *); 45 static int apbx_detach(device_t, int); 46 static int apbx_activate(device_t, enum devact ); 48 static int apbx_search_cb(device_t, cfdata_t, const int *, void *); 49 static int apbx_search_crit_cb(device_t, cfdata_t, const int *, void *); 53 device_t sc_dev; 54 device_t dmac; /* DMA controller device for this bus. */ 68 apbx_match(device_t parent, cfdata_t match, void *aux) in apbx_match() 79 apbx_attach(device_t parent, device_t self, void *aux) in apbx_attach() [all …]
|
| /netbsd-src/sys/arch/sparc64/dev/ |
| H A D | mkclock.c | 91 static int mkclock_sbus_match(device_t, cfdata_t, void *); 92 static void mkclock_sbus_attach(device_t, device_t, void *); 94 static int mkclock_ebus_match(device_t, cfdata_t, void *); 95 static void mkclock_ebus_attach(device_t, device_t, void *); 97 static int mkclock_fhc_match(device_t, cfdata_t, void *); 98 static void mkclock_fhc_attach(device_t, device_t, void *); 119 mkclock_sbus_match(device_t parent, cfdata_t cf, void *aux) in mkclock_sbus_match() 127 mkclock_ebus_match(device_t parent, cfdata_t cf, void *aux) in mkclock_ebus_match() 135 mkclock_fhc_match(device_t parent, cfdata_t cf, void *aux) in mkclock_fhc_match() 167 mkclock_sbus_attach(device_t parent, device_t self, void *aux) in mkclock_sbus_attach() [all …]
|