/netbsd-current/sys/arch/x68k/stand/libsa/ |
H A D | chdsk.c | 42 int drive[2]; local 44 drive[0] = 0x90 << 8; 45 drive[1] = 0x91 << 8; 48 IOCS_B_DRVCHK(drive[sc->unit], 3); 50 IOCS_B_DRVCHK(drive[sc->unit], 1); 53 IOCS_B_DRVCHK(drive[0], 4); 54 IOCS_B_DRVCHK(drive[1], 4); 57 if ((IOCS_B_DRVCHK(drive[0], 0) & 2)) { 61 if ((IOCS_B_DRVCHK(drive[1], 0) & 2)) { 68 IOCS_B_DRVCHK(drive[ [all...] |
/netbsd-current/sys/dev/pci/ |
H A D | pciide_cy693_reg.h | 40 #define CY_CTRL_PREFETCH(drive) (0x00000100 << (2 * (drive))) 48 #define CY_ADDR_CTRL_SETUP_OFF(drive) (4 * (drive)) 49 #define CY_ADDR_CTRL_SETUP_MASK(drive) \ 50 (0x00000007 << CY_ADDR_CTRL_SETUP_OFF(drive)) 54 #define CY_CMD_CTRL_IOW_PULSE_OFF(drive) (12 + 16 * (drive)) 55 #define CY_CMD_CTRL_IOW_REC_OFF(drive) (8 + 16 * (drive)) [all...] |
H A D | pciide_ite_reg.h | 26 #define IT_CFG_CABLE(chan, drive) (0x0010 << ((chan) * 2 + (drive))) 33 #define IT_MODE_DMA(chan, drive) (0x0008 << ((chan) * 2 + (drive))) 38 #define IT_TIM_UDMA5(drive) (0x00800000 << (drive) * 8)
|
H A D | pciide_sis_reg.h | 36 #define SIS_TIM66_REC_OFF(drive) (16 * (drive)) 37 #define SIS_TIM66_ACT_OFF(drive) (8 + 16 * (drive)) 38 #define SIS_TIM66_UDMA_TIME_OFF(drive) (12 + 16 * (drive)) 40 #define SIS_TIM100_REC_OFF(drive) (16 * (drive)) 41 #define SIS_TIM100_ACT_OFF(drive) (4 + 16 * (drive)) [all...] |
H A D | pciide_cmd_reg.h | 58 * data read/write timing registers . 0640 uses the same for drive 0 and 1 61 #define CMD_DATA_TIM(chan, drive) \ 63 ((drive) == 0) ? 0x54: 0x56 \ 65 ((drive) == 0) ? 0x58 : 0x5b) 89 #define CMD_UDMATIM_UDMA(drive) (0x01 << (drive)) 90 #define CMD_UDMATIM_UDMA33(drive) (0x04 << (drive)) 92 #define CMD_UDMATIM_TIM_OFF(drive) (4 + ((drive) * [all...] |
H A D | pciide_acard_reg.h | 30 #define ATP850_SETTIME(drive, act, rec) \ 31 (((((act) & 0xf) << 8) | ((rec) & 0xf)) << ((drive) * 16)) 32 #define ATP860_SETTIME(channel, drive, act, rec) \ 34 ((channel) * 16 + (drive) * 8)) 47 #define ATP850_UDMA_MODE(channel, drive, x) \ 48 (((x) & 0x3) << ((channel) * 4 + (drive) * 2)) 49 #define ATP860_UDMA_MODE(channel, drive, x) \ 50 (((x) & 0xf) << ((channel) * 8 + (drive) * 4))
|
H A D | pciide_apollo_reg.h | 84 * drive which does not support UDMA modes. 127 #define APO_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ 128 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 129 #define APO_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \ 130 (((1 - (channel)) << 4) + ((1 - (drive)) << 3) + 4)) 138 #define APO_UDMA_TIME(channel, drive, x) (((x) & 0xf) << \ 139 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) 140 #define APO_UDMA_PIO_MODE(channel, drive) (0x20 << \ 141 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) /* via only */ 142 #define APO_UDMA_EN(channel, drive) ( [all...] |
H A D | rdcide.c | 203 u_int8_t drive; local 221 for (drive = 0; drive < 2; drive++) { 222 udccr &= ~RDCIDE_UDCCR_EN(chp->ch_channel, drive); 223 udccr &= ~RDCIDE_UDCCR_TIM_MASK(chp->ch_channel, drive); 224 iiocr &= ~RDCIDE_IIOCR_CLK_MASK(chp->ch_channel, drive); 227 for (drive = 0; drive < 2; drive [all...] |
H A D | pciide_piix_reg.h | 88 #define PIIX_UDMACTL_DRV_EN(channel, drive) (0x01 << ((channel) * 2 + (drive))) 92 #define PIIX_UDMATIM_SET(x, channel, drive) \ 93 (((x) << ((channel * 8) + (drive * 4))) << PIIX_UDMATIM_SHIFT) 101 #define PIIX_CONFIG_CR(channel, drive) (0x0010 << ((channel) * 2 + (drive))) 102 #define PIIX_CONFIG_UDMA66(channel, drive) (0x0001 << ((channel) * 2 + (drive))) 104 #define PIIX_CONFIG_UDMA100(channel, drive) (0x1000 << ((channel) * 2 + (drive))) [all...] |
H A D | optiide.c | 175 int drive, spd, s; local 198 for (drive = 0; drive < 2; drive++) { 199 drvp = &chp->ch_drive[drive]; 200 /* If no drive, skip */ 202 mode[drive] = -1; 219 mode[drive] = drvp->DMA_mode + 5; 221 mode[drive] = drvp->PIO_mode; 223 if (drive [all...] |
H A D | stpcide.c | 150 int drive, bits[2], s; local 158 /* Per drive settings */ 159 for (drive = 0; drive < 2; drive++) { 160 drvp = &chp->ch_drive[drive]; 161 /* If no drive, skip */ 171 idedma_ctl |= IDEDMA_CTL_DRV_DMA(drive); 172 bits[drive] = 0xe; /* IOCHRDY,wr/post,rd/prefetch */ 179 bits[drive] [all...] |
H A D | geodeide.c | 175 int drive, s; local 203 /* Per drive settings */ 204 for (drive = 0; drive < 2; drive++) { 205 drvp = &chp->ch_drive[drive]; 206 /* If no drive, skip */ 212 dmaoff = CS5530_DMA_REG(channel, drive); 213 piooff = CS5530_PIO_REG(channel, drive); 219 dmaoff = SC1100_DMA_REG(channel, drive); 266 geodeide_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/i2c/ |
H A D | nouveau_nvkm_subdev_i2c_auxgf119.c | 36 gf119_i2c_aux_new(struct nvkm_i2c_pad *pad, int index, u8 drive, argument 39 return g94_i2c_aux_new_(&gf119_i2c_aux, pad, index, drive, paux);
|
H A D | nouveau_nvkm_subdev_i2c_busnv04.c | 36 u8 drive; member in struct:nv04_i2c_bus 45 u8 val = nvkm_rdvgac(device, 0, bus->drive); 48 nvkm_wrvgac(device, 0, bus->drive, val | 0x01); 56 u8 val = nvkm_rdvgac(device, 0, bus->drive); 59 nvkm_wrvgac(device, 0, bus->drive, val | 0x01); 88 nv04_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, u8 sense, argument 98 bus->drive = drive;
|
/netbsd-current/sys/arch/i386/stand/misc/ |
H A D | rawrite.c | 89 Identify what kind of diskette is installed in the specified drive. 95 int nsects(int (drive)) argument 105 biosdisk(RESET, drive, 0, 0, 0, 0, buffer); 106 status = biosdisk(READ, drive, 0, 10, 1, 1, buffer); 108 status = biosdisk(READ, drive, 0, 0, 1, 1, buffer); 111 biosdisk(RESET, drive, 0, 0, 0, 0, buffer); 112 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer); 114 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer); 128 int count, fdin, drive, head, track, status, spt, buflength, ns; local 140 printf("Enter destination drive [all...] |
/netbsd-current/sys/arch/acorn32/stand/lib/ |
H A D | riscosdisk.c | 40 int drive; member in struct:riscosdisk 60 rodisk_open(struct open_file *f, ... /* char const *fsname, int drive, 66 int drive, partition, nfd, nhd, err; local 72 drive = va_arg(ap, int); 80 if (drive < 0 || 81 (drive < 4 && drive >= nfd) || 82 drive >= nhd + 4) 87 rd->drive = drive; [all...] |
H A D | devopen.c | 46 int part, drive, err, fslen; 58 drive = 0; 60 drive = drive * 10 + *p-- - '0'; 67 err = rodisk_open(f, fsname, drive, part);
|
/netbsd-current/external/bsd/kyua-cli/dist/engine/drivers/ |
H A D | scan_action.hpp | 90 result drive(const utils::fs::path&, utils::optional< int64_t >,
|
/netbsd-current/sys/arch/macppc/dev/ |
H A D | kauai.c | 229 int drive; local 237 for (drive = 0; drive < 2; drive++) { 238 drvp = &chp->ch_drive[drive]; 240 (*sc->sc_calc_timing)(sc, drive); 242 PIO_CONFIG_REG, sc->sc_piotiming_r[drive]); 244 DMA_CONFIG_REG, sc->sc_dmatiming_r[drive]); 277 calc_timing_kauai(struct kauai_softc *sc, int drive) argument 280 struct ata_drive_datas *drvp = &chp->ch_drive[drive]; 302 kauai_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument 356 kauai_dma_start(void *v, int channel, int drive) argument 364 kauai_dma_finish(void *v, int channel, int drive, int read) argument [all...] |
/netbsd-current/external/bsd/less/dist/ |
H A D | lglob.h | 53 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \ 55 char drive[_MAX_DRIVE]; \ 68 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \ 70 char drive[_MAX_DRIVE]; \ 84 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \ 86 char drive[MAXDRIVE]; \
|
/netbsd-current/sys/arch/atari/stand/tostools/chg_pid/ |
H A D | chg_pid.c | 153 eprintf("Note: >>> Both drive and partition numbers start " 159 eprintf("About to change id of partition %d on drive %d to %s\r\n", 184 int chg_tosparts(chg_part, drive, newname) 185 int chg_part, drive; 197 if (read_block(buf, 0, drive) == 0) 218 if (read_block(buf, new_root, drive) == 0) 232 if (write_block(buf, new_root, drive) == 0) 248 if (read_block(buf, 0, drive) == 0) 254 if (write_block(buf, 0, drive) == 0) 278 int read_block(buf, blkno, drive) [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
H A D | nouveau_nvkm_subdev_bios_i2c.c | 100 info->drive = DCB_I2C_UNUSED; 107 info->drive = nvbios_rd08(bios, ent + 0); 111 info->drive = nvbios_rd08(bios, ent + 1); 114 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; 124 info->drive = (nvbios_rd16(bios, ent + 0) & 0x01f) >> 0; 125 if (info->drive == 0x1f) 126 info->drive = DCB_I2C_UNUSED; 151 info->drive = nvbios_rd08(bios, ent + 4); 152 if (!info->drive) info->drive [all...] |
/netbsd-current/sys/arch/vax/consolerl/ |
H A D | hkmboo.com | 5 ! rk07 drive type boot to multi user mode
15 DEPOSIT R10 3 ! rk07 drive type - uba0 - drive 0
|
H A D | hksboo.com | 5 ! rk07 drive type boot to single user mode
15 DEPOSIT R10 3 ! rk07 drive type - uba0 - drive 0
|
H A D | hpmboo.com | 5 ! 'hp' drive type boot to multi user mode
15 DEPOSIT R10 0 ! 'hp' drive type - mba0 - drive 0
|