fsl_sata控制器linux驱动实现分析.docx

  1. 1、本文档共123页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
fsl_sata控制器linux驱动实现分析

Author:YY_HongDepartment:EmSwDeptDate:2011-3-10Abstract本文给出了freescale公司的sata控制器的linux驱动实现方式。Analyse the difference between bare board and the board installed linux.Try to address the performance bottbleneck.TextFreescale’s sata controller driver is in the lowest layer of the block driver.below is the figure show up the relation about all layers in block driver:驱动是top-down transmit。对/dev/sdx初始化安装ATA_BASE_SHT#define ATA_BASE_SHT(drv_name)\.module= THIS_MODULE,\.name= drv_name,\.ioctl= ata_scsi_ioctl,\.queuecommand= ata_scsi_queuecmd,\.can_queue= ATA_DEF_QUEUE,\.this_id= ATA_SHT_THIS_ID,\.cmd_per_lun= ATA_SHT_CMD_PER_LUN,\.emulated= ATA_SHT_EMULATED,\.use_clustering= ATA_SHT_USE_CLUSTERING,\.proc_name= drv_name,\.slave_configure= ata_scsi_slave_config,\.slave_destroy= ata_scsi_slave_destroy,\.bios_param= ata_std_bios_param,\.unlock_native_capacity= ata_scsi_unlock_native_capacity, \.sdev_attrs= ata_common_sdev_attrs#define ATA_NCQ_SHT(drv_name)\ATA_BASE_SHT(drv_name),\.change_queue_depth= ata_scsi_change_queue_depthATA_PIO_SHT/* PIO only, sg_tablesize and dma_boundary limits can be removed */#define ATA_PIO_SHT(drv_name) \ ATA_BASE_SHT(drv_name), \ .sg_tablesize = LIBATA_MAX_PRD, \ .dma_boundary = ATA_DMA_BOUNDARYATA_NCQ_SHT#define ATA_NCQ_SHT(drv_name)\ATA_BASE_SHT(drv_name),\.change_queue_depth= ata_scsi_change_queue_depthstruct ata_hoststruct ata_host {spinlock_tlock;struct device *dev;void __iomem * const*iomap;unsigned intn_ports;void*private_data;struct ata_port_operations *ops;unsigned longflags;#ifdef CONFIG_ATA_ACPIacpi_handleacpi_handle;#endifstruct ata_port*simplex_claimed;/* channel owning the DMA */struct ata_port*ports[0];};struct ata_portstruct ata_port {struct Scsi_Host*scsi_host; /* our co-allocated scsi host */struct ata_port_operations *ops;spinlock_t*lock;/* Flags owned by the EH context. Only EH should touch these once the port

文档评论(0)

zhuwenmeijiale + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:7065136142000003

1亿VIP精品文档

相关文档