/openbsd-current/sys/dev/pci/ |
H A D | pciide_cy693_reg.h | 44 #define CY_CTRL_PREFETCH(drive) (0x00000100 << (2 * (drive))) 52 #define CY_ADDR_CTRL_SETUP_OFF(drive) (4 * (drive)) 53 #define CY_ADDR_CTRL_SETUP_MASK(drive) \ 54 (0x00000007 << CY_ADDR_CTRL_SETUP_OFF(drive)) 58 #define CY_CMD_CTRL_IOW_PULSE_OFF(drive) (12 + 16 * (drive)) 59 #define CY_CMD_CTRL_IOW_REC_OFF(drive) (8 + 16 * (drive)) [all...] |
H A D | pciide_ite_reg.h | 28 #define IT_CFG_CABLE(chan, drive) (0x0010 << ((chan) * 2 + (drive))) 35 #define IT_MODE_DMA(chan, drive) (0x0008 << ((chan) * 2 + (drive))) 40 #define IT_TIM_UDMA5(drive) (0x00800000 << (drive) * 8)
|
H A D | pciide_nforce_reg.h | 40 #define NFORCE_PIODMATIM_SET(chan, drive, x) \ 41 ((x) << ((3 - ((chan) * 2 + (drive))) * 8)) 50 #define NFORCE_UDMATIM_SET(chan, drive, x) \ 51 ((x) << ((3 - ((chan) * 2 + (drive))) * 8)) 52 #define NFORCE_UDMA_EN(chan, drive) \ 53 (0x40 << ((3 - ((chan) * 2 + (drive))) * 8)) 54 #define NFORCE_UDMA_ENM(chan, drive) \ 55 (0x80 << ((3 - ((chan) * 2 + (drive))) * 8))
|
H A D | pciide_amd_reg.h | 53 * drive which does not support UDMA modes. 63 #define AMD756_CABLE(chan, drive) (0x00010000 << ((chan) * 2 + (drive))) 68 #define AMD756_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ 69 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 70 #define AMD756_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \ 71 (((1 - (channel)) << 4) + ((1 - (drive)) << 3) + 4)) 82 #define AMD756_UDMA_TIME(channel, drive, x) (((x) & 0x7) << \ 83 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 84 #define AMD756_UDMA_EN(channel, drive) ( [all...] |
H A D | pciide_sis_reg.h | 40 #define SIS_TIM66_REC_OFF(drive) (16 * (drive)) 41 #define SIS_TIM66_ACT_OFF(drive) (8 + 16 * (drive)) 42 #define SIS_TIM66_UDMA_TIME_OFF(drive) (12 + 16 * (drive)) 44 #define SIS_TIM100_REC_OFF(drive) (16 * (drive)) 45 #define SIS_TIM100_ACT_OFF(drive) (4 + 16 * (drive)) [all...] |
H A D | pciide_apollo_reg.h | 76 #define APO_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ 77 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 78 #define APO_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \ 79 (((1 - (channel)) << 4) + ((1 - (drive)) << 3) + 4)) 87 #define APO_UDMA_TIME(channel, drive, x) (((x) & 0xf) << \ 88 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 89 #define APO_UDMA_PIO_MODE(channel, drive) (0x20 << \ 90 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 91 #define APO_UDMA_EN(channel, drive) (0x40 << \ 92 (((1 - (channel)) << 4) + ((1 - (drive)) << [all...] |
H A D | pciide_cmd_reg.h | 61 * data read/write timing registers . 0640 uses the same for drive 0 and 1 64 #define CMD_DATA_TIM(chan, drive) \ 66 ((drive) == 0) ? 0x54: 0x56 \ 68 ((drive) == 0) ? 0x58 : 0x5b) 92 #define CMD_UDMATIM_UDMA(drive) (0x01 << (drive)) 93 #define CMD_UDMATIM_UDMA33(drive) (0x04 << (drive)) 95 #define CMD_UDMATIM_TIM_OFF(drive) (4 + ((drive) * [all...] |
H A D | pciide_acard_reg.h | 37 #define ATP850_SETTIME(drive, act, rec) \ 38 (((((act) & 0xf) << 8) | ((rec) & 0xf)) << ((drive) * 16)) 39 #define ATP860_SETTIME(channel, drive, act, rec) \ 41 ((channel) * 16 + (drive) * 8)) 54 #define ATP850_UDMA_MODE(channel, drive, x) \ 55 (((x) & 0x3) << ((channel) * 4 + (drive) * 2)) 56 #define ATP860_UDMA_MODE(channel, drive, x) \ 57 (((x) & 0xf) << ((channel) * 8 + (drive) * 4))
|
H A D | pciide_piix_reg.h | 92 #define PIIX_UDMACTL_DRV_EN(channel, drive) (0x01 << ((channel) * 2 + (drive))) 95 #define PIIX_UDMATIM_SET(x, channel, drive) \ 96 (((x) << ((channel * 8) + (drive * 4))) << PIIX_UDMATIM_SHIFT) 104 #define PIIX_CONFIG_CR(channel, drive) (0x0010 << ((channel) * 2 + (drive))) 105 #define PIIX_CONFIG_UDMA66(channel, drive) (0x0001 << ((channel) * 2 + (drive))) 107 #define PIIX_CONFIG_UDMA100(channel, drive) (0x1000 << ((channel) * 2 + (drive))) [all...] |
H A D | pciide_natsemi_reg.h | 110 #define SCx200_TIM_PIO(chan, drive) (0x40 + 16 * (chan) + 8 * (drive)) 111 #define SCx200_TIM_DMA(chan, drive) (0x44 + 16 * (chan) + 8 * (drive))
|
H A D | pciide.c | 1994 int drive; local 1998 for (drive = 0; drive < 2; drive++) { 1999 drvp = &cp->wdc_channel.ch_drive[drive]; 2000 /* If no drive, skip */ 2010 if (pciide_dma_table_setup(sc, cp->wdc_channel.channel, drive) 2020 pciide_dma_table_setup(struct pciide_softc *sc, int channel, int drive) argument 2027 &sc->pciide_channels[channel].dma_maps[drive]; 2038 "drive 2091 pciide_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument 2173 pciide_dma_start(void *v, int channel, int drive) argument 2185 pciide_dma_finish(void *v, int channel, int drive, int force) argument 2405 int channel, drive; local 2602 int drive; local 2910 u_int8_t mode[2], drive; local 3022 int drive; local 3186 u_int8_t drive = drvp->drive; local 3323 int mode, drive; local 3605 int mode, drive; local 3951 int drive; local 4154 int drive; local 4372 int drive; local 4970 int drive; local 5258 int drive; local 5323 int drive; local 5493 int drive, ndrives = 0; local 5678 int drive, mode; local 5864 int drive; local 5988 acer_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument 6146 int drive; local 6486 int drive; local 6615 int drive, cable; local 6737 pdc20262_dma_start(void *v, int channel, int drive) argument 6761 pdc20262_dma_finish(void *v, int channel, int drive, int force) argument 7021 int drive, s; local 7119 pdc203xx_dma_start(void *v, int channel, int drive) argument 7140 pdc203xx_dma_finish(void *v, int channel, int drive, int force) argument 7375 int drive, unit; local 7901 int drive; local 8072 int drive, mode; local 8314 int drive, mode; local 8465 int drive, mode; local 8621 int drive, mode; local 8744 int drive, mode; local 8856 int drive, mode; local 8995 u_int8_t drive; local [all...] |
H A D | pciide_hpt_reg.h | 49 #define HPT_IDETIM(chan, drive) (0x40 + ((drive) * 4) + ((chan) * 8))
|
/openbsd-current/sys/arch/i386/pci/ |
H A D | pciide_machdep.c | 159 int drive, s; local 163 for (drive = 0; drive < 2; drive++) { 164 drvp = &chp->ch_drive[drive]; 168 reg = rdmsr(drive ? GCSC_ATAC_CH0D1_DMA : 180 wrmsr(drive ? GCSC_ATAC_CH0D1_DMA : 189 wrmsr(drive ? GCSC_ATAC_CH0D1_DMA : 194 wrmsr(drive ? GCSC_ATAC_CH0D1_DMA : 198 wrmsr(drive [all...] |
/openbsd-current/sys/arch/macppc/dev/ |
H A D | wdc_obio.c | 330 int drive; local 335 for (drive = 0; drive < 2; drive++) { 336 drvp = &chp->ch_drive[drive]; 346 return; /* No drive */ 347 for (drive = 0; drive < 2; drive++) { 348 drvp = &chp->ch_drive[drive]; 395 int drive; local 476 int drive; local 536 wdc_obio_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument 568 wdc_obio_dma_start(void *v, int channel, int drive) argument 576 wdc_obio_dma_finish(void *v, int channel, int drive, int force) argument [all...] |
/openbsd-current/sys/dev/ic/ |
H A D | wdc.c | 414 printf("drive at %s", pnp); 415 printf(" channel %d drive %d", aa_link->aa_channel, 416 aa_link->aa_drv_data->drive); 433 wdc_set_drive(struct channel_softc *chp, int drive) argument 435 CHP_WRITE_REG(chp, wdr_sdh, (drive << 4) | WDSD_IBM); 436 WDC_LOG_SET_DRIVE(chp, drive); 440 wdc_floating_bus(struct channel_softc *chp, int drive) argument 445 wdc_set_drive(chp, drive); 472 wdc_preata_drive(struct channel_softc *chp, int drive) argument 474 if (wdc_floating_bus(chp, drive)) { 503 wdc_ata_present(struct channel_softc *chp, int drive) argument 593 u_int8_t drive; local 979 int drive; local 1527 int drive; local 1667 int drive = xfer->drive; local 1827 wdccommand(struct channel_softc *chp, u_int8_t drive, u_int8_t command, u_int16_t cylin, u_int8_t head, u_int8_t sector, u_int8_t count, u_int8_t features) argument 1857 wdccommandext(struct channel_softc *chp, u_int8_t drive, u_int8_t command, u_int64_t blkno, u_int16_t count) argument 1888 wdccommandshort(struct channel_softc *chp, int drive, int command) argument [all...] |
H A D | wdcevent.h | 64 static __inline void WDC_LOG_ATAPI_CMD(struct channel_softc *chp, int drive, argument 75 static __inline void WDC_LOG_ATAPI_DONE(struct channel_softc *chp, int drive, argument 95 u_int8_t drive) { 96 wdc_log(chp, drive ? WDCEVENT_SET_DRIVE1 : WDCEVENT_SET_DRIVE0, 123 #define WDC_LOG_ATAPI_CMD(chp, drive, flags, len, cmd) 124 #define WDC_LOG_ATAPI_DONE(chp, drive, flags, error) 128 #define WDC_LOG_SET_DRIVE(chp, drive) 94 WDC_LOG_SET_DRIVE(struct channel_softc *chp, u_int8_t drive) argument
|
/openbsd-current/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/ |
H A D | Cygwin.pm | 123 my $drive = shift; 124 if (! $drive) { 128 $drive = '/cygdrive/c'; 130 $drive = '/c'; 132 $drive = "$prefix/c"; 135 my $mntopts = Cygwin::mount_flags($drive); 147 Win32API::File::GetVolumeInformation($drive, $osVolName, 256, [], [], $ouFsFlags, $osFsType, 256 );
|
/openbsd-current/sys/dev/ata/ |
H A D | ata_wdc.c | 96 #define ATA_DELAY 45000 /* 45s for a drive I/O */ 159 wd->drvp = &chp->ch_drive[real_wd->drvp->drive]; 173 xfer->drive = wd->drvp->drive; 206 xfer->drive = drvp->drive; 222 chp->wdc->sc_dev.dv_xname, chp->channel, xfer->drive), 235 struct ata_drive_datas *drvp = &chp->ch_drive[xfer->drive]; 242 chp->wdc->sc_dev.dv_xname, chp->channel, xfer->drive), 255 xfer->drive, drv [all...] |
/openbsd-current/sys/dev/atapiscsi/ |
H A D | atapiscsi.c | 52 /* drive states stored in ata_drive_datas */ 143 int drive; member in struct:atapiscsi_softc 209 as->drive = drvp->drive; 281 struct ata_drive_datas *drvp = &chp->ch_drive[as->drive]; 313 struct ata_drive_datas *drvp = &chp->ch_drive[as->drive]; 319 chp->wdc->sc_dev.dv_xname, chp->channel, as->drive), DEBUG_XFERS); 331 xfer->drive = as->drive; 342 chp->wdc->sc_dev.dv_xname, chp->channel, as->drive), 474 wdc_atapi_drive_selected(struct channel_softc *chp, int drive) argument [all...] |
/openbsd-current/gnu/llvm/lldb/scripts/lldb-test-qemu/ |
H A D | run-qemu.sh | 35 -drive file=$ROOTFS_IMG,if=none,format=raw,id=hd0 \ 36 -device virtio-blk-device,drive=hd0 \
|
/openbsd-current/gnu/usr.bin/perl/ext/File-DosGlob/t/ |
H A D | DosGlob.t | 124 # Test the globbing of a drive relative pattern such as "c:*.pl". 125 # NB. previous versions of DosGlob inserted "./ after the drive letter to 130 my $drive = $1; 133 eval { @r = File::DosGlob::glob("${drive}io/*.t") }; 134 ok(@r and !grep !m|^${drive}io/[^/]*\.t$|, @r);
|
/openbsd-current/gnu/usr.bin/perl/cpan/Win32API-File/t/ |
H A D | file.t | 284 $drive= substr( $ENV{WINDIR}, 0, 3 );
286 $ok= 1 == grep /^\Q$drive\E/i, @drives;
287 $ok or print "# No $drive found in list of drives.\n";
290 $ok= DRIVE_FIXED == GetDriveType( $drive );
292 "# ",DRIVE_FIXED," != ",GetDriveType($drive),": ",fileLastError(),"\n";
295 $ok= GetVolumeInformation( $drive, $vol, 64, $ser, $max, $flag, $fs, 16 );
300 chop($drive);
301 $ok= QueryDosDevice( $drive, $dev, 80 );
302 $ok or print "# $drive: ",fileLastError(),"\n";
305 print "# $drive [all...] |
/openbsd-current/sys/dev/fdt/ |
H A D | sxipio.c | 280 int drive; local 282 drive = OF_getpropint(node, "allwinner,drive", -1); 283 if (drive >= 0) 284 return drive; 285 drive = OF_getpropint(node, "drive-strength", 0) - 10; 286 if (drive >= 0) 287 return (drive / 10); 317 int mux, drive, pul local [all...] |
/openbsd-current/bin/chio/ |
H A D | parse.y | 167 { "drive", DRIVE} 431 parse_tapedev(const char *filename, const char *changer, int drive) 453 if (drive >= 0 && drive < p->drivecnt) { 455 p->drives[drive]) == -1) 465 if (asprintf(&tapedev, "/dev/rst%d", drive) == -1)
|
/openbsd-current/sys/dev/isa/ |
H A D | fd.c | 87 { 9,2,18,2,0xff,0xdf,0x23,0x50,40, 720,2,FDC_300KBPS, "360KB/AT" }, /* 360kB in 1.2MB drive */ 90 { 9,2,18,2,0xff,0xdf,0x23,0x50,80,1440,1,FDC_300KBPS, "720KB/x" }, /* 720kB in 1.2MB drive */ 91 { 9,2,18,2,0xff,0xdf,0x2a,0x50,40, 720,2,FDC_250KBPS, "360KB/x" }, /* 360kB in 720kB drive */ 189 int drive = fa->fa_drive; local 194 if (cf->cf_loc[0] != -1 && cf->cf_loc[0] != drive) 201 if (cf->cf_loc[0] == -1 && drive >= 2) 209 /* select drive and turn on motor */ 210 bus_space_write_1(iot, ioh, fdout, drive | FDO_FRST | FDO_MOEN(drive)); 214 out_fdc(iot, ioh, drive); 250 int drive = fa->fa_drive; local 339 fd_nvtotype(char *fdc, int nvraminfo, int drive) argument [all...] |