atapi_packet_task

Name

atapi_packet_task --  Write CDB bytes to hardware

Synopsis

void atapi_packet_task (void * _data);

Arguments

_data

Port to which ATAPI device is attached.

Description

When device has indicated its readiness to accept a CDB, this function is called. Send the CDB. If DMA is to be performed, exit immediately. Otherwise, we are in polling mode, so poll status under operation succeeds or fails.

LOCKING

Kernel thread context (may sleep)