|
|
在EDK中做SCSI driver,环境是NT32,要在driver binding protocal support( )中打开pciio协议,当编译的时候发现open pciio protocal fail,代码如下:' C, s+ c/ U* g# c2 [" U
EFI_BREAKPOINT( );
& R8 N, x# P6 }( F2 r2 ~+ } Status = gBS->OpenProtocol (
- P4 K( o& k1 l Controller,+ J+ w2 ?) ]& ]0 x! l
&gEfiPciIoProtocolGuid,8 v! J2 ~/ z% V* O3 X/ R
(VOID **) &PciIo,- z- S# g( B" j& S: w9 N- v+ m
This->DriverBindingHandle,
% D1 f: W4 j1 W* y* x9 j Controller,
$ W& t7 A, f5 j; f. U EFI_OPEN_PROTOCOL_BY_DRIVER
* I& c' A7 H8 @' y- l );; q" B. |, s, _ z
if (EFI_ERROR (Status)) {$ j5 C( O1 p+ t- q8 M2 S$ C
return Status;
, x1 D3 E5 f5 O7 T0 F8 E z1:在NT32下打开一个PCIIO protocal,应该是与硬件没有任何关系的,为什么却fail?用VS studio调试跟踪发现,其实是在执行handle.c 文件中的CoreGetProtocolInterface( )函数时,在 Look at each protocol interface for a match时没有找到匹配protocal返回一个unsupport状态值。0 J* y/ l5 M O1 r
2:当我在用EDK中提供的AtapiScsiPassThruDriverBindingSupported( )测试时,同样会出现此现象。
; f! k, {$ p1 G+ B请问:9 g" h' {: A' q' N# I
当invoke support( )时传递的controller参数需要硬件支持吗?如果不需要为什么会fail掉呢 |
|