/src/sys/arch/i386/pnpbios/ |
fdc_pnpbios.c | 62 struct fdc_softc sc_fdc; /* base fdc device */ 86 struct fdc_softc *fdc = &pdc->sc_fdc; local in function:fdc_pnpbios_attach 92 fdc->sc_dev = self; 93 fdc->sc_ic = aa->ic; 95 if (pnpbios_io_map(aa->pbt, aa->resc, 0, &fdc->sc_iot, 113 /* Easy case. This matches right up with what the fdc code expects. */ 115 fdc->sc_ioh = pdc->sc_baseioh; 118 /* Map a subregion so this all lines up with the fdc code. */ 120 if (bus_space_subregion(fdc->sc_iot, pdc->sc_baseioh, 2, 4, 121 &fdc->sc_ioh)) [all...] |
/src/sys/arch/alpha/sableio/ |
fdc_sableio.c | 59 struct fdc_softc sc_fdc; /* real "fdc" softc */ 83 struct fdc_softc *fdc = &sfdc->sc_fdc; local in function:fdc_sableio_attach 91 fdc->sc_dev = self; 92 fdc->sc_iot = sa->sa_iot; 93 fdc->sc_ic = sa->sa_ic; 94 fdc->sc_drq = sa->sa_drq; 96 if (bus_space_map(fdc->sc_iot, sa->sa_ioaddr, 6 /* FDC_NPORT */, 0, 102 if (bus_space_subregion(fdc->sc_iot, sfdc->sc_baseioh, 2, 4, 103 &fdc->sc_ioh)) { 108 if (bus_space_map(fdc->sc_iot, sa->sa_ioaddr + fdctl + 2, 1, 0 [all...] |
/src/sys/arch/prep/pnpbus/ |
fdc_pnpbus.c | 61 struct fdc_softc sc_fdc; /* base fdc device */ 88 struct fdc_softc *fdc = &pdc->sc_fdc; local in function:fdc_pnpbus_attach 92 fdc->sc_dev = self; 93 fdc->sc_ic = pna->pna_ic; 95 if (pnpbus_io_map(&pna->pna_res, 0, &fdc->sc_iot, &pdc->sc_baseioh)) { 112 /* Easy case. This matches right up with what the fdc code expects. */ 114 fdc->sc_ioh = pdc->sc_baseioh; 117 /* Map a subregion so this all lines up with the fdc code. */ 119 if (bus_space_subregion(fdc->sc_iot, pdc->sc_baseioh, 2, 4, 120 &fdc->sc_ioh)) [all...] |
/src/sys/dev/isa/ |
fdc_isa.c | 90 struct fdc_softc sc_fdc; /* base fdc device */ 186 struct fdc_softc *fdc = &isc->sc_fdc; local in function:fdc_isa_detach 191 isa_intr_disestablish(fdc->sc_ic, fdc->sc_ih); 193 bus_space_unmap(fdc->sc_iot, fdc->sc_fdctlioh, 1); 195 bus_space_unmap(fdc->sc_iot, isc->sc_baseioh, 6 /* FDC_NPORT */); 204 struct fdc_softc *fdc = &isc->sc_fdc; local in function:fdc_isa_attach 210 fdc->sc_dev = self; 211 fdc->sc_iot = ia->ia_iot [all...] |
fd.c | 264 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); 289 * the drive). If `fdc' is not NULL, the drive was found but was not 295 fdprint(void *aux, const char *fdc) 299 if (!fdc) 307 struct fdc_softc *fdc = device_private(self); local in function:fdcresume 309 mutex_enter(&fdc->sc_mtx); 310 (void)fdcintr1(fdc); 318 struct fdc_softc *fdc = device_private(self); local in function:fdcsuspend 338 struct fdc_softc *fdc = device_private(self); local in function:fdc_childdet 350 struct fdc_softc *fdc = device_private(self); local in function:fdcdetach 405 struct fdc_softc *fdc = device_private(self); local in function:fdcfinishattach 483 struct fdc_softc *fdc = device_private(parent); local in function:fdprobe 559 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 703 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstrategy 771 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstart 787 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdfinish 852 struct fdc_softc *fdc; local in function:fd_motor_off 866 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_on 1014 struct fdc_softc *fdc = device_private(device_parent(dv)); local in function:fdcstatus 1030 struct fdc_softc *fdc = arg; local in function:fdctimeout 1352 struct fdc_softc *fdc = arg; local in function:fdcintr [all...] |
/src/tests/lib/libc/sys/ |
t_listen.c | 53 int fda, fdb, fdc; local in function:ATF_TC_BODY 68 fdc = open("listen", O_RDWR | O_CREAT, 0600); 70 ATF_REQUIRE(fda >= 0 && fdb >= 0 && fdc >= 0); 71 ATF_REQUIRE_ERRNO(ENOTSOCK, listen(fdc, 1) == -1); 73 (void)close(fdc);
|
/src/sys/arch/atari/isa/ |
fdcisa.c | 89 struct fdc_softc sc_fdc; /* base fdc device */ 184 struct fdc_softc *fdc = &isc->sc_fdc; local in function:fdc_isa_attach 189 fdc->sc_dev = self; 190 fdc->sc_iot = ia->ia_iot; 191 fdc->sc_ic = ia->ia_ic; 192 fdc->sc_drq = ia->ia_drq[0].ir_drq; 194 if (bus_space_map(fdc->sc_iot, ia->ia_io[0].ir_addr, 200 if (bus_space_subregion(fdc->sc_iot, isc->sc_baseioh, 2, 4, 201 &fdc->sc_ioh)) { 206 if (bus_space_map(fdc->sc_iot, ia->ia_io[0].ir_addr + fdctl + 2, 1, 0 [all...] |
/src/sys/dev/pcmcia/ |
fdc_pcmcia.c | 55 struct fdc_softc sc_fdc; /* real "fdc" softc */ 76 fdc_conf(struct fdc_softc *fdc) 78 bus_space_tag_t iot = fdc->sc_iot; 79 bus_space_handle_t ioh = fdc->sc_ioh; 84 (n = fdcresult(fdc, 1)) != 1) 88 if (FDC_ST0(fdc->sc_status[0]) == FDC_ST0_INVL) 94 (n = fdcresult(fdc, 1)) != 1) { 99 printf("Version %x\n", fdc->sc_status[0]); 103 (n = fdcresult(fdc, -1)) == -1) 119 (void)out_fdc(iot, ioh, fdc->sc_status[9]); /* same comp * 143 struct fdc_softc *fdc = &psc->sc_fdc; local in function:fdc_pcmcia_attach [all...] |
/src/lib/libc/gen/ |
getpass.c | 93 int fdc[3]; local in function:__weak_alias 109 fd = fdc;
|
/src/sys/arch/arc/jazz/ |
fdc_jazzio.c | 96 struct fdc_softc sc_fdc; /* base fdc device */ 156 struct fdc_softc *fdc = &jsc->sc_fdc; local in function:fdc_jazzio_attach 159 fdc->sc_dev = self; 160 fdc->sc_iot = ja->ja_bust; 162 fdc->sc_maxiosize = MAXPHYS; 163 fdc->sc_dma_start = fdc_jazzio_dma_start; 164 fdc->sc_dma_abort = fdc_jazzio_dma_abort; 165 fdc->sc_dma_done = fdc_jazzio_dma_done; 169 if (bus_space_map(fdc->sc_iot, ja->ja_addr, 175 if (bus_space_subregion(fdc->sc_iot, jsc->sc_baseioh [all...] |
fd.c | 248 * the drive). If `fdc' is not NULL, the drive was found but was not 254 fdprint(void *aux, const char *fdc) 258 if (fdc == NULL) 264 fdcattach(struct fdc_softc *fdc) 269 callout_init(&fdc->sc_timo_ch, 0); 270 callout_init(&fdc->sc_intr_ch, 0); 272 fdc->sc_state = DEVIDLE; 273 TAILQ_INIT(&fdc->sc_drives); 284 (void)config_found(fdc->sc_dev, (void *)&fa, fdprint, 292 struct fdc_softc *fdc = device_private(parent) local in function:fdprobe 336 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 486 struct fdc_softc *fdc = local in function:fdstrategy 506 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstart 521 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdfinish 583 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_off 596 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_on 733 struct fdc_softc *fdc = device_private(device_parent(dev)); local in function:fdcstatus 748 struct fdc_softc *fdc = arg; local in function:fdctimeout 781 struct fdc_softc *fdc = arg; local in function:fdcintr [all...] |
/src/libexec/ld.elf_so/arch/hppa/ |
hppa_reloc.c | 104 fdc(void *addr) function in typeref:typename:void 106 __asm volatile("fdc %%r0(%%sr0, %0)" : : "r" (addr)); 407 fdc(&got[-2]); 408 fdc(&got[-1]); 409 fdc(&got[1]); 422 fdc(&got[-7]); 423 fdc(&got[-6]);
|
/src/sys/dev/ieee1394/ |
firewire.c | 527 struct firewire_dev_comm *fdc; local in function:fw_busreset 544 fdc = device_private(devlist->dev); 545 if (fdc->post_busreset != NULL) 546 fdc->post_busreset(fdc); 2024 struct firewire_dev_comm *fdc; local in function:fw_attach_dev 2091 fdc = device_private(devlist->dev); 2092 if (fdc->post_explore != NULL) 2093 fdc->post_explore(fdc); [all...] |
/src/sys/arch/atari/dev/ |
hdfd.c | 209 CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc), 348 if (strcmp("fdc", aux) || fdc_matched) 400 * the drive). If `fdc' is not NULL, the drive was found but was not 406 fdprint(void *aux, const char *fdc) 410 if (!fdc) 418 struct fdc_softc *fdc = device_private(self); local in function:fdcattach 424 fdc->sc_dev = self; 425 fdc->sc_state = DEVIDLE; 426 TAILQ_INIT(&fdc->sc_drives); 435 (void)fdcresult(fdc); 474 struct fdc_softc *fdc = device_private(parent); local in function:fdprobe 527 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 658 struct fdc_softc *fdc; local in function:fdstrategy 679 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstart 694 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdfinish 757 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_off 770 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_on 886 struct fdc_softc *fdc = device_private(device_parent(self)); local in function:fdcstatus 919 struct fdc_softc *fdc = arg; local in function:fdctimeout 949 struct fdc_softc *fdc = arg; local in function:fdcintr [all...] |
/src/sys/arch/acorn32/mainbus/ |
fd.c | 180 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); 327 if (pa->pa_name && strcmp(pa->pa_name, "fdc") != 0) 366 * the drive). If `fdc' is not NULL, the drive was found but was not 372 fdprint(void *aux, const char *fdc) 376 if (!fdc) 384 struct fdc_softc *fdc = device_private(self) local in function:fdcattach 441 struct fdc_softc *fdc = device_private(parent); local in function:fdprobe 496 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 619 struct fdc_softc *fdc = local in function:fdstrategy 639 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstart 654 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdfinish 729 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_on 866 struct fdc_softc *fdc = device_private(device_parent(dv)); local in function:fdcstatus 881 struct fdc_softc *fdc = arg; local in function:fdctimeout 914 struct fdc_softc *fdc = arg; local in function:fdcintr [all...] |
/src/sys/arch/sparc64/dev/ |
fdc.c | 1 /* $NetBSD: fdc.c,v 1.52 2023/09/02 05:51:57 jdc Exp $ */ 104 __KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.52 2023/09/02 05:51:57 jdc Exp $"); 484 establish_chip_type(struct fdc_softc *fdc, 531 fdc->sc_flags |= FDC_82077; 544 * the drive). If `fdc' is not NULL, the drive was found but was not 550 fdprint(void *aux, const char *fdc) 554 if (!fdc) 560 * Configure several parameters and features on the FDC. 564 fdconf(struct fdc_softc *fdc) 568 if (fdc_wrfifo(fdc, NE7CMD_DUMPREG) || fdcresult(fdc) != 10 614 struct fdc_softc *fdc = device_private(self); local in function:fdcattach_mainbus 643 struct fdc_softc *fdc = device_private(self); local in function:fdcattach_obio 682 struct fdc_softc *fdc = device_private(self); local in function:fdcattach_sbus 726 struct fdc_softc *fdc = device_private(self); local in function:fdcattach_ebus 875 struct fdc_softc *fdc = device_private(parent); local in function:fdmatch 953 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 1090 struct fdc_softc *fdc = device_private( local in function:fdstrategy 1109 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstart 1124 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdfinish 1223 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_on 1467 struct fdc_softc *fdc = arg; local in function:fdctimeout 1494 struct fdc_softc *fdc = arg; local in function:fdcpseudointr 1514 struct fdc_softc *fdc = arg; local in function:fdc_c_hwintr 1590 struct fdc_softc *fdc = arg; local in function:fdcswintr 2136 struct fdc_softc *fdc; local in function:fdioctl 2490 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_do_eject [all...] |
/src/sys/arch/sparc/dev/ |
fd.c | 430 establish_chip_type(struct fdc_softc *fdc, 475 fdc->sc_flags |= FDC_82077; 488 * the drive). If `fdc' is not NULL, the drive was found but was not 494 fdprint(void *aux, const char *fdc) 498 if (!fdc) 504 * Configure several parameters and features on the FDC. 508 fdconf(struct fdc_softc *fdc) 512 if (fdc_wrfifo(fdc, NE7CMD_DUMPREG) || fdcresult(fdc) != 10) 519 if ((vroom = fdc->sc_status[7]) == 0 557 struct fdc_softc *fdc = device_private(self); local in function:fdcattach_mainbus 586 struct fdc_softc *fdc = device_private(self); local in function:fdcattach_obio 707 struct fdc_softc *fdc = device_private(parent); local in function:fdmatch 781 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 913 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fdstrategy 931 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fdstart 946 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fdfinish 1043 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fd_motor_on 1283 struct fdc_softc *fdc = arg; local in function:fdctimeout 1311 struct fdc_softc *fdc = arg; local in function:fdcpseudointr 1331 struct fdc_softc *fdc = arg; local in function:fdc_c_hwintr 1407 struct fdc_softc *fdc = arg; local in function:fdcswintr 1952 struct fdc_softc *fdc; local in function:fdioctl 2306 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fd_do_eject [all...] |
/src/sys/arch/x68k/dev/ |
fd.c | 171 CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc), 335 fdc_dmastart(struct fdc_softc *fdc, int read, void *addr, vsize_t count) 342 error = bus_dmamap_load(fdc->sc_dmat, fdc->sc_dmamap, addr, count, 348 bus_dmamap_sync(fdc->sc_dmat, fdc->sc_dmamap, 0, count, 355 * specify FDC data register address for clarification. 357 * FDC is connected to LSB 8 bits of X68000 16 bit bus 359 * so each FDC register is mapped at sparse odd address. 361 * XXX: No proper API to get DMA address of FDC register for DMAC 384 struct fdc_softc *fdc = arg; local in function:fdcdmaintr 461 struct fdc_softc *fdc = device_private(self); local in function:fdcattach 551 struct fdc_softc *fdc = device_private(parent); local in function:fdprobe 628 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 749 struct fdc_softc *fdc; local in function:fdstrategy 769 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdstart 784 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdfinish 845 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_motor_off 929 struct fdc_softc *fdc; local in function:fdopen 973 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdclose 1049 struct fdc_softc *fdc = device_private(device_parent(dv)); local in function:fdcstatus 1064 struct fdc_softc *fdc = arg; local in function:fdctimeout 1097 struct fdc_softc *fdc = arg; local in function:fdcintr 1614 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fdioctl 1911 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev)); local in function:fd_mountroot_hook [all...] |
/src/sys/arch/sun3/dev/ |
fd.c | 119 #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) 389 if (fdc == NULL) 395 fdconf(struct fdc_softc *fdc) 421 struct fdc_softc *fdc = device_private(self); local in function:fdcattach 504 struct fdc_softc *fdc = device_private(parent); local in function:fdmatch 565 struct fdc_softc *fdc = device_private(parent); local in function:fdattach 715 struct fdc_softc *fdc; local in function:fdstrategy 735 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fdstart 750 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fdfinish 828 struct fdc_softc *fdc = device_private(device_parent(fd->sc_dv)); local in function:fd_motor_on 1012 struct fdc_softc *fdc = device_private(device_parent(dv)); local in function:fdcstatus 1036 struct fdc_softc *fdc = arg; local in function:fdctimeout 1055 struct fdc_softc *fdc = arg; local in function:fdcpseudointr 1072 struct fdc_softc *fdc = arg; local in function:fdchwintr 1137 struct fdc_softc *fdc = arg; local in function:fdcswintr 1775 struct fdc_softc *fdc = local in function:fdioctl 1789 struct fdc_softc *fdc = local in function:fdioctl 1801 struct fdc_softc *fdc = local in function:fdioctl 1948 struct fdc_softc *fdc; local in function:fd_mountroot_hook 1978 struct fdc_softc *fdc; local in function:fd_read_md_image [all...] |
/src/sys/arch/x68k/x68k/ |
iodevice.h | 224 struct fdc { struct 318 struct fdc io_fdc;
|