---
name: "ata_dev_try_classify"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_dev_try_classify"
---

# ata\_dev\_try\_classify(9)

Parse returned ATA device signature

## NAME

ata\_dev\_try\_classify - Parse returned ATA device signature

## SYNOPSIS

**unsigned int ata\_dev\_try\_classify(struct ata\_port \*** *ap***, unsigned int** *device***, u8 \*** *r\_err***);**

## ARGUMENTS

*ap*

ATA channel to examine

*device*

Device to examine (starting at zero)

*r\_err*

Value of error register on completion

## DESCRIPTION

After an event -- SRST, E.D.D., or SATA COMRESET -- occurs, an ATA/ATAPI-defined set of values is placed in the ATA shadow registers, indicating the results of device detection and diagnostics.

Select the ATA device, and read the values from the ATA shadow registers. Then parse according to the Error register value, and the spec-defined values examined by **ata\_dev\_classify**.

## LOCKING

caller.

## RETURNS

Device type - **ATA\_DEV\_ATA**, **ATA\_DEV\_ATAPI** or **ATA\_DEV\_NONE**.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
