Changeset 125 for trunk/src/os2ahci/os2ahci.c
- Timestamp:
- Oct 8, 2011, 10:28:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.c
r123 r125 73 73 int thorough_scan = 1; /* if != 0, perform thorough PCI scan */ 74 74 int init_reset; /* if != 0, reset ports during init */ 75 int force_write_cache; /* if != 0, force write cache */ 75 76 int verbosity = 1; /* == 1 -> show sign on banner 76 77 * > 1 -> show adapter info during boot */ … … 233 234 /* reset ports during initialization */ 234 235 init_reset = 1; 236 break; 237 238 case 'f': 239 /* force write cache regardless of IORB flags */ 240 force_write_cache = 1; 235 241 break; 236 242 … … 387 393 * Generic IOCTL via character device driver. IOCTLs are used to control the 388 394 * driver operation and to execute native ATA and ATAPI (SCSI) commands from 389 * ring 3 applications. 395 * ring 3 applications. On top of that, some predefined IOCTLs (e.g. SMART 396 * commands for ATA disks) are implemented here. 390 397 */ 391 398 USHORT gen_ioctl(RP_GENIOCTL _far *ioctl) 392 399 { 400 dprintf("IOCTL 0x%x/0x%x\n", (u16) ioctl->Category, (u16) ioctl->Function); 401 393 402 switch (ioctl->Category) { 394 403 395 404 case OS2AHCI_IOCTL_CATEGORY: 396 397 405 switch (ioctl->Function) { 398 406 … … 404 412 405 413 } 406 } 414 415 case DSKSP_CAT_GENERIC: 416 return(ioctl_gen_dsk(ioctl)); 417 418 case DSKSP_CAT_SMART: 419 return(ioctl_smart(ioctl)); 420 421 } 422 407 423 return(STDON | STATUS_ERR_UNKCMD); 408 424 }
Note:
See TracChangeset
for help on using the changeset viewer.