Home
last modified time | relevance | path

Searched refs:fd_types (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/sys/arch/acorn32/mainbus/
H A Dfd.c206 struct fd_type fd_types[] = { variable
549 return &fd_types[0]; in fd_nvtotype()
562 if (type > (sizeof(fd_types) / sizeof(fd_types[0]))) in fd_dev_to_type()
564 return type ? &fd_types[type - 1] : fd->sc_deftype; in fd_dev_to_type()
1520 floppysize = fd_types[type].size << (fd_types[type].secsize + 7); in load_memory_disc_from_floppy()
1533 bp = geteblk(fd_types[type].sectrac * DEV_BSIZE); in load_memory_disc_from_floppy()
1548 loop < (floppysize / DEV_BSIZE / fd_types[type].sectrac); in load_memory_disc_from_floppy()
1551 loop * fd_types[type].sectrac * DEV_BSIZE / 1024); in load_memory_disc_from_floppy()
1552 bp->b_blkno = loop * fd_types[type].sectrac; in load_memory_disc_from_floppy()
1553 bp->b_bcount = fd_types[type].sectrac * DEV_BSIZE; in load_memory_disc_from_floppy()
[all …]
/netbsd-src/sys/arch/arc/jazz/
H A Dfd.c127 const static struct fd_type fd_types[] = { variable
283 fa.fa_deftype = &fd_types[type]; in fdcattach()
402 return &fd_types[1];
407 return &fd_types[0];
409 return &fd_types[3];
411 return &fd_types[4];
418 return &fd_types[0]; /* Use only 1.44 for now */
428 if (type > __arraycount(fd_types)) in fd_dev_to_type()
430 return type ? &fd_types[type - 1] : fd->sc_deftype; in fd_dev_to_type()
/netbsd-src/sys/dev/isa/
H A Dfd.c183 const struct fd_type fd_types[] = { variable
189 const struct fd_type fd_types[] = { variable
462 fa.fa_deftype = &fd_types[2]; in fdcfinishattach()
471 fa.fa_deftype = &fd_types[0]; in fdcfinishattach()
661 return &fd_types[1]; in fd_nvtotype()
671 return &fd_types[0]; in fd_nvtotype()
673 return &fd_types[3]; in fd_nvtotype()
680 return &fd_types[4]; in fd_nvtotype()
694 if (type > __arraycount(fd_types)) in fd_dev_to_type()
696 return type ? &fd_types[type - 1] : fd->sc_deftype; in fd_dev_to_type()
/netbsd-src/sys/arch/atari/dev/
H A Dhdfd.c238 struct fd_type fd_types[] = { variable
466 fa.fa_deftype = &fd_types[2]; /* 1.44MB */ in fdcattach()
600 if (type > (sizeof(fd_types) / sizeof(fd_types[0]))) in fd_dev_to_type()
602 return type ? &fd_types[type - 1] : fd->sc_deftype; in fd_dev_to_type()
H A Dfd.c167 struct fd_types { struct
399 struct fd_types *type; in fdattach()
168 nheadsfd_types global() argument
169 nsectorsfd_types global() argument
170 nblocksfd_types global() argument
171 densityfd_types global() argument
172 descrfd_types global() argument
/netbsd-src/sys/dev/pcmcia/
H A Dfdc_pcmcia.c183 fa.fa_deftype = &fd_types[0]; in fdc_pcmcia_attach()
/netbsd-src/sys/arch/sun3/dev/
H A Dfd.c219 static struct fd_type fd_types[] = { variable
496 fa.fa_deftype = &fd_types[0]; /* XXX */ in fdcattach()
652 if (type > (sizeof(fd_types) / sizeof(fd_types[0]))) in fd_dev_to_type()
654 return type ? &fd_types[type - 1] : fd->sc_deftype; in fd_dev_to_type()
/netbsd-src/sys/arch/x68k/dev/
H A Dfd.c197 static struct fd_type fd_types[] = { variable
565 type = &fd_types[0]; /* XXX 1.2MB */ in fdprobe()
631 struct fd_type *type = &fd_types[0]; /* XXX 1.2MB */ in fdattach()
680 if (type >= __arraycount(fd_types)) in fd_dev_to_type()
682 return &fd_types[type]; in fd_dev_to_type()
/netbsd-src/sys/arch/sparc/dev/
H A Dfd.c253 struct fd_type fd_types[] = { variable
690 fa.fa_deftype = &fd_types[0]; /* XXX */ in fdcattach()
848 if (type > (sizeof(fd_types) / sizeof(fd_types[0]))) in fd_dev_to_type()
850 return (type ? &fd_types[type - 1] : fd->sc_deftype); in fd_dev_to_type()
/netbsd-src/sys/arch/sparc64/dev/
H A Dfdc.c285 struct fd_type fd_types[] = { variable
858 fa.fa_deftype = &fd_types[0]; /* XXX */
1021 if (type > (sizeof(fd_types) / sizeof(fd_types[0])))
1023 return type ? &fd_types[type - 1] : fd->sc_deftype;