RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


IDE Controller Driver Read Data Block Through IDE Controller Data Register

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

13.5: Read Data Block Through IDE Controller Data Register

The ide_controller_read_data_block provides multiple consequent read of the IDE Controller Data Register. IDE Controller chip is selected via the minor number. The same functionality may be achieved via separate multiple calls of ide_controller_read_register routine but ide_controller_read_data_block allows to escape functions call overhead. This routine is not allowed to be called from an application.

void ide_controller_read_data_block(rtems_device_minor_number  minor,
                                    unsigned16                 block_size,
                                    blkdev_sg_buffer          *bufs,
                                    rtems_unsigned32          *cbuf,
                                    rtems_unsigned32          *pos)
{
  get IDE Controller chip configuration information from
  IDE_Controller_Table by minor number

  invoke read data block routine for the chip
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2004 OAR Corporation