/external/grub/lib/ |
H A D | device.h | 36 extern void get_drive_geometry (struct geometry *geom, char **map, int drive); 43 extern int is_disk_device (char **map, int drive); 44 extern int write_to_partition (char **map, int drive, int partition,
|
H A D | device.c | 134 /* Get the geometry of a drive DRIVE. */ 136 get_drive_geometry (struct geometry *geom, char **map, int drive) argument 142 fd = open (map[drive], O_RDONLY); 237 if (drive & 0x80) 400 get_dac960_disk_name (char *name, int controller, int drive) argument 402 sprintf (name, "/dev/rd/c%dd%d", controller, drive); 456 /* Check if DEVICE is a CD-ROM drive by the HDIO_GETGEO ioctl. */ 522 int drive; local 550 show_error (line_number, "Bad drive name"); 558 drive 781 int controller, drive; local 831 is_disk_device(char **map, int drive) argument 842 write_to_partition(char **map, int drive, int partition, int sector, int size, const char *buf) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/ |
H A D | SDL_syscdrom.h | 28 /* Get the name of the specified drive */ 29 const char *(*Name)(int drive); 31 /* Open the specified drive, returning a drive id, or -1 on error */ 32 int (*Open)(int drive); 41 drive. 'position' may be NULL, and if so, should be ignored. 60 /* Close the specified drive */
|
H A D | SDL_cdrom.c | 91 const char *SDL_CDName(int drive) argument 96 if ( drive >= SDL_numcds ) { 97 SDL_SetError("Invalid CD-ROM drive index"); 101 return(SDL_CDcaps.Name(drive)); 107 SDL_CD *SDL_CDOpen(int drive) argument 114 if ( drive >= SDL_numcds ) { 115 SDL_SetError("Invalid CD-ROM drive index"); 124 cdrom->id = SDL_CDcaps.Open(drive); 144 /* Get the current status of the drive */ 157 /* If the drive i [all...] |
/external/grub/stage2/ |
H A D | bios.c | 27 extern int biosdisk_int13_extensions (int ax, int drive, void *dap); 28 extern int biosdisk_standard (int ah, int drive, 31 extern int check_int13_extensions (int drive); 32 extern int get_diskinfo_standard (int drive, 37 extern int get_diskinfo_floppy (int drive, 51 biosdisk (int read, int drive, struct geometry *geometry, 85 err = biosdisk_int13_extensions ((read + 0x42) << 8, drive, &dap); 98 return biosdisk (read, drive, geometry, sector, nsec, segment); 118 err = biosdisk_standard (read + 0x02, drive, 128 get_cdinfo (int drive, struc 49 biosdisk(int read, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument 126 get_cdinfo(int drive, struct geometry *geometry) argument 184 get_diskinfo(int drive, struct geometry *geometry) argument [all...] |
H A D | common.c | 146 int drive; local 249 /* Get the drive info. */ 258 for (drive = 0x80; drive < 0x88; drive++) 264 /* Get the geometry. This ensures that the drive is present. */ 265 if (get_diskinfo (drive, &geom)) 276 track_int13 (drive); 280 info->drive_number = drive; 319 /* Set boot drive an [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/qnx/ |
H A D | SDL_syscdrom.c | 52 static const char *SDL_SYS_CDName(int drive); 53 static int SDL_SYS_CDOpen(int drive); 63 /* Check a drive to see if it is a CD-ROM */ 64 static int CheckDrive(char *drive, struct stat *stbuf) argument 75 if (stat(drive, stbuf) < 0) 85 cdfd = open(drive, QNX_CD_OPENMODE); 109 /* Add a CD-ROM drive to our list of valid drives */ 110 static void AddDrive(char *drive, struct stat *stbuf) argument 117 This can happen when we see a drive via symbolic link. */ 127 /* Add this drive t 148 char drive[32]; local 253 SDL_SYS_CDName(int drive) argument 258 SDL_SYS_CDOpen(int drive) argument 324 int drive=-1; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/freebsd/ |
H A D | SDL_syscdrom.c | 47 static const char *SDL_SYS_CDName(int drive); 48 static int SDL_SYS_CDOpen(int drive); 62 /* Check a drive to see if it is a CD-ROM */ 63 static int CheckDrive(char *drive, struct stat *stbuf) argument 69 if ( stat(drive, stbuf) < 0 ) { 76 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); 96 /* Add a CD-ROM drive to our list of valid drives */ 97 static void AddDrive(char *drive, struct stat *stbuf) argument 103 This can happen when we see a drive via symbolic link. 108 fprintf(stderr, "Duplicate drive detecte 138 char drive[32]; local 232 SDL_SYS_CDName(int drive) argument 237 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/openbsd/ |
H A D | SDL_syscdrom.c | 49 static const char *SDL_SYS_CDName(int drive); 50 static int SDL_SYS_CDOpen(int drive); 65 /* Check a drive to see if it is a CD-ROM */ 66 static int CheckDrive(char *drive, struct stat *stbuf) argument 72 if ( stat(drive, stbuf) < 0 ) { 79 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); 101 /* Add a CD-ROM drive to our list of valid drives */ 102 static void AddDrive(char *drive, struct stat *stbuf) argument 108 This can happen when we see a drive via symbolic link. 113 fprintf(stderr, "Duplicate drive detecte 147 char drive[32]; local 241 SDL_SYS_CDName(int drive) argument 246 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu-pc-bios/bochs/bios/ |
H A D | notes | 16 dl (bit 0) --> bit 4 # drive number 24 * drive sets the busy bit in Status Reg to 1 26 > drive sets the aborted-command bit in the Error register and 31 > drive executes an implied seek to desired track and 34 transferred, the drive sets the data-request bit to 1, sets 37 the data, the drive sets the data-request bit and the busy bit to 0. 39 the first sector of data, the drive sets the data-request bit to 0, 41 transferred, the drive sets the data-request bit to 1, the busy bit to 0, 43 the drive sets the data-request bit and busy bit to 0.
|
/external/qemu/distrib/sdl-1.2.15/src/cdrom/linux/ |
H A D | SDL_syscdrom.c | 99 static const char *SDL_SYS_CDName(int drive); 100 static int SDL_SYS_CDOpen(int drive); 118 /* Check a drive to see if it is a CD-ROM */ 119 static int CheckDrive(char *drive, char *mnttype, struct stat *stbuf) argument 125 if ( stat(drive, stbuf) < 0 ) { 132 cdfd = open(drive, (O_RDONLY|O_NONBLOCK), 0); 153 /* Add a CD-ROM drive to our list of valid drives */ 154 static void AddDrive(char *drive, struct stat *stbuf) argument 160 This can happen when we see a drive via symbolic link. 165 fprintf(stderr, "Duplicate drive detecte 267 char drive[32]; local 390 SDL_SYS_CDName(int drive) argument 395 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/win32/ |
H A D | SDL_syscdrom.c | 50 static const char *SDL_SYS_CDName(int drive); 51 static int SDL_SYS_CDOpen(int drive); 62 /* Add a CD-ROM drive to our list of valid drives */ 63 static void AddDrive(char *drive) argument 68 /* Add this drive to our list */ 70 SDL_cdlist[i] = SDL_strdup(drive); 77 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); 86 char drive[4]; local 102 SDL_snprintf(drive, SDL_arraysiz 126 SDL_SYS_CDName(int drive) argument 131 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/bsdi/ |
H A D | SDL_syscdrom.c | 76 static const char *SDL_SYS_CDName(int drive); 77 static int SDL_SYS_CDOpen(int drive); 188 /* Check a drive to see if it is a CD-ROM */ 189 static int CheckDrive(char *drive, struct stat *stbuf) argument 195 if ( stat(drive, stbuf) < 0 ) { 200 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); 210 /* Add a CD-ROM drive to our list of valid drives */ 211 static void AddDrive(char *drive, struct stat *stbuf) argument 217 This can happen when we see a drive via symbolic link. 222 fprintf(stderr, "Duplicate drive detecte 251 char drive[32]; local 333 SDL_SYS_CDName(int drive) argument 338 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/grub/grub/ |
H A D | asmstub.c | 233 assign_device_name (int drive, const char *device) argument 236 if (device_map[drive]) 237 free (device_map[drive]); 240 if (disks[drive].flags != -1) 242 close (disks[drive].flags); 243 disks[drive].flags = -1; 248 device_map[drive] = 0; 250 device_map[drive] = strdup (device); 341 /* Copy MAP to the drive map and set up the int13 handler. */ 440 track_int13 (int drive) argument 757 get_diskinfo(int drive, struct geometry *geometry) argument 928 biosdisk(int subfunc, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/dc/ |
H A D | SDL_syscdrom.c | 35 static const char *SDL_SYS_CDName(int drive); 36 static int SDL_SYS_CDOpen(int drive); 64 static const char *SDL_SYS_CDName(int drive) argument 69 static int SDL_SYS_CDOpen(int drive) argument 71 return(drive);
|
/external/qemu/distrib/sdl-1.2.15/src/cdrom/osf/ |
H A D | SDL_syscdrom.c | 48 static const char *SDL_SYS_CDName(int drive); 49 static int SDL_SYS_CDOpen(int drive); 59 /* Check a drive to see if it is a CD-ROM */ 61 static int CheckDrive(char *drive, struct stat *stbuf) argument 76 if ( stat(drive, stbuf) < 0 ) { 80 if ( (cdfd = open(drive, (O_RDWR|O_NDELAY), 0)) >= 0 ) { 103 /* Add a CD-ROM drive to our list of valid drives */ 104 static void AddDrive(char *drive, struct stat *stbuf) argument 110 * This can happen when we see a drive via symbolic link. 116 fprintf(stderr, "Duplicate drive detecte 155 char drive[32]; local 233 SDL_SYS_CDName(int drive) argument 238 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/beos/ |
H A D | SDL_syscdrom.cc | 68 static const char *SDL_SYS_CDName(int drive); 69 static int SDL_SYS_CDOpen(int drive); 81 /* Check a drive to see if it is a CD-ROM */ 82 static int CheckDrive(char *drive) argument 89 if ( stat(drive, &stbuf) < 0 ) { 95 cdfd = open(drive, 0); 104 /* This can happen when the drive is open .. (?) */; 110 /* Add a CD-ROM drive to our list of valid drives */ 111 static void AddDrive(char *drive) argument 117 /* Add this drive t 273 SDL_SYS_CDName(int drive) argument 278 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/aix/ |
H A D | SDL_syscdrom.c | 57 static const char *SDL_SYS_CDName(int drive); 58 static int SDL_SYS_CDOpen(int drive); 69 /* Check a drive to see if it is a CD-ROM */ 70 static int CheckDrive(char *drive, struct stat *stbuf) argument 78 if ( stat(drive, stbuf) < 0 ) { 85 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); 103 fprintf(stderr, "Could not open drive %s (%s)\n", drive, strerror(errno)); 110 /* Add a CD-ROM drive to our list of valid drives */ 111 static void AddDrive(char *drive, struc argument 356 SDL_SYS_CDName(int drive) argument 361 SDL_SYS_CDOpen(int drive) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
H A D | testcdrom.c | 81 fprintf(stderr, "Usage: %s [drive#] [command] [command] ...\n", argv0); 95 int drive; local 116 drive = 0; 119 drive = atoi(argv[i++]); 121 cdrom = SDL_CDOpen(drive); 123 fprintf(stderr, "Couldn't open drive %d: %s\n", drive, 134 /* PrintStatus(drive, cdrom); */ 167 fprintf(stderr, "No CD in drive!\n"); 204 PrintStatus(drive, cdro [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | pathutils.cc | 245 bool Pathname::GetDrive(char *drive, uint32 bytes) const { argument 246 return GetDrive(drive, bytes, folder_); 250 bool Pathname::GetDrive(char *drive, uint32 bytes, argument 257 memcpy(drive, pathname.c_str(), 3); 258 drive[3] = 0; 260 return (isalpha(drive[0]) && 261 drive[1] == ':' && 262 drive[2] == '\\');
|
H A D | pathutils.h | 112 bool GetDrive(char *drive, uint32 bytes) const; 113 static bool GetDrive(char *drive, uint32 bytes,const std::string& pathname);
|
/external/qemu/distrib/sdl-1.2.15/include/ |
H A D | SDL_cdrom.h | 58 /** The possible states which a CD-ROM drive can be in. */ 67 /** Given a status, returns true if there's a disk in the drive */ 80 int id; /**< Private drive identifier */ 81 CDstatus status; /**< Current drive status */ 83 /** The rest of this structure is only valid if there's a CD in drive */ 123 extern DECLSPEC const char * SDLCALL SDL_CDName(int drive); 126 * Opens a CD-ROM drive for access. It returns a drive handle on success, 127 * or NULL if the drive was invalid or busy. This newly opened CD-ROM 132 extern DECLSPEC SDL_CD * SDLCALL SDL_CDOpen(int drive); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/mint/ |
H A D | SDL_syscdrom.c | 53 metaopen_t metaopen; /* Infos on opened drive */ 59 static const char *SDL_SYS_CDName(int drive); 60 static int SDL_SYS_CDOpen(int drive); 136 static const char *SDL_SYS_CDName(int drive) argument 138 return(metados_drives[drive].device); 141 static int SDL_SYS_CDOpen(int drive) argument 145 handle = Metaopen(metados_drives[drive].device[0], &(metados_drives[drive].metaopen)); 147 return drive; 250 /* Workaround buggy CD-ROM drive */ [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/macosx/ |
H A D | SDL_syscdrom.c | 39 static int currentDrive; /* Only allow 1 drive in use at a time */ 43 static const char *SDL_SYS_CDName (int drive); 44 static int SDL_SYS_CDOpen (int drive); 264 static const char *SDL_SYS_CDName (int drive) argument 282 pb.ioParam.ioVRefNum = volumes[drive]; 297 static int SDL_SYS_CDOpen (int drive) argument 305 currentDrive = drive; 307 return drive;
|
/external/chromium/base/test/ |
H A D | test_file_util_win.cc | 180 wchar_t drive[MAX_PATH] = {0}; local 181 wcscpy_s(drive, MAX_PATH, path.value().c_str()); 183 if (!PathStripToRootW(drive)) 187 if (!GetVolumeInformationW(drive, NULL, 0, 0, NULL, &fs_flags, NULL, 0))
|