Searched refs:drive (Results 1 - 25 of 143) sorted by relevance

123456

/netbsd-6-1-5-RELEASE/sys/arch/x68k/stand/libsa/
H A Dchdsk.c42 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-6-1-5-RELEASE/sys/dev/pci/
H A Dpciide_cy693_reg.h40 #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 Dpciide_ite_reg.h26 #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 Dpciide_sis_reg.h36 #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 Dpciide_cmd_reg.h58 * 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 Dpciide_acard_reg.h30 #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 Dpciide_apollo_reg.h84 * 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 Drdcide.c197 u_int8_t drive; local
215 for (drive = 0; drive < 2; drive++) {
216 udccr &= ~RDCIDE_UDCCR_EN(chp->ch_channel, drive);
217 udccr &= ~RDCIDE_UDCCR_TIM_MASK(chp->ch_channel, drive);
218 iiocr &= ~RDCIDE_IIOCR_CLK_MASK(chp->ch_channel, drive);
221 for (drive = 0; drive < 2; drive
[all...]
H A Dpciide_piix_reg.h88 #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 Doptiide.c174 int drive, spd, s; local
197 for (drive = 0; drive < 2; drive++) {
198 drvp = &chp->ch_drive[drive];
199 /* If no drive, skip */
201 mode[drive] = -1;
218 mode[drive] = drvp->DMA_mode + 5;
220 mode[drive] = drvp->PIO_mode;
222 if (drive
[all...]
H A Dstpcide.c149 int drive, bits[2], s; local
157 /* Per drive settings */
158 for (drive = 0; drive < 2; drive++) {
159 drvp = &chp->ch_drive[drive];
160 /* If no drive, skip */
170 idedma_ctl |= IDEDMA_CTL_DRV_DMA(drive);
171 bits[drive] = 0xe; /* IOCHRDY,wr/post,rd/prefetch */
178 bits[drive]
[all...]
H A Dgeodeide.c174 int drive, s; local
202 /* Per drive settings */
203 for (drive = 0; drive < 2; drive++) {
204 drvp = &chp->ch_drive[drive];
205 /* If no drive, skip */
211 dmaoff = CS5530_DMA_REG(channel, drive);
212 piooff = CS5530_PIO_REG(channel, drive);
218 dmaoff = SC1100_DMA_REG(channel, drive);
265 geodeide_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/i386/stand/misc/
H A Drawrite.c89 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-6-1-5-RELEASE/sys/arch/acorn32/stand/lib/
H A Driscosdisk.c40 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 Ddevopen.c46 int part, drive, err, fslen;
58 drive = 0;
60 drive = drive * 10 + *p-- - '0';
67 err = rodisk_open(f, fsname, drive, part);
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/
H A D20040305-2.c20 DRIVE drive; member in struct:__anon5702
25 if (driveid.drive != 1)
39 driveid.drive = 1;
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/
H A D20040305-2.c20 DRIVE drive; member in struct:__anon3944
25 if (driveid.drive != 1)
39 driveid.drive = 1;
/netbsd-6-1-5-RELEASE/sys/arch/acorn26/stand/lib/
H A Driscosdisk.c36 int drive; member in struct:riscosdisk
47 int drive; local
54 drive = va_arg(ap, int);
/netbsd-6-1-5-RELEASE/sys/arch/macppc/dev/
H A Dkauai.c209 int drive; local
216 for (drive = 0; drive < 2; drive++) {
217 drvp = &chp->ch_drive[drive];
219 (*sc->sc_calc_timing)(sc, drive);
221 PIO_CONFIG_REG, sc->sc_piotiming_r[drive]);
223 DMA_CONFIG_REG, sc->sc_dmatiming_r[drive]);
256 calc_timing_kauai(struct kauai_softc *sc, int drive) argument
259 struct ata_drive_datas *drvp = &chp->ch_drive[drive];
281 kauai_dma_init(void *v, int channel, int drive, void *databuf, size_t datalen, int flags) argument
335 kauai_dma_start(void *v, int channel, int drive) argument
343 kauai_dma_finish(void *v, int channel, int drive, int read) argument
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/less/dist/
H A Dlglob.h54 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \
56 char drive[_MAX_DRIVE]; \
69 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \
71 char drive[_MAX_DRIVE]; \
85 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \
87 char drive[MAXDRIVE]; \
/netbsd-6-1-5-RELEASE/sys/arch/atari/stand/tostools/chg_pid/
H A Dchg_pid.c153 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-6-1-5-RELEASE/sys/arch/vax/consolerl/
H A Dhkmboo.com5 ! rk07 drive type boot to multi user mode
15 DEPOSIT R10 3 ! rk07 drive type - uba0 - drive 0
H A Dhksboo.com5 ! rk07 drive type boot to single user mode
15 DEPOSIT R10 3 ! rk07 drive type - uba0 - drive 0
H A Dhpmboo.com5 ! 'hp' drive type boot to multi user mode
15 DEPOSIT R10 0 ! 'hp' drive type - mba0 - drive 0
H A Dhpsboo.com5 ! 'hp' drive type boot to single user mode
15 DEPOSIT R10 0 ! 'hp' drive type - mba0 - drive 0

Completed in 161 milliseconds

123456