云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > PCI Configuration

PCI Configuration

  • 62 次阅读
  • 3 次下载
  • 2025/6/1 8:51:01

ret

;----------------------------------------------------------- -----------; ; STACK REQUIRED ; ; ; ; Input : (AL) Mask of PCI register bits to test. ; ; (optional) ; ; (AH) Index of PCI register to access. ; ; (DL) 7:3 PCI device # ; ; 2:0 PCI function # on device ; ; (DH) 7:0 PCI bus # of device ; ; ;

; Output: (AL) Value read from chip set register. ; ; (ZF) ZR Corresponding bits in chip set ; ; register to mask are all zero. ; ; NZ Corresponding bits in chip set ; ; register to mask has at least ; ; one bit set. ; ; ; ; Register destroyed : (AL) ; ; NOTE : ;

; * Do not invoke with \ Invoke with \; ; * Do not change IF status. ; ;----------------------------------------------------------------------- ;

read_pci PROC NEAR

push edx push eax pushf

xchg movzx shl bts mov and

ax,dx eax,ax eax,8 eax,31 al,dh al,0fch

; (eax) = device & func # ; (eax) = dev & func # in ; proper position.

; (al) = reg # to access. ; (eax) = proper config enb.

shl mov edx,16

dx,00cf8h

; (dx) = CONFIG_ADDRESS

cli out jcxz jcxz shr and or in jcxz jcxz mov popf pop

test

mov pop

ret

read_pci

dx,eax short $+2 short $+2 edx,24 dl,003h dx,00cfch al,dx short $+2 short $+2

dl,al

eax al,dl

al,dl edx

; (dl) = reg # to access.

; (dl) = byte to access of reg ; (dx) = CONFIG_DATA

; (al) = data read from reg ; For returning proper flag info.

ENDP

? Host/PCI Bridge:

通常被称为北桥(North Bridge),它连接主处理器总线与root PCI 总线. ? PCI-to-ISA Bridge:

通常被称为南桥(South Bridge),它连接root PCI总线与ISA(或EISA) 总线,南桥通常还整合中断控制器(Interrupt Controller),IDE控制器(IDE Controller),USB Host控制器(USB Controller)与DMA控制器(DMA Controller). ? PCI-to-PCI Bridge:

它连接root PCI总线与PCI总线

搜索更多关于: PCI Configuration 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

ret ;----------------------------------------------------------- -----------; ; STACK REQUIRED ; ; ; ; Input : (AL) Mask of PCI register bits to test. ; ; (optional) ; ; (AH) Index of PCI register to access. ; ; (DL) 7:3 PCI device # ; ; 2:0 PCI function # on device ; ; (DH) 7:0 PCI bus # of device ; ; ; ; Output: (AL) Value re

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com