Home
last modified time | relevance | path

Searched refs:fdc (Results 1 – 25 of 152) sorted by relevance

1234567

/netbsd-src/sys/arch/sparc64/dev/
H A Dfdc.c484 establish_chip_type(struct fdc_softc *fdc, in establish_chip_type() argument
531 fdc->sc_flags |= FDC_82077; in establish_chip_type()
550 fdprint(void *aux, const char *fdc) in fdprint() argument
554 if (!fdc) in fdprint()
564 fdconf(struct fdc_softc *fdc) in fdconf() argument
568 if (fdc_wrfifo(fdc, NE7CMD_DUMPREG) || fdcresult(fdc) != 10) in fdconf()
575 if ((vroom = fdc->sc_status[7]) == 0) in fdconf()
579 if (fdc_wrfifo(fdc, NE7CMD_CFG) != 0) in fdconf()
581 if (fdc_wrfifo(fdc, vroom) != 0) in fdconf()
583 if (fdc_wrfifo(fdc, fdc->sc_cfg) != 0) in fdconf()
[all …]
/netbsd-src/sys/arch/sparc/dev/
H A Dfd.c430 establish_chip_type(struct fdc_softc *fdc, in establish_chip_type() argument
475 fdc->sc_flags |= FDC_82077; in establish_chip_type()
494 fdprint(void *aux, const char *fdc) in fdprint() argument
498 if (!fdc) in fdprint()
508 fdconf(struct fdc_softc *fdc) in fdconf() argument
512 if (fdc_wrfifo(fdc, NE7CMD_DUMPREG) || fdcresult(fdc) != 10) in fdconf()
519 if ((vroom = fdc->sc_status[7]) == 0) in fdconf()
523 if (fdc_wrfifo(fdc, NE7CMD_CFG) != 0) in fdconf()
525 if (fdc_wrfifo(fdc, vroom) != 0) in fdconf()
527 if (fdc_wrfifo(fdc, fdc->sc_cfg) != 0) in fdconf()
[all …]
/netbsd-src/sys/arch/sun3/dev/
H A Dfd.c119 #include "fdc.h"
121 #error "fdc but no fd?"
191 CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
338 #define FD_SET_SWINTR() softint_schedule(fdc->sc_si);
355 #define FCR_REG_SYNC() (*fdc->sc_reg_fcr = fdc->sc_fcr)
379 * the drive). If `fdc' is not NULL, the drive was found but was not
385 fdprint(void *aux, const char *fdc) in fdprint() argument
389 if (fdc == NULL) in fdprint()
395 fdconf(struct fdc_softc *fdc) in fdconf() argument
421 struct fdc_softc *fdc = device_private(self); fdcattach() local
504 struct fdc_softc *fdc = device_private(parent); fdmatch() local
565 struct fdc_softc *fdc = device_private(parent); fdattach() local
715 struct fdc_softc *fdc; fdstrategy() local
735 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); fdstart() local
750 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); fdfinish() local
777 fdc_reset(struct fdc_softc * fdc) fdc_reset() argument
794 fd_set_motor(struct fdc_softc * fdc) fd_set_motor() argument
828 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); fd_motor_on() local
840 fdcresult(struct fdc_softc * fdc) fdcresult() argument
866 out_fdc(struct fdc_softc * fdc,u_char x) out_fdc() argument
964 fdcstart(struct fdc_softc * fdc) fdcstart() argument
979 fdcpstatus(int n,struct fdc_softc * fdc) fdcpstatus() argument
1012 struct fdc_softc *fdc = device_private(device_parent(dv)); fdcstatus() local
1036 struct fdc_softc *fdc = arg; fdctimeout() local
1055 struct fdc_softc *fdc = arg; fdcpseudointr() local
1072 struct fdc_softc *fdc = arg; fdchwintr() local
1137 struct fdc_softc *fdc = arg; fdcswintr() local
1150 fdcstate(struct fdc_softc * fdc) fdcstate() argument
1155 OUT_FDC(fdc,c,s) fdcstate() argument
1543 fdcretry(struct fdc_softc * fdc) fdcretry() argument
1775 struct fdc_softc *fdc = fdioctl() local
1789 struct fdc_softc *fdc = fdioctl() local
1801 struct fdc_softc *fdc = fdioctl() local
1929 fd_do_eject(struct fdc_softc * fdc,int unit) fd_do_eject() argument
1948 struct fdc_softc *fdc; fd_mountroot_hook() local
1978 struct fdc_softc *fdc; fd_read_md_image() local
[all...]
/netbsd-src/sys/dev/isa/
H A Dfd.c264 void fd_set_motor(struct fdc_softc *fdc, int reset);
267 int fdcresult(struct fdc_softc *fdc);
268 void fdcstart(struct fdc_softc *fdc);
271 void fdcretry(struct fdc_softc *fdc);
295 fdprint(void *aux, const char *fdc) in fdprint() argument
299 if (!fdc) in fdprint()
307 struct fdc_softc *fdc = device_private(self); in fdcresume() local
309 mutex_enter(&fdc->sc_mtx); in fdcresume()
310 (void)fdcintr1(fdc); in fdcresume()
311 mutex_exit(&fdc->sc_mtx); in fdcresume()
[all …]
H A Dfdc_isa.c186 struct fdc_softc *fdc = &isc->sc_fdc; in fdc_isa_detach() local
191 isa_intr_disestablish(fdc->sc_ic, fdc->sc_ih); in fdc_isa_detach()
193 bus_space_unmap(fdc->sc_iot, fdc->sc_fdctlioh, 1); in fdc_isa_detach()
195 bus_space_unmap(fdc->sc_iot, isc->sc_baseioh, 6 /* FDC_NPORT */); in fdc_isa_detach()
204 struct fdc_softc *fdc = &isc->sc_fdc; in fdc_isa_attach() local
210 fdc->sc_dev = self; in fdc_isa_attach()
211 fdc->sc_iot = ia->ia_iot; in fdc_isa_attach()
212 fdc->sc_ic = ia->ia_ic; in fdc_isa_attach()
213 fdc->sc_drq = ia->ia_drq[0].ir_drq; in fdc_isa_attach()
215 if (bus_space_map(fdc->sc_iot, ia->ia_io[0].ir_addr, in fdc_isa_attach()
[all …]
/netbsd-src/sys/arch/x68k/dev/
H A Dfd.c171 CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
335 fdc_dmastart(struct fdc_softc *fdc, int read, void *addr, vsize_t count) in fdc_dmastart() argument
342 error = bus_dmamap_load(fdc->sc_dmat, fdc->sc_dmamap, addr, count, in fdc_dmastart()
348 bus_dmamap_sync(fdc->sc_dmat, fdc->sc_dmamap, 0, count, in fdc_dmastart()
363 fdc->sc_xfer = dmac_prepare_xfer(fdc->sc_dmachan, fdc->sc_dmat, in fdc_dmastart()
364 fdc->sc_dmamap, in fdc_dmastart()
367 fdc->sc_addr + fddata * 2 + 1); in fdc_dmastart()
369 fdc->sc_read = read; in fdc_dmastart()
370 dmac_start_xfer(fdc->sc_dmachan->ch_softc, fdc->sc_xfer); in fdc_dmastart()
374 fdc_dmaabort(struct fdc_softc *fdc) in fdc_dmaabort() argument
[all …]
/netbsd-src/sys/arch/arc/jazz/
H A Dfd.c254 fdprint(void *aux, const char *fdc) in fdprint() argument
258 if (fdc == NULL) in fdprint()
264 fdcattach(struct fdc_softc *fdc) in fdcattach() argument
269 callout_init(&fdc->sc_timo_ch, 0); in fdcattach()
270 callout_init(&fdc->sc_intr_ch, 0); in fdcattach()
272 fdc->sc_state = DEVIDLE; in fdcattach()
273 TAILQ_INIT(&fdc->sc_drives); in fdcattach()
284 (void)config_found(fdc->sc_dev, (void *)&fa, fdprint, in fdcattach()
292 struct fdc_softc *fdc = device_private(parent); in fdprobe() local
295 bus_space_tag_t iot = fdc->sc_iot; in fdprobe()
[all …]
H A Dfdc_jazzio.c156 struct fdc_softc *fdc = &jsc->sc_fdc; in fdc_jazzio_attach() local
159 fdc->sc_dev = self; in fdc_jazzio_attach()
160 fdc->sc_iot = ja->ja_bust; in fdc_jazzio_attach()
162 fdc->sc_maxiosize = MAXPHYS; in fdc_jazzio_attach()
163 fdc->sc_dma_start = fdc_jazzio_dma_start; in fdc_jazzio_attach()
164 fdc->sc_dma_abort = fdc_jazzio_dma_abort; in fdc_jazzio_attach()
165 fdc->sc_dma_done = fdc_jazzio_dma_done; in fdc_jazzio_attach()
169 if (bus_space_map(fdc->sc_iot, ja->ja_addr, in fdc_jazzio_attach()
175 if (bus_space_subregion(fdc->sc_iot, jsc->sc_baseioh, in fdc_jazzio_attach()
176 FDC_OFFSET, FDC_NPORT, &fdc->sc_ioh)) { in fdc_jazzio_attach()
[all …]
H A Dfdcvar.h127 #define FDCDMA_START(fdc, addr, len, datain) \ argument
128 (*(fdc)->sc_dma_start)(fdc, addr, len, datain)
129 #define FDCDMA_ABORT(fdc) (*(fdc)->sc_dma_abort)(fdc) argument
130 #define FDCDMA_DONE(fdc) (*(fdc)->sc_dma_done)(fdc) argument
/netbsd-src/sys/arch/acorn32/mainbus/
H A Dfd.c180 CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
304 void fd_set_motor(struct fdc_softc *fdc, int reset);
307 int fdcresult(struct fdc_softc *fdc);
309 void fdcstart(struct fdc_softc *fdc);
314 void fdcretry(struct fdc_softc *fdc);
372 fdprint(void *aux, const char *fdc) in fdprint() argument
376 if (!fdc) in fdprint()
384 struct fdc_softc *fdc = device_private(self); in fdcattach() local
397 fdc->sc_dev = self; in fdcattach()
398 fdc->sc_iot = iot; in fdcattach()
[all …]
/netbsd-src/sys/arch/atari/dev/
H A Dhdfd.c209 CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
406 fdprint(void *aux, const char *fdc) in fdprint() argument
410 if (!fdc) in fdprint()
418 struct fdc_softc *fdc = device_private(self); in fdcattach() local
424 fdc->sc_dev = self; in fdcattach()
425 fdc->sc_state = DEVIDLE; in fdcattach()
426 TAILQ_INIT(&fdc->sc_drives); in fdcattach()
435 (void)fdcresult(fdc); in fdcattach()
444 callout_init(&fdc->sc_timo_ch, 0); in fdcattach()
445 callout_init(&fdc->sc_intr_ch, 0); in fdcattach()
[all …]
/netbsd-src/sys/dev/pcmcia/
H A Dfdc_pcmcia.c76 fdc_conf(struct fdc_softc *fdc) in fdc_conf() argument
78 bus_space_tag_t iot = fdc->sc_iot; in fdc_conf()
79 bus_space_handle_t ioh = fdc->sc_ioh; in fdc_conf()
84 (n = fdcresult(fdc, 1)) != 1) in fdc_conf()
88 if (FDC_ST0(fdc->sc_status[0]) == FDC_ST0_INVL) in fdc_conf()
94 (n = fdcresult(fdc, 1)) != 1) { in fdc_conf()
99 printf("Version %x\n", fdc->sc_status[0]); in fdc_conf()
103 (n = fdcresult(fdc, -1)) == -1) in fdc_conf()
119 (void)out_fdc(iot, ioh, fdc->sc_status[9]); /* same comp */ in fdc_conf()
124 fdcresult(fdc, 1) != 1) in fdc_conf()
[all …]
/netbsd-src/sys/arch/prep/pnpbus/
H A Dfdc_pnpbus.c88 struct fdc_softc *fdc = &pdc->sc_fdc; in fdc_pnpbus_attach() local
92 fdc->sc_dev = self; in fdc_pnpbus_attach()
93 fdc->sc_ic = pna->pna_ic; in fdc_pnpbus_attach()
95 if (pnpbus_io_map(&pna->pna_res, 0, &fdc->sc_iot, &pdc->sc_baseioh)) { in fdc_pnpbus_attach()
114 fdc->sc_ioh = pdc->sc_baseioh; in fdc_pnpbus_attach()
119 if (bus_space_subregion(fdc->sc_iot, pdc->sc_baseioh, 2, 4, in fdc_pnpbus_attach()
120 &fdc->sc_ioh)) { in fdc_pnpbus_attach()
138 if (bus_space_map(fdc->sc_iot, base + size + 1, 1, 0, in fdc_pnpbus_attach()
139 &fdc->sc_fdctlioh)) { in fdc_pnpbus_attach()
144 } else if (pnpbus_io_map(&pna->pna_res, 1, &fdc->sc_iot, in fdc_pnpbus_attach()
[all …]
/netbsd-src/sys/arch/i386/pnpbios/
H A Dfdc_pnpbios.c86 struct fdc_softc *fdc = &pdc->sc_fdc; in fdc_pnpbios_attach() local
92 fdc->sc_dev = self; in fdc_pnpbios_attach()
93 fdc->sc_ic = aa->ic; in fdc_pnpbios_attach()
95 if (pnpbios_io_map(aa->pbt, aa->resc, 0, &fdc->sc_iot, in fdc_pnpbios_attach()
115 fdc->sc_ioh = pdc->sc_baseioh; in fdc_pnpbios_attach()
120 if (bus_space_subregion(fdc->sc_iot, pdc->sc_baseioh, 2, 4, in fdc_pnpbios_attach()
121 &fdc->sc_ioh)) { in fdc_pnpbios_attach()
145 if (bus_space_map(fdc->sc_iot, base + size + 1, 1, 0, in fdc_pnpbios_attach()
146 &fdc->sc_fdctlioh)) { in fdc_pnpbios_attach()
151 } else if (pnpbios_io_map(aa->pbt, aa->resc, 1, &fdc->sc_iot, in fdc_pnpbios_attach()
[all …]
/netbsd-src/sys/arch/alpha/sableio/
H A Dfdc_sableio.c83 struct fdc_softc *fdc = &sfdc->sc_fdc; in fdc_sableio_attach() local
91 fdc->sc_dev = self; in fdc_sableio_attach()
92 fdc->sc_iot = sa->sa_iot; in fdc_sableio_attach()
93 fdc->sc_ic = sa->sa_ic; in fdc_sableio_attach()
94 fdc->sc_drq = sa->sa_drq; in fdc_sableio_attach()
96 if (bus_space_map(fdc->sc_iot, sa->sa_ioaddr, 6 /* FDC_NPORT */, 0, in fdc_sableio_attach()
102 if (bus_space_subregion(fdc->sc_iot, sfdc->sc_baseioh, 2, 4, in fdc_sableio_attach()
103 &fdc->sc_ioh)) { in fdc_sableio_attach()
108 if (bus_space_map(fdc->sc_iot, sa->sa_ioaddr + fdctl + 2, 1, 0, in fdc_sableio_attach()
109 &fdc->sc_fdctlioh)) { in fdc_sableio_attach()
[all …]
/netbsd-src/sys/arch/atari/isa/
H A Dfdcisa.c184 struct fdc_softc *fdc = &isc->sc_fdc; in fdc_isa_attach() local
189 fdc->sc_dev = self; in fdc_isa_attach()
190 fdc->sc_iot = ia->ia_iot; in fdc_isa_attach()
191 fdc->sc_ic = ia->ia_ic; in fdc_isa_attach()
192 fdc->sc_drq = ia->ia_drq[0].ir_drq; in fdc_isa_attach()
194 if (bus_space_map(fdc->sc_iot, ia->ia_io[0].ir_addr, in fdc_isa_attach()
200 if (bus_space_subregion(fdc->sc_iot, isc->sc_baseioh, 2, 4, in fdc_isa_attach()
201 &fdc->sc_ioh)) { in fdc_isa_attach()
206 if (bus_space_map(fdc->sc_iot, ia->ia_io[0].ir_addr + fdctl + 2, 1, 0, in fdc_isa_attach()
207 &fdc->sc_fdctlioh)) { in fdc_isa_attach()
[all …]
/netbsd-src/sys/arch/hppa/hppa/
H A Dsupport.S92 fdc,m %arg3(%sr1, %arg1) /* Start flushing first cache line. */
94 fdc,m %arg3(%sr1, %arg1)
95 fdc,m %arg3(%sr1, %arg1)
96 fdc,m %arg3(%sr1, %arg1)
97 fdc,m %arg3(%sr1, %arg1)
98 fdc,m %arg3(%sr1, %arg1)
99 fdc,m %arg3(%sr1, %arg1)
100 fdc,m %arg3(%sr1, %arg1)
101 fdc,m %arg3(%sr1, %arg1)
102 fdc,m %arg3(%sr1, %arg1)
[all …]
/netbsd-src/sys/arch/sparc64/sparc64/
H A Dbsd_fdintr.s88 ! load fdc, if it's NULL there's nothing to do: schedule soft interrupt
121 ! we filled/emptied the FIFO; update fdc->sc_buf & fdc->sc_tc
133 stb %l7, [R_buf] ! *fdc->sc_bufp = *reg_fifo
137 stb %l7, [R_fifo] ! *reg_fifo = *fdc->sc_bufp
139 inc R_buf ! fdc->sc_bufp++
140 bne,a nextc ! if (--fdc->sc_tc) goto ...
143 ! xfer done: update fdc->sc_buf & fdc->sc_tc, mark istate IDLE
156 add R_fdc, FDC_STATUS, R_stat ! &fdc->sc_status[0]
158 st %l7, [R_fdc + FDC_NSTAT] ! fdc->sc_nstat = -1;
186 add R_fdc, FDC_STATUS, R_stat ! &fdc->sc_status[0]
[all …]
/netbsd-src/sys/arch/sparc/sparc/
H A Dbsd_fdintr.s173 ! load fdc, if it's NULL there's nothing to do: schedule soft interrupt
197 ld [R_fdc + FDC_ITASK], %l7 ! get task from fdc
218 ! we filled/emptied the FIFO; update fdc->sc_buf & fdc->sc_tc
241 stb %l7, [R_buf] ! *fdc->sc_bufp = *reg_fifo
245 stb %l7, [R_fifo] ! *reg_fifo = *fdc->sc_bufp
247 inc R_buf ! fdc->sc_bufp++
248 bne,a nextc ! if (--fdc->sc_tc) goto ...
251 ! xfer done: update fdc->sc_buf & fdc->sc_tc, mark istate DONE
277 add R_fdc, FDC_STATUS, R_stat ! &fdc->sc_status[0]
279 st %l7, [R_fdc + FDC_NSTAT] ! fdc->sc_nstat = -1;
/netbsd-src/tests/lib/libc/sys/
H A Dt_listen.c53 int fda, fdb, fdc; in ATF_TC_BODY() local
68 fdc = open("listen", O_RDWR | O_CREAT, 0600); in ATF_TC_BODY()
70 ATF_REQUIRE(fda >= 0 && fdb >= 0 && fdc >= 0); in ATF_TC_BODY()
71 ATF_REQUIRE_ERRNO(ENOTSOCK, listen(fdc, 1) == -1); in ATF_TC_BODY()
73 (void)close(fdc); in ATF_TC_BODY()
/netbsd-src/external/bsd/openldap/dist/servers/slapd/back-meta/
H A Dmap.c286 dncookie fdc = *dc; in map_attr_value() local
288 fdc.ctx = "searchFilterAttrDN"; in map_attr_value()
290 switch ( ldap_back_dn_massage( &fdc, value, &vtmp ) ) { in map_attr_value()
684 dncookie fdc; in ldap_back_filter_map_rewrite() local
694 fdc = *dc; in ldap_back_filter_map_rewrite()
697 fdc.ctx = "searchFilter"; in ldap_back_filter_map_rewrite()
699 switch ( rewrite_session( fdc.target->mt_rwmap.rwm_rw, fdc.ctx, in ldap_back_filter_map_rewrite()
701 fdc.conn, &fstr->bv_val ) ) in ldap_back_filter_map_rewrite()
712 fdc.ctx, BER_BVISNULL( &ftmp ) ? "" : ftmp.bv_val, in ldap_back_filter_map_rewrite()
718 if ( fdc.rs ) { in ldap_back_filter_map_rewrite()
[all …]
/netbsd-src/sys/arch/evbmips/conf/
H A Dfiles.rmixl68 device fdc { drive = -1 }: isadma
69 file dev/isa/fd.c fdc needs-flag
71 attach fdc at isa with fdc_isa
75 attach fd at fdc
H A Dfiles.malta88 device fdc { drive = -1 }: isadma
89 file dev/isa/fd.c fdc needs-flag
91 attach fdc at isa with fdc_isa
95 attach fd at fdc
/netbsd-src/external/bsd/openldap/dist/servers/slapd/overlays/
H A Drwmmap.c453 dncookie fdc = *dc; in map_attr_value() local
456 fdc.ctx = "searchFilterAttrDN"; in map_attr_value()
459 rc = rwm_dn_massage_normalize( &fdc, value, &vtmp ); in map_attr_value()
826 dncookie fdc; in rwm_filter_map_rewrite() local
835 fdc = *dc; in rwm_filter_map_rewrite()
838 fdc.ctx = "searchFilter"; in rwm_filter_map_rewrite()
840 switch ( rewrite_session( fdc.rwmap->rwm_rw, fdc.ctx, in rwm_filter_map_rewrite()
842 fdc.conn, &fstr->bv_val ) ) in rwm_filter_map_rewrite()
854 fdc.ctx, ftmp.bv_val, fstr->bv_val ); in rwm_filter_map_rewrite()
864 if ( fdc.rs ) { in rwm_filter_map_rewrite()
[all …]
/netbsd-src/sys/arch/bebox/conf/
H A Dfiles.bebox101 device fdc {drive = -1}: isadma
102 file dev/isa/fd.c fdc needs-flag
104 attach fdc at isa with fdc_isa
108 attach fd at fdc

1234567