<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in }
-->
Implementation of misc/busra (Bus
Resource Allocator (BUSRA))
30 /*
31 * This module
provides a set of resource management interfaces
32 * to manage bus
resources globally in the system.
33 *
34 * The bus nexus
drivers are typically responsible to setup resource
35 * maps for the bus
resources available for a bus instance. However
36 * this module also
provides resource setup functions for PCI bus
37 * (used by both
SPARC and X86 platforms) and ISA bus instances (used
38 * only for X86
platforms).
39 */
The following interfaces are exported
in this module.
[common/sys/sunndi.h]
736 int
737
ndi_ra_map_setup(dev_info_t *dip, char *type);
738
739 int
740
ndi_ra_map_destroy(dev_info_t *dip, char *type);
741
742 int
743
ndi_ra_alloc(dev_info_t *dip, ndi_ra_request_t *req, uint64_t
*basep,
744 |_______uint64_t
*lenp, char *type, uint_t flag);
745
746 int
747 ndi_ra_free(dev_info_t
*dip, uint64_t base, uint64_t len, char *type,
748 |_______uint_t flag);
-
ndi_ra_map_setup(): allocate the
resource management structure in resource map according to “dip”
and “type”, if this kind of resource management data structure
doesn't exist yet.
-
ndi_ra_map_destroy(): free the
resource management structure allocated above.
-
ndi_ra_alloc(): allocate resource
from the resource management unit
-
ndi_ra_free(): free above
allocated resource
928 /*
929 * Setup resource map
for the pci bus node based on the "available"
930 * property and
"bus-range" property.
931 */
932 int
933
pci_resource_setup(dev_info_t *dip)
1196 void
1197
pci_resource_destroy(dev_info_t *dip)
1198 {
1199 |_______(void)
ndi_ra_map_destroy(dip, NDI_RA_TYPE_IO);
1200
1201 |_______(void)
ndi_ra_map_destroy(dip, NDI_RA_TYPE_MEM);
1202
1203 |_______(void)
ndi_ra_map_destroy(dip, NDI_RA_TYPE_PCI_BUSNUM);
1204
1205 |_______(void)
ndi_ra_map_destroy(dip, NDI_RA_TYPE_PCI_PREFETCH_MEM);
1206 }
1209 int
1210
pci_resource_setup_avail(dev_info_t *dip, pci_regspec_t *avail_p, int
entries)
-
pci_resource_setup(): this
function will be called from pci nexus drivers. Four resource types
are created for pci bus: io, mem, bus, pre-fetchable mem. Resources
of io/mem/pf-mem are filled from “available” property. Bus
resource is filled from “available-bus-range” or “bus-range”
property.
分享到:
相关推荐
In file included from /GDB/insight-6.8-1/tk/unix/../generic/tkInt.h:21, from /GDB/insight-6.8-1/tk/unix/../generic/tk3d.h:18, from /GDB/insight-6.8-1/tk/unix/../generic/tk3d.c:16: /GDB/insight-6.8-1...
**SourceInsight是一款强大的源代码阅读和编辑工具,尤其在编程和软件开发领域中被广泛使用。它提供了丰富的功能,包括语法高亮、代码跳转、自动完成等,极大地提升了程序员的工作效率。Monokai主题是其中一种广受...
使用 Wine 安装 Source Insight 标题: 使用 Wine 安装 Source Insight 描述: 在 Ubuntu 系统中使用 Wine 安装 Source Insight 标签: Wine, Source Insight 部分内容: Wine 是一个在 Linux 平台上运行 Windows ...
源洞察(Source Insight)是一款广泛使用的源代码阅读和分析工具,尤其受到程序员和软件开发者们的喜爱。它提供了强大的代码导航、查找、语法高亮等功能,帮助用户理解和探索复杂的代码库。然而,在处理UTF-8编码的...
"Linux Ubuntu下安装Source Insight" Linux Ubuntu下安装Source Insight是指在Ubuntu操作系统下安装Source Insight软件,从而实现在Linux平台下使用Source Insight编辑和阅读源码。本文将详细介绍如何在Ubuntu下...
Astyle集成到SourceInsight指导说明 Astyle是一个编码格式化程序,它可以将代码格式化成统一的风格,从而提高代码的可读性和维护性。本文将指导您如何将Astyle集成到SourceInsight中,以便更好地管理代码的风格。 ...
2. **配置Source Insight**: 打开Source Insight,进入“Tools”菜单,选择“External Tools...”。在这里,我们需要新建一个工具配置,指定PC-lint的可执行文件路径,以及需要传递给PC-lint的参数,如输入文件、...
### Source Insight 中集成 PC-Lint 的详细步骤及注意事项 #### 一、概述 在软件开发过程中,静态代码分析工具能够帮助开发者发现潜在的错误和不规范的编程习惯,从而提高代码质量。PC-Lint 是一款知名的静态代码...
Source Insight是一个面向项目开发的程序编辑器和代码浏览器,它拥有内置的对C/C++, C#和Java等程序的分析。能分析源代码并在工作的同时动态维护它自己的符号数据库,并自动显示有用的上下文信息。 Source Insight...
Source Insight是一款广受欢迎的源代码阅读和分析工具,尤其在软件开发领域中,它以其强大的代码导航、搜索和理解功能而备受赞誉。然而,对于处理包含非英文字符,特别是中文字符的UTF-8编码文件时,原生的Source ...
幸运的是,我们有了“sourceinsight-3.5-window7-64-汉化”这个资源,它为SourceInsight 3.5在Windows 7 64位系统上提供了汉化支持。 首先,我们需要了解SourceInsight 3.5的基本功能。它支持多种编程语言,包括C/...
Source Insight 3是一款广受欢迎的源代码阅读器和编辑器,尤其在软件开发领域中,它为程序员提供了强大的代码浏览、分析和编辑功能。对于处理各种编码格式的源代码文件,Source Insight 3表现出了良好的兼容性,其中...
"Linux下安装source insight" Linux下安装source insight教程可以分为..../winewrapper /root/.wine/driver_c/source_insight/Insight3.exe ``` 通过以上步骤,我们可以成功安装和配置source insight在Linux平台上。
最初发布在看雪论坛:...用法 1. 安装原版软件:Version 4.0.0084 - Feb 26, 2017 ...2. 替换原主程序:sourceinsight4.exe 3. 导入授权文件(Import a new license file):si4.csdn.lic
Source Insight是一个功能非常强大的C、C++的代码阅读器,通过工程的管理,Source Insight可实现多文件代码中(C工程或C和ASM的混合工程)的变量、函数的快速定位和搜索,并且对每个打开的源程序(C或C++代码)中的...
在IT行业中,源代码阅读和分析工具Source Insight是一款广受欢迎的软件,特别是在C、C++、Java等编程语言的开发和维护中。然而,对于中文支持的问题,Source Insight 3.5版本曾经存在一些困扰用户的局限性,尤其是当...
### 完全卸载Wine和Source Insight的详尽步骤 在Ubuntu环境下,彻底清除不再需要的应用程序,尤其是像Wine和Source Insight这样的工具,有时会变得相当复杂。这是因为Linux系统下的一些应用卸载并不像Windows那样...
**Source Insight 4.0与Solarized-Dark主题详解** Source Insight是一款强大的源代码阅读、分析和编辑工具,尤其在编程领域中广受欢迎。它以其高效的语言智能、强大的搜索功能和自定义配置能力赢得了程序员的喜爱。...
在探讨“Source Insight 3.5 序列号”这一主题时,首先需要明确的是,序列号(serial number)通常是指软件开发商为了控制软件的分发与使用而提供的一种授权方式。通过序列号,可以验证用户是否拥有使用该软件的合法...
《Source Insight 4.0.86.0 安装及使用详解》 Source Insight是一款深受程序员喜爱的源代码分析和编辑工具,以其强大的代码浏览、查找和智能提示功能著称。本文将详细介绍如何安装Source Insight 4.0.86.0版本,并...