/netbsd-src/sys/kern/ |
H A D | subr_userconf.c | 42 extern struct cfdata cfdata[]; 85 struct cfdata *cf; in userconf_init() 88 for (cf = cfdata; cf->cf_name; cf++) in userconf_init() 175 struct cfdata *cd; in userconf_pdevnam() 177 cd = &cfdata[dev]; in userconf_pdevnam() 200 struct cfdata *cd; in userconf_pdev() 212 cd = &cfdata[devno]; in userconf_pdev() 382 struct cfdata *cd; in userconf_change() 408 cd = &cfdata[devno]; in userconf_change() 445 switch (cfdata[devno].cf_fstate) { in userconf_disable() [all …]
|
/netbsd-src/sys/arch/bebox/bebox/ |
H A D | machdep.c | 204 extern struct cfdata cfdata[]; in disable_device() 207 for (i = 0; cfdata[i].cf_name != NULL; i++) in disable_device() 208 if (strcmp(cfdata[i].cf_name, name) == 0) { in disable_device() 209 if (cfdata[i].cf_fstate == FSTATE_NOTFOUND) in disable_device() 210 cfdata[i].cf_fstate = FSTATE_DNOTFOUND; in disable_device() 211 else if (cfdata[i].cf_fstate == FSTATE_STAR) in disable_device() 212 cfdata[i].cf_fstate = FSTATE_DSTAR; in disable_device()
|
/netbsd-src/sys/arch/arm/imx/ |
H A D | imx51_axi.c | 50 static int axi_match(device_t, struct cfdata *, void *); 52 static int axi_search(device_t, struct cfdata *, const int *, void *); 53 static int axi_critical_search(device_t, struct cfdata *, const int *, void *); 54 static int axi_search(device_t, struct cfdata *, const int *, void *); 62 axi_match(device_t parent __unused, struct cfdata *match __unused, in axi_match() 97 axi_critical_search(device_t parent, struct cfdata *cf, in axi_critical_search() 125 axi_search(device_t parent, struct cfdata *cf, const int *ldesc __unused, in axi_search()
|
H A D | imx51_uart.c | 42 static int imx51_uart_match(device_t, struct cfdata *, void *); 49 imx51_uart_match(device_t parent, struct cfdata *cf, void *aux) in imx51_uart_match()
|
H A D | imx31_uart.c | 37 static int imx31_uart_match(device_t, struct cfdata *, void *); 44 imx31_uart_match(device_t parent, struct cfdata *cf, void *aux) in imx31_uart_match()
|
/netbsd-src/sys/rump/librump/rumpkern/ |
H A D | rump_autoconf.c | 50 struct cfdata cfdata[] = { variable 131 memcpy(&cfdata[0], &cfdata_ioconf_mainbus[0], sizeof(cfdata[0])); in rump_mainbus_init() 139 config_cfdata_attach(cfdata, 0); in rump_mainbus_attach()
|
/netbsd-src/sys/dev/bluetooth/ |
H A D | btuart.c | 166 btuart_match(device_t self __unused, cfdata_t cfdata __unused, in btuart_match() 224 cfdata_t cfdata; in btuartopen() local 243 cfdata = malloc(sizeof(struct cfdata), M_DEVBUF, M_WAITOK); in btuartopen() 248 cfdata->cf_name = btuart_cd.cd_name; in btuartopen() 249 cfdata->cf_atname = btuart_cd.cd_name; in btuartopen() 250 cfdata->cf_unit = unit; in btuartopen() 251 cfdata->cf_fstate = FSTATE_STAR; in btuartopen() 253 dev = config_attach_pseudo(cfdata); in btuartopen() 255 free(cfdata, M_DEVBUF); in btuartopen() 281 cfdata_t cfdata; in btuartclose() local [all …]
|
/netbsd-src/sys/arch/evbarm/gumstix/ |
H A D | gxio.c | 461 extern struct cfdata cfdata[]; in etherstix_config() 481 for (i = 0; cfdata[i].cf_name != NULL; i++) in etherstix_config() 482 if (strcmp(cfdata[i].cf_name, "sm") == 0 && in etherstix_config() 483 strcmp(cfdata[i].cf_atname, "sm_gxio") == 0 && in etherstix_config() 484 cfdata[i].cf_loc[GXIOCF_ADDR] == 0x04000300 && in etherstix_config() 485 cfdata[i].cf_loc[GXIOCF_GPIRQ] == GXIOCF_GPIRQ_DEFAULT) in etherstix_config() 486 cfdata[i].cf_loc[GXIOCF_GPIRQ] = irq; in etherstix_config()
|
/netbsd-src/sys/arch/mips/cavium/ |
H A D | octeon_bootbus.c | 44 static int bootbus_match(device_t, struct cfdata *, void *); 46 static int bootbus_submatch(device_t, struct cfdata *, 72 bootbus_match(device_t parent, struct cfdata *match, void *aux) in bootbus_match() 105 bootbus_submatch(device_t parent, struct cfdata *cf, in bootbus_submatch()
|
H A D | octeon_iobus.c | 52 static int iobus_match(device_t, struct cfdata *, void *); 54 static int iobus_submatch(device_t, struct cfdata *, const int *, void *); 82 iobus_match(device_t parent, struct cfdata *match, void *aux) in iobus_match() 122 iobus_submatch(device_t parent, struct cfdata *cf, const int *ldesc, void *aux) in iobus_submatch()
|
/netbsd-src/sys/arch/evbarm/evbarm/ |
H A D | autoconf.c | 55 extern struct cfdata cfdata[]; 182 struct cfdata *cf; in cpu_configure() 193 for (cf = &cfdata[0]; cf->cf_name; cf++) { in cpu_configure()
|
/netbsd-src/sys/arch/arm/sociox/ |
H A D | sni_gpio.c | 56 static int snigpio_fdt_match(device_t, struct cfdata *, void *); 58 static int snigpio_acpi_match(device_t, struct cfdata *, void *); 116 snigpio_fdt_match(device_t parent, struct cfdata *match, void *aux) in snigpio_fdt_match() 153 snigpio_acpi_match(device_t parent, struct cfdata *match, void *aux) in snigpio_acpi_match()
|
H A D | sni_emmc.c | 58 static int sniemmc_fdt_match(device_t, struct cfdata *, void *); 60 static int sniemmc_acpi_match(device_t, struct cfdata *, void *); 96 sniemmc_fdt_match(device_t parent, struct cfdata *match, void *aux) in sniemmc_fdt_match() 152 sniemmc_acpi_match(device_t parent, struct cfdata *match, void *aux) in sniemmc_acpi_match()
|
/netbsd-src/sys/arch/mips/cavium/dev/ |
H A D | octeon_smi.c | 73 static int octsmi_iobus_match(device_t, struct cfdata *, void *); 76 static int octsmi_fdt_match(device_t, struct cfdata *, void *); 107 octsmi_iobus_match(device_t parent, struct cfdata *cf, void *aux) in octsmi_iobus_match() 142 octsmi_fdt_match(device_t parent, struct cfdata *cf, void *aux) in octsmi_fdt_match()
|
H A D | octeon_pip.c | 49 static int octpip_iobus_match(device_t, struct cfdata *, void *); 52 static int octpip_fdt_match(device_t, struct cfdata *, void *); 72 octpip_iobus_match(device_t parent, struct cfdata *cf, void *aux) in octpip_iobus_match() 120 octpip_fdt_match(device_t parent, struct cfdata *cf, void *aux) in octpip_fdt_match()
|
/netbsd-src/sys/arch/mips/alchemy/dev/ |
H A D | aupsc.c | 74 static int aupsc_match(device_t, struct cfdata *, void *); 76 static int aupsc_submatch(device_t, struct cfdata *, const int *, void *); 88 aupsc_match(device_t parent, struct cfdata *cf, void *aux) in aupsc_match() 158 aupsc_submatch(device_t parent, struct cfdata *cf, const int *ldesc, void *aux) in aupsc_submatch()
|
/netbsd-src/sys/arch/arm/gemini/ |
H A D | obio_timer.c | 139 static int obiotimer_match(device_t, struct cfdata *, void *); 176 static int obiotimer_match(device_t, struct cfdata *, void *); 185 obiotimer_match(device_t parent, struct cfdata *match, void *aux) in obiotimer_match()
|
/netbsd-src/sys/arch/amiga/dev/ |
H A D | grf_cc.c | 77 static cfdata_t cfdata; variable 108 cfdata = cf; in grfccmatch() 155 amiga_config_found(cfdata, gp->g_device, gp, grfccprint, CFARGS_NONE); in grfccattach()
|
/netbsd-src/sys/dev/ir/ |
H A D | irframe_tty.c | 272 cfdata_t cfdata; in irframetopen() local 295 cfdata = malloc(sizeof(struct cfdata), M_DEVBUF, M_WAITOK); in irframetopen() 296 cfdata->cf_name = "irframe"; in irframetopen() 297 cfdata->cf_atname = "irframet"; in irframetopen() 298 cfdata->cf_fstate = FSTATE_STAR; in irframetopen() 299 cfdata->cf_unit = 0; in irframetopen() 300 d = config_attach_pseudo(cfdata); in irframetopen() 339 cfdata_t cfdata; in irframetclose() local 355 cfdata = device_cfdata(sc->sc_irp.sc_dev); in irframetclose() 357 free(cfdata, M_DEVBUF); in irframetclose()
|
/netbsd-src/sys/arch/sparc/dev/ |
H A D | sbus.c | 110 int sbus_match_mainbus(device_t, struct cfdata *, void *); 111 int sbus_match_iommu(device_t, struct cfdata *, void *); 112 int sbus_match_xbox(device_t, struct cfdata *, void *); 205 sbus_match_mainbus(device_t parent, struct cfdata *cf, void *aux) in sbus_match_mainbus() 216 sbus_match_iommu(device_t parent, struct cfdata *cf, void *aux) in sbus_match_iommu() 227 sbus_match_xbox(device_t parent, struct cfdata *cf, void *aux) in sbus_match_xbox()
|
H A D | apc.c | 46 static int apcmatch(device_t, struct cfdata *, void *); 63 apcmatch(device_t parent, struct cfdata *cf, void *aux) in apcmatch()
|
/netbsd-src/sys/arch/sh3/sh3/ |
H A D | cpu.c | 45 static int cpu_match(device_t, struct cfdata *, void *); 54 cpu_match(device_t parent, struct cfdata *cf, void *aux) in cpu_match()
|
/netbsd-src/sys/sys/ |
H A D | device.h | 147 typedef struct cfdata *cfdata_t; 325 struct cfdata { struct 345 cfdata_t ct_cfdata; /* pointer to cfdata table */ argument 511 extern struct cftablelist allcftables; /* list of all cfdata tables */ 527 const struct cfattachinit *, struct cfdata *); 529 const struct cfattachinit *, struct cfdata *); 548 const char *cfdata_ifattr(const struct cfdata *);
|
/netbsd-src/sys/arch/macppc/dev/ |
H A D | deq.c | 49 static int deq_match(device_t, struct cfdata *, void *); 64 deq_match(device_t parent, struct cfdata *cf, void *aux) in deq_match()
|
/netbsd-src/sys/arch/arm/xilinx/ |
H A D | zynq7000_usb.c | 59 static int zynqusb_match(device_t, struct cfdata *, void *); 67 zynqusb_match(device_t parent, struct cfdata *cf, void *aux) in zynqusb_match()
|