/openbsd/sys/dev/pci/ |
H A D | pciide_cy693_reg.h | 44 #define CY_CTRL_PREFETCH(drive) (0x00000100 << (2 * (drive))) argument 52 #define CY_ADDR_CTRL_SETUP_OFF(drive) (4 * (drive)) argument 53 #define CY_ADDR_CTRL_SETUP_MASK(drive) \ argument 54 (0x00000007 << CY_ADDR_CTRL_SETUP_OFF(drive)) 58 #define CY_CMD_CTRL_IOW_PULSE_OFF(drive) (12 + 16 * (drive)) argument 59 #define CY_CMD_CTRL_IOW_REC_OFF(drive) (8 + 16 * (drive)) argument 60 #define CY_CMD_CTRL_IOR_PULSE_OFF(drive) (4 + 16 * (drive)) argument 61 #define CY_CMD_CTRL_IOR_REC_OFF(drive) (0 + 16 * (drive)) argument
|
H A D | pciide_sis_reg.h | 40 #define SIS_TIM66_REC_OFF(drive) (16 * (drive)) argument 41 #define SIS_TIM66_ACT_OFF(drive) (8 + 16 * (drive)) argument 42 #define SIS_TIM66_UDMA_TIME_OFF(drive) (12 + 16 * (drive)) argument 44 #define SIS_TIM100_REC_OFF(drive) (16 * (drive)) argument 45 #define SIS_TIM100_ACT_OFF(drive) (4 + 16 * (drive)) argument 46 #define SIS_TIM100_UDMA_TIME_OFF(drive) (8 + 16 * (drive)) argument 53 #define SIS_TIM133(reg57, channel, drive) \ argument 54 ((((reg57) & 0x40) ? 0x70 : 0x40) + ((channel) << 3) + ((drive) << 2))
|
H A D | pciide_amd_reg.h | 63 #define AMD756_CABLE(chan, drive) (0x00010000 << ((chan) * 2 + (drive))) argument 68 #define AMD756_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ argument 69 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 70 #define AMD756_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \ argument 71 (((1 - (channel)) << 4) + ((1 - (drive)) << 3) + 4)) 82 #define AMD756_UDMA_TIME(channel, drive, x) (((x) & 0x7) << \ argument 83 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 84 #define AMD756_UDMA_EN(channel, drive) (0x40 << \ argument 85 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 86 #define AMD756_UDMA_EN_MTH(channel, drive) (0x80 << \ argument [all …]
|
H A D | pciide_apollo_reg.h | 76 #define APO_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ argument 77 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 79 (((1 - (channel)) << 4) + ((1 - (drive)) << 3) + 4)) 87 #define APO_UDMA_TIME(channel, drive, x) (((x) & 0xf) << \ argument 88 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 89 #define APO_UDMA_PIO_MODE(channel, drive) (0x20 << \ argument 90 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 91 #define APO_UDMA_EN(channel, drive) (0x40 << \ argument 92 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 93 #define APO_UDMA_EN_MTH(channel, drive) (0x80 << \ argument [all …]
|
H A D | pciide_cmd_reg.h | 64 #define CMD_DATA_TIM(chan, drive) \ argument 66 ((drive) == 0) ? 0x54: 0x56 \ 68 ((drive) == 0) ? 0x58 : 0x5b) 92 #define CMD_UDMATIM_UDMA(drive) (0x01 << (drive)) argument 93 #define CMD_UDMATIM_UDMA33(drive) (0x04 << (drive)) argument 95 #define CMD_UDMATIM_TIM_OFF(drive) (4 + ((drive) * 2)) argument
|
H A D | pciide_nforce_reg.h | 40 #define NFORCE_PIODMATIM_SET(chan, drive, x) \ argument 41 ((x) << ((3 - ((chan) * 2 + (drive))) * 8)) 50 #define NFORCE_UDMATIM_SET(chan, drive, x) \ argument 51 ((x) << ((3 - ((chan) * 2 + (drive))) * 8)) 52 #define NFORCE_UDMA_EN(chan, drive) \ argument 53 (0x40 << ((3 - ((chan) * 2 + (drive))) * 8)) 54 #define NFORCE_UDMA_ENM(chan, drive) \ argument 55 (0x80 << ((3 - ((chan) * 2 + (drive))) * 8))
|
H A D | pciide_piix_reg.h | 92 #define PIIX_UDMACTL_DRV_EN(channel, drive) (0x01 << ((channel) * 2 + (drive))) argument 95 #define PIIX_UDMATIM_SET(x, channel, drive) \ argument 96 (((x) << ((channel * 8) + (drive * 4))) << PIIX_UDMATIM_SHIFT) 104 #define PIIX_CONFIG_CR(channel, drive) (0x0010 << ((channel) * 2 + (drive))) argument 105 #define PIIX_CONFIG_UDMA66(channel, drive) (0x0001 << ((channel) * 2 + (drive))) argument 107 #define PIIX_CONFIG_UDMA100(channel, drive) (0x1000 << ((channel) * 2 + (drive))) argument
|
H A D | pciide_acard_reg.h | 37 #define ATP850_SETTIME(drive, act, rec) \ argument 38 (((((act) & 0xf) << 8) | ((rec) & 0xf)) << ((drive) * 16)) 39 #define ATP860_SETTIME(channel, drive, act, rec) \ argument 41 ((channel) * 16 + (drive) * 8)) 54 #define ATP850_UDMA_MODE(channel, drive, x) \ argument 55 (((x) & 0x3) << ((channel) * 4 + (drive) * 2)) 56 #define ATP860_UDMA_MODE(channel, drive, x) \ argument 57 (((x) & 0xf) << ((channel) * 8 + (drive) * 4))
|
H A D | pciide_ite_reg.h | 28 #define IT_CFG_CABLE(chan, drive) (0x0010 << ((chan) * 2 + (drive))) argument 35 #define IT_MODE_DMA(chan, drive) (0x0008 << ((chan) * 2 + (drive))) argument 40 #define IT_TIM_UDMA5(drive) (0x00800000 << (drive) * 8) argument
|
H A D | pciide.c | 1998 for (drive = 0; drive < 2; drive++) { in pciide_channel_dma_setup() 2508 for (drive = 0; drive < 2; drive++) { in default_chip_map() 2612 for (drive = 0; drive < 2; drive++) { in sata_setup_channel() 2979 for (drive = 0; drive < 2; drive++) { in piix_setup_channel() 2997 for (drive = 0; drive < 2; drive++) { in piix_setup_channel() 3043 for (drive = 0; drive < 2; drive++) { in piix3_4_setup_channel() 3344 for (drive = 0; drive < 2; drive++) { in amd756_setup_channel() 3637 for (drive = 0; drive < 2; drive++) { in apollo_setup_channel() 3959 for (drive = 0; drive < 2; drive++) { in cmd0643_9_setup_channel() 4172 for (drive = 0; drive < 2; drive++) { in cmd680_setup_channel() [all …]
|
H A D | pciide_natsemi_reg.h | 110 #define SCx200_TIM_PIO(chan, drive) (0x40 + 16 * (chan) + 8 * (drive)) argument 111 #define SCx200_TIM_DMA(chan, drive) (0x44 + 16 * (chan) + 8 * (drive)) argument
|
/openbsd/sys/dev/ic/ |
H A D | wdc.c | 593 u_int8_t drive; in wdcprobe() local 653 for (drive = 0; drive < 2; drive++) { in wdcprobe() 687 for (drive = 0; drive < 2; drive++) { in wdcprobe() 957 xfer->drive, 0); in wdcintr() 979 int drive; in wdc_reset_channel() local 985 for (drive = 0; drive < 2; drive++) { in wdc_reset_channel() 1141 xfer->drive, in wdc_wait_for_status() 1527 int drive; in wdc_print_current_modes() local 1530 for (drive = 0; drive < 2; drive++) { in wdc_print_current_modes() 1630 xfer->drive = drvp->drive; in wdc_exec_command() [all …]
|
H A D | wdcevent.h | 64 static __inline void WDC_LOG_ATAPI_CMD(struct channel_softc *chp, int drive, in WDC_LOG_ATAPI_CMD() argument 75 static __inline void WDC_LOG_ATAPI_DONE(struct channel_softc *chp, int drive, in WDC_LOG_ATAPI_DONE() argument 95 u_int8_t drive) { in WDC_LOG_SET_DRIVE() argument 96 wdc_log(chp, drive ? WDCEVENT_SET_DRIVE1 : WDCEVENT_SET_DRIVE0, in WDC_LOG_SET_DRIVE() 123 #define WDC_LOG_ATAPI_CMD(chp, drive, flags, len, cmd) argument 124 #define WDC_LOG_ATAPI_DONE(chp, drive, flags, error) argument 128 #define WDC_LOG_SET_DRIVE(chp, drive) argument
|
/openbsd/sys/arch/macppc/dev/ |
H A D | wdc_obio.c | 330 int drive; in wdc_obio_adjust_timing() local 335 for (drive = 0; drive < 2; drive++) { in wdc_obio_adjust_timing() 336 drvp = &chp->ch_drive[drive]; in wdc_obio_adjust_timing() 347 for (drive = 0; drive < 2; drive++) { in wdc_obio_adjust_timing() 348 drvp = &chp->ch_drive[drive]; in wdc_obio_adjust_timing() 395 int drive; in wdc_obio_ata4_adjust_timing() local 401 for (drive = 0; drive < 2; drive++) { in wdc_obio_ata4_adjust_timing() 418 for (drive = 0; drive < 2; drive++) { in wdc_obio_ata4_adjust_timing() 476 int drive; in wdc_obio_ata6_adjust_timing() local 480 for (drive = 0; drive < 2; drive++) { in wdc_obio_ata6_adjust_timing() [all …]
|
/openbsd/sys/arch/i386/pci/ |
H A D | pciide_machdep.c | 159 int drive, s; in gcsc_setup_channel() local 163 for (drive = 0; drive < 2; drive++) { in gcsc_setup_channel() 164 drvp = &chp->ch_drive[drive]; in gcsc_setup_channel() 168 reg = rdmsr(drive ? GCSC_ATAC_CH0D1_DMA : in gcsc_setup_channel() 180 wrmsr(drive ? GCSC_ATAC_CH0D1_DMA : in gcsc_setup_channel() 189 wrmsr(drive ? GCSC_ATAC_CH0D1_DMA : in gcsc_setup_channel() 194 wrmsr(drive ? GCSC_ATAC_CH0D1_DMA : in gcsc_setup_channel() 198 wrmsr(drive ? GCSC_ATAC_CH0D1_PIO : GCSC_ATAC_CH0D0_PIO, in gcsc_setup_channel()
|
/openbsd/sys/dev/ata/ |
H A D | ata_wdc.c | 173 xfer->drive = wd->drvp->drive; in wd_hibernate_io() 206 xfer->drive = drvp->drive; in wdc_ata_bio() 255 xfer->drive, drvp->state); in _wdc_ata_bio_start() 259 wdc_set_drive(chp, xfer->drive); in _wdc_ata_bio_start() 318 chp->channel, xfer->drive, in _wdc_ata_bio_start() 338 wdc_set_drive(chp, xfer->drive); in _wdc_ata_bio_start() 345 chp->channel, xfer->drive); in _wdc_ata_bio_start() 358 chp->channel, xfer->drive); in _wdc_ata_bio_start() 384 wdc_set_drive(chp, xfer->drive); in _wdc_ata_bio_start() 388 wdccommandext(chp, xfer->drive, cmd, in _wdc_ata_bio_start() [all …]
|
/openbsd/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/sys/dev/atapiscsi/ |
H A D | atapiscsi.c | 143 int drive; member 209 as->drive = drvp->drive; in atapiscsi_attach() 331 xfer->drive = as->drive; in wdc_atapi_send_cmd() 480 return ((reg & 0x10) == (drive << 4)); in wdc_atapi_drive_selected() 706 wdc_set_drive(chp, xfer->drive); in wdc_atapi_real_start() 771 wdccommand(chp, xfer->drive, ATAPI_PKT_CMD, in wdc_atapi_send_packet() 854 chp->channel, xfer->drive); in wdc_atapi_intr_command() 1069 xfer->drive, 1); in wdc_atapi_intr_complete() 1178 wdc_set_drive(chp, xfer->drive); in wdc_atapi_pio_intr() 1277 wdc_set_drive(chp, xfer->drive); in wdc_atapi_ctrl() [all …]
|
/openbsd/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 => $text\n";
|
/openbsd/sys/dev/fdt/ |
H A D | sxipio.c | 280 int drive; in sxipio_drive() local 282 drive = OF_getpropint(node, "allwinner,drive", -1); in sxipio_drive() 283 if (drive >= 0) in sxipio_drive() 284 return drive; in sxipio_drive() 285 drive = OF_getpropint(node, "drive-strength", 0) - 10; in sxipio_drive() 286 if (drive >= 0) in sxipio_drive() 287 return (drive / 10); in sxipio_drive() 317 int mux, drive, pull; in sxipio_pinctrl() local 345 drive = sxipio_drive(node); in sxipio_pinctrl() 385 if (drive >= 0 && drive < 4) in sxipio_pinctrl() [all …]
|
/openbsd/distrib/notes/landisk/ |
H A D | prep | 3 installation on the disk (either an IDE hard drive, or a CompactFlash 9 the miniroot "miniroot{:--:}OSrev.img" image to the hard drive or CompactFlash 19 Use the dd(1) utility to copy the miniroot to the hard drive. 25 If the machine has a hard drive, and you had to change jumpers on it 27 to ``master'' or ``single drive'', as slave drives are not bootable.
|
/openbsd/gnu/usr.bin/perl/cpan/Win32/t/ |
H A D | GetLongPathName.t | 32 my $drive = $ENV{SYSTEMDRIVE}; 33 if ($drive) { 35 s/^c:/$drive/;
|
/openbsd/distrib/notes/sparc64/ |
H A D | xfer | 8 If you created an OpenBSD CD-ROM (and have a CD-ROM drive), you may be 12 a bootable image, either a floppy, hard drive, or compatible net boot 31 If you don't have a floppy drive you can copy the miniroot 46 Use the dd(1) utility to copy the file to the hard drive. 57 If you are preparing the hard drive on an incompatible system or 60 you prepare a bootable hard-drive even if don't have a working 64 the drive.
|
/openbsd/distrib/notes/alpha/ |
H A D | hardware | 16 Floppy drive. 30 Floppy drive. 41 Floppy drive. 53 Floppy drive. 65 Floppy drive. 80 Floppy drive. 93 Floppy drive. 106 Floppy drive. 122 Floppy drive.
|
/openbsd/gnu/usr.bin/perl/ext/File-DosGlob/t/ |
H A D | DosGlob.t | 130 my $drive = $1; 133 eval { @r = File::DosGlob::glob("${drive}io/*.t") }; 134 ok(@r and !grep !m|^${drive}io/[^/]*\.t$|, @r);
|