ReactOS 0.4.16-dev-297-gc569aee
|
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winioctl.h>
#include <stdlib.h>
#include <ntddscsi.h>
#include <atapi.h>
#include <bm_devs.h>
#include <uata_ctl.h>
#include <tools.h>
#include <uniata_ver.h>
#include "helper.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_REMOVAL_LOCK_TIMEOUT 20 |
#define | MOV_DW_SWP(a, b) |
#define | MOV_DD_SWP(a, b) |
#define | CMD_ATA_LIST 0x01 |
#define | CMD_ATA_FIND 0x02 |
#define | CMD_ATA_HIDE 0x03 |
#define | CMD_ATA_MODE 0x04 |
#define | CMD_ATA_RESET 0x05 |
#define | CMD_ATA_BBLK 0x06 |
#define | CMD_ATA_POWER 0x07 |
#define | check_atamode_str(str, mode) |
Variables | |
int | g_extended = 0 |
int | g_adapter_info = 0 |
char * | g_bb_list = NULL |
int | gRadix = 16 |
PADAPTERINFO | g_AdapterInfo = NULL |
IO_SCSI_CAPABILITIES | g_capabilities |
UCHAR | g_inquiry_buffer [2048] |
IDENTIFY_DATA | g_ident |
Definition at line 436 of file atactl.cpp.
#define CMD_ATA_BBLK 0x06 |
Definition at line 135 of file atactl.cpp.
#define CMD_ATA_FIND 0x02 |
Definition at line 131 of file atactl.cpp.
#define CMD_ATA_HIDE 0x03 |
Definition at line 132 of file atactl.cpp.
#define CMD_ATA_LIST 0x01 |
Definition at line 130 of file atactl.cpp.
#define CMD_ATA_MODE 0x04 |
Definition at line 133 of file atactl.cpp.
#define CMD_ATA_POWER 0x07 |
Definition at line 136 of file atactl.cpp.
#define CMD_ATA_RESET 0x05 |
Definition at line 134 of file atactl.cpp.
#define DEFAULT_REMOVAL_LOCK_TIMEOUT 20 |
Definition at line 18 of file atactl.cpp.
Definition at line 27 of file atactl.cpp.
Definition at line 20 of file atactl.cpp.
Definition at line 1308 of file atactl.cpp.
Referenced by ata_bblk().
Definition at line 971 of file atactl.cpp.
Referenced by ata_list().
Definition at line 1348 of file atactl.cpp.
Referenced by main().
int ata_check_controller | ( | HANDLE | h, |
PIO_SCSI_CAPABILITIES | capabilities | ||
) |
Definition at line 1044 of file atactl.cpp.
Referenced by ata_list().
Definition at line 609 of file atactl.cpp.
Referenced by ata_bblk(), and ata_list().
Definition at line 235 of file atactl.cpp.
Referenced by ata_adapter_info(), ata_bblk(), ata_hide(), ata_list(), ata_mode(), ata_power_mode(), ata_reset(), and ata_scan().
Definition at line 563 of file atactl.cpp.
Referenced by ata_bblk(), and ata_check_unit().
Definition at line 1191 of file atactl.cpp.
Referenced by main().
Definition at line 1064 of file atactl.cpp.
Referenced by ata_list(), and main().
Definition at line 1097 of file atactl.cpp.
Referenced by main().
Definition at line 399 of file atactl.cpp.
Referenced by ata_adapter_info(), ata_check_unit(), and ata_mode().
Definition at line 139 of file atactl.cpp.
Referenced by ata_adapter_info(), ata_bblk(), ata_hide(), ata_list(), ata_mode(), ata_power_mode(), ata_reset(), and ata_scan().
Definition at line 202 of file atactl.cpp.
Referenced by ata_bblk().
Definition at line 1629 of file atactl.cpp.
Referenced by ata_hide(), and main().
Definition at line 1144 of file atactl.cpp.
Referenced by main().
Definition at line 1249 of file atactl.cpp.
Referenced by main().
int ata_send_ioctl | ( | HANDLE | h, |
PSCSI_ADDRESS | addr, | ||
PCCH | Signature, | ||
ULONG | Ioctl, | ||
PVOID | inBuffer, | ||
ULONG | inBufferLength, | ||
PVOID | outBuffer, | ||
ULONG | outBufferLength, | ||
PULONG | returned | ||
) |
Definition at line 243 of file atactl.cpp.
Referenced by ata_adapter_info(), ata_bblk(), ata_check_unit(), ata_hide(), ata_mode(), ata_reset(), and ata_scan().
int ata_send_scsi | ( | HANDLE | h, |
PSCSI_ADDRESS | addr, | ||
PCDB | cdb, | ||
UCHAR | cdbLength, | ||
PVOID | Buffer, | ||
ULONG | BufferLength, | ||
BOOLEAN | DataIn, | ||
PSENSE_DATA | senseData, | ||
PULONG | returned | ||
) |
Definition at line 326 of file atactl.cpp.
Referenced by ata_power_mode().
Definition at line 443 of file atactl.cpp.
Referenced by main().
Definition at line 524 of file atactl.cpp.
Referenced by ata_get_bblist_regh(), and InitBadBlocks().
Definition at line 1685 of file atactl.cpp.
void print_help | ( | ) |
Definition at line 52 of file atactl.cpp.
Referenced by ata_bblk(), and main().
int g_adapter_info = 0 |
Definition at line 40 of file atactl.cpp.
Referenced by ata_list(), and main().
PADAPTERINFO g_AdapterInfo = NULL |
Definition at line 43 of file atactl.cpp.
Referenced by ata_adapter_info(), and ata_check_unit().
Definition at line 41 of file atactl.cpp.
Referenced by ata_bblk(), and main().
IO_SCSI_CAPABILITIES g_capabilities |
Definition at line 395 of file atactl.cpp.
Referenced by ata_list().
int g_extended = 0 |
Definition at line 39 of file atactl.cpp.
Referenced by ata_check_unit(), and main().
IDENTIFY_DATA g_ident |
Definition at line 606 of file atactl.cpp.
Referenced by ata_bblk(), and ata_check_unit().
UCHAR g_inquiry_buffer[2048] |
Definition at line 396 of file atactl.cpp.
Referenced by ata_check_unit().
int gRadix = 16 |
Definition at line 42 of file atactl.cpp.
Referenced by ata_bblk(), and main().