Home
last modified time | relevance | path

Searched refs:cfdata (Results 1 – 25 of 220) sorted by relevance

123456789

/netbsd-src/sys/kern/
H A Dsubr_userconf.c42 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 Dmachdep.c204 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 Dimx51_axi.c50 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 Dimx51_uart.c42 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 Dimx31_uart.c37 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 Drump_autoconf.c50 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 Dbtuart.c166 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 Dgxio.c461 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 Docteon_bootbus.c44 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 Docteon_iobus.c52 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 Dautoconf.c55 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 Dsni_gpio.c56 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 Dsni_emmc.c58 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 Docteon_smi.c73 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 Docteon_pip.c49 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 Daupsc.c74 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 Dobio_timer.c139 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 Dgrf_cc.c77 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 Dirframe_tty.c272 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 Dsbus.c110 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 Dapc.c46 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 Dcpu.c45 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 Ddevice.h147 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 Ddeq.c49 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 Dzynq7000_usb.c59 static int zynqusb_match(device_t, struct cfdata *, void *);
67 zynqusb_match(device_t parent, struct cfdata *cf, void *aux) in zynqusb_match()

123456789