`
javasee
  • 浏览: 977571 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Solaris Source Insight: PCI bus driver moduls - npe Part 4

阅读更多

Thu Nov 12 17:11:35 CST 2009

  • bus_ctl()

DDI_CTLOPS_REPORTDEV – report the device

DDI_CTLOPS_INITCHILD – bus specific intialization for a child attached to this npe instance. PCIe bus private data is allocated and initialized here. PCIe Bus Private Data contains commonly used PCI/PCIe information and offsets to key registers. Since npe bus_bdf in bus private data hasn't been initialized during npe attach, the root port number of a device in the private data is not valid. Generic pci-express interrupts and error handling are also enabled here.

DDI_CTLOPS_UNINITCHILD – bus specific operations when removing/detaching a PCI device node.

DDI_CTLOPS_REGSIZE/DDI_CTLOPS_NREGS – return the register number and register size of a specific register set. All register sets are store in “reg” properties.

DDI_CTLOPS_PEEK:/DDI_CTLOPS_POKE – PCI configure space peek/poke.

DDI_CTLOPS_ATTACH/DDI_CTLOPS_DETACH – operations to support suspending and resuming.

All those control commands can't be handled in this function will be passed to the bus control function of parent, rootnex.

  • intr_ops()

Interrupt related operations.

  • DDI_INTROP_SUPPORTED_TYPES

Returns the hardware interrupt types that are supported by both the device and the host.

[i86pc/io/pci/pci_common.c]

216 |_______|_______/*

217 |_______|_______ * First we determine the interrupt types supported by the

218 |_______|_______ * device itself, then we filter them through what the OS

219 |_______|_______ * and system supports. We determine system-level

220 |_______|_______ * interrupt type support for anything other than fixed intrs

221 |_______|_______ * through the psm_intr_ops vector

222 |_______|_______ */

The fixed type of interrupt is support by default. The MSI and MSI-X interrupt capabilities are reported throught the PCI capability regiesters. The interrupt types supported by the device should be filterred through the host support.

[i86pc/io/pci/pci_common.c]

257 |_______|_______/*

258 |_______|_______ * Filter device-level types through system-level support

259 |_______|_______ */

260 |_______|_______tmp_hdl.ih_type = types;

261 |_______|_______if ((*psm_intr_ops)(rdip, &tmp_hdl, PSM_INTR_OP_CHECK_MSI,

262 |_______|_______ &types) != PSM_SUCCESS)

263 |_______|_______|_______goto SUPPORTED_TYPES_OUT;

When MSI/MSI-X are supported, the MSI/MSI-X cap locations are exported via properties “pci-msi-capid-pointer” and “pci-msix-capid-pointer”.

ddi_intr_get_supported_types(9F) relies on this intr operation.

To be continued …

分享到:
评论

相关推荐

    SourceInsight 完美的配色方案 theme-Monokai 主题

    **SourceInsight是一款强大的源代码阅读和编辑工具,尤其在编程和软件开发领域中被广泛使用。它提供了丰富的功能,包括语法高亮、代码跳转、自动完成等,极大地提升了程序员的工作效率。Monokai主题是其中一种广受...

    source insight 3.5 UTF-8中文乱码插件_sourceinsight3.5_utf-8_插件补丁_中文乱码_

    4. 重启Source Insight,打开包含中文字符的文件,检查是否成功解决了乱码问题。 需要注意的是,不同的操作系统(如Windows、Mac OS或Linux)以及Source Insight的不同版本,其配置和插件管理方式可能存在差异,...

    pc-lint用于sourceinsight上静态代码检测

    4. **运行PC-lint**: 在Source Insight中打开要检查的源文件后,通过工具栏或快捷键触发PC-lint分析。分析结果将在Source Insight的输出窗口中显示,通常包括警告和错误信息,以及对应的代码位置。 5. **查看和处理...

    source insight 中集成pclint

    ### Source Insight 中集成 PC-Lint 的详细步骤及注意事项 #### 一、概述 在软件开发过程中,静态代码分析工具能够帮助开发者发现潜在的错误和不规范的编程习惯,从而提高代码质量。PC-Lint 是一款知名的静态代码...

    source insight UTF-8插件

    Source Insight是一款广受欢迎的源代码阅读和分析工具,尤其在软件开发领域中,它以其强大的代码导航、搜索和理解功能而备受赞誉。然而,对于处理包含非英文字符,特别是中文字符的UTF-8编码文件时,原生的Source ...

    sourceinsight-3.5-window7-64-汉化

    幸运的是,我们有了“sourceinsight-3.5-window7-64-汉化”这个资源,它为SourceInsight 3.5在Windows 7 64位系统上提供了汉化支持。 首先,我们需要了解SourceInsight 3.5的基本功能。它支持多种编程语言,包括C/...

    Source Insight 3支持Utf-8

    Source Insight 3是一款广受欢迎的源代码阅读器和编辑器,尤其在软件开发领域中,它为程序员提供了强大的代码浏览、分析和编辑功能。对于处理各种编码格式的源代码文件,Source Insight 3表现出了良好的兼容性,其中...

    Astyle集成到sourceinsight指导说明

    Astyle集成到SourceInsight指导说明 Astyle是一个编码格式化程序,它可以将代码格式化成统一的风格,从而提高代码的可读性和维护性。本文将指导您如何将Astyle集成到SourceInsight中,以便更好地管理代码的风格。 ...

    解决source insight3.5不支持中文utf8问题

    4. **安装第三方插件**:有些开发者社区提供了扩展Source Insight以支持UTF-8的插件。安装这些插件后,Source Insight 3.5就能正确识别和显示UTF-8编码的文件了。 5. **升级到新版本**:如果可能,升级到Source ...

    linux Ubuntu下安装 Source insight

    "Linux Ubuntu下安装Source Insight" Linux Ubuntu下安装Source Insight是指在Ubuntu操作系统下安装Source Insight软件,从而实现在Linux平台下使用Source Insight编辑和阅读源码。本文将详细介绍如何在Ubuntu下...

    Source Insight 4.0仿Boxy的Solarized-Dark主题

    **Source Insight 4.0与Solarized-Dark主题详解** Source Insight是一款强大的源代码阅读、分析和编辑工具,尤其在编程领域中广受欢迎。它以其高效的语言智能、强大的搜索功能和自定义配置能力赢得了程序员的喜爱。...

    sourceinsight_4.0.86.0-setup.zip

    《Source Insight 4.0.86.0 安装及使用详解》 Source Insight是一款深受程序员喜爱的源代码分析和编辑工具,以其强大的代码浏览、查找和智能提示功能著称。本文将详细介绍如何安装Source Insight 4.0.86.0版本,并...

    sourceinsight的快捷键总结.pdf

    在IT行业,特别是在软件开发领域,Source Insight 是一个经常被使用到的源代码查看工具。它主要被软件开发者用于阅读、修改、重构代码以及查看定义和引用等功能。熟练使用 Source Insight 的快捷键能够显著提高开发...

    Source Insight 3.5 序列号

    在探讨“Source Insight 3.5 序列号”这一主题时,首先需要明确的是,序列号(serial number)通常是指软件开发商为了控制软件的分发与使用而提供的一种授权方式。通过序列号,可以验证用户是否拥有使用该软件的合法...

    sourceinsight-4.0.86.0-密码123.zip

    SourceInsight是一款强大的源代码分析和浏览工具,尤其在C/C++、Java和C#等编程语言中广泛应用。它提供了一种高效的方式来查看、搜索、理解和编辑源代码,深受程序员喜爱。版本4.0.86.0是SourceInsight的一个特定...

    让source insight支持AT&T汇编语法高亮

    ### 让Source Insight支持AT&T汇编语法高亮 #### 背景介绍 Source Insight是一款功能强大的编辑器,能够帮助开发者高效地进行代码编写、分析及管理等工作。它不仅支持多种编程语言,还能通过自定义配置来扩展对特定...

    SourceInsight_双语版(中文-英文)

    **SourceInsight_双语版(中文-英文)** SourceInsight是一款强大的源代码阅读和编辑工具,尤其适合程序员在开发C/C++、Java等编程语言项目时使用。这款软件以其高效、直观的特性,为程序员提供了深入理解代码结构、...

    SourceInsight4配色xml文件-深色

    标题提到的"SourceInsight4配色xml文件-深色",意味着这是针对SourceInsight4版本的一个深色调的配色方案。深色主题通常被认为对长时间编程的眼睛更为友好,因为它可以减少屏幕反射,减轻眼睛疲劳。深色背景与浅色...

    SourceInsight 3.5.0070(2012-06-20发布)+注册机

    很好用的代码编辑工具,SourceInsight 版本号为3.5.0070,发布时间2012年6月20日 内附注册机 官方What's New: Version 3.50.0070 - June 20, 2012 Fix: Java: Generic functions with a type specifier before the ...

    Source Insight 插件 UTF-8

    Source Insight 插件,解决SI UTF-8中文显示乱码问题。 Source Insight Patch File, solve display wrong code when using UTF-8 chinese charater

Global site tag (gtag.js) - Google Analytics